tx · CwLg6VqHAWFDSr16B2jA5aaMbaqsfBNM5GvMZMADJ9vb

3Mx16q4Tisr27xu8f3oLzm9TyUTMmcUJuUo:  -0.01400000 Waves

2023.02.23 23:56 [2462813] smart account 3Mx16q4Tisr27xu8f3oLzm9TyUTMmcUJuUo > SELF 0.00000000 Waves

{ "type": 13, "id": "CwLg6VqHAWFDSr16B2jA5aaMbaqsfBNM5GvMZMADJ9vb", "fee": 1400000, "feeAssetId": null, "timestamp": 1677184465662, "version": 2, "chainId": 84, "sender": "3Mx16q4Tisr27xu8f3oLzm9TyUTMmcUJuUo", "senderPublicKey": "9Misq1eiu27cRLC6ZiL9S74JdRAWpX1rykUJzFGzf6Rb", "proofs": [ "aENEeMqXXLEikNEzTo6HZUraWs9gZBEAzWyJUaJiJDJz96XosUMoiBd6P4Hwp3ERJYaPW6XZHRB1LUhZWrQjpM4" ], "script": "base64:BgIzCAISBQoDCAgBEgQKAgEIEgQKAgEYEgMKAQgSAwoBCBIAEgASAwoBCBIECgIBARIDCgEIGwAJU0VQQVJBVE9SAgJfXwAIS0VZX0lOSVQCBElOSVQADEtFWV9NVUxUSVNJRwIITVVMVElTSUcACktFWV9TVEFUVVMCBlNUQVRVUwAKS0VZX01JTlRFUgIGTUlOVEVSAAlLRVlfQVNTRVQCBUFTU0VUABdLRVlfU1BPTlNPUlNISVBfTUFOQUdFUgITU1BPTlNPUlNISVBfTUFOQUdFUgAHTUFYX0lOVAD//////////38BEF92YWxpZGF0ZUFkZHJlc3MCCGFkZHJlc3NfBGVycl8EByRtYXRjaDAJAKYIAQUIYWRkcmVzc18DCQABAgUHJG1hdGNoMAIHQWRkcmVzcwQBYQUHJG1hdGNoMAYJAAIBBQRlcnJfAQ5fdmFsaWRhdGVBc3NldAIIYXNzZXRJZF8EZXJyXwQHJG1hdGNoMAkA7AcBCQDZBAEFCGFzc2V0SWRfAwkAAQIFByRtYXRjaDACBUFzc2V0BAFhBQckbWF0Y2gwBgkAAgEFBGVycl8BDF92YWxp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AgkBDV9zYXZlTXVsdGlzaWcBCQERQGV4dHJOYXRpdmUoMTA2MikBBQltdWx0aXNpZ18FBHVuaXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAckbWF0Y2gwCQCiCAEFDEtFWV9NVUxUSVNJRwMJAAECBQckbWF0Y2gwAgZTdHJpbmcECG11bHRpc2lnBQckbWF0Y2gwCQELdmFsdWVPckVsc2UCCQCbCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCG11bHRpc2lnCQC5CQIJAMwIAgUKS0VZX1NUQVRVUwkAzAgCCQClCAEFBHRoaXMJAMwIAgkA2AQBCAUCdHgCaWQFA25pbAUJU0VQQVJBVE9SBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleeGfu0U=", "height": 2462813, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DpHcZfXSbPp16RTjX2UVHe3vTm7EQXXwqWZc4TfCkTPt Next: none Diff:
OldNewDifferences
99
1010 let d = "STATUS"
1111
12-let e = "MINTERS"
12+let e = "MINTER"
1313
1414 let f = "ASSET"
1515
7474 func x (y) = [StringEntry(c, toString(y))]
7575
7676
77-func z () = {
78- let l = getString(e)
79- if ($isInstanceOf(l, "String"))
77+func z (A) = {
78+ let l = getBoolean(makeString([e, toString(A)], a))
79+ if ($isInstanceOf(l, "Boolean"))
8080 then {
8181 let m = l
8282 m
8383 }
84- else ""
84+ else false
8585 }
8686
8787
88-func A (B) = [StringEntry(e, B)]
88+func B (A,q) = [BooleanEntry(makeString([e, toString(A)], a), q)]
8989
9090
9191 func C () = {
116116 func F (G) = [StringEntry(g, toString(G))]
117117
118118
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'')))
119+func H () = if ((w() == Address(base58'')))
138120 then throw("_whenMultisigSet: revert")
139121 else true
140122
141123
142-func N (O) = if ((O != this))
124+func I (J) = if ((J != this))
143125 then throw("_onlyThisContract: revert")
144126 else true
145127
146128
147-func P (O) = if (!(contains(z(), toString(O))))
129+func K (J) = if (!(z(J)))
148130 then throw("_onlyMinter: revert")
149131 else true
150132
151133
152-func Q (O) = if ((O != E()))
134+func L (J) = if ((J != E()))
153135 then throw("_onlySponsorshipManager: revert")
154136 else true
155137
156138
157-func R () = if (t())
139+func M () = if (t())
158140 then throw("_whenNotInitialized: revert")
159141 else true
160142
161143
162-func S () = if (!(t()))
144+func N () = if (!(t()))
163145 then throw("_whenInitialized: revert")
164146 else true
165147
166148
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)
149+@Callable(O)
150+func init (P,Q,R) = {
151+ let S = if (if (if (if (if (I(O.caller))
172152 then M()
173153 else false)
174- then p(size(U), 4, 16, "init: invalid token name")
154+ then H()
175155 else false)
176- then p(size(V), 0, 255, "init: invalid token description")
156+ then p(size(P), 4, 16, "init: invalid token name")
177157 else false)
178- then p(W, 0, 8, "init: invalid decimals")
158+ then p(size(Q), 0, 255, "init: invalid token description")
159+ else false)
160+ then p(R, 0, 8, "init: invalid decimals")
179161 else false
180- if ((X == X))
162+ if ((S == S))
181163 then {
182- let Y = Issue(U, V, 0, W, true)
183- let Z = calculateAssetId(Y)
184- $Tuple2(((u(true) ++ D(Z)) ++ [Y]), unit)
164+ let T = Issue(P, Q, 0, R, true)
165+ let U = calculateAssetId(T)
166+ $Tuple2(((u(true) ++ D(U)) ++ [T]), unit)
185167 }
186168 else throw("Strict value is not equal to itself.")
187169 }
188170
189171
190172
191-@Callable(T)
192-func mint (aa,ab) = {
193- let X = if (if (if (S())
194- then P(T.caller)
173+@Callable(O)
174+func mint (V,W) = {
175+ let S = if (if (if (N())
176+ then K(O.caller)
195177 else false)
196- then p(aa, 0, h, "mint: invalid amount")
178+ then p(V, 0, h, "mint: invalid amount")
197179 else false)
198- then i(ab, "mint: invalid recipient")
180+ then i(W, "mint: invalid recipient")
199181 else false
200- if ((X == X))
182+ if ((S == S))
201183 then {
202- let ac = C()
203- $Tuple2([Reissue(ac, aa, true), ScriptTransfer(addressFromStringValue(ab), aa, ac)], unit)
184+ let X = C()
185+ $Tuple2([Reissue(X, V, true), ScriptTransfer(addressFromStringValue(W), V, X)], unit)
204186 }
205187 else throw("Strict value is not equal to itself.")
206188 }
207189
208190
209191
210-@Callable(T)
211-func mintMany (aa,ad) = {
212- let X = if (if (S())
213- then P(T.caller)
192+@Callable(O)
193+func mintMany (V,Y) = {
194+ let S = if (if (N())
195+ then K(O.caller)
214196 else false)
215- then p(aa, 0, h, "mint: invalid amount")
197+ then p(V, 0, h, "mint: invalid amount")
216198 else false
217- if ((X == X))
199+ if ((S == S))
218200 then {
219- let ac = C()
220- func ae (af,ag) = (af :+ ScriptTransfer(addressFromStringValue(ag), aa, ac))
201+ let X = C()
202+ func Z (aa,ab) = (aa :+ ScriptTransfer(addressFromStringValue(ab), V, X))
221203
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])
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])
229211
230- func ao (am,an) = if ((an >= aj))
231- then am
212+ func aj (ah,ai) = if ((ai >= ae))
213+ then ah
232214 else throw("List size exceeds 51")
233215
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)
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)
235217 }
236- $Tuple2(([Reissue(ac, (aa * size(ad)), true)] ++ ah), unit)
218+ $Tuple2(([Reissue(X, (V * size(Y)), true)] ++ ac), unit)
237219 }
238220 else throw("Strict value is not equal to itself.")
239221 }
240222
241223
242224
243-@Callable(T)
244-func addMinter (I) = {
245- let X = if (if (N(T.caller))
246- then S()
225+@Callable(O)
226+func addMinter (A) = {
227+ let S = if (if (I(O.caller))
228+ then N()
247229 else false)
248- then i(I, "init: invalid minter")
230+ then i(A, "init: invalid minter")
249231 else false
250- if ((X == X))
251- then $Tuple2(A(H((I + a))), unit)
232+ if ((S == S))
233+ then $Tuple2(B(addressFromStringValue(A), true), unit)
252234 else throw("Strict value is not equal to itself.")
253235 }
254236
255237
256238
257-@Callable(T)
258-func removeMinter (I) = {
259- let X = if (if (N(T.caller))
260- then S()
239+@Callable(O)
240+func removeMinter (A) = {
241+ let S = if (if (I(O.caller))
242+ then N()
261243 else false)
262- then i(I, "init: invalid minter")
244+ then i(A, "init: invalid minter")
263245 else false
264- if ((X == X))
265- then $Tuple2(A(J((I + a))), unit)
246+ if ((S == S))
247+ then $Tuple2(B(addressFromStringValue(A), false), unit)
266248 else throw("Strict value is not equal to itself.")
267249 }
268250
269251
270252
271-@Callable(T)
253+@Callable(O)
272254 func getAssetId () = $Tuple2(nil, C())
273255
274256
275257
276-@Callable(T)
258+@Callable(O)
277259 func getDecimals () = {
278- let ap = {
260+ let ak = {
279261 let l = assetInfo(C())
280262 if ($isInstanceOf(l, "Asset"))
281263 then {
284266 }
285267 else throw("getDecimals: revert")
286268 }
287- $Tuple2(nil, ap)
269+ $Tuple2(nil, ak)
288270 }
289271
290272
291273
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)
274+@Callable(O)
305275 func setSponsorshipManager (G) = {
306- let X = if (N(T.caller))
276+ let S = if (I(O.caller))
307277 then i(G, "setSponsorshipManager: invalid manager")
308278 else false
309- if ((X == X))
279+ if ((S == S))
310280 then $Tuple2(F(addressFromStringValue(G)), unit)
311281 else throw("Strict value is not equal to itself.")
312282 }
313283
314284
315285
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")
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")
320290 else false)
321- then p(ar, 0, h, "updateSponsorship: invalid waves required amount")
291+ then p(am, 0, h, "updateSponsorship: invalid waves required amount")
322292 else false
323- if ((X == X))
293+ if ((S == S))
324294 then {
325- let as = C()
326- let at = assetBalance(this, as)
327- let au = if ((aq == 0))
295+ let an = C()
296+ let ao = assetBalance(this, an)
297+ let ap = if ((al == 0))
328298 then unit
329- else aq
330- let ah = if ((wavesBalance(this).regular > ar))
331- then [ScriptTransfer(T.caller, (wavesBalance(this).regular - ar), unit)]
299+ else al
300+ let ac = if ((wavesBalance(this).regular > am))
301+ then [ScriptTransfer(O.caller, (wavesBalance(this).regular - am), unit)]
332302 else nil
333- $Tuple2((ah ++ [ScriptTransfer(T.caller, at, as), SponsorFee(as, au)]), at)
303+ $Tuple2((ac ++ [ScriptTransfer(O.caller, ao, an), SponsorFee(an, ap)]), ao)
334304 }
335305 else throw("Strict value is not equal to itself.")
336306 }
337307
338308
339-@Verifier(av)
340-func aw () = {
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 () = {
341323 let l = getString(c)
342324 if ($isInstanceOf(l, "String"))
343325 then {
344- let ax = l
345- valueOrElse(getBoolean(addressFromStringValue(ax), makeString([d, toString(this), toBase58String(av.id)], a)), false)
326+ let as = l
327+ valueOrElse(getBoolean(addressFromStringValue(as), makeString([d, toString(this), toBase58String(aq.id)], a)), false)
346328 }
347- else sigVerify(av.bodyBytes, av.proofs[0], av.senderPublicKey)
329+ else sigVerify(aq.bodyBytes, aq.proofs[0], aq.senderPublicKey)
348330 }
349331
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = "INIT"
77
88 let c = "MULTISIG"
99
1010 let d = "STATUS"
1111
12-let e = "MINTERS"
12+let e = "MINTER"
1313
1414 let f = "ASSET"
1515
1616 let g = "SPONSORSHIP_MANAGER"
1717
1818 let h = 9223372036854775807
1919
2020 func i (j,k) = {
2121 let l = addressFromString(j)
2222 if ($isInstanceOf(l, "Address"))
2323 then {
2424 let m = l
2525 true
2626 }
2727 else throw(k)
2828 }
2929
3030
3131 func n (o,k) = {
3232 let l = assetInfo(fromBase58String(o))
3333 if ($isInstanceOf(l, "Asset"))
3434 then {
3535 let m = l
3636 true
3737 }
3838 else throw(k)
3939 }
4040
4141
4242 func p (q,r,s,k) = if (if ((r > q))
4343 then true
4444 else (q > s))
4545 then throw(k)
4646 else true
4747
4848
4949 func t () = {
5050 let l = getBoolean(b)
5151 if ($isInstanceOf(l, "Boolean"))
5252 then {
5353 let m = l
5454 m
5555 }
5656 else false
5757 }
5858
5959
6060 func u (v) = [BooleanEntry(b, v)]
6161
6262
6363 func w () = {
6464 let l = getString(c)
6565 if ($isInstanceOf(l, "String"))
6666 then {
6767 let m = l
6868 addressFromStringValue(m)
6969 }
7070 else Address(base58'')
7171 }
7272
7373
7474 func x (y) = [StringEntry(c, toString(y))]
7575
7676
77-func z () = {
78- let l = getString(e)
79- if ($isInstanceOf(l, "String"))
77+func z (A) = {
78+ let l = getBoolean(makeString([e, toString(A)], a))
79+ if ($isInstanceOf(l, "Boolean"))
8080 then {
8181 let m = l
8282 m
8383 }
84- else ""
84+ else false
8585 }
8686
8787
88-func A (B) = [StringEntry(e, B)]
88+func B (A,q) = [BooleanEntry(makeString([e, toString(A)], a), q)]
8989
9090
9191 func C () = {
9292 let l = getString(f)
9393 if ($isInstanceOf(l, "String"))
9494 then {
9595 let m = l
9696 fromBase58String(m)
9797 }
9898 else base58''
9999 }
100100
101101
102102 func D (o) = [StringEntry(f, toBase58String(o))]
103103
104104
105105 func E () = {
106106 let l = getString(g)
107107 if ($isInstanceOf(l, "String"))
108108 then {
109109 let m = l
110110 addressFromStringValue(m)
111111 }
112112 else Address(base58'')
113113 }
114114
115115
116116 func F (G) = [StringEntry(g, toString(G))]
117117
118118
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'')))
119+func H () = if ((w() == Address(base58'')))
138120 then throw("_whenMultisigSet: revert")
139121 else true
140122
141123
142-func N (O) = if ((O != this))
124+func I (J) = if ((J != this))
143125 then throw("_onlyThisContract: revert")
144126 else true
145127
146128
147-func P (O) = if (!(contains(z(), toString(O))))
129+func K (J) = if (!(z(J)))
148130 then throw("_onlyMinter: revert")
149131 else true
150132
151133
152-func Q (O) = if ((O != E()))
134+func L (J) = if ((J != E()))
153135 then throw("_onlySponsorshipManager: revert")
154136 else true
155137
156138
157-func R () = if (t())
139+func M () = if (t())
158140 then throw("_whenNotInitialized: revert")
159141 else true
160142
161143
162-func S () = if (!(t()))
144+func N () = if (!(t()))
163145 then throw("_whenInitialized: revert")
164146 else true
165147
166148
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)
149+@Callable(O)
150+func init (P,Q,R) = {
151+ let S = if (if (if (if (if (I(O.caller))
172152 then M()
173153 else false)
174- then p(size(U), 4, 16, "init: invalid token name")
154+ then H()
175155 else false)
176- then p(size(V), 0, 255, "init: invalid token description")
156+ then p(size(P), 4, 16, "init: invalid token name")
177157 else false)
178- then p(W, 0, 8, "init: invalid decimals")
158+ then p(size(Q), 0, 255, "init: invalid token description")
159+ else false)
160+ then p(R, 0, 8, "init: invalid decimals")
179161 else false
180- if ((X == X))
162+ if ((S == S))
181163 then {
182- let Y = Issue(U, V, 0, W, true)
183- let Z = calculateAssetId(Y)
184- $Tuple2(((u(true) ++ D(Z)) ++ [Y]), unit)
164+ let T = Issue(P, Q, 0, R, true)
165+ let U = calculateAssetId(T)
166+ $Tuple2(((u(true) ++ D(U)) ++ [T]), unit)
185167 }
186168 else throw("Strict value is not equal to itself.")
187169 }
188170
189171
190172
191-@Callable(T)
192-func mint (aa,ab) = {
193- let X = if (if (if (S())
194- then P(T.caller)
173+@Callable(O)
174+func mint (V,W) = {
175+ let S = if (if (if (N())
176+ then K(O.caller)
195177 else false)
196- then p(aa, 0, h, "mint: invalid amount")
178+ then p(V, 0, h, "mint: invalid amount")
197179 else false)
198- then i(ab, "mint: invalid recipient")
180+ then i(W, "mint: invalid recipient")
199181 else false
200- if ((X == X))
182+ if ((S == S))
201183 then {
202- let ac = C()
203- $Tuple2([Reissue(ac, aa, true), ScriptTransfer(addressFromStringValue(ab), aa, ac)], unit)
184+ let X = C()
185+ $Tuple2([Reissue(X, V, true), ScriptTransfer(addressFromStringValue(W), V, X)], unit)
204186 }
205187 else throw("Strict value is not equal to itself.")
206188 }
207189
208190
209191
210-@Callable(T)
211-func mintMany (aa,ad) = {
212- let X = if (if (S())
213- then P(T.caller)
192+@Callable(O)
193+func mintMany (V,Y) = {
194+ let S = if (if (N())
195+ then K(O.caller)
214196 else false)
215- then p(aa, 0, h, "mint: invalid amount")
197+ then p(V, 0, h, "mint: invalid amount")
216198 else false
217- if ((X == X))
199+ if ((S == S))
218200 then {
219- let ac = C()
220- func ae (af,ag) = (af :+ ScriptTransfer(addressFromStringValue(ag), aa, ac))
201+ let X = C()
202+ func Z (aa,ab) = (aa :+ ScriptTransfer(addressFromStringValue(ab), V, X))
221203
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])
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])
229211
230- func ao (am,an) = if ((an >= aj))
231- then am
212+ func aj (ah,ai) = if ((ai >= ae))
213+ then ah
232214 else throw("List size exceeds 51")
233215
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)
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)
235217 }
236- $Tuple2(([Reissue(ac, (aa * size(ad)), true)] ++ ah), unit)
218+ $Tuple2(([Reissue(X, (V * size(Y)), true)] ++ ac), unit)
237219 }
238220 else throw("Strict value is not equal to itself.")
239221 }
240222
241223
242224
243-@Callable(T)
244-func addMinter (I) = {
245- let X = if (if (N(T.caller))
246- then S()
225+@Callable(O)
226+func addMinter (A) = {
227+ let S = if (if (I(O.caller))
228+ then N()
247229 else false)
248- then i(I, "init: invalid minter")
230+ then i(A, "init: invalid minter")
249231 else false
250- if ((X == X))
251- then $Tuple2(A(H((I + a))), unit)
232+ if ((S == S))
233+ then $Tuple2(B(addressFromStringValue(A), true), unit)
252234 else throw("Strict value is not equal to itself.")
253235 }
254236
255237
256238
257-@Callable(T)
258-func removeMinter (I) = {
259- let X = if (if (N(T.caller))
260- then S()
239+@Callable(O)
240+func removeMinter (A) = {
241+ let S = if (if (I(O.caller))
242+ then N()
261243 else false)
262- then i(I, "init: invalid minter")
244+ then i(A, "init: invalid minter")
263245 else false
264- if ((X == X))
265- then $Tuple2(A(J((I + a))), unit)
246+ if ((S == S))
247+ then $Tuple2(B(addressFromStringValue(A), false), unit)
266248 else throw("Strict value is not equal to itself.")
267249 }
268250
269251
270252
271-@Callable(T)
253+@Callable(O)
272254 func getAssetId () = $Tuple2(nil, C())
273255
274256
275257
276-@Callable(T)
258+@Callable(O)
277259 func getDecimals () = {
278- let ap = {
260+ let ak = {
279261 let l = assetInfo(C())
280262 if ($isInstanceOf(l, "Asset"))
281263 then {
282264 let m = l
283265 m.decimals
284266 }
285267 else throw("getDecimals: revert")
286268 }
287- $Tuple2(nil, ap)
269+ $Tuple2(nil, ak)
288270 }
289271
290272
291273
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)
274+@Callable(O)
305275 func setSponsorshipManager (G) = {
306- let X = if (N(T.caller))
276+ let S = if (I(O.caller))
307277 then i(G, "setSponsorshipManager: invalid manager")
308278 else false
309- if ((X == X))
279+ if ((S == S))
310280 then $Tuple2(F(addressFromStringValue(G)), unit)
311281 else throw("Strict value is not equal to itself.")
312282 }
313283
314284
315285
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")
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")
320290 else false)
321- then p(ar, 0, h, "updateSponsorship: invalid waves required amount")
291+ then p(am, 0, h, "updateSponsorship: invalid waves required amount")
322292 else false
323- if ((X == X))
293+ if ((S == S))
324294 then {
325- let as = C()
326- let at = assetBalance(this, as)
327- let au = if ((aq == 0))
295+ let an = C()
296+ let ao = assetBalance(this, an)
297+ let ap = if ((al == 0))
328298 then unit
329- else aq
330- let ah = if ((wavesBalance(this).regular > ar))
331- then [ScriptTransfer(T.caller, (wavesBalance(this).regular - ar), unit)]
299+ else al
300+ let ac = if ((wavesBalance(this).regular > am))
301+ then [ScriptTransfer(O.caller, (wavesBalance(this).regular - am), unit)]
332302 else nil
333- $Tuple2((ah ++ [ScriptTransfer(T.caller, at, as), SponsorFee(as, au)]), at)
303+ $Tuple2((ac ++ [ScriptTransfer(O.caller, ao, an), SponsorFee(an, ap)]), ao)
334304 }
335305 else throw("Strict value is not equal to itself.")
336306 }
337307
338308
339-@Verifier(av)
340-func aw () = {
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 () = {
341323 let l = getString(c)
342324 if ($isInstanceOf(l, "String"))
343325 then {
344- let ax = l
345- valueOrElse(getBoolean(addressFromStringValue(ax), makeString([d, toString(this), toBase58String(av.id)], a)), false)
326+ let as = l
327+ valueOrElse(getBoolean(addressFromStringValue(as), makeString([d, toString(this), toBase58String(aq.id)], a)), false)
346328 }
347- else sigVerify(av.bodyBytes, av.proofs[0], av.senderPublicKey)
329+ else sigVerify(aq.bodyBytes, aq.proofs[0], aq.senderPublicKey)
348330 }
349331

github/deemru/w8io/169f3d6 
103.56 ms