tx · 8a6P6FgzRNXrJ9kubmGLYLhf8d5xFHt5fHjPF4GF2Thi 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6: -0.01000000 Waves 2023.01.31 21:42 [2429494] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves
{ "type": 13, "id": "8a6P6FgzRNXrJ9kubmGLYLhf8d5xFHt5fHjPF4GF2Thi", "fee": 1000000, "feeAssetId": null, "timestamp": 1675190580253, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "63RtGXNs6szzpCnA9AQCdRFAffwzrEBBeVpzW7Vz47RPgc77aQiqtJKSk2kWKG6kguTeVarAtvQEGnwziXzWRT3z" ], "script": "base64:BgIICAISBAoCCAgAAQFpAQlzZXRPcHRpb24CCHZhcmlhYmxlBXZhbHVlBAlhZG1pbkxpc3QEByRtYXRjaDAJAJ0IAgUEdGhpcwILYWRtaW5fbGlzdDIDCQABAgUHJG1hdGNoMAIEVW5pdAIFdW5zZXQDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF4BQckbWF0Y2gwBQF4CQACAQILTWF0Y2ggZXJyb3IEEGNhbGxlckFkZHJlc3NTdHIJAKUIAQgFAWkGY2FsbGVyAwkBAiE9AgUJYWRtaW5MaXN0AgV1bnNldAQHaXNBZG1pbgQHJG1hdGNoMAkAnQgCBQR0aGlzBRBjYWxsZXJBZGRyZXNzU3RyAwkAAQIFByRtYXRjaDACBFVuaXQCCG5vIGFkbWluAwkAAQIFByRtYXRjaDACBlN0cmluZwQBeAUHJG1hdGNoMAUBeAkAAgECC01hdGNoIGVycm9yAwkBAiE9AgUHaXNBZG1pbgIIbm8gYWRtaW4JAJQKAgkAzAgCCQELU3RyaW5nRW50cnkCBQh2YXJpYWJsZQUFdmFsdWUFA25pbAUEdW5pdAkAAgEJAKwCAgIPWW91IG5vdCBhZG1pbjogBQlhZG1pbkxpc3QJAAIBAhBVbnNldCBhZG1pbiBsaXN0AQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXn7ADf8", "height": 2429494, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3HsnK92EvCzC4MS1o3TBktV3m5uY7WEjUoVYyKnQFHaJ Next: 2pnjdaYCkKuioqh1E5BKFERj19MFE1fup1iyyf3ZK5sF Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | @Callable(a) | |
7 | 7 | func setOption (b,c) = { | |
8 | 8 | let d = { | |
9 | - | let e = getString(this, "admin_ | |
9 | + | let e = getString(this, "admin_list2") | |
10 | 10 | if ($isInstanceOf(e, "Unit")) | |
11 | 11 | then "unset" | |
12 | 12 | else if ($isInstanceOf(e, "String")) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func setOption (b,c) = { | |
8 | 8 | let d = { | |
9 | - | let e = getString(this, "admin_ | |
9 | + | let e = getString(this, "admin_list2") | |
10 | 10 | if ($isInstanceOf(e, "Unit")) | |
11 | 11 | then "unset" | |
12 | 12 | else if ($isInstanceOf(e, "String")) | |
13 | 13 | then { | |
14 | 14 | let f = e | |
15 | 15 | f | |
16 | 16 | } | |
17 | 17 | else throw("Match error") | |
18 | 18 | } | |
19 | 19 | let g = toString(a.caller) | |
20 | 20 | if ((d != "unset")) | |
21 | 21 | then { | |
22 | 22 | let h = { | |
23 | 23 | let e = getString(this, g) | |
24 | 24 | if ($isInstanceOf(e, "Unit")) | |
25 | 25 | then "no admin" | |
26 | 26 | else if ($isInstanceOf(e, "String")) | |
27 | 27 | then { | |
28 | 28 | let f = e | |
29 | 29 | f | |
30 | 30 | } | |
31 | 31 | else throw("Match error") | |
32 | 32 | } | |
33 | 33 | if ((h != "no admin")) | |
34 | 34 | then $Tuple2([StringEntry(b, c)], unit) | |
35 | 35 | else throw(("You not admin: " + d)) | |
36 | 36 | } | |
37 | 37 | else throw("Unset admin list") | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | @Verifier(i) | |
42 | 42 | func j () = { | |
43 | 43 | let e = i | |
44 | 44 | sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) | |
45 | 45 | } | |
46 | 46 |
github/deemru/w8io/169f3d6 43.17 ms ◑