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 | |
---|---|---|---|
137 | 137 | then unit | |
138 | 138 | else fromBase58String(t[3]))] | |
139 | 139 | else if ((u == "a")) | |
140 | - | then [Lease(a(t[1]), parseIntValue(t[2]), parseIntValue(t[3]))] | |
140 | + | then { | |
141 | + | let e = Lease(a(t[1]), parseIntValue(t[2]), parseIntValue(t[3])) | |
142 | + | let d = calculateLeaseId(e) | |
143 | + | [e, BinaryEntry(toString(size(a)), d)] | |
144 | + | } | |
141 | 145 | else if ((u == "b")) | |
142 | 146 | then [LeaseCancel(fromBase58String(t[1]))] | |
143 | - | else throw(u))) | |
147 | + | else if ((u == "c")) | |
148 | + | then [LeaseCancel(getBinaryValue(this, t[1]))] | |
149 | + | else throw(u))) | |
144 | 150 | } | |
145 | 151 | ||
146 | 152 | let $l = split(toUtf8String(fromBase64String(s)), "|") |
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(i) | |
7 | 7 | func x (s) = if ((i.caller != this)) | |
8 | 8 | then throw("!") | |
9 | 9 | else { | |
10 | 10 | func y (t,v) = if ((t == "i")) | |
11 | 11 | then parseIntValue(v) | |
12 | 12 | else if ((t == "s")) | |
13 | 13 | then v | |
14 | 14 | else if ((t == "b")) | |
15 | 15 | then (v == "1") | |
16 | 16 | else throw(t) | |
17 | 17 | ||
18 | 18 | func g (n,v) = if ((n == "0")) | |
19 | 19 | then nil | |
20 | 20 | else if ((n == "1")) | |
21 | 21 | then { | |
22 | 22 | let t = split(v, ":") | |
23 | 23 | [y(t[0], t[1])] | |
24 | 24 | } | |
25 | 25 | else if ((n == "2")) | |
26 | 26 | then { | |
27 | 27 | let t = split(v, ":") | |
28 | 28 | [y(t[0], t[1]), y(t[2], t[3])] | |
29 | 29 | } | |
30 | 30 | else if ((n == "3")) | |
31 | 31 | then { | |
32 | 32 | let t = split(v, ":") | |
33 | 33 | [y(t[0], t[1]), y(t[2], t[3]), y(t[4], t[5])] | |
34 | 34 | } | |
35 | 35 | else if ((n == "4")) | |
36 | 36 | then { | |
37 | 37 | let t = split(v, ":") | |
38 | 38 | [y(t[0], t[1]), y(t[2], t[3]), y(t[4], t[5]), y(t[6], t[7])] | |
39 | 39 | } | |
40 | 40 | else if ((n == "5")) | |
41 | 41 | then { | |
42 | 42 | let t = split(v, ":") | |
43 | 43 | [y(t[0], t[1]), y(t[2], t[3]), y(t[4], t[5]), y(t[6], t[7]), y(t[8], t[9])] | |
44 | 44 | } | |
45 | 45 | else throw(n) | |
46 | 46 | ||
47 | 47 | func w (v) = if ((v == "0")) | |
48 | 48 | then unit | |
49 | 49 | else fromBase58String(v) | |
50 | 50 | ||
51 | 51 | func p (n,v) = if ((n == "0")) | |
52 | 52 | then nil | |
53 | 53 | else if ((n == "1")) | |
54 | 54 | then { | |
55 | 55 | let t = split(v, ":") | |
56 | 56 | [AttachedPayment(w(t[0]), parseIntValue(t[1]))] | |
57 | 57 | } | |
58 | 58 | else if ((n == "2")) | |
59 | 59 | then { | |
60 | 60 | let t = split(v, ":") | |
61 | 61 | [AttachedPayment(w(t[0]), parseIntValue(t[1])), AttachedPayment(w(t[2]), parseIntValue(t[3]))] | |
62 | 62 | } | |
63 | 63 | else if ((n == "3")) | |
64 | 64 | then { | |
65 | 65 | let t = split(v, ":") | |
66 | 66 | [AttachedPayment(w(t[0]), parseIntValue(t[1])), AttachedPayment(w(t[2]), parseIntValue(t[3])), AttachedPayment(w(t[4]), parseIntValue(t[5]))] | |
67 | 67 | } | |
68 | 68 | else if ((n == "4")) | |
69 | 69 | then { | |
70 | 70 | let t = split(v, ":") | |
71 | 71 | [AttachedPayment(w(t[0]), parseIntValue(t[1])), AttachedPayment(w(t[2]), parseIntValue(t[3])), AttachedPayment(w(t[4]), parseIntValue(t[5])), AttachedPayment(w(t[6]), parseIntValue(t[7]))] | |
72 | 72 | } | |
73 | 73 | else throw(n) | |
74 | 74 | ||
75 | 75 | func f (a,v) = { | |
76 | 76 | let t = split(v, ";") | |
77 | 77 | invoke(Address(fromBase58String(t[0])), t[1], g(t[2], t[3]), p(t[4], t[5])) | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | let x = { | |
81 | 81 | let $l = split(toUtf8String(fromBase64String(s)), "|") | |
82 | 82 | let $s = size($l) | |
83 | 83 | let $acc0 = 0 | |
84 | 84 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
85 | 85 | then $a | |
86 | 86 | else f($a, $l[$i]) | |
87 | 87 | ||
88 | 88 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
89 | 89 | then $a | |
90 | 90 | else throw("List size exceeds 16") | |
91 | 91 | ||
92 | 92 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
93 | 93 | } | |
94 | 94 | if ((x == x)) | |
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(i) | |
102 | 102 | func o (s) = if ((i.caller != this)) | |
103 | 103 | then throw("!") | |
104 | 104 | else { | |
105 | 105 | func a (l) = match addressFromString(l) { | |
106 | 106 | case a: Address => | |
107 | 107 | a | |
108 | 108 | case _ => | |
109 | 109 | addressFromRecipient(Alias(l)) | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | func f (a,v) = { | |
113 | 113 | let t = split(v, ";") | |
114 | 114 | let u = t[0] | |
115 | 115 | (a ++ (if ((u == "0")) | |
116 | 116 | then [BinaryEntry(t[1], fromBase58String(t[2]))] | |
117 | 117 | else if ((u == "1")) | |
118 | 118 | then [BooleanEntry(t[1], (t[2] == "1"))] | |
119 | 119 | else if ((u == "2")) | |
120 | 120 | then [IntegerEntry(t[1], parseIntValue(t[2]))] | |
121 | 121 | else if ((u == "3")) | |
122 | 122 | then [StringEntry(t[1], t[2])] | |
123 | 123 | else if ((u == "4")) | |
124 | 124 | then [DeleteEntry(t[1])] | |
125 | 125 | else if ((u == "5")) | |
126 | 126 | then [Issue(t[1], t[2], parseIntValue(t[3]), parseIntValue(t[4]), (t[5] == "1"), unit, parseIntValue(t[7]))] | |
127 | 127 | else if ((u == "6")) | |
128 | 128 | then [Reissue(fromBase58String(t[1]), parseIntValue(t[2]), (t[3] == "1"))] | |
129 | 129 | else if ((u == "7")) | |
130 | 130 | then [Burn(fromBase58String(t[1]), parseIntValue(t[2]))] | |
131 | 131 | else if ((u == "8")) | |
132 | 132 | then [SponsorFee(fromBase58String(t[1]), if ((t[2] == "0")) | |
133 | 133 | then unit | |
134 | 134 | else parseIntValue(t[2]))] | |
135 | 135 | else if ((u == "9")) | |
136 | 136 | then [ScriptTransfer(a(t[1]), parseIntValue(t[2]), if ((t[3] == "0")) | |
137 | 137 | then unit | |
138 | 138 | else fromBase58String(t[3]))] | |
139 | 139 | else if ((u == "a")) | |
140 | - | then [Lease(a(t[1]), parseIntValue(t[2]), parseIntValue(t[3]))] | |
140 | + | then { | |
141 | + | let e = Lease(a(t[1]), parseIntValue(t[2]), parseIntValue(t[3])) | |
142 | + | let d = calculateLeaseId(e) | |
143 | + | [e, BinaryEntry(toString(size(a)), d)] | |
144 | + | } | |
141 | 145 | else if ((u == "b")) | |
142 | 146 | then [LeaseCancel(fromBase58String(t[1]))] | |
143 | - | else throw(u))) | |
147 | + | else if ((u == "c")) | |
148 | + | then [LeaseCancel(getBinaryValue(this, t[1]))] | |
149 | + | else throw(u))) | |
144 | 150 | } | |
145 | 151 | ||
146 | 152 | let $l = split(toUtf8String(fromBase64String(s)), "|") | |
147 | 153 | let $s = size($l) | |
148 | 154 | let $acc0 = nil | |
149 | 155 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
150 | 156 | then $a | |
151 | 157 | else f($a, $l[$i]) | |
152 | 158 | ||
153 | 159 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
154 | 160 | then $a | |
155 | 161 | else throw("List size exceeds 18") | |
156 | 162 | ||
157 | 163 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18) | |
158 | 164 | } | |
159 | 165 | ||
160 | 166 |
github/deemru/w8io/169f3d6 38.38 ms ◑