tx · DpHcZfXSbPp16RTjX2UVHe3vTm7EQXXwqWZc4TfCkTPt 3Mx16q4Tisr27xu8f3oLzm9TyUTMmcUJuUo: -0.01400000 Waves 2023.02.20 22:25 [2458389] smart account 3Mx16q4Tisr27xu8f3oLzm9TyUTMmcUJuUo > SELF 0.00000000 Waves
{ "type": 13, "id": "DpHcZfXSbPp16RTjX2UVHe3vTm7EQXXwqWZc4TfCkTPt", "fee": 1400000, "feeAssetId": null, "timestamp": 1676921214103, "version": 2, "chainId": 84, "sender": "3Mx16q4Tisr27xu8f3oLzm9TyUTMmcUJuUo", "senderPublicKey": "9Misq1eiu27cRLC6ZiL9S74JdRAWpX1rykUJzFGzf6Rb", "proofs": [ "5zzjbvJCgzuZKzUZZo6JFTWqZA91kpAgtpVpdz8QETckjFLGdmsoYLTJWWZVBRFd1pvoFiXJPXg2PAceGmeYe5Ef" ], "script": "base64:BgIzCAISBQoDCAgBEgQKAgEIEgQKAgEYEgMKAQgSAwoBCBIAEgASAwoBCBIDCgEIEgQKAgEBHQAJU0VQQVJBVE9SAgJfXwAIS0VZX0lOSVQCBElOSVQADEtFWV9NVUxUSVNJRwIITVVMVElTSUcACktFWV9TVEFUVVMCBlNUQVRVUwALS0VZX01JTlRFUlMCB01JTlRFUlMACUtFWV9BU1NFVAIFQVNTRVQAF0tFWV9TUE9OU09SU0hJUF9NQU5BR0VSAhNTUE9OU09SU0hJUF9NQU5BR0VSAAdNQVhfSU5UAP//////////fwEQX3ZhbGlkYXRlQWRkcmVzcwIIYWRkcmVzc18EZXJyXwQHJG1hdGNoMAkApggBBQhhZGRyZXNzXwMJAAECBQckbWF0Y2gwAgdBZGRyZXNzBAFhBQckbWF0Y2gwBgkAAgEFBGVycl8BDl92YWxpZGF0ZUFzc2V0Aghhc3NldElkXwRlcnJfBAckbWF0Y2gwCQDsBwEJANkEAQUIYXNzZXRJZF8DCQABAgUHJG1hdGNoMAIFQXNzZXQEAWEFByRtYXRjaDAGCQACAQUEZXJyXwEMX3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BwEFBHRoaXMHcmVndWxhcgUUd2F2ZXNSZXF1aXJlZEFtb3VudF8JAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyCQBlAggJAO8HAQUEdGhpcwdyZWd1bGFyBRR3YXZlc1JlcXVpcmVkQW1vdW50XwUEdW5pdAUDbmlsBQNuaWwJAJQKAgkAzggCBQdhY3Rpb25zCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgUNc3BvbnNvckFtb3VudAUMc3BvbnNvckFzc2V0CQDMCAIJAQpTcG9uc29yRmVlAgUMc3BvbnNvckFzc2V0BRRtaW5TcG9uc29yZWRBc3NldEZlZQUDbmlsBQ1zcG9uc29yQW1vdW50CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAkAoggBBQxLRVlfTVVMVElTSUcDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAhtdWx0aXNpZwUHJG1hdGNoMAkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQhtdWx0aXNpZwkAuQkCCQDMCAIFCktFWV9TVEFUVVMJAMwIAgkApQgBBQR0aGlzCQDMCAIJANgEAQgFAnR4AmlkBQNuaWwFCVNFUEFSQVRPUgcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXnYSOvw", "height": 2458389, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: CwLg6VqHAWFDSr16B2jA5aaMbaqsfBNM5GvMZMADJ9vb Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "__" | |
5 | + | ||
6 | + | let b = "INIT" | |
7 | + | ||
8 | + | let c = "MULTISIG" | |
9 | + | ||
10 | + | let d = "STATUS" | |
11 | + | ||
12 | + | let e = "MINTERS" | |
13 | + | ||
14 | + | let f = "ASSET" | |
15 | + | ||
16 | + | let g = "SPONSORSHIP_MANAGER" | |
17 | + | ||
18 | + | let h = 9223372036854775807 | |
19 | + | ||
20 | + | func i (j,k) = { | |
21 | + | let l = addressFromString(j) | |
22 | + | if ($isInstanceOf(l, "Address")) | |
23 | + | then { | |
24 | + | let m = l | |
25 | + | true | |
26 | + | } | |
27 | + | else throw(k) | |
28 | + | } | |
29 | + | ||
30 | + | ||
31 | + | func n (o,k) = { | |
32 | + | let l = assetInfo(fromBase58String(o)) | |
33 | + | if ($isInstanceOf(l, "Asset")) | |
34 | + | then { | |
35 | + | let m = l | |
36 | + | true | |
37 | + | } | |
38 | + | else throw(k) | |
39 | + | } | |
40 | + | ||
41 | + | ||
42 | + | func p (q,r,s,k) = if (if ((r > q)) | |
43 | + | then true | |
44 | + | else (q > s)) | |
45 | + | then throw(k) | |
46 | + | else true | |
47 | + | ||
48 | + | ||
49 | + | func t () = { | |
50 | + | let l = getBoolean(b) | |
51 | + | if ($isInstanceOf(l, "Boolean")) | |
52 | + | then { | |
53 | + | let m = l | |
54 | + | m | |
55 | + | } | |
56 | + | else false | |
57 | + | } | |
58 | + | ||
59 | + | ||
60 | + | func u (v) = [BooleanEntry(b, v)] | |
61 | + | ||
62 | + | ||
63 | + | func w () = { | |
64 | + | let l = getString(c) | |
65 | + | if ($isInstanceOf(l, "String")) | |
66 | + | then { | |
67 | + | let m = l | |
68 | + | addressFromStringValue(m) | |
69 | + | } | |
70 | + | else Address(base58'') | |
71 | + | } | |
72 | + | ||
73 | + | ||
74 | + | func x (y) = [StringEntry(c, toString(y))] | |
75 | + | ||
76 | + | ||
77 | + | func z () = { | |
78 | + | let l = getString(e) | |
79 | + | if ($isInstanceOf(l, "String")) | |
80 | + | then { | |
81 | + | let m = l | |
82 | + | m | |
83 | + | } | |
84 | + | else "" | |
85 | + | } | |
86 | + | ||
87 | + | ||
88 | + | func A (B) = [StringEntry(e, B)] | |
89 | + | ||
90 | + | ||
91 | + | func C () = { | |
92 | + | let l = getString(f) | |
93 | + | if ($isInstanceOf(l, "String")) | |
94 | + | then { | |
95 | + | let m = l | |
96 | + | fromBase58String(m) | |
97 | + | } | |
98 | + | else base58'' | |
99 | + | } | |
100 | + | ||
101 | + | ||
102 | + | func D (o) = [StringEntry(f, toBase58String(o))] | |
103 | + | ||
104 | + | ||
105 | + | func E () = { | |
106 | + | let l = getString(g) | |
107 | + | if ($isInstanceOf(l, "String")) | |
108 | + | then { | |
109 | + | let m = l | |
110 | + | addressFromStringValue(m) | |
111 | + | } | |
112 | + | else Address(base58'') | |
113 | + | } | |
114 | + | ||
115 | + | ||
116 | + | func F (G) = [StringEntry(g, toString(G))] | |
117 | + | ||
118 | + | ||
119 | + | func H (I) = ((z() + I) + a) | |
120 | + | ||
121 | + | ||
122 | + | func J (I) = { | |
123 | + | let K = z() | |
124 | + | let L = { | |
125 | + | let l = indexOf(K, I) | |
126 | + | if ($isInstanceOf(l, "Int")) | |
127 | + | then { | |
128 | + | let m = l | |
129 | + | m | |
130 | + | } | |
131 | + | else throw("_removeMinter: no such minter") | |
132 | + | } | |
133 | + | (take(K, L) + takeRight(K, ((size(K) - size(I)) - L))) | |
134 | + | } | |
135 | + | ||
136 | + | ||
137 | + | func M () = if ((w() == Address(base58''))) | |
138 | + | then throw("_whenMultisigSet: revert") | |
139 | + | else true | |
140 | + | ||
141 | + | ||
142 | + | func N (O) = if ((O != this)) | |
143 | + | then throw("_onlyThisContract: revert") | |
144 | + | else true | |
145 | + | ||
146 | + | ||
147 | + | func P (O) = if (!(contains(z(), toString(O)))) | |
148 | + | then throw("_onlyMinter: revert") | |
149 | + | else true | |
150 | + | ||
151 | + | ||
152 | + | func Q (O) = if ((O != E())) | |
153 | + | then throw("_onlySponsorshipManager: revert") | |
154 | + | else true | |
155 | + | ||
156 | + | ||
157 | + | func R () = if (t()) | |
158 | + | then throw("_whenNotInitialized: revert") | |
159 | + | else true | |
160 | + | ||
161 | + | ||
162 | + | func S () = if (!(t())) | |
163 | + | then throw("_whenInitialized: revert") | |
164 | + | else true | |
165 | + | ||
166 | + | ||
167 | + | @Callable(T) | |
168 | + | func init (U,V,W) = { | |
169 | + | let X = if (if (if (if (if (N(T.caller)) | |
170 | + | then R() | |
171 | + | else false) | |
172 | + | then M() | |
173 | + | else false) | |
174 | + | then p(size(U), 4, 16, "init: invalid token name") | |
175 | + | else false) | |
176 | + | then p(size(V), 0, 255, "init: invalid token description") | |
177 | + | else false) | |
178 | + | then p(W, 0, 8, "init: invalid decimals") | |
179 | + | else false | |
180 | + | if ((X == X)) | |
181 | + | then { | |
182 | + | let Y = Issue(U, V, 0, W, true) | |
183 | + | let Z = calculateAssetId(Y) | |
184 | + | $Tuple2(((u(true) ++ D(Z)) ++ [Y]), unit) | |
185 | + | } | |
186 | + | else throw("Strict value is not equal to itself.") | |
187 | + | } | |
188 | + | ||
189 | + | ||
190 | + | ||
191 | + | @Callable(T) | |
192 | + | func mint (aa,ab) = { | |
193 | + | let X = if (if (if (S()) | |
194 | + | then P(T.caller) | |
195 | + | else false) | |
196 | + | then p(aa, 0, h, "mint: invalid amount") | |
197 | + | else false) | |
198 | + | then i(ab, "mint: invalid recipient") | |
199 | + | else false | |
200 | + | if ((X == X)) | |
201 | + | then { | |
202 | + | let ac = C() | |
203 | + | $Tuple2([Reissue(ac, aa, true), ScriptTransfer(addressFromStringValue(ab), aa, ac)], unit) | |
204 | + | } | |
205 | + | else throw("Strict value is not equal to itself.") | |
206 | + | } | |
207 | + | ||
208 | + | ||
209 | + | ||
210 | + | @Callable(T) | |
211 | + | func mintMany (aa,ad) = { | |
212 | + | let X = if (if (S()) | |
213 | + | then P(T.caller) | |
214 | + | else false) | |
215 | + | then p(aa, 0, h, "mint: invalid amount") | |
216 | + | else false | |
217 | + | if ((X == X)) | |
218 | + | then { | |
219 | + | let ac = C() | |
220 | + | func ae (af,ag) = (af :+ ScriptTransfer(addressFromStringValue(ag), aa, ac)) | |
221 | + | ||
222 | + | let ah = { | |
223 | + | let ai = ad | |
224 | + | let aj = size(ai) | |
225 | + | let ak = nil | |
226 | + | func al (am,an) = if ((an >= aj)) | |
227 | + | then am | |
228 | + | else ae(am, ai[an]) | |
229 | + | ||
230 | + | func ao (am,an) = if ((an >= aj)) | |
231 | + | then am | |
232 | + | else throw("List size exceeds 51") | |
233 | + | ||
234 | + | ao(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(ak, 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) | |
235 | + | } | |
236 | + | $Tuple2(([Reissue(ac, (aa * size(ad)), true)] ++ ah), unit) | |
237 | + | } | |
238 | + | else throw("Strict value is not equal to itself.") | |
239 | + | } | |
240 | + | ||
241 | + | ||
242 | + | ||
243 | + | @Callable(T) | |
244 | + | func addMinter (I) = { | |
245 | + | let X = if (if (N(T.caller)) | |
246 | + | then S() | |
247 | + | else false) | |
248 | + | then i(I, "init: invalid minter") | |
249 | + | else false | |
250 | + | if ((X == X)) | |
251 | + | then $Tuple2(A(H((I + a))), unit) | |
252 | + | else throw("Strict value is not equal to itself.") | |
253 | + | } | |
254 | + | ||
255 | + | ||
256 | + | ||
257 | + | @Callable(T) | |
258 | + | func removeMinter (I) = { | |
259 | + | let X = if (if (N(T.caller)) | |
260 | + | then S() | |
261 | + | else false) | |
262 | + | then i(I, "init: invalid minter") | |
263 | + | else false | |
264 | + | if ((X == X)) | |
265 | + | then $Tuple2(A(J((I + a))), unit) | |
266 | + | else throw("Strict value is not equal to itself.") | |
267 | + | } | |
268 | + | ||
269 | + | ||
270 | + | ||
271 | + | @Callable(T) | |
272 | + | func getAssetId () = $Tuple2(nil, C()) | |
273 | + | ||
274 | + | ||
275 | + | ||
276 | + | @Callable(T) | |
277 | + | func getDecimals () = { | |
278 | + | let ap = { | |
279 | + | let l = assetInfo(C()) | |
280 | + | if ($isInstanceOf(l, "Asset")) | |
281 | + | then { | |
282 | + | let m = l | |
283 | + | m.decimals | |
284 | + | } | |
285 | + | else throw("getDecimals: revert") | |
286 | + | } | |
287 | + | $Tuple2(nil, ap) | |
288 | + | } | |
289 | + | ||
290 | + | ||
291 | + | ||
292 | + | @Callable(T) | |
293 | + | func setMultisig (y) = { | |
294 | + | let X = if (N(T.caller)) | |
295 | + | then i(y, "setMultisig: invalid multisig") | |
296 | + | else false | |
297 | + | if ((X == X)) | |
298 | + | then $Tuple2(x(addressFromStringValue(y)), unit) | |
299 | + | else throw("Strict value is not equal to itself.") | |
300 | + | } | |
301 | + | ||
302 | + | ||
303 | + | ||
304 | + | @Callable(T) | |
305 | + | func setSponsorshipManager (G) = { | |
306 | + | let X = if (N(T.caller)) | |
307 | + | then i(G, "setSponsorshipManager: invalid manager") | |
308 | + | else false | |
309 | + | if ((X == X)) | |
310 | + | then $Tuple2(F(addressFromStringValue(G)), unit) | |
311 | + | else throw("Strict value is not equal to itself.") | |
312 | + | } | |
313 | + | ||
314 | + | ||
315 | + | ||
316 | + | @Callable(T) | |
317 | + | func updateSponsorship (aq,ar) = { | |
318 | + | let X = if (if (Q(T.caller)) | |
319 | + | then p(aq, 0, h, "updateSponsorship: invalid sponsor fee") | |
320 | + | else false) | |
321 | + | then p(ar, 0, h, "updateSponsorship: invalid waves required amount") | |
322 | + | else false | |
323 | + | if ((X == X)) | |
324 | + | then { | |
325 | + | let as = C() | |
326 | + | let at = assetBalance(this, as) | |
327 | + | let au = if ((aq == 0)) | |
328 | + | then unit | |
329 | + | else aq | |
330 | + | let ah = if ((wavesBalance(this).regular > ar)) | |
331 | + | then [ScriptTransfer(T.caller, (wavesBalance(this).regular - ar), unit)] | |
332 | + | else nil | |
333 | + | $Tuple2((ah ++ [ScriptTransfer(T.caller, at, as), SponsorFee(as, au)]), at) | |
334 | + | } | |
335 | + | else throw("Strict value is not equal to itself.") | |
336 | + | } | |
337 | + | ||
338 | + | ||
339 | + | @Verifier(av) | |
340 | + | func aw () = { | |
341 | + | let l = getString(c) | |
342 | + | if ($isInstanceOf(l, "String")) | |
343 | + | then { | |
344 | + | let ax = l | |
345 | + | valueOrElse(getBoolean(addressFromStringValue(ax), makeString([d, toString(this), toBase58String(av.id)], a)), false) | |
346 | + | } | |
347 | + | else sigVerify(av.bodyBytes, av.proofs[0], av.senderPublicKey) | |
348 | + | } | |
349 | + |
github/deemru/w8io/169f3d6 22.03 ms ◑