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