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:AAIFAAAAAAAAACMIAhIGCgQIBAgEEgMKAQgSBwoFCAgIAQgSAwoBCBIECgIICAAAAA8AAAAAD2V4dGVybmFsT3JhY2xlcwkABEwAAAACAgAAACMzTjlRWm5YZnU4b0doc3ZaOUJkaXpOdVZKUDd0clh5TVVwNQkABEwAAAACAgAAACMzTkQ2ZVdjTWlHTVgxNVg0SDRXbUdUVGROd0xodFdoUTJEUgUAAAADbmlsAAAAAANmZWUAAAAAAAAAAAEAAAAACGZlZVNjYWxlAAAAAAAAAAPoAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAVdHJ5R2V0SW50ZWdlckV4dGVybmFsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAdhZGRyZXNzB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hY2xlAAAAAgUAAAAHYXNzZXRJZAUAAAAGYW1vdW50AAAAAl8xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAN0eF8FAAAABHR4SWQCAAAAB19zdGF0dXMCAAAACVBST0NFU1NFRAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAADdHhfBQAAAAR0eElkAgAAAAhfb3RoZXJJZAUAAAAJb3RoZXJUeElkBQAAAANuaWwAAAAATcETog==", "height": 2459830, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FKSZBq8Z1JF27KoJRntvaAYbjF7119x2w1kbWBJXoLRX Next: 3ft8CfRSD4WVmKQ5zMUNZwjzzHBgLsZwrmTyLb8tWqF5 Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let externalOracles = [" | |
4 | + | let externalOracles = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"] | |
5 | 5 | ||
6 | 6 | let fee = 1 | |
7 | 7 | ||
44 | 44 | ||
45 | 45 | ||
46 | 46 | func otherChainAssetKey (otherChainAsset) = ("otherChainAsset_" + otherChainAsset) | |
47 | - | ||
48 | - | ||
49 | - | func tnAsset (assetId) = ("tn_asset_" + assetId) | |
50 | 47 | ||
51 | 48 | ||
52 | 49 | func reissueable (asset) = ("reissueable_" + asset) | |
120 | 117 | ||
121 | 118 | ||
122 | 119 | @Callable(i) | |
123 | - | func initiateAssets (nativeAsset,nativeAssetReissueable, | |
120 | + | func initiateAssets (nativeAsset,nativeAssetReissueable,otherChainAsset,otherChainAssetReissueable) = if ((i.caller != this)) | |
124 | 121 | then throw("Only the owner dapp can add additional assets!") | |
125 | 122 | else if ((tryGetString(nativeAssetKey(nativeAsset)) != "")) | |
126 | 123 | then throw("Native Asset already listed!") | |
127 | 124 | else if ((tryGetString(otherChainAssetKey(otherChainAsset)) != "")) | |
128 | 125 | then throw("Other Asset already listed!") | |
129 | - | else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable) | |
126 | + | else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable)] | |
130 | 127 | ||
131 | 128 | ||
132 | 129 | ||
151 | 148 | ||
152 | 149 | ||
153 | 150 | @Callable(i) | |
154 | - | func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if (( | |
151 | + | func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if (if (if (if ((txId == "")) | |
155 | 152 | 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")) != "")) | |
159 | 162 | 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!")) | |
168 | 165 | else { | |
169 | 166 | let destCheck = checkKey((("tx_" + txId) + "_dest"), destination) | |
170 | 167 | let statusCheck = checkKey((("tx_" + txId) + "_status"), "UNPROCESSED") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let externalOracles = [" | |
4 | + | let externalOracles = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"] | |
5 | 5 | ||
6 | 6 | let fee = 1 | |
7 | 7 | ||
8 | 8 | let feeScale = 1000 | |
9 | 9 | ||
10 | 10 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
11 | 11 | case a: String => | |
12 | 12 | a | |
13 | 13 | case _ => | |
14 | 14 | "" | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func tryGetIntegerExternal (address,key) = match getInteger(address, key) { | |
19 | 19 | case b: Int => | |
20 | 20 | b | |
21 | 21 | case _ => | |
22 | 22 | 0 | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func tryGetString (key) = tryGetStringExternal(this, key) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func tryGetInteger (key) = tryGetIntegerExternal(this, key) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func tryGetBoolean (key) = match getBoolean(this, key) { | |
33 | 33 | case b: Boolean => | |
34 | 34 | b | |
35 | 35 | case _ => | |
36 | 36 | false | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func assetIdToString (assetId) = toBase58String(value(assetId)) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func nativeAssetKey (nativeAsset) = ("nativeAsset_" + nativeAsset) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func otherChainAssetKey (otherChainAsset) = ("otherChainAsset_" + otherChainAsset) | |
47 | - | ||
48 | - | ||
49 | - | func tnAsset (assetId) = ("tn_asset_" + assetId) | |
50 | 47 | ||
51 | 48 | ||
52 | 49 | func reissueable (asset) = ("reissueable_" + asset) | |
53 | 50 | ||
54 | 51 | ||
55 | 52 | func validatePayment (payment) = { | |
56 | 53 | let pmt = value(payment) | |
57 | 54 | if (!(isDefined(pmt.assetId))) | |
58 | 55 | then throw("It needs to be an asset") | |
59 | 56 | else { | |
60 | 57 | let assetDetails = value(assetInfo(value(pmt.assetId))) | |
61 | 58 | if ((1 > pmt.amount)) | |
62 | 59 | then throw("You didnt attached a payment!") | |
63 | 60 | else assetIdToString(pmt.assetId) | |
64 | 61 | } | |
65 | 62 | } | |
66 | 63 | ||
67 | 64 | ||
68 | 65 | func rewardOracle (assetId,baseAmount) = { | |
69 | 66 | let reward = fraction(baseAmount, fee, feeScale, DOWN) | |
70 | 67 | let rewardForOracle = fraction(reward, 1, size(externalOracles), DOWN) | |
71 | 68 | func calculatePayout (acc,externalOracle) = (acc ++ [ScriptTransfer(addressFromStringValue(externalOracle), rewardForOracle, fromBase58String(assetId))]) | |
72 | 69 | ||
73 | 70 | let result = { | |
74 | 71 | let $l = externalOracles | |
75 | 72 | let $s = size($l) | |
76 | 73 | let $acc0 = nil | |
77 | 74 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
78 | 75 | then $a | |
79 | 76 | else calculatePayout($a, $l[$i]) | |
80 | 77 | ||
81 | 78 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
82 | 79 | then $a | |
83 | 80 | else throw("List size exceeds 5") | |
84 | 81 | ||
85 | 82 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
86 | 83 | } | |
87 | 84 | $Tuple2(result, reward) | |
88 | 85 | } | |
89 | 86 | ||
90 | 87 | ||
91 | 88 | func checkKey (key,value) = { | |
92 | 89 | func checkIfKeyExist (acc,externalOracle) = match value { | |
93 | 90 | case b: String => | |
94 | 91 | let result = tryGetStringExternal(addressFromStringValue(externalOracle), key) | |
95 | 92 | if ((result != value)) | |
96 | 93 | then throw(("String Key not matching in " + externalOracle)) | |
97 | 94 | else true | |
98 | 95 | case b: Int => | |
99 | 96 | let result = tryGetIntegerExternal(addressFromStringValue(externalOracle), key) | |
100 | 97 | if ((result != value)) | |
101 | 98 | then throw(("Integer Key not matching in " + externalOracle)) | |
102 | 99 | else true | |
103 | 100 | case _ => | |
104 | 101 | throw("Invalid Value!") | |
105 | 102 | } | |
106 | 103 | ||
107 | 104 | let $l = externalOracles | |
108 | 105 | let $s = size($l) | |
109 | 106 | let $acc0 = true | |
110 | 107 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
111 | 108 | then $a | |
112 | 109 | else checkIfKeyExist($a, $l[$i]) | |
113 | 110 | ||
114 | 111 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
115 | 112 | then $a | |
116 | 113 | else throw("List size exceeds 5") | |
117 | 114 | ||
118 | 115 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
119 | 116 | } | |
120 | 117 | ||
121 | 118 | ||
122 | 119 | @Callable(i) | |
123 | - | func initiateAssets (nativeAsset,nativeAssetReissueable, | |
120 | + | func initiateAssets (nativeAsset,nativeAssetReissueable,otherChainAsset,otherChainAssetReissueable) = if ((i.caller != this)) | |
124 | 121 | then throw("Only the owner dapp can add additional assets!") | |
125 | 122 | else if ((tryGetString(nativeAssetKey(nativeAsset)) != "")) | |
126 | 123 | then throw("Native Asset already listed!") | |
127 | 124 | else if ((tryGetString(otherChainAssetKey(otherChainAsset)) != "")) | |
128 | 125 | then throw("Other Asset already listed!") | |
129 | - | else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable) | |
126 | + | else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable)] | |
130 | 127 | ||
131 | 128 | ||
132 | 129 | ||
133 | 130 | @Callable(i) | |
134 | 131 | func initiateOutGoingTx (destination) = { | |
135 | 132 | let payment = i.payments | |
136 | 133 | if ((size(payment) != 1)) | |
137 | 134 | then throw("Invalid payment added!") | |
138 | 135 | else if ((1 > payment[0].amount)) | |
139 | 136 | then throw("Invalid amount added!") | |
140 | 137 | else if (!(contains(destination, "3"))) | |
141 | 138 | then throw("Please make sure your destination is correctly") | |
142 | 139 | else { | |
143 | 140 | let assetId = validatePayment(payment[0]) | |
144 | 141 | let specifiqueData = if (tryGetBoolean(reissueable(assetId))) | |
145 | 142 | then [Burn(fromBase58String(assetId), payment[0].amount), StringEntry((("tx_" + toBase58String(i.transactionId)) + "_asset_to_receive"), tryGetString(otherChainAssetKey(assetId)))] | |
146 | 143 | else [StringEntry((("tx_" + toBase58String(i.transactionId)) + "_asset_to_receive"), tryGetString(nativeAssetKey(assetId)))] | |
147 | 144 | ([StringEntry((("tx_" + toBase58String(i.transactionId)) + "_dest"), destination), StringEntry((("tx_" + toBase58String(i.transactionId)) + "_status"), "UNPROCESSED")] ++ specifiqueData) | |
148 | 145 | } | |
149 | 146 | } | |
150 | 147 | ||
151 | 148 | ||
152 | 149 | ||
153 | 150 | @Callable(i) | |
154 | - | func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if (( | |
151 | + | func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if (if (if (if ((txId == "")) | |
155 | 152 | 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")) != "")) | |
159 | 162 | 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!")) | |
168 | 165 | else { | |
169 | 166 | let destCheck = checkKey((("tx_" + txId) + "_dest"), destination) | |
170 | 167 | let statusCheck = checkKey((("tx_" + txId) + "_status"), "UNPROCESSED") | |
171 | 168 | let assetIdCheck = checkKey((("tx_" + txId) + "_assetId"), assetId) | |
172 | 169 | let assetId_to_receiveCheck = checkKey((("tx_" + txId) + "_assetId_to_receive"), assetIdToReceive) | |
173 | 170 | let amountCheck = checkKey((("tx_" + txId) + "_amount"), amount) | |
174 | 171 | if (!(if (if (if (if (destCheck) | |
175 | 172 | then statusCheck | |
176 | 173 | else false) | |
177 | 174 | then assetIdCheck | |
178 | 175 | else false) | |
179 | 176 | then assetId_to_receiveCheck | |
180 | 177 | else false) | |
181 | 178 | then amountCheck | |
182 | 179 | else false)) | |
183 | 180 | then throw("Dirty hacker!") | |
184 | 181 | 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)] | |
185 | 182 | } | |
186 | 183 | ||
187 | 184 | ||
188 | 185 | ||
189 | 186 | @Callable(i) | |
190 | 187 | func releaseIncomingTx (txId) = if ((txId == "")) | |
191 | 188 | then throw("Invalid data!") | |
192 | 189 | else { | |
193 | 190 | let status = tryGetString((("tx_" + txId) + "_status")) | |
194 | 191 | if ((status == "")) | |
195 | 192 | then throw("No such txid found!") | |
196 | 193 | else if ((status == "PROCESSED")) | |
197 | 194 | then throw("Already processed!") | |
198 | 195 | else { | |
199 | 196 | let assetIdToReceive = tryGetString((("tx_" + txId) + "_assetId_to_receive")) | |
200 | 197 | let destination = tryGetString((("tx_" + txId) + "_dest")) | |
201 | 198 | let amount = tryGetInteger((("tx_" + txId) + "_amount")) | |
202 | 199 | let assetId = tryGetString((("tx_" + txId) + "_assetId")) | |
203 | 200 | let specifiqueData = if (tryGetBoolean(reissueable(assetIdToReceive))) | |
204 | 201 | then if ((tryGetString(nativeAssetKey(assetId)) != assetIdToReceive)) | |
205 | 202 | then throw("RE: Skipping tx, corrupt data!") | |
206 | 203 | else [Reissue(fromBase58String(assetIdToReceive), amount, true)] | |
207 | 204 | else if ((tryGetString(otherChainAssetKey(assetId)) != assetIdToReceive)) | |
208 | 205 | then throw("URE: Skipping tx, corrupt data!") | |
209 | 206 | else nil | |
210 | 207 | ((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) | |
211 | 208 | } | |
212 | 209 | } | |
213 | 210 | ||
214 | 211 | ||
215 | 212 | ||
216 | 213 | @Callable(i) | |
217 | 214 | func finalizeOutgoingTx (txId,otherTxId) = if (if ((txId == "")) | |
218 | 215 | then true | |
219 | 216 | else (otherTxId == "")) | |
220 | 217 | then throw("Broken data!") | |
221 | 218 | else { | |
222 | 219 | let destCheck = checkKey((("tx_" + txId) + "_otherId"), otherTxId) | |
223 | 220 | let statusCheck = checkKey((("tx_" + txId) + "_status"), "PROCESSED") | |
224 | 221 | if ((tryGetString((("tx_" + txId) + "_otherId")) != "")) | |
225 | 222 | then throw((txId + " is already fully processed!")) | |
226 | 223 | else if (!(if (destCheck) | |
227 | 224 | then statusCheck | |
228 | 225 | else false)) | |
229 | 226 | then throw("Dirty hacker!") | |
230 | 227 | else { | |
231 | 228 | let assetId = tryGetString((("tx_" + txId) + "_assetId")) | |
232 | 229 | let amount = tryGetInteger((("tx_" + txId) + "_amount")) | |
233 | 230 | (rewardOracle(assetId, amount)._1 ++ [StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), otherTxId)]) | |
234 | 231 | } | |
235 | 232 | } | |
236 | 233 | ||
237 | 234 |
github/deemru/w8io/169f3d6 35.87 ms ◑