tx · GLRv4H2cV4qr8RCT6nyUdYX7LBwsBHei6mR4tg29uAzc 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6: -0.01000000 Waves 2023.03.09 07:51 [2482099] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves
{ "type": 13, "id": "GLRv4H2cV4qr8RCT6nyUdYX7LBwsBHei6mR4tg29uAzc", "fee": 1000000, "feeAssetId": null, "timestamp": 1678337529234, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "2jSUomFrPZfPZrGFDkvbUu7HG1XEmTKF2G2kuLWLC1aXbmjpzEW9ikZy1wtEgDyVgDqb6AkoYLTP6dEwmMbdizjY" ], "script": "base64:BgIqCAISAwoBARIDCgEBEgQKAggBEgQKAhgYEgQKAggIEgMKAQgSBQoDCAgIAwAMb3B0aW9uc19hZGRyCQEHQWRkcmVzcwEBGgFUQVv4K/YX6iqhy8SK8fvHu7IgYTH+hyDBAAR0UlVCASC/sjUsSP99LidkAYSZbjbP+8r3id96Io3Tx/DtrpTZmwAEdFVTRAEgqyRKarZCRuvS/ON5sGG6w65pV01SespFHKdAHRGwKQ4HAWkBEXJlaXNzdWVGb3JSZWdQcm92AQhxdWFudGl0eQQJYWRtaW5MaXN0BAckbWF0Y2gwCQCdCAIFDG9wdGlvbnNfYWRkcgIKYWRtaW5fbGlzdAMJAAECBQckbWF0Y2gwAgRVbml0AgV1bnNldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgJAAIBAgtNYXRjaCBlcnJvcgQQY2FsbGVyQWRkcmVzc1N0cgkApQgBCAUBaQZjYWxsZXIDCQECIT0CBQlhZG1pbkxpc3QCBXVuc2V0BAR0ZXN0CQCdCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCWFkbW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MAIGU3RyaW5nBARoaXN0BQckbWF0Y2gwBQRoaXN0AgV1bnNldAMJAQIhPQIFDWlzS25vd25DYWxsZXICBXVuc2V0CQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzCQCsAgIJAKwCAgkArAICCQCsAgIFBG5hbWUCAXwFA2lubgIBfAUEb2dybgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIAwIQ9BQR1bml0CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgDAhD0FBHRVU0QFA25pbAUEdW5pdAkAAgECFUNhbiBiZSB1c2VkIG9ubHkgb25jZQECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACD0RhdGFUcmFuc2FjdGlvbgQDZHR4BQckbWF0Y2gwBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleX1Vnio=", "height": 2482099, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G7M1LU25oTuV78ygesZh9Vma3KeDGnJtSXX8BewXjGAP Next: none Diff:
Old | New | Differences | |
---|---|---|---|
39 | 39 | then { | |
40 | 40 | let l = Reissue(c, e, true) | |
41 | 41 | if ((l == l)) | |
42 | - | then $Tuple2([l, ScriptTransfer(d.caller, e, | |
42 | + | then $Tuple2([l, ScriptTransfer(d.caller, e, c)], "Reissue called") | |
43 | 43 | else throw("Strict value is not equal to itself.") | |
44 | 44 | } | |
45 | 45 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) |
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'DuJUjEZJWmpFUo3bubFX8tomUVitqZZNAPuhd6KWgJNE' | |
7 | 7 | ||
8 | 8 | let c = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85' | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | 11 | func reissueForRegProv (e) = { | |
12 | 12 | let f = { | |
13 | 13 | let g = getString(a, "admin_list") | |
14 | 14 | if ($isInstanceOf(g, "Unit")) | |
15 | 15 | then "unset" | |
16 | 16 | else if ($isInstanceOf(g, "String")) | |
17 | 17 | then { | |
18 | 18 | let h = g | |
19 | 19 | h | |
20 | 20 | } | |
21 | 21 | else throw("Match error") | |
22 | 22 | } | |
23 | 23 | let i = toString(d.caller) | |
24 | 24 | if ((f != "unset")) | |
25 | 25 | then { | |
26 | 26 | let j = getString(addressFromStringValue(f), i) | |
27 | 27 | let k = { | |
28 | 28 | let g = j | |
29 | 29 | if ($isInstanceOf(g, "String")) | |
30 | 30 | then { | |
31 | 31 | let h = g | |
32 | 32 | h | |
33 | 33 | } | |
34 | 34 | else if ($isInstanceOf(g, "Unit")) | |
35 | 35 | then "no admin" | |
36 | 36 | else throw("Match error") | |
37 | 37 | } | |
38 | 38 | if ((k != "no admin")) | |
39 | 39 | then { | |
40 | 40 | let l = Reissue(c, e, true) | |
41 | 41 | if ((l == l)) | |
42 | - | then $Tuple2([l, ScriptTransfer(d.caller, e, | |
42 | + | then $Tuple2([l, ScriptTransfer(d.caller, e, c)], "Reissue called") | |
43 | 43 | else throw("Strict value is not equal to itself.") | |
44 | 44 | } | |
45 | 45 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
46 | 46 | } | |
47 | 47 | else throw("Unset admin list") | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | ||
52 | 52 | @Callable(d) | |
53 | 53 | func reissueForDepAddr (e) = { | |
54 | 54 | let f = { | |
55 | 55 | let g = getString(a, "admin_list") | |
56 | 56 | if ($isInstanceOf(g, "Unit")) | |
57 | 57 | then "unset" | |
58 | 58 | else if ($isInstanceOf(g, "String")) | |
59 | 59 | then { | |
60 | 60 | let h = g | |
61 | 61 | h | |
62 | 62 | } | |
63 | 63 | else throw("Match error") | |
64 | 64 | } | |
65 | 65 | let i = toString(d.caller) | |
66 | 66 | if ((f != "unset")) | |
67 | 67 | then { | |
68 | 68 | let j = getString(addressFromStringValue(f), i) | |
69 | 69 | let k = { | |
70 | 70 | let g = j | |
71 | 71 | if ($isInstanceOf(g, "String")) | |
72 | 72 | then { | |
73 | 73 | let h = g | |
74 | 74 | h | |
75 | 75 | } | |
76 | 76 | else if ($isInstanceOf(g, "Unit")) | |
77 | 77 | then "no admin" | |
78 | 78 | else throw("Match error") | |
79 | 79 | } | |
80 | 80 | if ((k != "no admin")) | |
81 | 81 | then { | |
82 | 82 | let l = Reissue(b, e, true) | |
83 | 83 | if ((l == l)) | |
84 | 84 | then $Tuple2([l, ScriptTransfer(d.caller, e, b)], "Reissue called") | |
85 | 85 | else throw("Strict value is not equal to itself.") | |
86 | 86 | } | |
87 | 87 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
88 | 88 | } | |
89 | 89 | else throw("Unset admin list") | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | ||
94 | 94 | @Callable(d) | |
95 | 95 | func reissueTokens (m,e) = { | |
96 | 96 | let f = { | |
97 | 97 | let g = getString(a, "admin_list") | |
98 | 98 | if ($isInstanceOf(g, "Unit")) | |
99 | 99 | then "unset" | |
100 | 100 | else if ($isInstanceOf(g, "String")) | |
101 | 101 | then { | |
102 | 102 | let h = g | |
103 | 103 | h | |
104 | 104 | } | |
105 | 105 | else throw("Match error") | |
106 | 106 | } | |
107 | 107 | let i = toString(d.caller) | |
108 | 108 | if ((f != "unset")) | |
109 | 109 | then { | |
110 | 110 | let j = getString(addressFromStringValue(f), i) | |
111 | 111 | let k = { | |
112 | 112 | let g = j | |
113 | 113 | if ($isInstanceOf(g, "String")) | |
114 | 114 | then { | |
115 | 115 | let h = g | |
116 | 116 | h | |
117 | 117 | } | |
118 | 118 | else if ($isInstanceOf(g, "Unit")) | |
119 | 119 | then "no admin" | |
120 | 120 | else throw("Match error") | |
121 | 121 | } | |
122 | 122 | if ((k != "no admin")) | |
123 | 123 | then { | |
124 | 124 | let l = Reissue(fromBase58String(m), e, true) | |
125 | 125 | $Tuple2([l], (((((((("Reissue error for param: token => " + m) + ", quantity:") + toString(e)) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ".")) | |
126 | 126 | } | |
127 | 127 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
128 | 128 | } | |
129 | 129 | else throw("Unset admin list") | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | ||
134 | 134 | @Callable(d) | |
135 | 135 | func setOptions (n,o) = { | |
136 | 136 | let p = size(n) | |
137 | 137 | if ((100 >= p)) | |
138 | 138 | then { | |
139 | 139 | let f = { | |
140 | 140 | let g = getString(this, "admin_list") | |
141 | 141 | if ($isInstanceOf(g, "Unit")) | |
142 | 142 | then "unset" | |
143 | 143 | else if ($isInstanceOf(g, "String")) | |
144 | 144 | then { | |
145 | 145 | let h = g | |
146 | 146 | h | |
147 | 147 | } | |
148 | 148 | else throw("Match error") | |
149 | 149 | } | |
150 | 150 | func q (r,s) = { | |
151 | 151 | let t = r | |
152 | 152 | let u = t._1 | |
153 | 153 | let v = t._2 | |
154 | 154 | $Tuple2((u :+ StringEntry(n[v], s)), (v + 1)) | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | let w = { | |
158 | 158 | let x = o | |
159 | 159 | let y = size(x) | |
160 | 160 | let z = $Tuple2(nil, 0) | |
161 | 161 | func A (B,C) = if ((C >= y)) | |
162 | 162 | then B | |
163 | 163 | else q(B, x[C]) | |
164 | 164 | ||
165 | 165 | func D (B,C) = if ((C >= y)) | |
166 | 166 | then B | |
167 | 167 | else throw("List size exceeds 100") | |
168 | 168 | ||
169 | 169 | 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) | |
170 | 170 | } | |
171 | 171 | let i = toString(d.caller) | |
172 | 172 | if ((f != "unset")) | |
173 | 173 | then { | |
174 | 174 | let j = getString(addressFromStringValue(f), i) | |
175 | 175 | let k = { | |
176 | 176 | let g = j | |
177 | 177 | if ($isInstanceOf(g, "String")) | |
178 | 178 | then { | |
179 | 179 | let h = g | |
180 | 180 | h | |
181 | 181 | } | |
182 | 182 | else if ($isInstanceOf(g, "Unit")) | |
183 | 183 | then "no admin" | |
184 | 184 | else throw("Match error") | |
185 | 185 | } | |
186 | 186 | func E (F) = { | |
187 | 187 | let G = split(F, "|") | |
188 | 188 | StringEntry(G[0], G[1]) | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | if ((k != "no admin")) | |
192 | 192 | then w | |
193 | 193 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
194 | 194 | } | |
195 | 195 | else throw("Unset admin list") | |
196 | 196 | } | |
197 | 197 | else throw("The number of list elements must not exceed 100") | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | ||
202 | 202 | @Callable(d) | |
203 | 203 | func setOption (H,I) = { | |
204 | 204 | let f = { | |
205 | 205 | let g = getString(this, "admin_list") | |
206 | 206 | if ($isInstanceOf(g, "Unit")) | |
207 | 207 | then "unset" | |
208 | 208 | else if ($isInstanceOf(g, "String")) | |
209 | 209 | then { | |
210 | 210 | let h = g | |
211 | 211 | h | |
212 | 212 | } | |
213 | 213 | else throw("Match error") | |
214 | 214 | } | |
215 | 215 | let i = toString(d.caller) | |
216 | 216 | if ((f != "unset")) | |
217 | 217 | then { | |
218 | 218 | let j = getString(addressFromStringValue(f), i) | |
219 | 219 | let k = { | |
220 | 220 | let g = j | |
221 | 221 | if ($isInstanceOf(g, "String")) | |
222 | 222 | then { | |
223 | 223 | let h = g | |
224 | 224 | h | |
225 | 225 | } | |
226 | 226 | else if ($isInstanceOf(g, "Unit")) | |
227 | 227 | then "no admin" | |
228 | 228 | else throw("Match error") | |
229 | 229 | } | |
230 | 230 | if ((k != "no admin")) | |
231 | 231 | then $Tuple2([StringEntry(H, I)], unit) | |
232 | 232 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
233 | 233 | } | |
234 | 234 | else throw("Unset admin list") | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | ||
239 | 239 | @Callable(d) | |
240 | 240 | func delOption (H) = { | |
241 | 241 | let f = { | |
242 | 242 | let g = getString(this, "admin_list") | |
243 | 243 | if ($isInstanceOf(g, "Unit")) | |
244 | 244 | then "unset" | |
245 | 245 | else if ($isInstanceOf(g, "String")) | |
246 | 246 | then { | |
247 | 247 | let h = g | |
248 | 248 | h | |
249 | 249 | } | |
250 | 250 | else throw("Match error") | |
251 | 251 | } | |
252 | 252 | let i = toString(d.caller) | |
253 | 253 | if ((f != "unset")) | |
254 | 254 | then { | |
255 | 255 | let j = getString(addressFromStringValue(f), i) | |
256 | 256 | let k = { | |
257 | 257 | let g = j | |
258 | 258 | if ($isInstanceOf(g, "String")) | |
259 | 259 | then { | |
260 | 260 | let h = g | |
261 | 261 | h | |
262 | 262 | } | |
263 | 263 | else if ($isInstanceOf(g, "Unit")) | |
264 | 264 | then "no admin" | |
265 | 265 | else throw("Match error") | |
266 | 266 | } | |
267 | 267 | if ((k != "no admin")) | |
268 | 268 | then $Tuple2([DeleteEntry(H)], unit) | |
269 | 269 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
270 | 270 | } | |
271 | 271 | else throw("Unset admin list") | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | ||
276 | 276 | @Callable(d) | |
277 | 277 | func regProvider (J,K,L) = { | |
278 | 278 | let M = { | |
279 | 279 | let g = getString(this, toBase58String(d.caller.bytes)) | |
280 | 280 | if ($isInstanceOf(g, "String")) | |
281 | 281 | then { | |
282 | 282 | let N = g | |
283 | 283 | N | |
284 | 284 | } | |
285 | 285 | else "unset" | |
286 | 286 | } | |
287 | 287 | if ((M != "unset")) | |
288 | 288 | then $Tuple2([StringEntry(toBase58String(d.caller.bytes), ((((J + "|") + K) + "|") + L)), ScriptTransfer(d.caller, 1000000, unit), ScriptTransfer(d.caller, 1000000, c)], unit) | |
289 | 289 | else throw("Can be used only once") | |
290 | 290 | } | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | @Verifier(O) | |
294 | 294 | func P () = { | |
295 | 295 | let g = O | |
296 | 296 | if ($isInstanceOf(g, "DataTransaction")) | |
297 | 297 | then { | |
298 | 298 | let Q = g | |
299 | 299 | false | |
300 | 300 | } | |
301 | 301 | else sigVerify(O.bodyBytes, O.proofs[0], O.senderPublicKey) | |
302 | 302 | } | |
303 | 303 |
github/deemru/w8io/169f3d6 96.76 ms ◑