tx · BqfApDvCnsC3J3vPvKdmpVhaDYF8s3fr7wqoF24Fq8Bo 3Mxnm4wd25YMdQYKvdQ7NWf2zRoMkPrhLrN: -0.01000000 Waves 2019.11.16 00:01 [766734] smart account 3Mxnm4wd25YMdQYKvdQ7NWf2zRoMkPrhLrN > SELF 0.00000000 Waves
{ "type": 13, "id": "BqfApDvCnsC3J3vPvKdmpVhaDYF8s3fr7wqoF24Fq8Bo", "fee": 1000000, "feeAssetId": null, "timestamp": 1573851679183, "version": 1, "sender": "3Mxnm4wd25YMdQYKvdQ7NWf2zRoMkPrhLrN", "senderPublicKey": "FpjmXEPHMFPsSMkoA7XTMmBU8bnxZFyD1aFSM4Az4fZ1", "proofs": [ "UoGPYZyksqzks4Cs4HX1CwbC2pTRyBLP1qfnkuHkvx5oM3kucWsBUrqm4wuRjnJEuTdKoWZjtoRiEAMErfRmgU7" ], "script": "base64:AAIDAAAAAAAAACwIARIAEgASBQoDCAEIEgASAwoBCBIAEgYKBAgBAQgSAwoBCBIHCgUICAEBCAAAAGYBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAMZ2V0Qm9vbEJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBwEA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Complexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b) = { | |
5 | + | let c = getInteger(this, b) | |
6 | + | if ($isInstanceOf(c, "Int")) | |
7 | + | then { | |
8 | + | let d = c | |
9 | + | d | |
10 | + | } | |
11 | + | else 0 | |
12 | + | } | |
13 | + | ||
14 | + | ||
15 | + | func e (b) = { | |
16 | + | let c = getString(this, b) | |
17 | + | if ($isInstanceOf(c, "String")) | |
18 | + | then { | |
19 | + | let d = c | |
20 | + | d | |
21 | + | } | |
22 | + | else "" | |
23 | + | } | |
24 | + | ||
25 | + | ||
26 | + | func f (b) = { | |
27 | + | let c = getBoolean(this, b) | |
28 | + | if ($isInstanceOf(c, "Boolean")) | |
29 | + | then { | |
30 | + | let d = c | |
31 | + | d | |
32 | + | } | |
33 | + | else false | |
34 | + | } | |
35 | + | ||
36 | + | ||
37 | + | func g (h,b) = { | |
38 | + | let c = getInteger(addressFromStringValue(h), b) | |
39 | + | if ($isInstanceOf(c, "Int")) | |
40 | + | then { | |
41 | + | let d = c | |
42 | + | d | |
43 | + | } | |
44 | + | else 0 | |
45 | + | } | |
46 | + | ||
47 | + | ||
48 | + | func i (h,b) = { | |
49 | + | let c = getString(addressFromStringValue(h), b) | |
50 | + | if ($isInstanceOf(c, "String")) | |
51 | + | then { | |
52 | + | let d = c | |
53 | + | d | |
54 | + | } | |
55 | + | else "" | |
56 | + | } | |
57 | + | ||
58 | + | ||
59 | + | func j (h,b) = { | |
60 | + | let c = getBoolean(addressFromStringValue(h), b) | |
61 | + | if ($isInstanceOf(c, "Boolean")) | |
62 | + | then { | |
63 | + | let d = c | |
64 | + | d | |
65 | + | } | |
66 | + | else false | |
67 | + | } | |
68 | + | ||
69 | + | ||
70 | + | let k = 30 | |
71 | + | ||
72 | + | let l = "_" | |
73 | + | ||
74 | + | let m = "+" | |
75 | + | ||
76 | + | let n = 100000000 | |
77 | + | ||
78 | + | let o = 100 | |
79 | + | ||
80 | + | let p = 20 | |
81 | + | ||
82 | + | let q = 90 | |
83 | + | ||
84 | + | let r = 10 | |
85 | + | ||
86 | + | let s = 10 | |
87 | + | ||
88 | + | let t = "waves" | |
89 | + | ||
90 | + | let u = "canceled" | |
91 | + | ||
92 | + | let v = "new" | |
93 | + | ||
94 | + | let w = "neutrino_asset_id" | |
95 | + | ||
96 | + | let x = "bond_asset_id" | |
97 | + | ||
98 | + | let y = "reserve_contract" | |
99 | + | ||
100 | + | let z = "auction_contract" | |
101 | + | ||
102 | + | let A = "liquidation_contract" | |
103 | + | ||
104 | + | let B = "rpd_contract" | |
105 | + | ||
106 | + | let C = "control_contract" | |
107 | + | ||
108 | + | let D = "balance_lock_interval" | |
109 | + | ||
110 | + | let E = "min_waves_swap_amount" | |
111 | + | ||
112 | + | let F = "min_neutrino_swap_amount" | |
113 | + | ||
114 | + | let G = "node_address" | |
115 | + | ||
116 | + | let H = "oracle_node_provider" | |
117 | + | ||
118 | + | let I = "leasing_interval" | |
119 | + | ||
120 | + | let J = "rpd_balance" | |
121 | + | ||
122 | + | func K (L) = ((J + "_") + toBase58String(L)) | |
123 | + | ||
124 | + | ||
125 | + | let M = "total_orderbook" | |
126 | + | ||
127 | + | let N = "total_liquidation_orderbook" | |
128 | + | ||
129 | + | let O = "price" | |
130 | + | ||
131 | + | let P = "price_index" | |
132 | + | ||
133 | + | let Q = "is_blocked" | |
134 | + | ||
135 | + | let R = "leasing_expire_block" | |
136 | + | ||
137 | + | let S = "is_rebalance" | |
138 | + | ||
139 | + | let T = "leasing_index" | |
140 | + | ||
141 | + | let U = "leasing_amount" | |
142 | + | ||
143 | + | func V (W) = ((O + "_") + toString(W)) | |
144 | + | ||
145 | + | ||
146 | + | func X (Y) = ((P + "_") + toString(Y)) | |
147 | + | ||
148 | + | ||
149 | + | let Z = "rpd_sync_index" | |
150 | + | ||
151 | + | func aa (ab,L) = ((((J + "_") + toBase58String(L)) + "_") + toString(ab)) | |
152 | + | ||
153 | + | ||
154 | + | func ac (ad) = (("cancel_lease_tx_reserve_fee" + "_") + ad) | |
155 | + | ||
156 | + | ||
157 | + | func ae (af,L) = ((("balance_" + L) + "_") + af) | |
158 | + | ||
159 | + | ||
160 | + | func ag (af) = ("balance_block_" + af) | |
161 | + | ||
162 | + | ||
163 | + | func ah (ab) = (("rpd_profit" + "_") + toString(ab)) | |
164 | + | ||
165 | + | ||
166 | + | func ai (L) = ("balance_" + L) | |
167 | + | ||
168 | + | ||
169 | + | func aj (ad) = (("lease_tx_status" + "_") + ad) | |
170 | + | ||
171 | + | ||
172 | + | func ak (ad) = ((U + "_") + ad) | |
173 | + | ||
174 | + | ||
175 | + | func al (ad) = (("lease_tx" + "_") + ad) | |
176 | + | ||
177 | + | ||
178 | + | func am (ad) = (("leasing_expire_send" + "_") + ad) | |
179 | + | ||
180 | + | ||
181 | + | func an (ao,ap) = ((((ao * 100) / ap) * n) / o) | |
182 | + | ||
183 | + | ||
184 | + | func aq (ao,ap) = ((((ao * ap) / 100) * o) / n) | |
185 | + | ||
186 | + | ||
187 | + | func ar (ao) = (ao / o) | |
188 | + | ||
189 | + | ||
190 | + | func as (ao) = (ao * o) | |
191 | + | ||
192 | + | ||
193 | + | func at (ao,ap) = ar(aq(ao, ap)) | |
194 | + | ||
195 | + | ||
196 | + | func au (L) = a(ai(L)) | |
197 | + | ||
198 | + | ||
199 | + | let av = e(A) | |
200 | + | ||
201 | + | let aw = e(w) | |
202 | + | ||
203 | + | let ax = fromBase58String(aw) | |
204 | + | ||
205 | + | let ay = e(y) | |
206 | + | ||
207 | + | let az = e(z) | |
208 | + | ||
209 | + | let aA = e(B) | |
210 | + | ||
211 | + | let aB = e(C) | |
212 | + | ||
213 | + | let aC = g(aB, O) | |
214 | + | ||
215 | + | let aD = g(aB, P) | |
216 | + | ||
217 | + | let aE = j(aB, Q) | |
218 | + | ||
219 | + | let aF = a(T) | |
220 | + | ||
221 | + | let aG = f(S) | |
222 | + | ||
223 | + | let aH = a(I) | |
224 | + | ||
225 | + | let aI = a(R) | |
226 | + | ||
227 | + | let aJ = a(U) | |
228 | + | ||
229 | + | let aK = e(G) | |
230 | + | ||
231 | + | let aL = e(H) | |
232 | + | ||
233 | + | let aM = a(Z) | |
234 | + | ||
235 | + | let aN = a(D) | |
236 | + | ||
237 | + | let aO = a(E) | |
238 | + | ||
239 | + | let aP = a(F) | |
240 | + | ||
241 | + | let aQ = (wavesBalance(this) - au(t)) | |
242 | + | ||
243 | + | let aR = (aQ - aJ) | |
244 | + | ||
245 | + | let aS = fromBase58String(e(x)) | |
246 | + | ||
247 | + | let aT = (extract(assetInfo(aS)).quantity - assetBalance(this, aS)) | |
248 | + | ||
249 | + | let aU = ((extract(assetInfo(ax)).quantity - assetBalance(this, ax)) + au(aw)) | |
250 | + | ||
251 | + | let aV = (aq(aQ, aC) - aU) | |
252 | + | ||
253 | + | let aW = (aU - aq(aQ, aC)) | |
254 | + | ||
255 | + | func aX (L) = g(aA, K(L)) | |
256 | + | ||
257 | + | ||
258 | + | let aY = g(az, N) | |
259 | + | ||
260 | + | let aZ = g(az, M) | |
261 | + | ||
262 | + | func ba (W) = g(aB, V(W)) | |
263 | + | ||
264 | + | ||
265 | + | func bb (Y) = g(aB, X(Y)) | |
266 | + | ||
267 | + | ||
268 | + | func bc (ad) = a(ac(ad)) | |
269 | + | ||
270 | + | ||
271 | + | func bd (af,L) = a(ae(af, L)) | |
272 | + | ||
273 | + | ||
274 | + | func be (af) = a(ag(af)) | |
275 | + | ||
276 | + | ||
277 | + | func bf (ab) = a(ah(ab)) | |
278 | + | ||
279 | + | ||
280 | + | func bg (ad) = e(aj(ad)) | |
281 | + | ||
282 | + | ||
283 | + | func bh (ad) = a(ak(ad)) | |
284 | + | ||
285 | + | ||
286 | + | func bi (ad) = e(al(ad)) | |
287 | + | ||
288 | + | ||
289 | + | func bj (ad) = a(am(ad)) | |
290 | + | ||
291 | + | ||
292 | + | @Callable(bk) | |
293 | + | func swapWavesToNeutrino () = { | |
294 | + | let bl = extract(bk.payment) | |
295 | + | let bm = toString(bk.caller) | |
296 | + | if ((aO > bl.amount)) | |
297 | + | then throw((("an amount is less than min available amount: " + toString(aO)) + " wavelets")) | |
298 | + | else if (isDefined(bl.assetId)) | |
299 | + | then throw("can use waves only") | |
300 | + | else if (aE) | |
301 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
302 | + | else if ((be(bm) > height)) | |
303 | + | then throw((("await " + toString((be(bm) - height))) + " blocks")) | |
304 | + | else if ((bd(bm, t) != 0)) | |
305 | + | then throw("please withdraw locked funds first") | |
306 | + | else WriteSet([DataEntry(ae(bm, t), bl.amount), DataEntry(ag(bm), (height + aN)), DataEntry(ai(t), (au(t) + bl.amount))]) | |
307 | + | } | |
308 | + | ||
309 | + | ||
310 | + | ||
311 | + | @Callable(bk) | |
312 | + | func swapNeutrinoToWaves () = { | |
313 | + | let bl = extract(bk.payment) | |
314 | + | let bm = toString(bk.caller) | |
315 | + | if ((aP > bl.amount)) | |
316 | + | then throw((("an amount is less than min available amount: " + toString(aP)) + " neutrino cents")) | |
317 | + | else if (aE) | |
318 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
319 | + | else if ((bl.assetId != ax)) | |
320 | + | then throw("can use appropriate neutrino tokens only") | |
321 | + | else if ((be(bm) > height)) | |
322 | + | then throw((("await " + toString((be(bm) - height))) + " blocks")) | |
323 | + | else if ((bd(bm, aw) != 0)) | |
324 | + | then throw("please withdraw locked funds first") | |
325 | + | else { | |
326 | + | let bn = (au(aw) + bl.amount) | |
327 | + | WriteSet([DataEntry(ae(bm, aw), bl.amount), DataEntry(ag(bm), (height + aN)), DataEntry(ai(aw), bn), DataEntry(S, if ((aR >= an(bn, aC))) | |
328 | + | then false | |
329 | + | else true)]) | |
330 | + | } | |
331 | + | } | |
332 | + | ||
333 | + | ||
334 | + | ||
335 | + | @Callable(bk) | |
336 | + | func withdraw (bm,Y,bo) = { | |
337 | + | let bp = be(bm) | |
338 | + | let bq = bd(bm, bo) | |
339 | + | let br = bb(Y) | |
340 | + | let bs = bb((Y + 1)) | |
341 | + | let bt = ba(br) | |
342 | + | let ao = if ((bo == aw)) | |
343 | + | then an(bq, bt) | |
344 | + | else aq(bq, bt) | |
345 | + | if (aE) | |
346 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
347 | + | else if ((0 >= ao)) | |
348 | + | then throw((("balance equals zero (" + bo) + ")")) | |
349 | + | else if ((bp > height)) | |
350 | + | then throw((("please wait for: " + toString(bp)) + " block height to withdraw WAVES funds")) | |
351 | + | else if (if (if ((Y > aD)) | |
352 | + | then true | |
353 | + | else (br > bp)) | |
354 | + | then true | |
355 | + | else if ((bs != 0)) | |
356 | + | then (bp >= bs) | |
357 | + | else false) | |
358 | + | then throw("invalid price history index") | |
359 | + | else ScriptResult(WriteSet([DataEntry(ae(bm, bo), 0), DataEntry(ai(bo), (au(bo) - bq))]), TransferSet([ScriptTransfer(addressFromStringValue(bm), ao, if ((bo == aw)) | |
360 | + | then unit | |
361 | + | else ax)])) | |
362 | + | } | |
363 | + | ||
364 | + | ||
365 | + | ||
366 | + | @Callable(bk) | |
367 | + | func transferToAuction () = { | |
368 | + | let bu = ((ar(aW) - assetBalance(addressFromStringValue(az), aS)) - aY) | |
369 | + | let bv = ((ar(aV) - assetBalance(addressFromStringValue(az), ax)) - aZ) | |
370 | + | if (aE) | |
371 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
372 | + | else if ((bu >= ((aU * s) / 100))) | |
373 | + | then TransferSet([ScriptTransfer(addressFromStringValue(az), bu, aS)]) | |
374 | + | else if ((bv > 0)) | |
375 | + | then TransferSet([ScriptTransfer(addressFromStringValue(av), as(bv), ax)]) | |
376 | + | else throw("bond were generated or do not need it") | |
377 | + | } | |
378 | + | ||
379 | + | ||
380 | + | ||
381 | + | @Callable(bk) | |
382 | + | func transfer (bm) = { | |
383 | + | let bl = extract(bk.payment) | |
384 | + | TransferSet([ScriptTransfer(addressFromStringValue(bm), bl.amount, bl.assetId)]) | |
385 | + | } | |
386 | + | ||
387 | + | ||
388 | + | ||
389 | + | @Callable(bk) | |
390 | + | func nodeReward () = { | |
391 | + | let bl = value(bk.payment) | |
392 | + | if ((bk.caller != addressFromStringValue(aK))) | |
393 | + | then throw("only node account is able to transfer staking rewards from main account") | |
394 | + | else if (isDefined(bl.assetId)) | |
395 | + | then throw("waves tokens only allowed") | |
396 | + | else { | |
397 | + | let ao = aq(bl.amount, aC) | |
398 | + | let bw = (aM + 1) | |
399 | + | ScriptResult(WriteSet([DataEntry(Z, bw), DataEntry(ah(aM), ao), DataEntry(aa(aM, ax), aX(ax))]), TransferSet([ScriptTransfer(addressFromStringValue(aA), ao, ax)])) | |
400 | + | } | |
401 | + | } | |
402 | + | ||
403 | + | ||
404 | + | ||
405 | + | @Callable(bk) | |
406 | + | func registrationLeaseTx (bx,by,bz,bA) = { | |
407 | + | let bB = (((aQ * q) / 100) - an(au(aw), aC)) | |
408 | + | let ao = (bB / r) | |
409 | + | let bC = (((((base58'3h1H' + fromBase58String(bx)) + fromBase58String(aK)) + toBytes(ao)) + toBytes(by)) + toBytes(bz)) | |
410 | + | let bD = blake2b256(bC) | |
411 | + | let bE = toBase58String(bD) | |
412 | + | let bl = extract(bk.payment) | |
413 | + | if ((toString(bk.caller) == aL)) | |
414 | + | then throw("invalid caller") | |
415 | + | else if (isDefined(bl.assetId)) | |
416 | + | then throw("invalid paymtn asset") | |
417 | + | else if ((bA != bE)) | |
418 | + | then throw((("invalid tx hash(amount:" + toString(ao)) + ")")) | |
419 | + | else if ((aF >= r)) | |
420 | + | then throw("the number of leasing transactions is equal to the maximum") | |
421 | + | else if ((this != addressFromPublicKey(fromBase58String(bx)))) | |
422 | + | then throw("invalid pubKey") | |
423 | + | else if (if ((lastBlock.timestamp > bz)) | |
424 | + | then true | |
425 | + | else (bz > (lastBlock.timestamp + 5400000))) | |
426 | + | then throw((("invalid timestamp(lastBlock: " + toString(lastBlock.timestamp)) + ")")) | |
427 | + | else if ((bg(bE) != "")) | |
428 | + | then throw("tx is exist") | |
429 | + | else if ((bl.amount != (by * 2))) | |
430 | + | then throw("invalid payment amount") | |
431 | + | else if (if ((by > 1000000)) | |
432 | + | then true | |
433 | + | else (500000 > by)) | |
434 | + | then throw("invalid fee") | |
435 | + | else if (((bB - (aJ + ao)) > aR)) | |
436 | + | then throw((("invalid amount(result:" + toString(((bB - (aJ + ao)) > aR))) + ")")) | |
437 | + | else WriteSet([DataEntry(ac(bE), by), DataEntry(T, if ((bg(bE) == "")) | |
438 | + | then (aF + 1) | |
439 | + | else aF), DataEntry(U, (aJ + ao)), DataEntry(R, if ((height > aI)) | |
440 | + | then (height + aH) | |
441 | + | else aI), DataEntry(aj(bE), v), DataEntry(am(bE), (height + k)), DataEntry(ak(bE), ao), DataEntry(al(bE), toBase64String(bC))]) | |
442 | + | } | |
443 | + | ||
444 | + | ||
445 | + | ||
446 | + | @Callable(bk) | |
447 | + | func cancelStuckLeaseTx (bE) = if (if (if ((bg(bE) == v)) | |
448 | + | then !(isDefined(transactionHeightById(fromBase58String(bE)))) | |
449 | + | else false) | |
450 | + | then (height > bj(bE)) | |
451 | + | else false) | |
452 | + | then { | |
453 | + | let ao = bh(bE) | |
454 | + | WriteSet([DataEntry(T, (aF - 1)), DataEntry(U, (aJ - ao)), DataEntry(aj(bE), u), DataEntry(S, if (((aR - ao) >= an(au(aw), aC))) | |
455 | + | then false | |
456 | + | else true)]) | |
457 | + | } | |
458 | + | else throw("invalid tx hash") | |
459 | + | ||
460 | + | ||
461 | + | ||
462 | + | @Callable(bk) | |
463 | + | func registrationUnleaseTx (bF,bx,by,bz,bA) = { | |
464 | + | let bC = (((((base58'gm' + toBytes(bF)) + fromBase58String(bx)) + toBytes(by)) + toBytes(bz)) + fromBase58String(bA)) | |
465 | + | let bE = blake2b256(bC) | |
466 | + | if ((bg(bA) != v)) | |
467 | + | then throw("invalid tx status") | |
468 | + | else if ((this != addressFromPublicKey(fromBase58String(bx)))) | |
469 | + | then throw("invalid pubKey") | |
470 | + | else if (!(isDefined(transactionHeightById(bE)))) | |
471 | + | then throw("blockchain does not contain this transaction") | |
472 | + | else { | |
473 | + | let ao = bh(bA) | |
474 | + | WriteSet([DataEntry(T, (aF - 1)), DataEntry(U, (aJ - ao)), DataEntry(aj(bA), u), DataEntry(S, if (((aR - ao) >= an(au(aw), aC))) | |
475 | + | then false | |
476 | + | else true)]) | |
477 | + | } | |
478 | + | } | |
479 | + | ||
480 | + | ||
481 | + | @Verifier(bG) | |
482 | + | func bH () = { | |
483 | + | let bI = toBase58String(bG.id) | |
484 | + | let c = bG | |
485 | + | if ($isInstanceOf(c, "LeaseTransaction")) | |
486 | + | then { | |
487 | + | let bJ = c | |
488 | + | if (if ((aI >= height)) | |
489 | + | then (bj(bI) >= height) | |
490 | + | else false) | |
491 | + | then (bg(bI) == v) | |
492 | + | else false | |
493 | + | } | |
494 | + | else if ($isInstanceOf(c, "LeaseCancelTransaction")) | |
495 | + | then { | |
496 | + | let bK = c | |
497 | + | let bL = toBase58String(bK.leaseId) | |
498 | + | if (if (if ((height > aI)) | |
499 | + | then true | |
500 | + | else aG) | |
501 | + | then (bK.fee == bc(bL)) | |
502 | + | else false) | |
503 | + | then (bg(bL) == v) | |
504 | + | else false | |
505 | + | } | |
506 | + | else sigVerify(bG.bodyBytes, bG.proofs[0], bG.senderPublicKey) | |
507 | + | } | |
508 | + |
github/deemru/w8io/026f985 35.89 ms ◑