tx · Sve5MDcEV9GqtZfEyZpxS8QdF5sN55vEhf6rqjqHqqQ 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6: -0.01000000 Waves 2023.03.09 00:23 [2481647] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves
{ "type": 13, "id": "Sve5MDcEV9GqtZfEyZpxS8QdF5sN55vEhf6rqjqHqqQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1678310666825, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "76oqSW2sKKevuQiZenk1t2i7CGzFUt7t8gXQhSGVyj7jCGgyKptqiiEfjLVoswCJ4AJ8BYpH2JMgrhgNMC32AjH" ], "script": "base64:BgIgCAISBAoCCAESBAoCGBgSBAoCCAgSAwoBCBIFCgMICAgCAAxvcHRpb25zX2FkZHIJAQdBZGRyZXNzAQEaAVRBW/gr9hfqKqHLxIrx+8e7siBhMf6HIMEABHRVU0QBIKskSmq2Qkbr0vzjebBhusOuaVdNUnrKRRynQB0RsCkOBQFpAQ1yZWlzc3VlVG9rZW5zAgV0b2tlbghxdWFudGl0eQQJYWRtaW5MaXN0BAckbWF0Y2gwCQCdCAIFDG9wdGlvbnNfYWRkcgIKYWRtaW5fbGlzdAMJAAECBQckbWF0Y2gwAgRVbml0AgV1bnNldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgJAAIBAgtNYXRjaCBlcnJvcgQQY2FsbGVyQWRkcmVzc1N0cgkApQgBCAUBaQZjYWxsZXIDCQECIT0CBQlhZG1pbkxpc3QCBXVuc2V0BAR0ZXN0CQCdCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCWFkbWluTGlzdAUQY2FsbGVyQWRkcmVzc1N0cgQHaXNBZG1pbgQHJG1hdGNoMAUEdGV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gIBQFpBmNhbGxlcgVieXRlcwkArAICCQCsAgIJAKwCAgkArAICBQRuYW1lAgF8BQNpbm4CAXwFBG9ncm4JAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyAMCEPQUEdW5pdAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIAwIQ9BQR0VVNEBQNuaWwFBHVuaXQJAAIBAhVDYW4gYmUgdXNlZCBvbmx5IG9uY2UBAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAg9EYXRhVHJhbnNhY3Rpb24EA2R0eAUHJG1hdGNoMAcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkqN9X2", "height": 2481647, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6y5mXHWyoT5BUa2uA45J8w2JtBUqD8Qqx1ugtK9GVtKU Next: GZRhmZTwAjnCBv5o4dyRam5txBdjFbvn9kUkayjvZhJD Diff:
Old | New | Differences | |
---|---|---|---|
36 | 36 | if ((k != "no admin")) | |
37 | 37 | then { | |
38 | 38 | let l = Reissue(fromBase58String(d), e, true) | |
39 | - | $Tuple2([l], "Reissue error") | |
39 | + | $Tuple2([l], { | |
40 | + | let m = l | |
41 | + | if ($isInstanceOf(m, "String")) | |
42 | + | then m | |
43 | + | else unit | |
44 | + | }) | |
40 | 45 | } | |
41 | 46 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
42 | 47 | } | |
46 | 51 | ||
47 | 52 | ||
48 | 53 | @Callable(c) | |
49 | - | func setOptions ( | |
50 | - | let | |
51 | - | if ((100 >= | |
54 | + | func setOptions (n,o) = { | |
55 | + | let p = size(n) | |
56 | + | if ((100 >= p)) | |
52 | 57 | then { | |
53 | 58 | let f = { | |
54 | 59 | let g = getString(this, "admin_list") | |
61 | 66 | } | |
62 | 67 | else throw("Match error") | |
63 | 68 | } | |
64 | - | func | |
65 | - | let | |
66 | - | let | |
67 | - | let | |
68 | - | $Tuple2(( | |
69 | + | func q (r,s) = { | |
70 | + | let t = r | |
71 | + | let u = t._1 | |
72 | + | let v = t._2 | |
73 | + | $Tuple2((u :+ StringEntry(n[v], s)), (v + 1)) | |
69 | 74 | } | |
70 | 75 | ||
71 | - | let | |
72 | - | let | |
73 | - | let | |
74 | - | let | |
75 | - | func | |
76 | - | then | |
77 | - | else | |
76 | + | let w = { | |
77 | + | let x = o | |
78 | + | let y = size(x) | |
79 | + | let z = $Tuple2(nil, 0) | |
80 | + | func A (B,C) = if ((C >= y)) | |
81 | + | then B | |
82 | + | else q(B, x[C]) | |
78 | 83 | ||
79 | - | func | |
80 | - | then | |
84 | + | func D (B,C) = if ((C >= y)) | |
85 | + | then B | |
81 | 86 | else throw("List size exceeds 100") | |
82 | 87 | ||
83 | - | | |
88 | + | D(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(z, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
84 | 89 | } | |
85 | 90 | let i = toString(c.caller) | |
86 | 91 | if ((f != "unset")) | |
97 | 102 | then "no admin" | |
98 | 103 | else throw("Match error") | |
99 | 104 | } | |
100 | - | func | |
101 | - | let | |
102 | - | StringEntry( | |
105 | + | func E (F) = { | |
106 | + | let G = split(F, "|") | |
107 | + | StringEntry(G[0], G[1]) | |
103 | 108 | } | |
104 | 109 | ||
105 | 110 | if ((k != "no admin")) | |
106 | - | then | |
111 | + | then w | |
107 | 112 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
108 | 113 | } | |
109 | 114 | else throw("Unset admin list") | |
114 | 119 | ||
115 | 120 | ||
116 | 121 | @Callable(c) | |
117 | - | func setOption ( | |
122 | + | func setOption (H,I) = { | |
118 | 123 | let f = { | |
119 | 124 | let g = getString(this, "admin_list") | |
120 | 125 | if ($isInstanceOf(g, "Unit")) | |
142 | 147 | else throw("Match error") | |
143 | 148 | } | |
144 | 149 | if ((k != "no admin")) | |
145 | - | then $Tuple2([StringEntry( | |
150 | + | then $Tuple2([StringEntry(H, I)], unit) | |
146 | 151 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
147 | 152 | } | |
148 | 153 | else throw("Unset admin list") | |
151 | 156 | ||
152 | 157 | ||
153 | 158 | @Callable(c) | |
154 | - | func delOption ( | |
159 | + | func delOption (H) = { | |
155 | 160 | let f = { | |
156 | 161 | let g = getString(this, "admin_list") | |
157 | 162 | if ($isInstanceOf(g, "Unit")) | |
179 | 184 | else throw("Match error") | |
180 | 185 | } | |
181 | 186 | if ((k != "no admin")) | |
182 | - | then $Tuple2([DeleteEntry( | |
187 | + | then $Tuple2([DeleteEntry(H)], unit) | |
183 | 188 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
184 | 189 | } | |
185 | 190 | else throw("Unset admin list") | |
188 | 193 | ||
189 | 194 | ||
190 | 195 | @Callable(c) | |
191 | - | func regProvider ( | |
192 | - | let | |
196 | + | func regProvider (J,K,L) = { | |
197 | + | let M = { | |
193 | 198 | let g = getString(this, toBase58String(c.caller.bytes)) | |
194 | 199 | if ($isInstanceOf(g, "String")) | |
195 | 200 | then { | |
196 | - | let | |
197 | - | | |
201 | + | let N = g | |
202 | + | N | |
198 | 203 | } | |
199 | 204 | else "unset" | |
200 | 205 | } | |
201 | - | if (( | |
202 | - | then $Tuple2([StringEntry(toBase58String(c.caller.bytes), (((( | |
206 | + | if ((M != "unset")) | |
207 | + | then $Tuple2([StringEntry(toBase58String(c.caller.bytes), ((((J + "|") + K) + "|") + L)), ScriptTransfer(c.caller, 1000000, unit), ScriptTransfer(c.caller, 1000000, b)], unit) | |
203 | 208 | else throw("Can be used only once") | |
204 | 209 | } | |
205 | 210 | ||
206 | 211 | ||
207 | - | @Verifier( | |
208 | - | func | |
209 | - | let g = | |
212 | + | @Verifier(O) | |
213 | + | func P () = { | |
214 | + | let g = O | |
210 | 215 | if ($isInstanceOf(g, "DataTransaction")) | |
211 | 216 | then { | |
212 | - | let | |
217 | + | let Q = g | |
213 | 218 | false | |
214 | 219 | } | |
215 | - | else sigVerify( | |
220 | + | else sigVerify(O.bodyBytes, O.proofs[0], O.senderPublicKey) | |
216 | 221 | } | |
217 | 222 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6') | |
5 | 5 | ||
6 | 6 | let b = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85' | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func reissueTokens (d,e) = { | |
10 | 10 | let f = { | |
11 | 11 | let g = getString(a, "admin_list") | |
12 | 12 | if ($isInstanceOf(g, "Unit")) | |
13 | 13 | then "unset" | |
14 | 14 | else if ($isInstanceOf(g, "String")) | |
15 | 15 | then { | |
16 | 16 | let h = g | |
17 | 17 | h | |
18 | 18 | } | |
19 | 19 | else throw("Match error") | |
20 | 20 | } | |
21 | 21 | let i = toString(c.caller) | |
22 | 22 | if ((f != "unset")) | |
23 | 23 | then { | |
24 | 24 | let j = getString(addressFromStringValue(f), i) | |
25 | 25 | let k = { | |
26 | 26 | let g = j | |
27 | 27 | if ($isInstanceOf(g, "String")) | |
28 | 28 | then { | |
29 | 29 | let h = g | |
30 | 30 | h | |
31 | 31 | } | |
32 | 32 | else if ($isInstanceOf(g, "Unit")) | |
33 | 33 | then "no admin" | |
34 | 34 | else throw("Match error") | |
35 | 35 | } | |
36 | 36 | if ((k != "no admin")) | |
37 | 37 | then { | |
38 | 38 | let l = Reissue(fromBase58String(d), e, true) | |
39 | - | $Tuple2([l], "Reissue error") | |
39 | + | $Tuple2([l], { | |
40 | + | let m = l | |
41 | + | if ($isInstanceOf(m, "String")) | |
42 | + | then m | |
43 | + | else unit | |
44 | + | }) | |
40 | 45 | } | |
41 | 46 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
42 | 47 | } | |
43 | 48 | else throw("Unset admin list") | |
44 | 49 | } | |
45 | 50 | ||
46 | 51 | ||
47 | 52 | ||
48 | 53 | @Callable(c) | |
49 | - | func setOptions ( | |
50 | - | let | |
51 | - | if ((100 >= | |
54 | + | func setOptions (n,o) = { | |
55 | + | let p = size(n) | |
56 | + | if ((100 >= p)) | |
52 | 57 | then { | |
53 | 58 | let f = { | |
54 | 59 | let g = getString(this, "admin_list") | |
55 | 60 | if ($isInstanceOf(g, "Unit")) | |
56 | 61 | then "unset" | |
57 | 62 | else if ($isInstanceOf(g, "String")) | |
58 | 63 | then { | |
59 | 64 | let h = g | |
60 | 65 | h | |
61 | 66 | } | |
62 | 67 | else throw("Match error") | |
63 | 68 | } | |
64 | - | func | |
65 | - | let | |
66 | - | let | |
67 | - | let | |
68 | - | $Tuple2(( | |
69 | + | func q (r,s) = { | |
70 | + | let t = r | |
71 | + | let u = t._1 | |
72 | + | let v = t._2 | |
73 | + | $Tuple2((u :+ StringEntry(n[v], s)), (v + 1)) | |
69 | 74 | } | |
70 | 75 | ||
71 | - | let | |
72 | - | let | |
73 | - | let | |
74 | - | let | |
75 | - | func | |
76 | - | then | |
77 | - | else | |
76 | + | let w = { | |
77 | + | let x = o | |
78 | + | let y = size(x) | |
79 | + | let z = $Tuple2(nil, 0) | |
80 | + | func A (B,C) = if ((C >= y)) | |
81 | + | then B | |
82 | + | else q(B, x[C]) | |
78 | 83 | ||
79 | - | func | |
80 | - | then | |
84 | + | func D (B,C) = if ((C >= y)) | |
85 | + | then B | |
81 | 86 | else throw("List size exceeds 100") | |
82 | 87 | ||
83 | - | | |
88 | + | D(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(z, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
84 | 89 | } | |
85 | 90 | let i = toString(c.caller) | |
86 | 91 | if ((f != "unset")) | |
87 | 92 | then { | |
88 | 93 | let j = getString(addressFromStringValue(f), i) | |
89 | 94 | let k = { | |
90 | 95 | let g = j | |
91 | 96 | if ($isInstanceOf(g, "String")) | |
92 | 97 | then { | |
93 | 98 | let h = g | |
94 | 99 | h | |
95 | 100 | } | |
96 | 101 | else if ($isInstanceOf(g, "Unit")) | |
97 | 102 | then "no admin" | |
98 | 103 | else throw("Match error") | |
99 | 104 | } | |
100 | - | func | |
101 | - | let | |
102 | - | StringEntry( | |
105 | + | func E (F) = { | |
106 | + | let G = split(F, "|") | |
107 | + | StringEntry(G[0], G[1]) | |
103 | 108 | } | |
104 | 109 | ||
105 | 110 | if ((k != "no admin")) | |
106 | - | then | |
111 | + | then w | |
107 | 112 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
108 | 113 | } | |
109 | 114 | else throw("Unset admin list") | |
110 | 115 | } | |
111 | 116 | else throw("The number of list elements must not exceed 100") | |
112 | 117 | } | |
113 | 118 | ||
114 | 119 | ||
115 | 120 | ||
116 | 121 | @Callable(c) | |
117 | - | func setOption ( | |
122 | + | func setOption (H,I) = { | |
118 | 123 | let f = { | |
119 | 124 | let g = getString(this, "admin_list") | |
120 | 125 | if ($isInstanceOf(g, "Unit")) | |
121 | 126 | then "unset" | |
122 | 127 | else if ($isInstanceOf(g, "String")) | |
123 | 128 | then { | |
124 | 129 | let h = g | |
125 | 130 | h | |
126 | 131 | } | |
127 | 132 | else throw("Match error") | |
128 | 133 | } | |
129 | 134 | let i = toString(c.caller) | |
130 | 135 | if ((f != "unset")) | |
131 | 136 | then { | |
132 | 137 | let j = getString(addressFromStringValue(f), i) | |
133 | 138 | let k = { | |
134 | 139 | let g = j | |
135 | 140 | if ($isInstanceOf(g, "String")) | |
136 | 141 | then { | |
137 | 142 | let h = g | |
138 | 143 | h | |
139 | 144 | } | |
140 | 145 | else if ($isInstanceOf(g, "Unit")) | |
141 | 146 | then "no admin" | |
142 | 147 | else throw("Match error") | |
143 | 148 | } | |
144 | 149 | if ((k != "no admin")) | |
145 | - | then $Tuple2([StringEntry( | |
150 | + | then $Tuple2([StringEntry(H, I)], unit) | |
146 | 151 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
147 | 152 | } | |
148 | 153 | else throw("Unset admin list") | |
149 | 154 | } | |
150 | 155 | ||
151 | 156 | ||
152 | 157 | ||
153 | 158 | @Callable(c) | |
154 | - | func delOption ( | |
159 | + | func delOption (H) = { | |
155 | 160 | let f = { | |
156 | 161 | let g = getString(this, "admin_list") | |
157 | 162 | if ($isInstanceOf(g, "Unit")) | |
158 | 163 | then "unset" | |
159 | 164 | else if ($isInstanceOf(g, "String")) | |
160 | 165 | then { | |
161 | 166 | let h = g | |
162 | 167 | h | |
163 | 168 | } | |
164 | 169 | else throw("Match error") | |
165 | 170 | } | |
166 | 171 | let i = toString(c.caller) | |
167 | 172 | if ((f != "unset")) | |
168 | 173 | then { | |
169 | 174 | let j = getString(addressFromStringValue(f), i) | |
170 | 175 | let k = { | |
171 | 176 | let g = j | |
172 | 177 | if ($isInstanceOf(g, "String")) | |
173 | 178 | then { | |
174 | 179 | let h = g | |
175 | 180 | h | |
176 | 181 | } | |
177 | 182 | else if ($isInstanceOf(g, "Unit")) | |
178 | 183 | then "no admin" | |
179 | 184 | else throw("Match error") | |
180 | 185 | } | |
181 | 186 | if ((k != "no admin")) | |
182 | - | then $Tuple2([DeleteEntry( | |
187 | + | then $Tuple2([DeleteEntry(H)], unit) | |
183 | 188 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
184 | 189 | } | |
185 | 190 | else throw("Unset admin list") | |
186 | 191 | } | |
187 | 192 | ||
188 | 193 | ||
189 | 194 | ||
190 | 195 | @Callable(c) | |
191 | - | func regProvider ( | |
192 | - | let | |
196 | + | func regProvider (J,K,L) = { | |
197 | + | let M = { | |
193 | 198 | let g = getString(this, toBase58String(c.caller.bytes)) | |
194 | 199 | if ($isInstanceOf(g, "String")) | |
195 | 200 | then { | |
196 | - | let | |
197 | - | | |
201 | + | let N = g | |
202 | + | N | |
198 | 203 | } | |
199 | 204 | else "unset" | |
200 | 205 | } | |
201 | - | if (( | |
202 | - | then $Tuple2([StringEntry(toBase58String(c.caller.bytes), (((( | |
206 | + | if ((M != "unset")) | |
207 | + | then $Tuple2([StringEntry(toBase58String(c.caller.bytes), ((((J + "|") + K) + "|") + L)), ScriptTransfer(c.caller, 1000000, unit), ScriptTransfer(c.caller, 1000000, b)], unit) | |
203 | 208 | else throw("Can be used only once") | |
204 | 209 | } | |
205 | 210 | ||
206 | 211 | ||
207 | - | @Verifier( | |
208 | - | func | |
209 | - | let g = | |
212 | + | @Verifier(O) | |
213 | + | func P () = { | |
214 | + | let g = O | |
210 | 215 | if ($isInstanceOf(g, "DataTransaction")) | |
211 | 216 | then { | |
212 | - | let | |
217 | + | let Q = g | |
213 | 218 | false | |
214 | 219 | } | |
215 | - | else sigVerify( | |
220 | + | else sigVerify(O.bodyBytes, O.proofs[0], O.senderPublicKey) | |
216 | 221 | } | |
217 | 222 |
github/deemru/w8io/169f3d6 70.82 ms ◑