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 ac = "activate" | |
5 | + | ||
6 | + | let poolAc = "activate_pools" | |
7 | + | ||
8 | + | let swapAc = "activate_swap" | |
9 | + | ||
10 | + | let liquidityAc = "activate_liquidity" | |
11 | + | ||
12 | + | let bcD = "block_distribuition" | |
13 | + | ||
14 | + | let bridgesAc = "activate_bridges" | |
15 | + | ||
16 | + | let aAD = "admin" | |
17 | + | ||
18 | + | let aWaves = "accept_waves" | |
19 | + | ||
20 | + | func adminVerification () = match getString(this, "admin") { | |
21 | + | case t: String => | |
22 | + | Address(fromBase58String(t)) | |
23 | + | case _ => | |
24 | + | this | |
25 | + | } | |
26 | + | ||
27 | + | ||
28 | + | let rateFee = "percentage_rate_fee" | |
29 | + | ||
30 | + | let errorAdmin = "Only the Admin itself can invoke this function" | |
31 | + | ||
32 | + | @Callable(i) | |
33 | + | func activate (v) = if (if ((i.caller == this)) | |
34 | + | then true | |
35 | + | else (i.caller == adminVerification())) | |
36 | + | then [BooleanEntry(ac, v)] | |
37 | + | else throw(errorAdmin) | |
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | @Callable(i) | |
42 | + | func maintenance (pools,swap,stake,bridges) = if (if ((i.caller == this)) | |
43 | + | then true | |
44 | + | else (i.caller == adminVerification())) | |
45 | + | then [BooleanEntry(poolAc, pools), BooleanEntry(swapAc, swap), BooleanEntry(liquidityAc, stake), BooleanEntry(bridgesAc, bridges)] | |
46 | + | else throw(errorAdmin) | |
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | @Callable(i) | |
51 | + | func percentualRateFeeSwapEdit (rate) = if (if ((i.caller == this)) | |
52 | + | then true | |
53 | + | else (i.caller == adminVerification())) | |
54 | + | then [IntegerEntry(rateFee, rate)] | |
55 | + | else throw(errorAdmin) | |
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | @Callable(i) | |
60 | + | func acceptWaves (activate) = if (if ((i.caller == this)) | |
61 | + | then true | |
62 | + | else (i.caller == adminVerification())) | |
63 | + | then [BooleanEntry(aWaves, activate)] | |
64 | + | else throw(errorAdmin) | |
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | @Callable(i) | |
69 | + | func addAdmin (address) = if (if ((i.caller == this)) | |
70 | + | then true | |
71 | + | else (i.caller == adminVerification())) | |
72 | + | then [StringEntry(aAD, address)] | |
73 | + | else throw(errorAdmin) | |
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | @Callable(i) | |
78 | + | func BlockDistribution (amount) = if (if ((i.caller == this)) | |
79 | + | then true | |
80 | + | else (i.caller == adminVerification())) | |
81 | + | then [IntegerEntry(bcD, amount)] | |
82 | + | else throw(errorAdmin) | |
83 | + | ||
84 | + |
github/deemru/w8io/169f3d6 28.27 ms ◑