tx · AQ7n3yEj4bGJBsaUYq1eBKRvD4QdQcZsC7WSgkB8AWtE 3N7GWjbchsxSQmwt6iqbdMmQ7SXpSAjMqni: -0.01400000 Waves 2023.04.18 16:39 [2540055] smart account 3N7GWjbchsxSQmwt6iqbdMmQ7SXpSAjMqni > SELF 0.00000000 Waves
{ "type": 13, "id": "AQ7n3yEj4bGJBsaUYq1eBKRvD4QdQcZsC7WSgkB8AWtE", "fee": 1400000, "feeAssetId": null, "timestamp": 1681825238147, "version": 2, "chainId": 84, "sender": "3N7GWjbchsxSQmwt6iqbdMmQ7SXpSAjMqni", "senderPublicKey": "Gmgw3FDL8Dc84uAtYypzfucooknSGuMoh5wCYhSs2FSH", "proofs": [ "5fKGKitYHsNrssHYLcBXo5h9bXxmVtXCUWviSQKzKtjoqUeB3im62Na7CEhu6ct3JBHo5L3skSkUZWjDsnAqTQHy" ], "script": "base64:BgIzCAISBQoDCAgBEgQKAgEIEgQKAgEYEgMKAQgSAwoBCBIAEgASAwoBCBIECgIBARIDCgEIGwAJU0VQQVJBVE9SAgJfXwAIS0VZX0lOSVQCBElOSVQADEtFWV9NVUxUSVNJRwIITVVMVElTSUcACktFWV9TVEFUVVMCBlNUQVRVUwAKS0VZX01JTlRFUgIGTUlOVEVSAAlLRVlfQVNTRVQCBUFTU0VUABdLRVlfU1BPTlNPUlNISVBfTUFOQUdFUgITU1BPTlNPUlNISVBfTUFOQUdFUgAHTUFYX0lOVAD//////////38BEF92YWxpZGF0ZUFkZHJlc3MCCGFkZHJlc3NfBGVycl8EByRtYXRjaDAJAKYIAQUIYWRkcmVzc18DCQABAgUHJG1hdGNoMAIHQWRkcmVzcwQBYQUHJG1hdGNoMAYJAAIBBQRlcnJfAQ5fdmFsaWRhdGVBc3NldAIIYXNzZXRJZF8EZXJyXwQHJG1hdGNoMAkA7AcBCQDZBAEFCGFzc2V0SWRfAwkAAQIFByRtYXRjaDACBUFzc2V0BAFhBQckbWF0Y2gwBgkAAgEFBGVycl8BDF92YWx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KAgkBDV9zYXZlTXVsdGlzaWcBCQERQGV4dHJOYXRpdmUoMTA2MikBBQltdWx0aXNpZ18FBHVuaXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAckbWF0Y2gwCQCiCAEFDEtFWV9NVUxUSVNJRwMJAAECBQckbWF0Y2gwAgZTdHJpbmcECG11bHRpc2lnBQckbWF0Y2gwCQELdmFsdWVPckVsc2UCCQCbCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCG11bHRpc2lnCQC5CQIJAMwIAgUKS0VZX1NUQVRVUwkAzAgCCQClCAEFBHRoaXMJAMwIAgkA2AQBCAUCdHgCaWQFA25pbAUJU0VQQVJBVE9SBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleeGfu0U=", "height": 2540055, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none 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 = "MINTER" | |
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 (A) = { | |
78 | + | let l = getBoolean(makeString([e, toString(A)], a)) | |
79 | + | if ($isInstanceOf(l, "Boolean")) | |
80 | + | then { | |
81 | + | let m = l | |
82 | + | m | |
83 | + | } | |
84 | + | else false | |
85 | + | } | |
86 | + | ||
87 | + | ||
88 | + | func B (A,q) = [BooleanEntry(makeString([e, toString(A)], a), q)] | |
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 () = if ((w() == Address(base58''))) | |
120 | + | then throw("_whenMultisigSet: revert") | |
121 | + | else true | |
122 | + | ||
123 | + | ||
124 | + | func I (J) = if ((J != this)) | |
125 | + | then throw("_onlyThisContract: revert") | |
126 | + | else true | |
127 | + | ||
128 | + | ||
129 | + | func K (J) = if (!(z(J))) | |
130 | + | then throw("_onlyMinter: revert") | |
131 | + | else true | |
132 | + | ||
133 | + | ||
134 | + | func L (J) = if ((J != E())) | |
135 | + | then throw("_onlySponsorshipManager: revert") | |
136 | + | else true | |
137 | + | ||
138 | + | ||
139 | + | func M () = if (t()) | |
140 | + | then throw("_whenNotInitialized: revert") | |
141 | + | else true | |
142 | + | ||
143 | + | ||
144 | + | func N () = if (!(t())) | |
145 | + | then throw("_whenInitialized: revert") | |
146 | + | else true | |
147 | + | ||
148 | + | ||
149 | + | @Callable(O) | |
150 | + | func init (P,Q,R) = { | |
151 | + | let S = if (if (if (if (if (I(O.caller)) | |
152 | + | then M() | |
153 | + | else false) | |
154 | + | then H() | |
155 | + | else false) | |
156 | + | then p(size(P), 4, 16, "init: invalid token name") | |
157 | + | else false) | |
158 | + | then p(size(Q), 0, 255, "init: invalid token description") | |
159 | + | else false) | |
160 | + | then p(R, 0, 8, "init: invalid decimals") | |
161 | + | else false | |
162 | + | if ((S == S)) | |
163 | + | then { | |
164 | + | let T = Issue(P, Q, 0, R, true) | |
165 | + | let U = calculateAssetId(T) | |
166 | + | $Tuple2(((u(true) ++ D(U)) ++ [T]), unit) | |
167 | + | } | |
168 | + | else throw("Strict value is not equal to itself.") | |
169 | + | } | |
170 | + | ||
171 | + | ||
172 | + | ||
173 | + | @Callable(O) | |
174 | + | func mint (V,W) = { | |
175 | + | let S = if (if (if (N()) | |
176 | + | then K(O.caller) | |
177 | + | else false) | |
178 | + | then p(V, 0, h, "mint: invalid amount") | |
179 | + | else false) | |
180 | + | then i(W, "mint: invalid recipient") | |
181 | + | else false | |
182 | + | if ((S == S)) | |
183 | + | then { | |
184 | + | let X = C() | |
185 | + | $Tuple2([Reissue(X, V, true), ScriptTransfer(addressFromStringValue(W), V, X)], unit) | |
186 | + | } | |
187 | + | else throw("Strict value is not equal to itself.") | |
188 | + | } | |
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | @Callable(O) | |
193 | + | func mintMany (V,Y) = { | |
194 | + | let S = if (if (N()) | |
195 | + | then K(O.caller) | |
196 | + | else false) | |
197 | + | then p(V, 0, h, "mint: invalid amount") | |
198 | + | else false | |
199 | + | if ((S == S)) | |
200 | + | then { | |
201 | + | let X = C() | |
202 | + | func Z (aa,ab) = (aa :+ ScriptTransfer(addressFromStringValue(ab), V, X)) | |
203 | + | ||
204 | + | let ac = { | |
205 | + | let ad = Y | |
206 | + | let ae = size(ad) | |
207 | + | let af = nil | |
208 | + | func ag (ah,ai) = if ((ai >= ae)) | |
209 | + | then ah | |
210 | + | else Z(ah, ad[ai]) | |
211 | + | ||
212 | + | func aj (ah,ai) = if ((ai >= ae)) | |
213 | + | then ah | |
214 | + | else throw("List size exceeds 51") | |
215 | + | ||
216 | + | aj(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(ag(af, 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) | |
217 | + | } | |
218 | + | $Tuple2(([Reissue(X, (V * size(Y)), true)] ++ ac), unit) | |
219 | + | } | |
220 | + | else throw("Strict value is not equal to itself.") | |
221 | + | } | |
222 | + | ||
223 | + | ||
224 | + | ||
225 | + | @Callable(O) | |
226 | + | func addMinter (A) = { | |
227 | + | let S = if (if (I(O.caller)) | |
228 | + | then N() | |
229 | + | else false) | |
230 | + | then i(A, "init: invalid minter") | |
231 | + | else false | |
232 | + | if ((S == S)) | |
233 | + | then $Tuple2(B(addressFromStringValue(A), true), unit) | |
234 | + | else throw("Strict value is not equal to itself.") | |
235 | + | } | |
236 | + | ||
237 | + | ||
238 | + | ||
239 | + | @Callable(O) | |
240 | + | func removeMinter (A) = { | |
241 | + | let S = if (if (I(O.caller)) | |
242 | + | then N() | |
243 | + | else false) | |
244 | + | then i(A, "init: invalid minter") | |
245 | + | else false | |
246 | + | if ((S == S)) | |
247 | + | then $Tuple2(B(addressFromStringValue(A), false), unit) | |
248 | + | else throw("Strict value is not equal to itself.") | |
249 | + | } | |
250 | + | ||
251 | + | ||
252 | + | ||
253 | + | @Callable(O) | |
254 | + | func getAssetId () = $Tuple2(nil, C()) | |
255 | + | ||
256 | + | ||
257 | + | ||
258 | + | @Callable(O) | |
259 | + | func getDecimals () = { | |
260 | + | let ak = { | |
261 | + | let l = assetInfo(C()) | |
262 | + | if ($isInstanceOf(l, "Asset")) | |
263 | + | then { | |
264 | + | let m = l | |
265 | + | m.decimals | |
266 | + | } | |
267 | + | else throw("getDecimals: revert") | |
268 | + | } | |
269 | + | $Tuple2(nil, ak) | |
270 | + | } | |
271 | + | ||
272 | + | ||
273 | + | ||
274 | + | @Callable(O) | |
275 | + | func setSponsorshipManager (G) = { | |
276 | + | let S = if (I(O.caller)) | |
277 | + | then i(G, "setSponsorshipManager: invalid manager") | |
278 | + | else false | |
279 | + | if ((S == S)) | |
280 | + | then $Tuple2(F(addressFromStringValue(G)), unit) | |
281 | + | else throw("Strict value is not equal to itself.") | |
282 | + | } | |
283 | + | ||
284 | + | ||
285 | + | ||
286 | + | @Callable(O) | |
287 | + | func updateSponsorship (al,am) = { | |
288 | + | let S = if (if (L(O.caller)) | |
289 | + | then p(al, 0, h, "updateSponsorship: invalid sponsor fee") | |
290 | + | else false) | |
291 | + | then p(am, 0, h, "updateSponsorship: invalid waves required amount") | |
292 | + | else false | |
293 | + | if ((S == S)) | |
294 | + | then { | |
295 | + | let an = C() | |
296 | + | let ao = assetBalance(this, an) | |
297 | + | let ap = if ((al == 0)) | |
298 | + | then unit | |
299 | + | else al | |
300 | + | let ac = if ((wavesBalance(this).regular > am)) | |
301 | + | then [ScriptTransfer(O.caller, (wavesBalance(this).regular - am), unit)] | |
302 | + | else nil | |
303 | + | $Tuple2((ac ++ [ScriptTransfer(O.caller, ao, an), SponsorFee(an, ap)]), ao) | |
304 | + | } | |
305 | + | else throw("Strict value is not equal to itself.") | |
306 | + | } | |
307 | + | ||
308 | + | ||
309 | + | ||
310 | + | @Callable(O) | |
311 | + | func setMultisig (y) = { | |
312 | + | let S = if (I(O.caller)) | |
313 | + | then i(y, "setMultisig: invalid multisig") | |
314 | + | else false | |
315 | + | if ((S == S)) | |
316 | + | then $Tuple2(x(addressFromStringValue(y)), unit) | |
317 | + | else throw("Strict value is not equal to itself.") | |
318 | + | } | |
319 | + | ||
320 | + | ||
321 | + | @Verifier(aq) | |
322 | + | func ar () = { | |
323 | + | let l = getString(c) | |
324 | + | if ($isInstanceOf(l, "String")) | |
325 | + | then { | |
326 | + | let as = l | |
327 | + | valueOrElse(getBoolean(addressFromStringValue(as), makeString([d, toString(this), toBase58String(aq.id)], a)), false) | |
328 | + | } | |
329 | + | else sigVerify(aq.bodyBytes, aq.proofs[0], aq.senderPublicKey) | |
330 | + | } | |
331 | + |
github/deemru/w8io/169f3d6 21.72 ms ◑