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