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