tx · 4bAeou5bfvyqX1uAvWssALbnd3fv9789zGMyt5EBwzk5 3MrtHeXquGPcRd3YjJQHfY1Ss6oSDpfxGuL: -0.01400000 Waves 2019.09.17 19:30 [680488] smart account 3MrtHeXquGPcRd3YjJQHfY1Ss6oSDpfxGuL > SELF 0.00000000 Waves
{ "type": 13, "id": "4bAeou5bfvyqX1uAvWssALbnd3fv9789zGMyt5EBwzk5", "fee": 1400000, "feeAssetId": null, "timestamp": 1568737834352, "version": 1, "sender": "3MrtHeXquGPcRd3YjJQHfY1Ss6oSDpfxGuL", "senderPublicKey": "3nmDHSgwcZ79tNbGjppGBY9MbYm4qLZEJcZ32D2WmxkG", "proofs": [ "4XP4BdiAWR1H2Vae8nCy6ng9WTzQkrc1WvtmmDvn1enYJ25JBPPiBkkkyRmQyaiyhaHyfJifwBAwW91KLwrJM2eq" ], "script": "base64:AAIDAAAAAAAAAAAAAABFAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAADGdldEJvb2xCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQcBAAAAGGdldE51bWJlckJ5S2V5QW5kQWRkcmVzcwAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRt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kBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAEU9yZGVyYm9va1RvdGFsS2V5CQAAZQAAAAIFAAAADm9yZGVyYm9va1RvdGFsAwkAAGcAAAACBQAAAAdzdXJwbHVzBQAAAApvcmRlclRvdGFsBQAAAApvcmRlclRvdGFsBQAAAAdzdXJwbHVzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAxPcmRlcmJvb2tLZXkJAAGRAAAAAgkABLUAAAACBQAAAAlvcmRlcmJvb2sJAAEsAAAAAgUAAAAHb3JkZXJJZAUAAAAPTGlzdFNwbGl0U3ltYm9sAAAAAAAAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAADU9yZGVyVG90YWxLZXkFAAAAB29yZGVySWQDCQAAZwAAAAIAAAAAAAAAAAAFAAAABmFtb3VudAAAAAAAAAAAAAUAAAAGYW1vdW50BQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAwkAAGcAAAACBQAAAAdzdXJwbHVzBQAAAApvcmRlclRvdGFsCQEAAAAVY29udmVydEJvbmRUb05ldXRyaW5vAAAAAQUAAAAKb3JkZXJUb3RhbAUAAAAHc3VycGx1cwUAAAAPbmV1dHJpbm9Bc3NldElkBQAAAANuaWwAAAAAONmqMA==", "chainId": 84, "height": 680488, "spentComplexity": 0 } View: original | compacted Prev: 2KWuYvG4V9xQimb77YjU5gGFxETjWPe7o3sCa78dpCXW Next: HPmzcftg1528BsG3TJBPHXbhcsCSiC9cSMNcbrQ9oaSj Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = { | |
5 | 5 | let c = getInteger(this, b) | |
6 | 6 | if ($isInstanceOf(c, "Int")) | |
7 | 7 | then { | |
8 | 8 | let d = c | |
9 | 9 | d | |
10 | 10 | } | |
11 | 11 | else 0 | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func e (b) = { | |
16 | 16 | let c = getString(this, b) | |
17 | 17 | if ($isInstanceOf(c, "String")) | |
18 | 18 | then { | |
19 | 19 | let d = c | |
20 | 20 | d | |
21 | 21 | } | |
22 | 22 | else "" | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func f (b) = { | |
27 | 27 | let c = getBoolean(this, b) | |
28 | 28 | if ($isInstanceOf(c, "Boolean")) | |
29 | 29 | then { | |
30 | 30 | let d = c | |
31 | 31 | d | |
32 | 32 | } | |
33 | 33 | else false | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func g (h,b) = { | |
38 | 38 | let c = getInteger(addressFromStringValue(h), b) | |
39 | 39 | if ($isInstanceOf(c, "Int")) | |
40 | 40 | then { | |
41 | 41 | let d = c | |
42 | 42 | d | |
43 | 43 | } | |
44 | 44 | else 0 | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func i (h,b) = { | |
49 | 49 | let c = getString(addressFromStringValue(h), b) | |
50 | 50 | if ($isInstanceOf(c, "String")) | |
51 | 51 | then { | |
52 | 52 | let d = c | |
53 | 53 | d | |
54 | 54 | } | |
55 | 55 | else "" | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func j (h,b) = { | |
60 | 60 | let c = getBoolean(addressFromStringValue(h), b) | |
61 | 61 | if ($isInstanceOf(c, "Boolean")) | |
62 | 62 | then { | |
63 | 63 | let d = c | |
64 | 64 | d | |
65 | 65 | } | |
66 | 66 | else false | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | let k = "_" | |
71 | 71 | ||
72 | 72 | let l = 5 | |
73 | 73 | ||
74 | 74 | let m = 2 | |
75 | 75 | ||
76 | 76 | let n = "+" | |
77 | 77 | ||
78 | 78 | let o = 100000000 | |
79 | 79 | ||
80 | 80 | let p = (10 * o) | |
81 | 81 | ||
82 | 82 | let q = (10 * o) | |
83 | 83 | ||
84 | 84 | let r = 10 | |
85 | 85 | ||
86 | 86 | let s = "lease_contract" | |
87 | 87 | ||
88 | 88 | let t = "neutrino_asset_id" | |
89 | 89 | ||
90 | 90 | let u = "bond_asset_id" | |
91 | 91 | ||
92 | 92 | let v = "auction_contract" | |
93 | 93 | ||
94 | 94 | let w = "price" | |
95 | 95 | ||
96 | 96 | let x = "neutrino_" | |
97 | 97 | ||
98 | 98 | let y = "waves_" | |
99 | 99 | ||
100 | 100 | let z = "balance_block_" | |
101 | 101 | ||
102 | 102 | let A = "orderbook" | |
103 | 103 | ||
104 | 104 | let B = "order_total_" | |
105 | 105 | ||
106 | 106 | let C = "order_owner_" | |
107 | 107 | ||
108 | 108 | let D = "order_height_" | |
109 | 109 | ||
110 | 110 | let E = "orderbook_total" | |
111 | 111 | ||
112 | 112 | let F = "orderbook_total_snapshot" | |
113 | 113 | ||
114 | 114 | let G = "snapshot_block" | |
115 | 115 | ||
116 | 116 | let H = "orderbook_snapshot" | |
117 | 117 | ||
118 | 118 | let I = "bond_generated_block" | |
119 | 119 | ||
120 | 120 | let J = "account_snapshot_block_" | |
121 | 121 | ||
122 | 122 | let K = "account_snapshot_owner_" | |
123 | 123 | ||
124 | 124 | let L = "account_snapshot_amount_" | |
125 | 125 | ||
126 | 126 | let M = "account_snapshot_node_" | |
127 | 127 | ||
128 | 128 | let N = "snapshot_node_balance_" | |
129 | 129 | ||
130 | 130 | let O = "node_balance_" | |
131 | 131 | ||
132 | 132 | let P = "is_sent_node_balance_" | |
133 | 133 | ||
134 | 134 | let Q = "node_status" | |
135 | 135 | ||
136 | 136 | let R = fromBase58String(e(t)) | |
137 | 137 | ||
138 | 138 | let S = a(w) | |
139 | 139 | ||
140 | 140 | let T = wavesBalance(this) | |
141 | 141 | ||
142 | 142 | let U = { | |
143 | 143 | let V = extract(assetInfo(R)) | |
144 | 144 | (V.quantity - assetBalance(this, R)) | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | let W = a(E) | |
148 | 148 | ||
149 | 149 | let X = e(A) | |
150 | 150 | ||
151 | 151 | let Y = a(G) | |
152 | 152 | ||
153 | 153 | let Z = a(I) | |
154 | 154 | ||
155 | 155 | let aa = e(H) | |
156 | 156 | ||
157 | 157 | let ab = a(F) | |
158 | 158 | ||
159 | 159 | let ac = fromBase58String(e(u)) | |
160 | 160 | ||
161 | 161 | let ad = e(v) | |
162 | 162 | ||
163 | 163 | let ae = e(s) | |
164 | 164 | ||
165 | 165 | let af = { | |
166 | 166 | let V = extract(assetInfo(ac)) | |
167 | 167 | (V.quantity - assetBalance(this, ac)) | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | func ag (ah) = a((y + ah)) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func ai (ah) = a((x + ah)) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func aj (ah) = a((z + ah)) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func ak (al) = a((B + al)) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func am (al) = e((C + al)) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func an (al) = a((J + al)) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func ao (al) = e((K + al)) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func ap (al) = a((L + al)) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func aq (h,ar) = g(ae, (((O + h) + k) + toString(ar))) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func as (h,ar) = f((((P + h) + k) + toString(ar))) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func at (au) = ((au * 100) / S) | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func av (au) = ((au * S) / 100) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func aw (au) = (au / o) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func ax (au) = (au * o) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func ay (au) = aw(av(au)) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | let az = (av(T) - U) | |
216 | 216 | ||
217 | 217 | @Callable(aA) | |
218 | 218 | func setCurrentPrice (S) = WriteSet([DataEntry(w, S), DataEntry(((w + k) + toString(height)), S)]) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | ||
222 | 222 | @Callable(aA) | |
223 | 223 | func swapWavesToNeutrino () = { | |
224 | 224 | let aB = extract(aA.payment) | |
225 | 225 | if (isDefined(aB.assetId)) | |
226 | 226 | then throw("can use waves only") | |
227 | 227 | else { | |
228 | 228 | let aC = toBase58String(aA.caller.bytes) | |
229 | 229 | let au = av(aB.amount) | |
230 | 230 | WriteSet([DataEntry((x + toString(aA.caller)), (au + ai(aC))), DataEntry((z + toString(aA.caller)), height)]) | |
231 | 231 | } | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | ||
236 | 236 | @Callable(aA) | |
237 | 237 | func swapNeutrinoToWaves () = { | |
238 | 238 | let aB = extract(aA.payment) | |
239 | 239 | if ((aB.assetId != R)) | |
240 | 240 | then throw("can use neutrino only") | |
241 | 241 | else { | |
242 | 242 | let aC = toBase58String(aA.caller.bytes) | |
243 | 243 | let au = at(aB.amount) | |
244 | 244 | WriteSet([DataEntry((y + toString(aA.caller)), (au + ag(aC))), DataEntry((z + toString(aA.caller)), height)]) | |
245 | 245 | } | |
246 | 246 | } | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | ||
250 | 250 | @Callable(aA) | |
251 | 251 | func withdraw (aC) = if (((aj(aC) + m) > height)) | |
252 | 252 | then throw("wait a couple of blocks for withdraw") | |
253 | 253 | else ScriptResult(WriteSet([DataEntry((y + aC), 0), DataEntry((x + aC), 0)]), TransferSet([ScriptTransfer(aA.caller, ai(aC), R), ScriptTransfer(aA.caller, ag(aC), unit)])) | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | ||
257 | 257 | @Callable(aA) | |
258 | 258 | func generateBond () = { | |
259 | 259 | let aD = (U - av(T)) | |
260 | 260 | let aE = assetBalance(addressFromStringValue(ad), ac) | |
261 | 261 | let au = (aw(aD) - aE) | |
262 | 262 | if ((au > 0)) | |
263 | 263 | then TransferSet([ScriptTransfer(addressFromStringValue(ad), au, ac)]) | |
264 | 264 | else throw(("deficit did not reach the threshold. deficit =" + toString(aD))) | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | ||
269 | 269 | @Callable(aA) | |
270 | 270 | func setOrder () = { | |
271 | 271 | let aB = extract(aA.payment) | |
272 | 272 | let aF = toBase58String(keccak256(((toBytes(aB.amount) + aA.caller.bytes) + toBytes(height)))) | |
273 | 273 | if ((aB.assetId != ac)) | |
274 | 274 | then throw("can use bond only") | |
275 | 275 | else if ((am(aF) != "")) | |
276 | 276 | then throw("order exists") | |
277 | 277 | else WriteSet([DataEntry(E, (W + aB.amount)), DataEntry(A, ((X + aF) + k)), DataEntry((B + aF), aB.amount), DataEntry((C + aF), toString(aA.caller)), DataEntry((D + aF), height)]) | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | ||
282 | 282 | @Callable(aA) | |
283 | 283 | func cancelOrder (aG) = { | |
284 | 284 | let ah = am(aG) | |
285 | 285 | let aH = ak(aG) | |
286 | 286 | if ((ah != toString(aA.caller))) | |
287 | 287 | then throw("permission denied") | |
288 | 288 | else { | |
289 | 289 | let aI = split(X, (aG + k))[0] | |
290 | 290 | let aJ = split(X, (aG + k))[1] | |
291 | 291 | ScriptResult(WriteSet([DataEntry(E, (W - aH)), DataEntry(A, (aI + aJ)), DataEntry((B + aG), 0)]), TransferSet([ScriptTransfer(aA.caller, aH, unit)])) | |
292 | 292 | } | |
293 | 293 | } | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | ||
297 | 297 | @Callable(aA) | |
298 | 298 | func executeOrder () = { | |
299 | 299 | let aG = split(X, k)[0] | |
300 | 300 | let aK = ak(aG) | |
301 | 301 | if ((0 >= az)) | |
302 | 302 | then throw("surplus is less than zero") | |
303 | 303 | else { | |
304 | 304 | let au = ax((aK - aw(az))) | |
305 | 305 | ScriptResult(WriteSet([DataEntry(E, (W - (if ((az >= aK)) | |
306 | 306 | then aK | |
307 | 307 | else az))), DataEntry(A, split(X, (aG + k))[1]), DataEntry((B + aG), if ((0 >= au)) | |
308 | 308 | then 0 | |
309 | 309 | else au)]), TransferSet([ScriptTransfer(aA.caller, if ((az >= aK)) | |
310 | 310 | then ax(aK) | |
311 | 311 | else az, R)])) | |
312 | 312 | } | |
313 | 313 | } | |
314 | 314 | ||
315 | 315 |
github/deemru/w8io/169f3d6 32.87 ms ◑