tx · 4qVhh5TQteQcmy1BaQQZ6zJ5i7KbEgfKAkMVGDNNvT93

3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN:  -0.01000000 Waves

2023.02.21 22:18 [2459830] smart account 3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN > SELF 0.00000000 Waves

{ "type": 13, "id": "4qVhh5TQteQcmy1BaQQZ6zJ5i7KbEgfKAkMVGDNNvT93", "fee": 1000000, "feeAssetId": null, "timestamp": 1677007184968, "version": 2, "chainId": 84, "sender": "3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN", "senderPublicKey": "2Gtgx295VLiew3CzXqh9eXfFZBTEpDW2nLsrJZ1C4i9J", "proofs": [ "5iMsGjx8JH2WEVwdticKF865UoyMX7P3rjHVEUJMDNsWvQXazAQtCB8LJv7i4sNPZ3zUhbP6PfgAnU1vmLT7AfXR" ], "script": "base64:AAIFAAAAAAAAACMIAhIGCgQIBAgEEgMKAQgSBwoFCAgIAQgSAwoBCBIECgIICAAAAA8AAAAAD2V4dGVybmFsT3JhY2xlcwkABEwAAAACAgAAACMzTjlRWm5YZnU4b0doc3ZaOUJkaXpOdVZKUDd0clh5TVVwNQkABEwAAAACAgAAACMzTkQ2ZVdjTWlHTVgxNVg0SDRXbUdUVGROd0xodFdoUTJEUgUAAAADbmlsAAAAAANmZWUAAAAAAAAAAAEAAAAACGZlZVNjYWxlAAAAAAAAAAPoAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAVdHJ5R2V0SW50ZWdlckV4dGVybmFsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAdhZGRyZXNz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JhY2xlAAAAAgUAAAAHYXNzZXRJZAUAAAAGYW1vdW50AAAAAl8xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAN0eF8FAAAABHR4SWQCAAAAB19zdGF0dXMCAAAACVBST0NFU1NFRAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAADdHhfBQAAAAR0eElkAgAAAAhfb3RoZXJJZAUAAAAJb3RoZXJUeElkBQAAAANuaWwAAAAATcETog==", "height": 2459830, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FKSZBq8Z1JF27KoJRntvaAYbjF7119x2w1kbWBJXoLRX Next: 3ft8CfRSD4WVmKQ5zMUNZwjzzHBgLsZwrmTyLb8tWqF5 Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let externalOracles = ["3XU3GMn2vqXgU2fveHUjUyiuyJcnnqM1GfS", "3XXBF69T1dgvM3sKZAscWU6i5arR7Xj6b1w"]
4+let externalOracles = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"]
55
66 let fee = 1
77
4444
4545
4646 func otherChainAssetKey (otherChainAsset) = ("otherChainAsset_" + otherChainAsset)
47-
48-
49-func tnAsset (assetId) = ("tn_asset_" + assetId)
5047
5148
5249 func reissueable (asset) = ("reissueable_" + asset)
120117
121118
122119 @Callable(i)
123-func initiateAssets (nativeAsset,nativeAssetReissueable,nativeAssetTN,otherChainAsset,otherChainAssetReissueable,otherChainAssetTN) = if ((i.caller != this))
120+func initiateAssets (nativeAsset,nativeAssetReissueable,otherChainAsset,otherChainAssetReissueable) = if ((i.caller != this))
124121 then throw("Only the owner dapp can add additional assets!")
125122 else if ((tryGetString(nativeAssetKey(nativeAsset)) != ""))
126123 then throw("Native Asset already listed!")
127124 else if ((tryGetString(otherChainAssetKey(otherChainAsset)) != ""))
128125 then throw("Other Asset already listed!")
129- 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)]
126+ else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable)]
130127
131128
132129
151148
152149
153150 @Callable(i)
154-func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if ((tryGetString((("tx_" + txId) + "_status")) != ""))
151+func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if (if (if (if ((txId == ""))
155152 then true
156- else (tryGetString((("tx_" + txId) + "_dest")) != ""))
157- then throw((txId + " is already stored!"))
158- else if (if (if (if (if ((txId == ""))
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")) != ""))
159162 then true
160- else !(contains(destination, "3")))
161- then true
162- else (assetId == ""))
163- then true
164- else (amount == 0))
165- then true
166- else (assetIdToReceive == ""))
167- then throw("Parameters seem wrong!")
163+ else (tryGetString((("tx_" + txId) + "_dest")) != ""))
164+ then throw((txId + " is already stored!"))
168165 else {
169166 let destCheck = checkKey((("tx_" + txId) + "_dest"), destination)
170167 let statusCheck = checkKey((("tx_" + txId) + "_status"), "UNPROCESSED")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let externalOracles = ["3XU3GMn2vqXgU2fveHUjUyiuyJcnnqM1GfS", "3XXBF69T1dgvM3sKZAscWU6i5arR7Xj6b1w"]
4+let externalOracles = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"]
55
66 let fee = 1
77
88 let feeScale = 1000
99
1010 func tryGetStringExternal (address,key) = match getString(address, key) {
1111 case a: String =>
1212 a
1313 case _ =>
1414 ""
1515 }
1616
1717
1818 func tryGetIntegerExternal (address,key) = match getInteger(address, key) {
1919 case b: Int =>
2020 b
2121 case _ =>
2222 0
2323 }
2424
2525
2626 func tryGetString (key) = tryGetStringExternal(this, key)
2727
2828
2929 func tryGetInteger (key) = tryGetIntegerExternal(this, key)
3030
3131
3232 func tryGetBoolean (key) = match getBoolean(this, key) {
3333 case b: Boolean =>
3434 b
3535 case _ =>
3636 false
3737 }
3838
3939
4040 func assetIdToString (assetId) = toBase58String(value(assetId))
4141
4242
4343 func nativeAssetKey (nativeAsset) = ("nativeAsset_" + nativeAsset)
4444
4545
4646 func otherChainAssetKey (otherChainAsset) = ("otherChainAsset_" + otherChainAsset)
47-
48-
49-func tnAsset (assetId) = ("tn_asset_" + assetId)
5047
5148
5249 func reissueable (asset) = ("reissueable_" + asset)
5350
5451
5552 func validatePayment (payment) = {
5653 let pmt = value(payment)
5754 if (!(isDefined(pmt.assetId)))
5855 then throw("It needs to be an asset")
5956 else {
6057 let assetDetails = value(assetInfo(value(pmt.assetId)))
6158 if ((1 > pmt.amount))
6259 then throw("You didnt attached a payment!")
6360 else assetIdToString(pmt.assetId)
6461 }
6562 }
6663
6764
6865 func rewardOracle (assetId,baseAmount) = {
6966 let reward = fraction(baseAmount, fee, feeScale, DOWN)
7067 let rewardForOracle = fraction(reward, 1, size(externalOracles), DOWN)
7168 func calculatePayout (acc,externalOracle) = (acc ++ [ScriptTransfer(addressFromStringValue(externalOracle), rewardForOracle, fromBase58String(assetId))])
7269
7370 let result = {
7471 let $l = externalOracles
7572 let $s = size($l)
7673 let $acc0 = nil
7774 func $f0_1 ($a,$i) = if (($i >= $s))
7875 then $a
7976 else calculatePayout($a, $l[$i])
8077
8178 func $f0_2 ($a,$i) = if (($i >= $s))
8279 then $a
8380 else throw("List size exceeds 5")
8481
8582 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
8683 }
8784 $Tuple2(result, reward)
8885 }
8986
9087
9188 func checkKey (key,value) = {
9289 func checkIfKeyExist (acc,externalOracle) = match value {
9390 case b: String =>
9491 let result = tryGetStringExternal(addressFromStringValue(externalOracle), key)
9592 if ((result != value))
9693 then throw(("String Key not matching in " + externalOracle))
9794 else true
9895 case b: Int =>
9996 let result = tryGetIntegerExternal(addressFromStringValue(externalOracle), key)
10097 if ((result != value))
10198 then throw(("Integer Key not matching in " + externalOracle))
10299 else true
103100 case _ =>
104101 throw("Invalid Value!")
105102 }
106103
107104 let $l = externalOracles
108105 let $s = size($l)
109106 let $acc0 = true
110107 func $f0_1 ($a,$i) = if (($i >= $s))
111108 then $a
112109 else checkIfKeyExist($a, $l[$i])
113110
114111 func $f0_2 ($a,$i) = if (($i >= $s))
115112 then $a
116113 else throw("List size exceeds 5")
117114
118115 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
119116 }
120117
121118
122119 @Callable(i)
123-func initiateAssets (nativeAsset,nativeAssetReissueable,nativeAssetTN,otherChainAsset,otherChainAssetReissueable,otherChainAssetTN) = if ((i.caller != this))
120+func initiateAssets (nativeAsset,nativeAssetReissueable,otherChainAsset,otherChainAssetReissueable) = if ((i.caller != this))
124121 then throw("Only the owner dapp can add additional assets!")
125122 else if ((tryGetString(nativeAssetKey(nativeAsset)) != ""))
126123 then throw("Native Asset already listed!")
127124 else if ((tryGetString(otherChainAssetKey(otherChainAsset)) != ""))
128125 then throw("Other Asset already listed!")
129- 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)]
126+ else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable)]
130127
131128
132129
133130 @Callable(i)
134131 func initiateOutGoingTx (destination) = {
135132 let payment = i.payments
136133 if ((size(payment) != 1))
137134 then throw("Invalid payment added!")
138135 else if ((1 > payment[0].amount))
139136 then throw("Invalid amount added!")
140137 else if (!(contains(destination, "3")))
141138 then throw("Please make sure your destination is correctly")
142139 else {
143140 let assetId = validatePayment(payment[0])
144141 let specifiqueData = if (tryGetBoolean(reissueable(assetId)))
145142 then [Burn(fromBase58String(assetId), payment[0].amount), StringEntry((("tx_" + toBase58String(i.transactionId)) + "_asset_to_receive"), tryGetString(otherChainAssetKey(assetId)))]
146143 else [StringEntry((("tx_" + toBase58String(i.transactionId)) + "_asset_to_receive"), tryGetString(nativeAssetKey(assetId)))]
147144 ([StringEntry((("tx_" + toBase58String(i.transactionId)) + "_dest"), destination), StringEntry((("tx_" + toBase58String(i.transactionId)) + "_status"), "UNPROCESSED")] ++ specifiqueData)
148145 }
149146 }
150147
151148
152149
153150 @Callable(i)
154-func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if ((tryGetString((("tx_" + txId) + "_status")) != ""))
151+func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if (if (if (if ((txId == ""))
155152 then true
156- else (tryGetString((("tx_" + txId) + "_dest")) != ""))
157- then throw((txId + " is already stored!"))
158- else if (if (if (if (if ((txId == ""))
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")) != ""))
159162 then true
160- else !(contains(destination, "3")))
161- then true
162- else (assetId == ""))
163- then true
164- else (amount == 0))
165- then true
166- else (assetIdToReceive == ""))
167- then throw("Parameters seem wrong!")
163+ else (tryGetString((("tx_" + txId) + "_dest")) != ""))
164+ then throw((txId + " is already stored!"))
168165 else {
169166 let destCheck = checkKey((("tx_" + txId) + "_dest"), destination)
170167 let statusCheck = checkKey((("tx_" + txId) + "_status"), "UNPROCESSED")
171168 let assetIdCheck = checkKey((("tx_" + txId) + "_assetId"), assetId)
172169 let assetId_to_receiveCheck = checkKey((("tx_" + txId) + "_assetId_to_receive"), assetIdToReceive)
173170 let amountCheck = checkKey((("tx_" + txId) + "_amount"), amount)
174171 if (!(if (if (if (if (destCheck)
175172 then statusCheck
176173 else false)
177174 then assetIdCheck
178175 else false)
179176 then assetId_to_receiveCheck
180177 else false)
181178 then amountCheck
182179 else false))
183180 then throw("Dirty hacker!")
184181 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)]
185182 }
186183
187184
188185
189186 @Callable(i)
190187 func releaseIncomingTx (txId) = if ((txId == ""))
191188 then throw("Invalid data!")
192189 else {
193190 let status = tryGetString((("tx_" + txId) + "_status"))
194191 if ((status == ""))
195192 then throw("No such txid found!")
196193 else if ((status == "PROCESSED"))
197194 then throw("Already processed!")
198195 else {
199196 let assetIdToReceive = tryGetString((("tx_" + txId) + "_assetId_to_receive"))
200197 let destination = tryGetString((("tx_" + txId) + "_dest"))
201198 let amount = tryGetInteger((("tx_" + txId) + "_amount"))
202199 let assetId = tryGetString((("tx_" + txId) + "_assetId"))
203200 let specifiqueData = if (tryGetBoolean(reissueable(assetIdToReceive)))
204201 then if ((tryGetString(nativeAssetKey(assetId)) != assetIdToReceive))
205202 then throw("RE: Skipping tx, corrupt data!")
206203 else [Reissue(fromBase58String(assetIdToReceive), amount, true)]
207204 else if ((tryGetString(otherChainAssetKey(assetId)) != assetIdToReceive))
208205 then throw("URE: Skipping tx, corrupt data!")
209206 else nil
210207 ((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)
211208 }
212209 }
213210
214211
215212
216213 @Callable(i)
217214 func finalizeOutgoingTx (txId,otherTxId) = if (if ((txId == ""))
218215 then true
219216 else (otherTxId == ""))
220217 then throw("Broken data!")
221218 else {
222219 let destCheck = checkKey((("tx_" + txId) + "_otherId"), otherTxId)
223220 let statusCheck = checkKey((("tx_" + txId) + "_status"), "PROCESSED")
224221 if ((tryGetString((("tx_" + txId) + "_otherId")) != ""))
225222 then throw((txId + " is already fully processed!"))
226223 else if (!(if (destCheck)
227224 then statusCheck
228225 else false))
229226 then throw("Dirty hacker!")
230227 else {
231228 let assetId = tryGetString((("tx_" + txId) + "_assetId"))
232229 let amount = tryGetInteger((("tx_" + txId) + "_amount"))
233230 (rewardOracle(assetId, amount)._1 ++ [StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), otherTxId)])
234231 }
235232 }
236233
237234

github/deemru/w8io/169f3d6 
35.87 ms