tx · 9MYxvJeB4AUB9par75VAaf1381g6k93zqSYBkzewZwfV 3N2eWpc6pAYe6oBQdrFU6YySuNWB4G51UdY: -0.01000000 Waves 2022.02.16 01:07 [1925311] smart account 3N2eWpc6pAYe6oBQdrFU6YySuNWB4G51UdY > SELF 0.00000000 Waves
{ "type": 13, "id": "9MYxvJeB4AUB9par75VAaf1381g6k93zqSYBkzewZwfV", "fee": 1000000, "feeAssetId": null, "timestamp": 1644962849305, "version": 1, "sender": "3N2eWpc6pAYe6oBQdrFU6YySuNWB4G51UdY", "senderPublicKey": "42WmacRYfwwb7o8tbS2WUutc3rDFdZxh55QsWyxQYajR", "proofs": [ "uLvkTLeGbyV4VgNbofxkfafC1L4CPGudqrvbVKyMtWmNTNYGeyaJ12MFLnTXyBqdPAzUScNsisAxz4tqxK8bQA4" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAAAAAAAAgAAAAFpAQAAAAF4AAAAAQAAAAFzAwkBAAAAAiE9AAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAR0aGlzCQAAAgAAAAECAAAAASEKAQAAAAF5AAAAAgAAAAF0AAAAAXYDCQAAAAAAAAIFAAAAAXQCAAAAAWkJAQAAAA1wYXJzZUludFZhbHVlAAAAAQUAAAABdgMJAAAAAAAAAgUAAAABdAIAAAABcwUAAAABdgMJAAAAAAAAAgUAAAABdAIAAAABYgkAAAAAAAACBQAAAAF2AgAAAAExCQAAAgAAAAEFAAAAAXQKAQAAAAFnAAAAAgAAAAFuAAAAAXYDCQAAAAAAAAIFAAAAAW4CAAAAATAFAAAAA25pbAMJAAAAAAAAAgUAAAABbgIAAAABMQQAAAABdAkABLUAAAACBQAAAAF2AgAAAAE6CQAETAAAAAIJAQAAAAF5AAAAAgkAAZEAAAACBQAAAAF0AAAAAAAAAAAACQABkQAAAAIFAAAAAXQAAAAAAAAAAAEFAAAAA25pbAMJAAAAAAAAAgUAAAABbgIAAAABMgQAAAABdAkABLUAAAACBQAAAA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AABAAAAAAAAAAACAAAAAAAAAAADAAAAAAAAAAAEAAAAAAAAAAAFAAAAAAAAAAAGAAAAAAAAAAAHAAAAAAAAAAAIAAAAAAAAAAAJAAAAAAAAAAAKAAAAAAAAAAALAAAAAAAAAAAMAAAAAAAAAAANAAAAAAAAAAAOAAAAAAAAAAAPAAAAAAAAAAAQAAAAAAAAAAARAAAAAAAAAAASAAAAACvCBT4=", "chainId": 84, "height": 1925311, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9JLpYTpSL8xminYzrJdkSMzMhi8ed6k9nF4QoyPwBkgE Next: Gvu6CGZjUrdCsfFj4YGgLKKczrp7zPUufpP1RJFC3MMf Diff:
Old | New | Differences | |
---|---|---|---|
140 | 140 | then unit | |
141 | 141 | else fromBase58String(d[3]))] | |
142 | 142 | else if ((w == "a")) | |
143 | - | then [Lease(k(d[1]), parseIntValue(d[2]), parseIntValue(d[3]))] | |
143 | + | then { | |
144 | + | let y = Lease(k(d[1]), parseIntValue(d[2]), parseIntValue(d[3])) | |
145 | + | let z = calculateLeaseId(y) | |
146 | + | [y, BinaryEntry(toString(size(k)), z)] | |
147 | + | } | |
144 | 148 | else if ((w == "b")) | |
145 | 149 | then [LeaseCancel(fromBase58String(d[1]))] | |
146 | - | else throw(w))) | |
150 | + | else if ((w == "c")) | |
151 | + | then [LeaseCancel(getBinaryValue(this, d[1]))] | |
152 | + | else throw(w))) | |
147 | 153 | } | |
148 | 154 | ||
149 | 155 | let m = split(toUtf8String(fromBase64String(b)), "|") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func x (b) = if ((a.caller != this)) | |
8 | 8 | then throw("!") | |
9 | 9 | else { | |
10 | 10 | func c (d,e) = if ((d == "i")) | |
11 | 11 | then parseIntValue(e) | |
12 | 12 | else if ((d == "s")) | |
13 | 13 | then e | |
14 | 14 | else if ((d == "b")) | |
15 | 15 | then (e == "1") | |
16 | 16 | else throw(d) | |
17 | 17 | ||
18 | 18 | func f (g,e) = if ((g == "0")) | |
19 | 19 | then nil | |
20 | 20 | else if ((g == "1")) | |
21 | 21 | then { | |
22 | 22 | let d = split(e, ":") | |
23 | 23 | [c(d[0], d[1])] | |
24 | 24 | } | |
25 | 25 | else if ((g == "2")) | |
26 | 26 | then { | |
27 | 27 | let d = split(e, ":") | |
28 | 28 | [c(d[0], d[1]), c(d[2], d[3])] | |
29 | 29 | } | |
30 | 30 | else if ((g == "3")) | |
31 | 31 | then { | |
32 | 32 | let d = split(e, ":") | |
33 | 33 | [c(d[0], d[1]), c(d[2], d[3]), c(d[4], d[5])] | |
34 | 34 | } | |
35 | 35 | else if ((g == "4")) | |
36 | 36 | then { | |
37 | 37 | let d = split(e, ":") | |
38 | 38 | [c(d[0], d[1]), c(d[2], d[3]), c(d[4], d[5]), c(d[6], d[7])] | |
39 | 39 | } | |
40 | 40 | else if ((g == "5")) | |
41 | 41 | then { | |
42 | 42 | let d = split(e, ":") | |
43 | 43 | [c(d[0], d[1]), c(d[2], d[3]), c(d[4], d[5]), c(d[6], d[7]), c(d[8], d[9])] | |
44 | 44 | } | |
45 | 45 | else throw(g) | |
46 | 46 | ||
47 | 47 | func h (e) = if ((e == "0")) | |
48 | 48 | then unit | |
49 | 49 | else fromBase58String(e) | |
50 | 50 | ||
51 | 51 | func i (g,e) = if ((g == "0")) | |
52 | 52 | then nil | |
53 | 53 | else if ((g == "1")) | |
54 | 54 | then { | |
55 | 55 | let d = split(e, ":") | |
56 | 56 | [AttachedPayment(h(d[0]), parseIntValue(d[1]))] | |
57 | 57 | } | |
58 | 58 | else if ((g == "2")) | |
59 | 59 | then { | |
60 | 60 | let d = split(e, ":") | |
61 | 61 | [AttachedPayment(h(d[0]), parseIntValue(d[1])), AttachedPayment(h(d[2]), parseIntValue(d[3]))] | |
62 | 62 | } | |
63 | 63 | else if ((g == "3")) | |
64 | 64 | then { | |
65 | 65 | let d = split(e, ":") | |
66 | 66 | [AttachedPayment(h(d[0]), parseIntValue(d[1])), AttachedPayment(h(d[2]), parseIntValue(d[3])), AttachedPayment(h(d[4]), parseIntValue(d[5]))] | |
67 | 67 | } | |
68 | 68 | else if ((g == "4")) | |
69 | 69 | then { | |
70 | 70 | let d = split(e, ":") | |
71 | 71 | [AttachedPayment(h(d[0]), parseIntValue(d[1])), AttachedPayment(h(d[2]), parseIntValue(d[3])), AttachedPayment(h(d[4]), parseIntValue(d[5])), AttachedPayment(h(d[6]), parseIntValue(d[7]))] | |
72 | 72 | } | |
73 | 73 | else throw(g) | |
74 | 74 | ||
75 | 75 | func j (k,e) = { | |
76 | 76 | let d = split(e, ";") | |
77 | 77 | invoke(Address(fromBase58String(d[0])), d[1], f(d[2], d[3]), i(d[4], d[5])) | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | let l = { | |
81 | 81 | let m = split(toUtf8String(fromBase64String(b)), "|") | |
82 | 82 | let n = size(m) | |
83 | 83 | let p = 0 | |
84 | 84 | func q (r,s) = if ((s >= n)) | |
85 | 85 | then r | |
86 | 86 | else j(r, m[s]) | |
87 | 87 | ||
88 | 88 | func t (r,s) = if ((s >= n)) | |
89 | 89 | then r | |
90 | 90 | else throw("List size exceeds 16") | |
91 | 91 | ||
92 | 92 | t(q(q(q(q(q(q(q(q(q(q(q(q(q(q(q(q(p, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
93 | 93 | } | |
94 | 94 | if ((l == l)) | |
95 | 95 | then nil | |
96 | 96 | else throw("Strict value is not equal to itself.") | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | ||
101 | 101 | @Callable(a) | |
102 | 102 | func o (b) = if ((a.caller != this)) | |
103 | 103 | then throw("!") | |
104 | 104 | else { | |
105 | 105 | func k (u) = { | |
106 | 106 | let v = addressFromString(u) | |
107 | 107 | if ($isInstanceOf(v, "Address")) | |
108 | 108 | then { | |
109 | 109 | let k = v | |
110 | 110 | k | |
111 | 111 | } | |
112 | 112 | else addressFromRecipient(Alias(u)) | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | func j (k,e) = { | |
116 | 116 | let d = split(e, ";") | |
117 | 117 | let w = d[0] | |
118 | 118 | (k ++ (if ((w == "0")) | |
119 | 119 | then [BinaryEntry(d[1], fromBase58String(d[2]))] | |
120 | 120 | else if ((w == "1")) | |
121 | 121 | then [BooleanEntry(d[1], (d[2] == "1"))] | |
122 | 122 | else if ((w == "2")) | |
123 | 123 | then [IntegerEntry(d[1], parseIntValue(d[2]))] | |
124 | 124 | else if ((w == "3")) | |
125 | 125 | then [StringEntry(d[1], d[2])] | |
126 | 126 | else if ((w == "4")) | |
127 | 127 | then [DeleteEntry(d[1])] | |
128 | 128 | else if ((w == "5")) | |
129 | 129 | then [Issue(d[1], d[2], parseIntValue(d[3]), parseIntValue(d[4]), (d[5] == "1"), unit, parseIntValue(d[7]))] | |
130 | 130 | else if ((w == "6")) | |
131 | 131 | then [Reissue(fromBase58String(d[1]), parseIntValue(d[2]), (d[3] == "1"))] | |
132 | 132 | else if ((w == "7")) | |
133 | 133 | then [Burn(fromBase58String(d[1]), parseIntValue(d[2]))] | |
134 | 134 | else if ((w == "8")) | |
135 | 135 | then [SponsorFee(fromBase58String(d[1]), if ((d[2] == "0")) | |
136 | 136 | then unit | |
137 | 137 | else parseIntValue(d[2]))] | |
138 | 138 | else if ((w == "9")) | |
139 | 139 | then [ScriptTransfer(k(d[1]), parseIntValue(d[2]), if ((d[3] == "0")) | |
140 | 140 | then unit | |
141 | 141 | else fromBase58String(d[3]))] | |
142 | 142 | else if ((w == "a")) | |
143 | - | then [Lease(k(d[1]), parseIntValue(d[2]), parseIntValue(d[3]))] | |
143 | + | then { | |
144 | + | let y = Lease(k(d[1]), parseIntValue(d[2]), parseIntValue(d[3])) | |
145 | + | let z = calculateLeaseId(y) | |
146 | + | [y, BinaryEntry(toString(size(k)), z)] | |
147 | + | } | |
144 | 148 | else if ((w == "b")) | |
145 | 149 | then [LeaseCancel(fromBase58String(d[1]))] | |
146 | - | else throw(w))) | |
150 | + | else if ((w == "c")) | |
151 | + | then [LeaseCancel(getBinaryValue(this, d[1]))] | |
152 | + | else throw(w))) | |
147 | 153 | } | |
148 | 154 | ||
149 | 155 | let m = split(toUtf8String(fromBase64String(b)), "|") | |
150 | 156 | let n = size(m) | |
151 | 157 | let p = nil | |
152 | 158 | func q (r,s) = if ((s >= n)) | |
153 | 159 | then r | |
154 | 160 | else j(r, m[s]) | |
155 | 161 | ||
156 | 162 | func t (r,s) = if ((s >= n)) | |
157 | 163 | then r | |
158 | 164 | else throw("List size exceeds 18") | |
159 | 165 | ||
160 | 166 | t(q(q(q(q(q(q(q(q(q(q(q(q(q(q(q(q(q(q(p, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18) | |
161 | 167 | } | |
162 | 168 | ||
163 | 169 |
github/deemru/w8io/169f3d6 37.74 ms ◑