tx · 6jv66koafAXCBTaAmxAGezX7cHjrwGAE4pH8ZqFWb1rS 3N8UaqrCTjypGPWXSvFJVSLv23bfuiPoJAh: -0.00200000 Waves 2022.11.21 05:12 [2326259] smart account 3N8UaqrCTjypGPWXSvFJVSLv23bfuiPoJAh > SELF 0.00000000 Waves
{ "type": 13, "id": "6jv66koafAXCBTaAmxAGezX7cHjrwGAE4pH8ZqFWb1rS", "fee": 200000, "feeAssetId": null, "timestamp": 1668996816715, "version": 2, "chainId": 84, "sender": "3N8UaqrCTjypGPWXSvFJVSLv23bfuiPoJAh", "senderPublicKey": "6Q6JdfeHgdjpVbDxjoVAbQhxeGaQXS7B4WYGzk2tYsGT", "proofs": [ "DPw5YAkPtJCfWH76Ez4G67vRDQ5PfvKoavZDcsNLZVwBhbScpLUprDsttSHx9SCgqWdiz84myhcje3xT1gru627" ], "script": "base64:BgIjCAISAwoBBBIGCgQEBAQEEgMKAQESAwoBBBIDCgEIEgMKAQELAAJhYwIIYWN0aXZhdGUABnBvb2xBYwIOYWN0aXZhdGVfcG9vbHMABnN3YXBBYwINYWN0aXZhdGVfc3dhcAALbGlxdWlkaXR5QWMCEmFjdGl2YXRlX2xpcXVpZGl0eQADYmNEAhNibG9ja19kaXN0cmlidWl0aW9uAAlicmlkZ2VzQWMCEGFjdGl2YXRlX2JyaWRnZXMAA2FBRAIFYWRtaW4ABmFXYXZlcwIMYWNjZXB0X3dhdmVzARFhZG1pblZlcmlmaWNhdGlvbgAEByRtYXRjaDAJAJ0IAgUEdGhpcwIFYWRtaW4DCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF0BQckbWF0Y2gwCQEHQWRkcmVzcwEJANkEAQUBdAUEdGhpcwAHcmF0ZUZlZQITcGVyY2VudGFnZV9yYXRlX2ZlZQAKZXJyb3JBZG1pbgIuT25seSB0aGUgQWRtaW4gaXRzZWxmIGNhbiBpbnZva2UgdGhpcyBmdW5jdGlvbgYBaQEIYWN0aXZhdGUBAXYDAwkAAAIIBQFpBm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JAAIBBQplcnJvckFkbWluAWkBEUJsb2NrRGlzdHJpYnV0aW9uAQZhbW91bnQDAwkAAAIIBQFpBmNhbGxlcgUEdGhpcwYJAAACCAUBaQZjYWxsZXIJARFhZG1pblZlcmlmaWNhdGlvbgAJAMwIAgkBDEludGVnZXJFbnRyeQIFA2JjRAUGYW1vdW50BQNuaWwJAAIBBQplcnJvckFkbWluADHVuCM=", "height": 2326259, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: AqRvNzuL98Npfvtecw7r6A5YkbV2EaKvCcGzymSyTwQt Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "activate" | |
5 | + | ||
6 | + | let b = "activate_pools" | |
7 | + | ||
8 | + | let c = "activate_swap" | |
9 | + | ||
10 | + | let d = "activate_liquidity" | |
11 | + | ||
12 | + | let e = "block_distribuition" | |
13 | + | ||
14 | + | let f = "activate_bridges" | |
15 | + | ||
16 | + | let g = "admin" | |
17 | + | ||
18 | + | let h = "accept_waves" | |
19 | + | ||
20 | + | func i () = { | |
21 | + | let j = getString(this, "admin") | |
22 | + | if ($isInstanceOf(j, "String")) | |
23 | + | then { | |
24 | + | let k = j | |
25 | + | Address(fromBase58String(k)) | |
26 | + | } | |
27 | + | else this | |
28 | + | } | |
29 | + | ||
30 | + | ||
31 | + | let l = "percentage_rate_fee" | |
32 | + | ||
33 | + | let m = "Only the Admin itself can invoke this function" | |
34 | + | ||
35 | + | @Callable(n) | |
36 | + | func activate (o) = if (if ((n.caller == this)) | |
37 | + | then true | |
38 | + | else (n.caller == i())) | |
39 | + | then [BooleanEntry(a, o)] | |
40 | + | else throw(m) | |
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | @Callable(n) | |
45 | + | func maintenance (p,q,r,s) = if (if ((n.caller == this)) | |
46 | + | then true | |
47 | + | else (n.caller == i())) | |
48 | + | then [BooleanEntry(b, p), BooleanEntry(c, q), BooleanEntry(d, r), BooleanEntry(f, s)] | |
49 | + | else throw(m) | |
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | @Callable(n) | |
54 | + | func percentualRateFeeSwapEdit (t) = if (if ((n.caller == this)) | |
55 | + | then true | |
56 | + | else (n.caller == i())) | |
57 | + | then [IntegerEntry(l, t)] | |
58 | + | else throw(m) | |
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | @Callable(n) | |
63 | + | func acceptWaves (u) = if (if ((n.caller == this)) | |
64 | + | then true | |
65 | + | else (n.caller == i())) | |
66 | + | then [BooleanEntry(h, u)] | |
67 | + | else throw(m) | |
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | @Callable(n) | |
72 | + | func addAdmin (v) = if (if ((n.caller == this)) | |
73 | + | then true | |
74 | + | else (n.caller == i())) | |
75 | + | then [StringEntry(g, v)] | |
76 | + | else throw(m) | |
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | @Callable(n) | |
81 | + | func BlockDistribution (w) = if (if ((n.caller == this)) | |
82 | + | then true | |
83 | + | else (n.caller == i())) | |
84 | + | then [IntegerEntry(e, w)] | |
85 | + | else throw(m) | |
86 | + | ||
87 | + |
github/deemru/w8io/169f3d6 16.41 ms ◑