tx · GFALYFuGboyMoycGiVqce7rsYBPHJWs1m5okTDKQyVFT 3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD: -0.01400000 Waves 2021.08.19 19:42 [1665489] smart account 3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD > SELF 0.00000000 Waves
{ "type": 13, "id": "GFALYFuGboyMoycGiVqce7rsYBPHJWs1m5okTDKQyVFT", "fee": 1400000, "feeAssetId": null, "timestamp": 1629391341308, "version": 2, "chainId": 84, "sender": "3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD", "senderPublicKey": "9WSLkkzDD1adiGFyZbCjY47yzFtCW8U5DKWUqpiuaL3p", "proofs": [ "32cQG72qtqN2dDJfSxEiXpgjtyrAyiRxbtzTCNx2HjEK7uD1igtrArhSaWzheehbJ9urxKzi4Uui17qQ7pZCPq7K" ], "script": "base64:AAIFAAAAAAAAAQIIAhIAEgAaCAoCYTESAldVGggKAmEyEgJTVxoICgJhMxICU1UaBwoCYTQSAVcaBwoCYTUSAVUaBwoCYTYSAVMaCwoCYTcSBWFkbWluGgwKAmE4EgZzY2FsZTgaDAoCYTkSBnNjYWxlNhoHCgJiMRIBaRoJCgJiMhIDYmJ1GgkKAmIzEgNiYncaCQoCYjQSA2JicxoLCgJiNRIFc3dhcDEaCwoCYjYSBWRpZmZ1GgsKAmI3EgVzd2FwMhoLCgJiOBIFZGlmZnMaCwoCYjkSBXN3YXAzGgsKAmMxEgVkaWZmdxoICgJjMhICb2saCAoCYzMSAnR4GgwKAmM0EgZ2ZXJpZnkAAAAJAAAAAAJhMQkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAABXZhbHVlAAAAAQIAAAAjM05ERDNpZkFDMTdjTHp4dVlxc2dYRFJZOURUUTVCcW12d0wAAAAAAmEyCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAAFdmFsdWUAAAABAgAAACMzTkF6RVM3cFNqZm9Ic0tOdW1QNUhSdFN0M3FhZGJxbkhp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AANuaWwDCQAAAAAAAAIFAAAAAmI5BQAAAAJiOQQAAAACYzEJAABlAAAAAgkAA/AAAAACBQAAAAR0aGlzBQAAAAJhNAUAAAACYjMDCQAAAAAAAAIFAAAAAmMxBQAAAAJjMQMJAABmAAAAAgUAAAACYzEAAAAAAAAAAAAEAAAAAmMyAgAAAAJvawkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFZGVidWcFAAAAAmMxBQAAAANuaWwJAAACAAAAAQkAAaQAAAABBQAAAAJjMQkAAAIAAAABAgAAABpzdHJpY3QgdmFsdWUgd2hhdCB0aGUgZnVjawkAAAIAAAABAgAAABpzdHJpY3QgdmFsdWUgd2hhdCB0aGUgZnVjawkAAAIAAAABAgAAABpzdHJpY3QgdmFsdWUgd2hhdCB0aGUgZnVjawkAAAIAAAABAgAAABpzdHJpY3QgdmFsdWUgd2hhdCB0aGUgZnVjawkAAAIAAAABAgAAABpzdHJpY3QgdmFsdWUgd2hhdCB0aGUgZnVjawkAAAIAAAABAgAAABpzdHJpY3QgdmFsdWUgd2hhdCB0aGUgZnVjawkAAAIAAAABAgAAACNTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZgAAAAEAAAACYzMBAAAAAmM0AAAAAAkAAfQAAAADCAUAAAACYzMAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJjMwAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJjMwAAAA9zZW5kZXJQdWJsaWNLZXkHmvMm", "height": 1665489, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DVqLENCpdkESXkVwpoWZy5s8xyPdYcmtLyKExBsmetBw Next: CY5rNBWccUSahazx1uRD1LHrjUuoxooitZJGKfDcUTQG Diff:
Old | New | Differences | |
---|---|---|---|
20 | 20 | let i = 1000000 | |
21 | 21 | ||
22 | 22 | @Callable(j) | |
23 | - | func | |
23 | + | func call1 () = if ((j.caller != g)) | |
24 | 24 | then throw("only admin") | |
25 | 25 | else { | |
26 | 26 | let k = assetBalance(this, e) | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
74 | + | ||
75 | + | @Callable(j) | |
76 | + | func call2 () = if ((j.caller != g)) | |
77 | + | then throw("only admin") | |
78 | + | else { | |
79 | + | let k = assetBalance(this, e) | |
80 | + | let l = assetBalance(this, d) | |
81 | + | let m = assetBalance(this, f) | |
82 | + | if (if (if ((k == k)) | |
83 | + | then (l == l) | |
84 | + | else false) | |
85 | + | then (m == m) | |
86 | + | else false) | |
87 | + | then { | |
88 | + | let n = invoke(b, "exchange", [1], [AttachedPayment(d, (1 * h))]) | |
89 | + | if ((n == n)) | |
90 | + | then { | |
91 | + | let q = (assetBalance(this, f) - m) | |
92 | + | if ((q == q)) | |
93 | + | then { | |
94 | + | let p = invoke(c, "exchange", [1], [AttachedPayment(f, q)]) | |
95 | + | if ((p == p)) | |
96 | + | then { | |
97 | + | let o = (assetBalance(this, e) - k) | |
98 | + | if ((o == o)) | |
99 | + | then { | |
100 | + | let r = invoke(a, "exchange", [1], [AttachedPayment(f, o)]) | |
101 | + | if ((r == r)) | |
102 | + | then { | |
103 | + | let s = (assetBalance(this, d) - l) | |
104 | + | if ((s == s)) | |
105 | + | then if ((s > 0)) | |
106 | + | then { | |
107 | + | let t = "ok" | |
108 | + | [IntegerEntry("debug", s)] | |
109 | + | } | |
110 | + | else throw(toString(s)) | |
111 | + | else throw("strict value what the fuck") | |
112 | + | } | |
113 | + | else throw("strict value what the fuck") | |
114 | + | } | |
115 | + | else throw("strict value what the fuck") | |
116 | + | } | |
117 | + | else throw("strict value what the fuck") | |
118 | + | } | |
119 | + | else throw("strict value what the fuck") | |
120 | + | } | |
121 | + | else throw("strict value what the fuck") | |
122 | + | } | |
123 | + | else throw("Strict value is not equal to itself") | |
124 | + | } | |
125 | + | ||
126 | + | ||
74 | 127 | @Verifier(u) | |
75 | 128 | func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey) | |
76 | 129 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = addressFromStringValue(value("3NDD3ifAC17cLzxuYqsgXDRY9DTQ5BqmvwL")) | |
5 | 5 | ||
6 | 6 | let b = addressFromStringValue(value("3NAzES7pSjfoHsKNumP5HRtSt3qadbqnHip")) | |
7 | 7 | ||
8 | 8 | let c = addressFromStringValue(value("3MrBtdped4oUFs1BvLNu53Dm1AMGiTHkT9B")) | |
9 | 9 | ||
10 | 10 | let d = base58'3Tg4GRpKeek5wWAQRJKH1ucjMuKNom3f2h67WNNu6xVS' | |
11 | 11 | ||
12 | 12 | let e = base58'gAAmMoquySsX6q5EmzciFfB8RecAhZR9W1HKNntNekL' | |
13 | 13 | ||
14 | 14 | let f = base58'89G3XEYzMSztS6RPN5h2da7j43r4zgKufReZWn1MqX7g' | |
15 | 15 | ||
16 | 16 | let g = addressFromStringValue("3N97G98bPF5ghnZ1iMmQ7tMH6MBsNZnS272") | |
17 | 17 | ||
18 | 18 | let h = 100000000 | |
19 | 19 | ||
20 | 20 | let i = 1000000 | |
21 | 21 | ||
22 | 22 | @Callable(j) | |
23 | - | func | |
23 | + | func call1 () = if ((j.caller != g)) | |
24 | 24 | then throw("only admin") | |
25 | 25 | else { | |
26 | 26 | let k = assetBalance(this, e) | |
27 | 27 | let l = assetBalance(this, d) | |
28 | 28 | let m = assetBalance(this, f) | |
29 | 29 | if (if (if ((k == k)) | |
30 | 30 | then (l == l) | |
31 | 31 | else false) | |
32 | 32 | then (m == m) | |
33 | 33 | else false) | |
34 | 34 | then { | |
35 | 35 | let n = invoke(a, "exchange", [1], [AttachedPayment(d, (1 * h))]) | |
36 | 36 | if ((n == n)) | |
37 | 37 | then { | |
38 | 38 | let o = (assetBalance(this, e) - k) | |
39 | 39 | if ((o == o)) | |
40 | 40 | then { | |
41 | 41 | let p = invoke(c, "exchange", [1], [AttachedPayment(e, o)]) | |
42 | 42 | if ((p == p)) | |
43 | 43 | then { | |
44 | 44 | let q = (assetBalance(this, f) - m) | |
45 | 45 | if ((q == q)) | |
46 | 46 | then { | |
47 | 47 | let r = invoke(b, "exchange", [1], [AttachedPayment(f, q)]) | |
48 | 48 | if ((r == r)) | |
49 | 49 | then { | |
50 | 50 | let s = (assetBalance(this, d) - l) | |
51 | 51 | if ((s == s)) | |
52 | 52 | then if ((s > 0)) | |
53 | 53 | then { | |
54 | 54 | let t = "ok" | |
55 | 55 | [IntegerEntry("debug", s)] | |
56 | 56 | } | |
57 | 57 | else throw(toString(s)) | |
58 | 58 | else throw("strict value what the fuck") | |
59 | 59 | } | |
60 | 60 | else throw("strict value what the fuck") | |
61 | 61 | } | |
62 | 62 | else throw("strict value what the fuck") | |
63 | 63 | } | |
64 | 64 | else throw("strict value what the fuck") | |
65 | 65 | } | |
66 | 66 | else throw("strict value what the fuck") | |
67 | 67 | } | |
68 | 68 | else throw("strict value what the fuck") | |
69 | 69 | } | |
70 | 70 | else throw("Strict value is not equal to itself") | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
74 | + | ||
75 | + | @Callable(j) | |
76 | + | func call2 () = if ((j.caller != g)) | |
77 | + | then throw("only admin") | |
78 | + | else { | |
79 | + | let k = assetBalance(this, e) | |
80 | + | let l = assetBalance(this, d) | |
81 | + | let m = assetBalance(this, f) | |
82 | + | if (if (if ((k == k)) | |
83 | + | then (l == l) | |
84 | + | else false) | |
85 | + | then (m == m) | |
86 | + | else false) | |
87 | + | then { | |
88 | + | let n = invoke(b, "exchange", [1], [AttachedPayment(d, (1 * h))]) | |
89 | + | if ((n == n)) | |
90 | + | then { | |
91 | + | let q = (assetBalance(this, f) - m) | |
92 | + | if ((q == q)) | |
93 | + | then { | |
94 | + | let p = invoke(c, "exchange", [1], [AttachedPayment(f, q)]) | |
95 | + | if ((p == p)) | |
96 | + | then { | |
97 | + | let o = (assetBalance(this, e) - k) | |
98 | + | if ((o == o)) | |
99 | + | then { | |
100 | + | let r = invoke(a, "exchange", [1], [AttachedPayment(f, o)]) | |
101 | + | if ((r == r)) | |
102 | + | then { | |
103 | + | let s = (assetBalance(this, d) - l) | |
104 | + | if ((s == s)) | |
105 | + | then if ((s > 0)) | |
106 | + | then { | |
107 | + | let t = "ok" | |
108 | + | [IntegerEntry("debug", s)] | |
109 | + | } | |
110 | + | else throw(toString(s)) | |
111 | + | else throw("strict value what the fuck") | |
112 | + | } | |
113 | + | else throw("strict value what the fuck") | |
114 | + | } | |
115 | + | else throw("strict value what the fuck") | |
116 | + | } | |
117 | + | else throw("strict value what the fuck") | |
118 | + | } | |
119 | + | else throw("strict value what the fuck") | |
120 | + | } | |
121 | + | else throw("strict value what the fuck") | |
122 | + | } | |
123 | + | else throw("Strict value is not equal to itself") | |
124 | + | } | |
125 | + | ||
126 | + | ||
74 | 127 | @Verifier(u) | |
75 | 128 | func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey) | |
76 | 129 |
github/deemru/w8io/169f3d6 31.13 ms ◑