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