tx · 6kk8y4UsjTjk2Z4mpJ67yRHET1M8LFg37zD9TVMPTCbV 3N7y8qhNA8RXkfuzGTLdtmZFZmwbhZtLJhb: -0.01000000 Waves 2023.02.11 20:38 [2445271] smart account 3N7y8qhNA8RXkfuzGTLdtmZFZmwbhZtLJhb > SELF 0.00000000 Waves
{ "type": 13, "id": "6kk8y4UsjTjk2Z4mpJ67yRHET1M8LFg37zD9TVMPTCbV", "fee": 1000000, "feeAssetId": null, "timestamp": 1676137218058, "version": 2, "chainId": 84, "sender": "3N7y8qhNA8RXkfuzGTLdtmZFZmwbhZtLJhb", "senderPublicKey": "GWpjPX6mt3HRdUusZGysPeTyNhb6kELXVYQRJny11i59", "proofs": [ "3coXeMKzaJpKCeCjUB9QFbHe2i127M1GApzCsjeQTwV2e7kcdPr3RsmdGwTJzwTG6hkjvRKcthzm1EgbQnFu7gwV" ], "script": "base64:AAIFAAAAAAAAAA0IAhIECgIICBIDCgEIAAAAAAAAAAIAAAABaQEAAAAJc2V0T3B0aW9uAAAAAgAAAAh2YXJpYWJsZQAAAAV2YWx1ZQQAAAAJYWRtaW5MaXN0BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMCAAAACmFkbWluX2xpc3QDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQCAAAABXVuc2V0AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXgFAAAAByRtYXRjaDAFAAAAAXgJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IEAAAAEGNhbGxlckFkZHJlc3NTdHIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAwkBAAAAAiE9AAAAAgUAAAAJYWRtaW5MaXN0AgAAAAV1bnNldAQAAAAEdGVzdAkABB0AAAACCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAlhZG1pbkxpc3QFAAAAEGNhbGxlckFkZHJlc3NTdHIEAAAAB2lzQWRtaW4EAAAAByRtYXRjaDA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hbGxlckFkZHJlc3NTdHIEAAAAB2lzQWRtaW4EAAAAByRtYXRjaDAFAAAABHRlc3QDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABeAUAAAAHJG1hdGNoMAUAAAABeAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAIAAAAIbm8gYWRtaW4JAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IDCQEAAAACIT0AAAACBQAAAAdpc0FkbWluAgAAAAhubyBhZG1pbgkABRQAAAACCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAACHZhcmlhYmxlBQAAAANuaWwFAAAABHVuaXQJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAPWW91IG5vdCBhZG1pbjogBQAAAAlhZG1pbkxpc3QCAAAACywgaXNBZG1pbjogBQAAAAdpc0FkbWluAgAAABQsIGNhbGxlckFkZHJlc3NTdHI6IAUAAAAQY2FsbGVyQWRkcmVzc1N0cgIAAAACLCAJAAACAAAAAQIAAAAQVW5zZXQgYWRtaW4gbGlzdAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleeI1riI=", "height": 2445271, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 7xJQ1uhGCqGLXDZ8uJYfiRCzhyUV3Bur8wFkfcVpESCv Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(a) | |
7 | + | func setOption (b,c) = { | |
8 | + | let d = { | |
9 | + | let e = getString(this, "admin_list") | |
10 | + | if ($isInstanceOf(e, "Unit")) | |
11 | + | then "unset" | |
12 | + | else if ($isInstanceOf(e, "String")) | |
13 | + | then { | |
14 | + | let f = e | |
15 | + | f | |
16 | + | } | |
17 | + | else throw("Match error") | |
18 | + | } | |
19 | + | let g = toString(a.caller) | |
20 | + | if ((d != "unset")) | |
21 | + | then { | |
22 | + | let h = getString(addressFromStringValue(d), g) | |
23 | + | let i = { | |
24 | + | let e = h | |
25 | + | if ($isInstanceOf(e, "String")) | |
26 | + | then { | |
27 | + | let f = e | |
28 | + | f | |
29 | + | } | |
30 | + | else if ($isInstanceOf(e, "Unit")) | |
31 | + | then "no admin" | |
32 | + | else throw("Match error") | |
33 | + | } | |
34 | + | if ((i != "no admin")) | |
35 | + | then $Tuple2([StringEntry(b, c)], unit) | |
36 | + | else throw((((((("You not admin: " + d) + ", isAdmin: ") + i) + ", callerAddressStr: ") + g) + ", ")) | |
37 | + | } | |
38 | + | else throw("Unset admin list") | |
39 | + | } | |
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | @Callable(a) | |
44 | + | func delOption (b) = { | |
45 | + | let d = { | |
46 | + | let e = getString(this, "admin_list") | |
47 | + | if ($isInstanceOf(e, "Unit")) | |
48 | + | then "unset" | |
49 | + | else if ($isInstanceOf(e, "String")) | |
50 | + | then { | |
51 | + | let f = e | |
52 | + | f | |
53 | + | } | |
54 | + | else throw("Match error") | |
55 | + | } | |
56 | + | let g = toString(a.caller) | |
57 | + | if ((d != "unset")) | |
58 | + | then { | |
59 | + | let h = getString(addressFromStringValue(d), g) | |
60 | + | let i = { | |
61 | + | let e = h | |
62 | + | if ($isInstanceOf(e, "String")) | |
63 | + | then { | |
64 | + | let f = e | |
65 | + | f | |
66 | + | } | |
67 | + | else if ($isInstanceOf(e, "Unit")) | |
68 | + | then "no admin" | |
69 | + | else throw("Match error") | |
70 | + | } | |
71 | + | if ((i != "no admin")) | |
72 | + | then $Tuple2([DeleteEntry(b)], unit) | |
73 | + | else throw((((((("You not admin: " + d) + ", isAdmin: ") + i) + ", callerAddressStr: ") + g) + ", ")) | |
74 | + | } | |
75 | + | else throw("Unset admin list") | |
76 | + | } | |
77 | + | ||
78 | + | ||
79 | + | @Verifier(j) | |
80 | + | func k () = { | |
81 | + | let e = j | |
82 | + | sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) | |
83 | + | } | |
84 | + |
github/deemru/w8io/169f3d6 26.33 ms ◑