tx · 6y5mXHWyoT5BUa2uA45J8w2JtBUqD8Qqx1ugtK9GVtKU

3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6:  -0.01000000 Waves

2023.03.09 00:21 [2481644] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves

{ "type": 13, "id": "6y5mXHWyoT5BUa2uA45J8w2JtBUqD8Qqx1ugtK9GVtKU", "fee": 1000000, "feeAssetId": null, "timestamp": 1678310479519, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "kFa8zfHrZg4SNWk9SkxXPDsFwrroFZP9C35kf7rn8hUhRCotVmdiQ3wK843UB3gtdxAmTEsMnMSkG22Fn3reqsU" ], "script": "base64:BgIgCAISBAoCCAESBAoCGBgSBAoCCAgSAwoBCBIFCgMICAgCAAxvcHRpb25zX2FkZHIJAQdBZGRyZXNzAQEaAVRBW/gr9hfqKqHLxIrx+8e7siBhMf6HIMEABHRVU0QBIKskSmq2Qkbr0vzjebBhusOuaVdNUnrKRRynQB0RsCkOBQFpAQ1yZWlzc3VlVG9rZW5zAgV0b2tlbghxdWFudGl0eQQJYWRtaW5MaXN0BAckbWF0Y2gwCQCdCAIFDG9wdGlvbnNfYWRkcgIKYWRtaW5fbGlzdAMJAAECBQckbWF0Y2gwAgRVbml0AgV1bnNldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgJAAIBAgtNYXRjaCBlcnJvcgQQY2FsbGVyQWRkcmVzc1N0cgkApQgBCAUBaQZjYWxsZXIDCQECIT0CBQlhZG1pbkxpc3QCBXVuc2V0BAR0ZXN0CQCdCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCWFkbWluTGlzdAUQY2FsbGVyQWRkcmVzc1N0cgQHaXNBZG1pbgQHJG1hdGNoMAUE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IAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyAMCEPQUEdFVTRAUDbmlsBQR1bml0CQACAQIVQ2FuIGJlIHVzZWQgb25seSBvbmNlAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIPRGF0YVRyYW5zYWN0aW9uBANkdHgFByRtYXRjaDAHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5mgqe5A==", "height": 2481644, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9ApoWDviDiZiFesUQkzoGc112Gw9dBdmrmx9KEohSP8F Next: Sve5MDcEV9GqtZfEyZpxS8QdF5sN55vEhf6rqjqHqqQ Diff:
OldNewDifferences
3636 if ((k != "no admin"))
3737 then {
3838 let l = Reissue(fromBase58String(d), e, true)
39- $Tuple2([l], unit)
39+ $Tuple2([l], "Reissue error")
4040 }
4141 else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", "))
4242 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6')
55
66 let b = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
77
88 @Callable(c)
99 func reissueTokens (d,e) = {
1010 let f = {
1111 let g = getString(a, "admin_list")
1212 if ($isInstanceOf(g, "Unit"))
1313 then "unset"
1414 else if ($isInstanceOf(g, "String"))
1515 then {
1616 let h = g
1717 h
1818 }
1919 else throw("Match error")
2020 }
2121 let i = toString(c.caller)
2222 if ((f != "unset"))
2323 then {
2424 let j = getString(addressFromStringValue(f), i)
2525 let k = {
2626 let g = j
2727 if ($isInstanceOf(g, "String"))
2828 then {
2929 let h = g
3030 h
3131 }
3232 else if ($isInstanceOf(g, "Unit"))
3333 then "no admin"
3434 else throw("Match error")
3535 }
3636 if ((k != "no admin"))
3737 then {
3838 let l = Reissue(fromBase58String(d), e, true)
39- $Tuple2([l], unit)
39+ $Tuple2([l], "Reissue error")
4040 }
4141 else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", "))
4242 }
4343 else throw("Unset admin list")
4444 }
4545
4646
4747
4848 @Callable(c)
4949 func setOptions (m,n) = {
5050 let o = size(m)
5151 if ((100 >= o))
5252 then {
5353 let f = {
5454 let g = getString(this, "admin_list")
5555 if ($isInstanceOf(g, "Unit"))
5656 then "unset"
5757 else if ($isInstanceOf(g, "String"))
5858 then {
5959 let h = g
6060 h
6161 }
6262 else throw("Match error")
6363 }
6464 func p (q,r) = {
6565 let s = q
6666 let t = s._1
6767 let u = s._2
6868 $Tuple2((t :+ StringEntry(m[u], r)), (u + 1))
6969 }
7070
7171 let v = {
7272 let w = n
7373 let x = size(w)
7474 let y = $Tuple2(nil, 0)
7575 func z (A,B) = if ((B >= x))
7676 then A
7777 else p(A, w[B])
7878
7979 func C (A,B) = if ((B >= x))
8080 then A
8181 else throw("List size exceeds 100")
8282
8383 C(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(y, 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)
8484 }
8585 let i = toString(c.caller)
8686 if ((f != "unset"))
8787 then {
8888 let j = getString(addressFromStringValue(f), i)
8989 let k = {
9090 let g = j
9191 if ($isInstanceOf(g, "String"))
9292 then {
9393 let h = g
9494 h
9595 }
9696 else if ($isInstanceOf(g, "Unit"))
9797 then "no admin"
9898 else throw("Match error")
9999 }
100100 func D (E) = {
101101 let F = split(E, "|")
102102 StringEntry(F[0], F[1])
103103 }
104104
105105 if ((k != "no admin"))
106106 then v
107107 else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", "))
108108 }
109109 else throw("Unset admin list")
110110 }
111111 else throw("The number of list elements must not exceed 100")
112112 }
113113
114114
115115
116116 @Callable(c)
117117 func setOption (G,H) = {
118118 let f = {
119119 let g = getString(this, "admin_list")
120120 if ($isInstanceOf(g, "Unit"))
121121 then "unset"
122122 else if ($isInstanceOf(g, "String"))
123123 then {
124124 let h = g
125125 h
126126 }
127127 else throw("Match error")
128128 }
129129 let i = toString(c.caller)
130130 if ((f != "unset"))
131131 then {
132132 let j = getString(addressFromStringValue(f), i)
133133 let k = {
134134 let g = j
135135 if ($isInstanceOf(g, "String"))
136136 then {
137137 let h = g
138138 h
139139 }
140140 else if ($isInstanceOf(g, "Unit"))
141141 then "no admin"
142142 else throw("Match error")
143143 }
144144 if ((k != "no admin"))
145145 then $Tuple2([StringEntry(G, H)], unit)
146146 else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", "))
147147 }
148148 else throw("Unset admin list")
149149 }
150150
151151
152152
153153 @Callable(c)
154154 func delOption (G) = {
155155 let f = {
156156 let g = getString(this, "admin_list")
157157 if ($isInstanceOf(g, "Unit"))
158158 then "unset"
159159 else if ($isInstanceOf(g, "String"))
160160 then {
161161 let h = g
162162 h
163163 }
164164 else throw("Match error")
165165 }
166166 let i = toString(c.caller)
167167 if ((f != "unset"))
168168 then {
169169 let j = getString(addressFromStringValue(f), i)
170170 let k = {
171171 let g = j
172172 if ($isInstanceOf(g, "String"))
173173 then {
174174 let h = g
175175 h
176176 }
177177 else if ($isInstanceOf(g, "Unit"))
178178 then "no admin"
179179 else throw("Match error")
180180 }
181181 if ((k != "no admin"))
182182 then $Tuple2([DeleteEntry(G)], unit)
183183 else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", "))
184184 }
185185 else throw("Unset admin list")
186186 }
187187
188188
189189
190190 @Callable(c)
191191 func regProvider (I,J,K) = {
192192 let L = {
193193 let g = getString(this, toBase58String(c.caller.bytes))
194194 if ($isInstanceOf(g, "String"))
195195 then {
196196 let M = g
197197 M
198198 }
199199 else "unset"
200200 }
201201 if ((L != "unset"))
202202 then $Tuple2([StringEntry(toBase58String(c.caller.bytes), ((((I + "|") + J) + "|") + K)), ScriptTransfer(c.caller, 1000000, unit), ScriptTransfer(c.caller, 1000000, b)], unit)
203203 else throw("Can be used only once")
204204 }
205205
206206
207207 @Verifier(N)
208208 func O () = {
209209 let g = N
210210 if ($isInstanceOf(g, "DataTransaction"))
211211 then {
212212 let P = g
213213 false
214214 }
215215 else sigVerify(N.bodyBytes, N.proofs[0], N.senderPublicKey)
216216 }
217217

github/deemru/w8io/169f3d6 
46.05 ms