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