tx · 3ft8CfRSD4WVmKQ5zMUNZwjzzHBgLsZwrmTyLb8tWqF5

3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN:  -0.01000000 Waves

2023.02.25 18:43 [2465400] smart account 3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN > SELF 0.00000000 Waves

{ "type": 13, "id": "3ft8CfRSD4WVmKQ5zMUNZwjzzHBgLsZwrmTyLb8tWqF5", "fee": 1000000, "feeAssetId": null, "timestamp": 1677339809818, "version": 2, "chainId": 84, "sender": "3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN", "senderPublicKey": "2Gtgx295VLiew3CzXqh9eXfFZBTEpDW2nLsrJZ1C4i9J", "proofs": [ "4Eh14z91xyzn971wv64xuSkXoBVa6WH4im2ThR77Ry2ztTCnYhZVSvbJuxzwkvqDg7GhrypcjUrXP99nkp4MoTu8" ], "script": "base64:AAIFAAAAAAAAACUIAhIICgYIBAQIBAQSAwoBCBIHCgUICAgBCBIDCgEIEgQKAggIAAAAEQEAAAAKb3JhY2xlc0tleQAAAAACAAAAC29yYWNsZXNMaXN0AQAAABJnZXRFeHRlcm5hbE9yYWNsZXMAAAAACQAEtQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAQAAAApvcmFjbGVzS2V5AAAAAAIAAAABLAAAAAADZmVlAAAAAAAAAAACAAAAAAhmZWVTY2FsZQAAAAAAAAAD6AEAAAAUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwAAAACAAAAB2FkZHJlc3MAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAAFXRyeUdldEludGVnZXJFeHRlcm5hbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAg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AAIFAAAABHR4SWQCAAAAHCBpcyBhbHJlYWR5IGZ1bGx5IHByb2Nlc3NlZCEDCQEAAAABIQAAAAEDBQAAAAlkZXN0Q2hlY2sFAAAAC3N0YXR1c0NoZWNrBwkAAAIAAAABAgAAAA1EaXJ0eSBoYWNrZXIhBAAAAAdhc3NldElkCQEAAAAMdHJ5R2V0U3RyaW5nAAAAAQkAASwAAAACCQABLAAAAAICAAAAA3R4XwUAAAAEdHhJZAIAAAAIX2Fzc2V0SWQEAAAABmFtb3VudAkBAAAADXRyeUdldEludGVnZXIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAADdHhfBQAAAAR0eElkAgAAAAdfYW1vdW50CQAETgAAAAIICQEAAAAMcmV3YXJkT3JhY2xlAAAAAgUAAAAHYXNzZXRJZAUAAAAGYW1vdW50AAAAAl8xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAN0eF8FAAAABHR4SWQCAAAAB19zdGF0dXMCAAAACVBST0NFU1NFRAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAADdHhfBQAAAAR0eElkAgAAAAhfb3RoZXJJZAUAAAAJb3RoZXJUeElkBQAAAANuaWwAAAAA6eA0AQ==", "height": 2465400, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4qVhh5TQteQcmy1BaQQZ6zJ5i7KbEgfKAkMVGDNNvT93 Next: none Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let externalOracles = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"]
4+func oraclesKey () = "oraclesList"
55
6-let fee = 1
6+
7+func getExternalOracles () = split(getStringValue(this, oraclesKey()), ",")
8+
9+
10+let fee = 2
711
812 let feeScale = 1000
913
4650 func otherChainAssetKey (otherChainAsset) = ("otherChainAsset_" + otherChainAsset)
4751
4852
53+func tnAsset (assetId) = ("tn_asset_" + assetId)
54+
55+
4956 func reissueable (asset) = ("reissueable_" + asset)
5057
5158
6471
6572 func rewardOracle (assetId,baseAmount) = {
6673 let reward = fraction(baseAmount, fee, feeScale, DOWN)
67- let rewardForOracle = fraction(reward, 1, size(externalOracles), DOWN)
74+ let rewardForOracle = fraction(reward, 1, size(getExternalOracles()), DOWN)
6875 func calculatePayout (acc,externalOracle) = (acc ++ [ScriptTransfer(addressFromStringValue(externalOracle), rewardForOracle, fromBase58String(assetId))])
6976
7077 let result = {
71- let $l = externalOracles
78+ let $l = getExternalOracles()
7279 let $s = size($l)
7380 let $acc0 = nil
7481 func $f0_1 ($a,$i) = if (($i >= $s))
101108 throw("Invalid Value!")
102109 }
103110
104- let $l = externalOracles
111+ let $l = getExternalOracles()
105112 let $s = size($l)
106113 let $acc0 = true
107114 func $f0_1 ($a,$i) = if (($i >= $s))
117124
118125
119126 @Callable(i)
120-func initiateAssets (nativeAsset,nativeAssetReissueable,otherChainAsset,otherChainAssetReissueable) = if ((i.caller != this))
127+func initiateAssets (nativeAsset,nativeAssetReissueable,nativeAssetTN,otherChainAsset,otherChainAssetReissueable,otherChainAssetTN) = if ((i.caller != this))
121128 then throw("Only the owner dapp can add additional assets!")
122129 else if ((tryGetString(nativeAssetKey(nativeAsset)) != ""))
123130 then throw("Native Asset already listed!")
124131 else if ((tryGetString(otherChainAssetKey(otherChainAsset)) != ""))
125132 then throw("Other Asset already listed!")
126- else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable)]
133+ else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable), BooleanEntry(tnAsset(nativeAsset), nativeAssetTN), BooleanEntry(tnAsset(otherChainAsset), otherChainAssetTN)]
127134
128135
129136
148155
149156
150157 @Callable(i)
151-func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if (if (if (if ((txId == ""))
158+func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if ((tryGetString((("tx_" + txId) + "_status")) != ""))
152159 then true
153- else !(contains(destination, "3")))
154- then true
155- else (assetId == ""))
156- then true
157- else (amount == 0))
158- then true
159- else (assetIdToReceive == ""))
160- then throw("Parameters seem wrong!")
161- else if (if ((tryGetString((("tx_" + txId) + "_status")) != ""))
160+ else (tryGetString((("tx_" + txId) + "_dest")) != ""))
161+ then throw((txId + " is already stored!"))
162+ else if (if (if (if (if ((txId == ""))
162163 then true
163- else (tryGetString((("tx_" + txId) + "_dest")) != ""))
164- then throw((txId + " is already stored!"))
164+ else !(contains(destination, "3")))
165+ then true
166+ else (assetId == ""))
167+ then true
168+ else (amount == 0))
169+ then true
170+ else (assetIdToReceive == ""))
171+ then throw("Parameters seem wrong!")
165172 else {
166173 let destCheck = checkKey((("tx_" + txId) + "_dest"), destination)
167174 let statusCheck = checkKey((("tx_" + txId) + "_status"), "UNPROCESSED")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let externalOracles = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"]
4+func oraclesKey () = "oraclesList"
55
6-let fee = 1
6+
7+func getExternalOracles () = split(getStringValue(this, oraclesKey()), ",")
8+
9+
10+let fee = 2
711
812 let feeScale = 1000
913
1014 func tryGetStringExternal (address,key) = match getString(address, key) {
1115 case a: String =>
1216 a
1317 case _ =>
1418 ""
1519 }
1620
1721
1822 func tryGetIntegerExternal (address,key) = match getInteger(address, key) {
1923 case b: Int =>
2024 b
2125 case _ =>
2226 0
2327 }
2428
2529
2630 func tryGetString (key) = tryGetStringExternal(this, key)
2731
2832
2933 func tryGetInteger (key) = tryGetIntegerExternal(this, key)
3034
3135
3236 func tryGetBoolean (key) = match getBoolean(this, key) {
3337 case b: Boolean =>
3438 b
3539 case _ =>
3640 false
3741 }
3842
3943
4044 func assetIdToString (assetId) = toBase58String(value(assetId))
4145
4246
4347 func nativeAssetKey (nativeAsset) = ("nativeAsset_" + nativeAsset)
4448
4549
4650 func otherChainAssetKey (otherChainAsset) = ("otherChainAsset_" + otherChainAsset)
4751
4852
53+func tnAsset (assetId) = ("tn_asset_" + assetId)
54+
55+
4956 func reissueable (asset) = ("reissueable_" + asset)
5057
5158
5259 func validatePayment (payment) = {
5360 let pmt = value(payment)
5461 if (!(isDefined(pmt.assetId)))
5562 then throw("It needs to be an asset")
5663 else {
5764 let assetDetails = value(assetInfo(value(pmt.assetId)))
5865 if ((1 > pmt.amount))
5966 then throw("You didnt attached a payment!")
6067 else assetIdToString(pmt.assetId)
6168 }
6269 }
6370
6471
6572 func rewardOracle (assetId,baseAmount) = {
6673 let reward = fraction(baseAmount, fee, feeScale, DOWN)
67- let rewardForOracle = fraction(reward, 1, size(externalOracles), DOWN)
74+ let rewardForOracle = fraction(reward, 1, size(getExternalOracles()), DOWN)
6875 func calculatePayout (acc,externalOracle) = (acc ++ [ScriptTransfer(addressFromStringValue(externalOracle), rewardForOracle, fromBase58String(assetId))])
6976
7077 let result = {
71- let $l = externalOracles
78+ let $l = getExternalOracles()
7279 let $s = size($l)
7380 let $acc0 = nil
7481 func $f0_1 ($a,$i) = if (($i >= $s))
7582 then $a
7683 else calculatePayout($a, $l[$i])
7784
7885 func $f0_2 ($a,$i) = if (($i >= $s))
7986 then $a
8087 else throw("List size exceeds 5")
8188
8289 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
8390 }
8491 $Tuple2(result, reward)
8592 }
8693
8794
8895 func checkKey (key,value) = {
8996 func checkIfKeyExist (acc,externalOracle) = match value {
9097 case b: String =>
9198 let result = tryGetStringExternal(addressFromStringValue(externalOracle), key)
9299 if ((result != value))
93100 then throw(("String Key not matching in " + externalOracle))
94101 else true
95102 case b: Int =>
96103 let result = tryGetIntegerExternal(addressFromStringValue(externalOracle), key)
97104 if ((result != value))
98105 then throw(("Integer Key not matching in " + externalOracle))
99106 else true
100107 case _ =>
101108 throw("Invalid Value!")
102109 }
103110
104- let $l = externalOracles
111+ let $l = getExternalOracles()
105112 let $s = size($l)
106113 let $acc0 = true
107114 func $f0_1 ($a,$i) = if (($i >= $s))
108115 then $a
109116 else checkIfKeyExist($a, $l[$i])
110117
111118 func $f0_2 ($a,$i) = if (($i >= $s))
112119 then $a
113120 else throw("List size exceeds 5")
114121
115122 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
116123 }
117124
118125
119126 @Callable(i)
120-func initiateAssets (nativeAsset,nativeAssetReissueable,otherChainAsset,otherChainAssetReissueable) = if ((i.caller != this))
127+func initiateAssets (nativeAsset,nativeAssetReissueable,nativeAssetTN,otherChainAsset,otherChainAssetReissueable,otherChainAssetTN) = if ((i.caller != this))
121128 then throw("Only the owner dapp can add additional assets!")
122129 else if ((tryGetString(nativeAssetKey(nativeAsset)) != ""))
123130 then throw("Native Asset already listed!")
124131 else if ((tryGetString(otherChainAssetKey(otherChainAsset)) != ""))
125132 then throw("Other Asset already listed!")
126- else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable)]
133+ else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable), BooleanEntry(tnAsset(nativeAsset), nativeAssetTN), BooleanEntry(tnAsset(otherChainAsset), otherChainAssetTN)]
127134
128135
129136
130137 @Callable(i)
131138 func initiateOutGoingTx (destination) = {
132139 let payment = i.payments
133140 if ((size(payment) != 1))
134141 then throw("Invalid payment added!")
135142 else if ((1 > payment[0].amount))
136143 then throw("Invalid amount added!")
137144 else if (!(contains(destination, "3")))
138145 then throw("Please make sure your destination is correctly")
139146 else {
140147 let assetId = validatePayment(payment[0])
141148 let specifiqueData = if (tryGetBoolean(reissueable(assetId)))
142149 then [Burn(fromBase58String(assetId), payment[0].amount), StringEntry((("tx_" + toBase58String(i.transactionId)) + "_asset_to_receive"), tryGetString(otherChainAssetKey(assetId)))]
143150 else [StringEntry((("tx_" + toBase58String(i.transactionId)) + "_asset_to_receive"), tryGetString(nativeAssetKey(assetId)))]
144151 ([StringEntry((("tx_" + toBase58String(i.transactionId)) + "_dest"), destination), StringEntry((("tx_" + toBase58String(i.transactionId)) + "_status"), "UNPROCESSED")] ++ specifiqueData)
145152 }
146153 }
147154
148155
149156
150157 @Callable(i)
151-func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if (if (if (if ((txId == ""))
158+func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if ((tryGetString((("tx_" + txId) + "_status")) != ""))
152159 then true
153- else !(contains(destination, "3")))
154- then true
155- else (assetId == ""))
156- then true
157- else (amount == 0))
158- then true
159- else (assetIdToReceive == ""))
160- then throw("Parameters seem wrong!")
161- else if (if ((tryGetString((("tx_" + txId) + "_status")) != ""))
160+ else (tryGetString((("tx_" + txId) + "_dest")) != ""))
161+ then throw((txId + " is already stored!"))
162+ else if (if (if (if (if ((txId == ""))
162163 then true
163- else (tryGetString((("tx_" + txId) + "_dest")) != ""))
164- then throw((txId + " is already stored!"))
164+ else !(contains(destination, "3")))
165+ then true
166+ else (assetId == ""))
167+ then true
168+ else (amount == 0))
169+ then true
170+ else (assetIdToReceive == ""))
171+ then throw("Parameters seem wrong!")
165172 else {
166173 let destCheck = checkKey((("tx_" + txId) + "_dest"), destination)
167174 let statusCheck = checkKey((("tx_" + txId) + "_status"), "UNPROCESSED")
168175 let assetIdCheck = checkKey((("tx_" + txId) + "_assetId"), assetId)
169176 let assetId_to_receiveCheck = checkKey((("tx_" + txId) + "_assetId_to_receive"), assetIdToReceive)
170177 let amountCheck = checkKey((("tx_" + txId) + "_amount"), amount)
171178 if (!(if (if (if (if (destCheck)
172179 then statusCheck
173180 else false)
174181 then assetIdCheck
175182 else false)
176183 then assetId_to_receiveCheck
177184 else false)
178185 then amountCheck
179186 else false))
180187 then throw("Dirty hacker!")
181188 else [StringEntry((("tx_" + txId) + "_dest"), destination), StringEntry((("tx_" + txId) + "_status"), "UNPROCESSED"), StringEntry((("tx_" + txId) + "_assetId"), assetId), StringEntry((("tx_" + txId) + "_assetId_to_receive"), assetIdToReceive), IntegerEntry((("tx_" + txId) + "_amount"), amount)]
182189 }
183190
184191
185192
186193 @Callable(i)
187194 func releaseIncomingTx (txId) = if ((txId == ""))
188195 then throw("Invalid data!")
189196 else {
190197 let status = tryGetString((("tx_" + txId) + "_status"))
191198 if ((status == ""))
192199 then throw("No such txid found!")
193200 else if ((status == "PROCESSED"))
194201 then throw("Already processed!")
195202 else {
196203 let assetIdToReceive = tryGetString((("tx_" + txId) + "_assetId_to_receive"))
197204 let destination = tryGetString((("tx_" + txId) + "_dest"))
198205 let amount = tryGetInteger((("tx_" + txId) + "_amount"))
199206 let assetId = tryGetString((("tx_" + txId) + "_assetId"))
200207 let specifiqueData = if (tryGetBoolean(reissueable(assetIdToReceive)))
201208 then if ((tryGetString(nativeAssetKey(assetId)) != assetIdToReceive))
202209 then throw("RE: Skipping tx, corrupt data!")
203210 else [Reissue(fromBase58String(assetIdToReceive), amount, true)]
204211 else if ((tryGetString(otherChainAssetKey(assetId)) != assetIdToReceive))
205212 then throw("URE: Skipping tx, corrupt data!")
206213 else nil
207214 ((specifiqueData ++ [ScriptTransfer(addressFromStringValue(destination), (amount - rewardOracle(assetIdToReceive, amount)._2), fromBase58String(assetIdToReceive)), StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), toBase58String(i.transactionId))]) ++ rewardOracle(assetIdToReceive, amount)._1)
208215 }
209216 }
210217
211218
212219
213220 @Callable(i)
214221 func finalizeOutgoingTx (txId,otherTxId) = if (if ((txId == ""))
215222 then true
216223 else (otherTxId == ""))
217224 then throw("Broken data!")
218225 else {
219226 let destCheck = checkKey((("tx_" + txId) + "_otherId"), otherTxId)
220227 let statusCheck = checkKey((("tx_" + txId) + "_status"), "PROCESSED")
221228 if ((tryGetString((("tx_" + txId) + "_otherId")) != ""))
222229 then throw((txId + " is already fully processed!"))
223230 else if (!(if (destCheck)
224231 then statusCheck
225232 else false))
226233 then throw("Dirty hacker!")
227234 else {
228235 let assetId = tryGetString((("tx_" + txId) + "_assetId"))
229236 let amount = tryGetInteger((("tx_" + txId) + "_amount"))
230237 (rewardOracle(assetId, amount)._1 ++ [StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), otherTxId)])
231238 }
232239 }
233240
234241

github/deemru/w8io/169f3d6 
54.19 ms