tx · BJNUSgex7iHNY9YbzaHX9amrvkpAWMbXKLvBdiRuoAR7 3NBV6YavDsu2ProYhUqUac69N8RC8BBTCJN: -0.01000000 Waves 2022.05.19 19:21 [2058787] smart account 3NBV6YavDsu2ProYhUqUac69N8RC8BBTCJN > SELF 0.00000000 Waves
{ "type": 13, "id": "BJNUSgex7iHNY9YbzaHX9amrvkpAWMbXKLvBdiRuoAR7", "fee": 1000000, "feeAssetId": null, "timestamp": 1652977263955, "version": 2, "chainId": 84, "sender": "3NBV6YavDsu2ProYhUqUac69N8RC8BBTCJN", "senderPublicKey": "HMwdLbwQuprhi3kaJNPXUEAtXSKEAA8DKYfsrmLYxaWW", "proofs": [ "2fdxEh9ZDW7ufbNdgbeKJM1s7HdRAH5ANzR1rYeazwWx8hfEsKy2jCmJDXFeKRgsgs2CmL7WeH9gBTgtSDg3kHaM" ], "script": "base64:AAIFAAAAAAAAAFUIAhIHCgUCAgICARIFCgMCAgESBQoDCAgBEgQKAgICEgUKAwICAhIICgYCAgECAgISBAoCCAISAwoBAhIDCgECEgASABIECgICARIDCgEBEgQKAgIEAAAAKgAAAAAPa2V5QXNzZXRBZGRyZXNzAgAAAANfYWEAAAAADGtleUFzc2V0VHlwZQIAAAADX2F0AAAAABFrZXlBc3NldFByZWNpc2lvbgIAAAADX2FwAAAAAA5rZXlBc3NldE1pbkZlZQIAAAAEX2FtZgAAAAAQa2V5QXNzZXRJc0FjdGl2ZQIAAAAEX2FpYQAAAAAQa2V5QmFzZUZlZVJhdGVCUAIAAAAEX2JmcgAAAAAMa2V5VmFsaWRhdG9yAgAAAAJfdgAAAAAPa2V5RmVlQ29sbGVjdG9yAgAAAANfZmMAAAAAD2tleVVubG9ja1NpZ25lcgIAAAADX3VzAAAAAAtrZXlJc0FjdGl2ZQIAAAADX2lhAAAAAAprZXlNYW5hZ2VyAgAAAAJfbQAAAAAOQlJJREdFX01BTkFHRVICAAAADkJSSURHRV9NQU5BR0VSAAAAAA1BU1NFVF9NQU5BR0V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ZXlBc3NldElzQWN0aXZlBQAAAAVzdGF0ZQUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAADxdaFr", "height": 2058787, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CSpyis2m1gzLxCbRKSzgW1EJEvxW3DLPtwQZjNbDURjT Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "_aa" | |
5 | 5 | ||
6 | 6 | let b = "_at" | |
7 | 7 | ||
8 | 8 | let c = "_ap" | |
9 | 9 | ||
10 | 10 | let d = "_amf" | |
11 | 11 | ||
12 | 12 | let e = "_aia" | |
13 | 13 | ||
14 | 14 | let f = "_bfr" | |
15 | 15 | ||
16 | 16 | let g = "_v" | |
17 | 17 | ||
18 | 18 | let h = "_fc" | |
19 | 19 | ||
20 | 20 | let i = "_us" | |
21 | 21 | ||
22 | 22 | let j = "_ia" | |
23 | 23 | ||
24 | 24 | let k = "_m" | |
25 | 25 | ||
26 | 26 | let l = "BRIDGE_MANAGER" | |
27 | 27 | ||
28 | 28 | let m = "ASSET_MANAGER" | |
29 | 29 | ||
30 | 30 | let n = "STOP_MANAGER" | |
31 | 31 | ||
32 | 32 | let o = base58'fRpRFUxiLXbzAaAT3sfi1oTFa8n4X8b9FUaQHyT5MkdXYpGZV' | |
33 | 33 | ||
34 | 34 | let p = base58'6scFjhFGDfpmYySMKQ9vDbZuH8aMRWsUQJAHXzm1FsJo' | |
35 | 35 | ||
36 | 36 | let q = base58'3EMsPJ' | |
37 | 37 | ||
38 | 38 | let r = 10000 | |
39 | 39 | ||
40 | 40 | let s = 9 | |
41 | 41 | ||
42 | 42 | let t = "unauthorized" | |
43 | 43 | ||
44 | 44 | let u = "uninitialized" | |
45 | 45 | ||
46 | 46 | let v = "initialized" | |
47 | 47 | ||
48 | 48 | let w = "exists" | |
49 | 49 | ||
50 | 50 | let x = "not exists" | |
51 | 51 | ||
52 | 52 | let y = "invalid values" | |
53 | 53 | ||
54 | 54 | let z = "not one payment" | |
55 | 55 | ||
56 | 56 | let A = "asset not found" | |
57 | 57 | ||
58 | 58 | let B = "not enough balance" | |
59 | 59 | ||
60 | 60 | let C = "pow value too big" | |
61 | 61 | ||
62 | 62 | let D = "birdge is disabled" | |
63 | 63 | ||
64 | 64 | let E = "asset is disabled" | |
65 | 65 | ||
66 | 66 | let F = "wrong destination chain" | |
67 | 67 | ||
68 | 68 | let G = 0 | |
69 | 69 | ||
70 | 70 | let H = 1 | |
71 | 71 | ||
72 | 72 | let I = 2 | |
73 | 73 | ||
74 | 74 | func J (K,L) = { | |
75 | 75 | let M = getBinary((L + k)) | |
76 | 76 | if ($isInstanceOf(M, "ByteVector")) | |
77 | 77 | then { | |
78 | 78 | let N = M | |
79 | 79 | if ((N != K.caller.bytes)) | |
80 | 80 | then throw(t) | |
81 | 81 | else unit | |
82 | 82 | } | |
83 | 83 | else throw(u) | |
84 | 84 | } | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func O () = if (!(valueOrElse(getBoolean(j), false))) | |
88 | 88 | then throw(D) | |
89 | 89 | else unit | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func P (Q) = { | |
93 | 93 | let M = getBoolean((Q + e)) | |
94 | 94 | if ($isInstanceOf(M, "Boolean")) | |
95 | 95 | then { | |
96 | 96 | let R = M | |
97 | 97 | if (R) | |
98 | 98 | then unit | |
99 | 99 | else throw(E) | |
100 | 100 | } | |
101 | 101 | else throw(A) | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func S (T,Q) = { | |
106 | 106 | let U = valueOrErrorMessage(getInteger(f), u) | |
107 | 107 | let V = valueOrErrorMessage(getInteger((Q + d)), A) | |
108 | 108 | let W = ((T * U) / r) | |
109 | 109 | if ((V > W)) | |
110 | 110 | then V | |
111 | 111 | else W | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func X (Y,Z) = { | |
116 | 116 | let aa = if ((0 > Z)) | |
117 | 117 | then -(Z) | |
118 | 118 | else Z | |
119 | 119 | let ab = if ((aa == 0)) | |
120 | 120 | then 1 | |
121 | 121 | else if ((aa == 1)) | |
122 | 122 | then 10 | |
123 | 123 | else if ((aa == 2)) | |
124 | 124 | then 100 | |
125 | 125 | else if ((aa == 3)) | |
126 | 126 | then 1000 | |
127 | 127 | else if ((aa == 4)) | |
128 | 128 | then 10000 | |
129 | 129 | else if ((aa == 5)) | |
130 | 130 | then 100000 | |
131 | 131 | else if ((aa == 6)) | |
132 | 132 | then 1000000 | |
133 | 133 | else if ((aa == 7)) | |
134 | 134 | then 10000000 | |
135 | 135 | else if ((aa == 8)) | |
136 | 136 | then 100000000 | |
137 | 137 | else if ((aa == 9)) | |
138 | 138 | then 1000000000 | |
139 | 139 | else throw(C) | |
140 | 140 | if ((0 > Z)) | |
141 | 141 | then (Y / ab) | |
142 | 142 | else (Y * ab) | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ac (T,ad) = X(T, (s - ad)) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func ae (T,ad) = X(T, (ad - s)) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | @Callable(K) | |
153 | 153 | func init (af,ag,ah,ai,U) = if (isDefined(getBinary((l + k)))) | |
154 | 154 | then throw(v) | |
155 | 155 | else [BinaryEntry((l + k), af), BinaryEntry(g, ag), BinaryEntry(h, ah), BinaryEntry(i, ai), IntegerEntry(f, U), BooleanEntry(j, true)] | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | ||
159 | 159 | @Callable(K) | |
160 | 160 | func addAsset (aj,ak,V) = { | |
161 | 161 | let al = J(K, m) | |
162 | 162 | if ((al == al)) | |
163 | 163 | then { | |
164 | 164 | let am = if ((ak == p)) | |
165 | 165 | then if ((aj != o)) | |
166 | 166 | then throw(y) | |
167 | 167 | else $Tuple2(G, 8) | |
168 | 168 | else { | |
169 | 169 | let an = valueOrErrorMessage(assetInfo(ak), A) | |
170 | 170 | let ao = if ((an.issuer == this)) | |
171 | 171 | then I | |
172 | 172 | else H | |
173 | 173 | $Tuple2(ao, an.decimals) | |
174 | 174 | } | |
175 | 175 | let ao = am._1 | |
176 | 176 | let ad = am._2 | |
177 | 177 | let Q = toBase64String(ak) | |
178 | 178 | let ap = (toBase64String(aj) + a) | |
179 | 179 | let aq = (Q + a) | |
180 | 180 | if (if (isDefined(getBinary(ap))) | |
181 | 181 | then true | |
182 | 182 | else isDefined(getBinary(aq))) | |
183 | 183 | then throw(w) | |
184 | 184 | else [BinaryEntry(ap, ak), BinaryEntry(aq, aj), IntegerEntry((Q + b), ao), IntegerEntry((Q + c), ad), IntegerEntry((Q + d), V), BooleanEntry((Q + e), true)] | |
185 | 185 | } | |
186 | 186 | else throw("Strict value is not equal to itself.") | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | ||
191 | 191 | @Callable(K) | |
192 | 192 | func issue (ar,as,ad) = { | |
193 | 193 | let al = J(K, m) | |
194 | 194 | if ((al == al)) | |
195 | 195 | then [Issue(ar, as, 0, ad, true)] | |
196 | 196 | else throw("Strict value is not equal to itself.") | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | ||
201 | 201 | @Callable(K) | |
202 | 202 | func removeAsset (aj,at) = { | |
203 | 203 | let al = J(K, m) | |
204 | 204 | if ((al == al)) | |
205 | 205 | then { | |
206 | 206 | let ap = (toBase64String(aj) + a) | |
207 | 207 | let ak = valueOrErrorMessage(getBinary(ap), x) | |
208 | 208 | let Q = toBase64String(ak) | |
209 | 209 | let ao = valueOrErrorMessage(getInteger((Q + b)), x) | |
210 | 210 | let au = if ((ao == G)) | |
211 | 211 | then { | |
212 | 212 | let av = wavesBalance(this) | |
213 | 213 | if ((av.available > 0)) | |
214 | 214 | then [ScriptTransfer(Address(at), av.available, unit)] | |
215 | 215 | else nil | |
216 | 216 | } | |
217 | 217 | else if ((ao == H)) | |
218 | 218 | then { | |
219 | 219 | let av = assetBalance(this, ak) | |
220 | 220 | if ((av > 0)) | |
221 | 221 | then [ScriptTransfer(Address(at), av, ak)] | |
222 | 222 | else nil | |
223 | 223 | } | |
224 | 224 | else if ((ao == I)) | |
225 | 225 | then nil | |
226 | 226 | else throw(y) | |
227 | 227 | (au ++ [DeleteEntry(ap), DeleteEntry((Q + a)), DeleteEntry((Q + b)), DeleteEntry((Q + c)), DeleteEntry((Q + d)), DeleteEntry((Q + e))]) | |
228 | 228 | } | |
229 | 229 | else throw("Strict value is not equal to itself.") | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | ||
234 | 234 | @Callable(K) | |
235 | 235 | func lock (aw,ax,ay) = { | |
236 | 236 | let az = O() | |
237 | 237 | if ((az == az)) | |
238 | 238 | then if ((ay == q)) | |
239 | 239 | then throw(F) | |
240 | 240 | else if ((size(K.payments) != 1)) | |
241 | 241 | then throw(z) | |
242 | 242 | else { | |
243 | 243 | let ak = valueOrElse(K.payments[0].assetId, p) | |
244 | 244 | let Q = toBase64String(ak) | |
245 | 245 | let aA = P(Q) | |
246 | 246 | if ((aA == aA)) | |
247 | 247 | then { | |
248 | 248 | let T = K.payments[0].amount | |
249 | 249 | let ag = valueOrErrorMessage(getBinary(g), u) | |
250 | 250 | let W = S(T, Q) | |
251 | 251 | let aB = (T - W) | |
252 | 252 | if ((0 >= aB)) | |
253 | 253 | then throw(B) | |
254 | 254 | else { | |
255 | 255 | let aj = valueOrErrorMessage(getBinary((Q + a)), A) | |
256 | 256 | let ao = valueOrErrorMessage(getInteger((Q + b)), A) | |
257 | 257 | let ad = valueOrErrorMessage(getInteger((Q + c)), A) | |
258 | 258 | let ah = valueOrErrorMessage(getBinary(h), u) | |
259 | 259 | let aC = invoke(Address(ag), "createLock", [aw, ax, ac(aB, ad), ay, aj], nil) | |
260 | 260 | if ((aC == aC)) | |
261 | 261 | then if ((ao == G)) | |
262 | 262 | then [ScriptTransfer(Address(ah), W, unit)] | |
263 | 263 | else if ((ao == H)) | |
264 | 264 | then [ScriptTransfer(Address(ah), W, ak)] | |
265 | 265 | else if ((ao == I)) | |
266 | 266 | then [Burn(ak, aB), ScriptTransfer(Address(ah), W, ak)] | |
267 | 267 | else throw(y) | |
268 | 268 | else throw("Strict value is not equal to itself.") | |
269 | 269 | } | |
270 | 270 | } | |
271 | 271 | else throw("Strict value is not equal to itself.") | |
272 | 272 | } | |
273 | 273 | else throw("Strict value is not equal to itself.") | |
274 | 274 | } | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | ||
278 | 278 | @Callable(K) | |
279 | 279 | func unlock (aw,ax,T,aD,aj,aE) = { | |
280 | 280 | let az = O() | |
281 | 281 | if ((az == az)) | |
282 | 282 | then { | |
283 | 283 | let ak = valueOrErrorMessage(getBinary((toBase64String(aj) + a)), A) | |
284 | 284 | let Q = toBase64String(ak) | |
285 | 285 | let ao = valueOrErrorMessage(getInteger((Q + b)), A) | |
286 | 286 | let ad = valueOrErrorMessage(getInteger((Q + c)), A) | |
287 | 287 | let ag = valueOrErrorMessage(getBinary(g), u) | |
288 | 288 | let ai = valueOrErrorMessage(getBinary(i), u) | |
289 | 289 | let ah = valueOrErrorMessage(getBinary(h), u) | |
290 | 290 | let aF = invoke(Address(ag), "createUnlock", [aw, ax, T, aD, aj, aE], nil) | |
291 | 291 | if ((aF == aF)) | |
292 | 292 | then { | |
293 | 293 | let aG = { | |
294 | 294 | let M = aF | |
295 | 295 | if ($isInstanceOf(M, "Boolean")) | |
296 | 296 | then { | |
297 | 297 | let aH = M | |
298 | 298 | aH | |
299 | 299 | } | |
300 | 300 | else false | |
301 | 301 | } | |
302 | 302 | if (!(aG)) | |
303 | 303 | then throw(y) | |
304 | 304 | else { | |
305 | 305 | let W = if ((ai == K.caller.bytes)) | |
306 | 306 | then valueOrErrorMessage(getInteger((Q + d)), A) | |
307 | 307 | else 0 | |
308 | 308 | let aI = ae(T, ad) | |
309 | 309 | let aJ = (aI - W) | |
310 | 310 | if ((0 >= aJ)) | |
311 | 311 | then throw(B) | |
312 | 312 | else if ((ao == G)) | |
313 | 313 | then ([ScriptTransfer(Address(ax), aJ, unit)] ++ (if ((W > 0)) | |
314 | 314 | then [ScriptTransfer(Address(ah), W, unit)] | |
315 | 315 | else nil)) | |
316 | 316 | else if ((ao == H)) | |
317 | 317 | then ([ScriptTransfer(Address(ax), aJ, ak)] ++ (if ((W > 0)) | |
318 | 318 | then [ScriptTransfer(Address(ah), W, ak)] | |
319 | 319 | else nil)) | |
320 | 320 | else if ((ao == I)) | |
321 | 321 | then ([Reissue(ak, aI, true), ScriptTransfer(Address(ax), aJ, ak)] ++ (if ((W > 0)) | |
322 | 322 | then [ScriptTransfer(Address(ah), W, ak)] | |
323 | 323 | else nil)) | |
324 | 324 | else throw(y) | |
325 | 325 | } | |
326 | 326 | } | |
327 | 327 | else throw("Strict value is not equal to itself.") | |
328 | 328 | } | |
329 | 329 | else throw("Strict value is not equal to itself.") | |
330 | 330 | } | |
331 | 331 | ||
332 | 332 | ||
333 | 333 | ||
334 | 334 | @Callable(K) | |
335 | 335 | func setManager (L,aK) = { | |
336 | 336 | let al = J(K, l) | |
337 | 337 | if ((al == al)) | |
338 | 338 | then [BinaryEntry((L + k), aK)] | |
339 | 339 | else throw("Strict value is not equal to itself.") | |
340 | 340 | } | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | ||
344 | 344 | @Callable(K) | |
345 | 345 | func setFeeCollector (ah) = { | |
346 | 346 | let al = J(K, l) | |
347 | 347 | if ((al == al)) | |
348 | 348 | then [BinaryEntry(h, ah)] | |
349 | 349 | else throw("Strict value is not equal to itself.") | |
350 | 350 | } | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | ||
354 | 354 | @Callable(K) | |
355 | 355 | func setValidator (aL) = { | |
356 | 356 | let al = J(K, l) | |
357 | 357 | if ((al == al)) | |
358 | 358 | then [BinaryEntry(g, aL)] | |
359 | 359 | else throw("Strict value is not equal to itself.") | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | ||
364 | 364 | @Callable(K) | |
365 | 365 | func startBridge () = { | |
366 | 366 | let al = J(K, l) | |
367 | 367 | if ((al == al)) | |
368 | 368 | then [BooleanEntry(j, true)] | |
369 | 369 | else throw("Strict value is not equal to itself.") | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | ||
374 | 374 | @Callable(K) | |
375 | 375 | func stopBridge () = { | |
376 | 376 | let al = J(K, n) | |
377 | 377 | if ((al == al)) | |
378 | 378 | then [BooleanEntry(j, false)] | |
379 | 379 | else throw("Strict value is not equal to itself.") | |
380 | 380 | } | |
381 | 381 | ||
382 | 382 | ||
383 | 383 | ||
384 | 384 | @Callable(K) | |
385 | 385 | func setMinFee (ak,V) = { | |
386 | 386 | let al = J(K, m) | |
387 | 387 | if ((al == al)) | |
388 | 388 | then { | |
389 | 389 | let Q = toBase64String(ak) | |
390 | 390 | [IntegerEntry((Q + d), V)] | |
391 | 391 | } | |
392 | 392 | else throw("Strict value is not equal to itself.") | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | ||
397 | 397 | @Callable(K) | |
398 | 398 | func setBaseFeeRate (U) = { | |
399 | 399 | let al = J(K, m) | |
400 | 400 | if ((al == al)) | |
401 | 401 | then [IntegerEntry(f, U)] | |
402 | 402 | else throw("Strict value is not equal to itself.") | |
403 | 403 | } | |
404 | 404 | ||
405 | 405 | ||
406 | 406 | ||
407 | 407 | @Callable(K) | |
408 | 408 | func setAssetState (ak,aM) = { | |
409 | 409 | let al = J(K, m) | |
410 | 410 | if ((al == al)) | |
411 | 411 | then { | |
412 | 412 | let Q = toBase64String(ak) | |
413 | 413 | [BooleanEntry((Q + e), aM)] | |
414 | 414 | } | |
415 | 415 | else throw("Strict value is not equal to itself.") | |
416 | 416 | } | |
417 | 417 | ||
418 | 418 |
github/deemru/w8io/169f3d6 147.54 ms ◑