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