tx · FaNMkWeVzAskzZKACwB6iXYqvharbCJay8kvNsqVbnkg 3MwCoAS5bvfAqbHYxLYWEw3brqeo6SeoB7B: -0.01400000 Waves 2022.04.11 16:00 [2003964] smart account 3MwCoAS5bvfAqbHYxLYWEw3brqeo6SeoB7B > SELF 0.00000000 Waves
{ "type": 13, "id": "FaNMkWeVzAskzZKACwB6iXYqvharbCJay8kvNsqVbnkg", "fee": 1400000, "feeAssetId": null, "timestamp": 1649682059259, "version": 1, "sender": "3MwCoAS5bvfAqbHYxLYWEw3brqeo6SeoB7B", "senderPublicKey": "5WJHJ8krgJY8GZvHds2k2fCTXmaYgW3NCnj2ifYZEhVV", "proofs": [ "27V9M73mNfiG3399Cn1Kyq5UaWtUMJBsUoHVZmJWhj7bhovBo2th7UngEXx4Vc4mj66nRqWsX9yeQxq7pei5gc2g" ], "script": "base64:AAIFAAAAAAAAAAkIAhIDCgEIEgAAAAAFAQAAABNrZXlNYW5hZ2VyUHVibGljS2V5AAAAAAIAAAAUJXNfX21hbmFnZXJQdWJsaWNLZXkBAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAIAAAAbJXNfX3BlbmRpbmdNYW5hZ2VyUHVibGljS2V5AQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAQAAAAHJG1hdGNoMAkABCIAAAABCQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAkAAlkAAAABBQAAAAFzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0BQAAAAR1bml0CQAAAgAAAAECAAAAC01hdGNoIGVycm9yAQAAAB1wZW5kaW5nTWFuYWdlclB1YmxpY0tleU9yVW5pdAAAAAAEAAAAByRtYXRjaDAJAAQiAAAAAQkBAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAMJAAABAAAAAgUAAAAHJG1h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AQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXmq8YBh", "chainId": 84, "height": 2003964, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FByajLwuZZed7QksQzHzogJvrqGg3SzHDTkKwdaMb5yW Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a () = "%s__managerPublicKey" | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func b () = "%s__pendingManagerPublicKey" | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func c () = { | |
11 | 11 | let d = getString(a()) | |
12 | 12 | if ($isInstanceOf(d, "String")) | |
13 | 13 | then { | |
14 | 14 | let e = d | |
15 | 15 | fromBase58String(e) | |
16 | 16 | } | |
17 | 17 | else if ($isInstanceOf(d, "Unit")) | |
18 | 18 | then unit | |
19 | 19 | else throw("Match error") | |
20 | 20 | } | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func f () = { | |
24 | 24 | let d = getString(b()) | |
25 | 25 | if ($isInstanceOf(d, "String")) | |
26 | 26 | then { | |
27 | 27 | let e = d | |
28 | 28 | fromBase58String(e) | |
29 | 29 | } | |
30 | 30 | else if ($isInstanceOf(d, "Unit")) | |
31 | 31 | then unit | |
32 | 32 | else throw("Match error") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func g (h) = { | |
37 | 37 | let i = throw("Permission denied") | |
38 | 38 | let d = c() | |
39 | 39 | if ($isInstanceOf(d, "ByteVector")) | |
40 | 40 | then { | |
41 | 41 | let j = d | |
42 | 42 | if ((h.callerPublicKey == j)) | |
43 | 43 | then true | |
44 | 44 | else i | |
45 | 45 | } | |
46 | 46 | else if ($isInstanceOf(d, "Unit")) | |
47 | 47 | then if ((h.caller == this)) | |
48 | 48 | then true | |
49 | 49 | else i | |
50 | 50 | else throw("Match error") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | @Callable(h) | |
55 | 55 | func setManager (k) = { | |
56 | 56 | let l = g(h) | |
57 | 57 | if ((l == l)) | |
58 | 58 | then { | |
59 | 59 | let m = fromBase58String(k) | |
60 | 60 | if ((m == m)) | |
61 | 61 | then [StringEntry(b(), k)] | |
62 | 62 | else throw("Strict value is not equal to itself.") | |
63 | 63 | } | |
64 | 64 | else throw("Strict value is not equal to itself.") | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | ||
69 | 69 | @Callable(h) | |
70 | 70 | func confirmManager () = { | |
71 | 71 | let n = f() | |
72 | 72 | let o = if (isDefined(n)) | |
73 | 73 | then true | |
74 | 74 | else throw("No pending manager") | |
75 | 75 | if ((o == o)) | |
76 | 76 | then { | |
77 | 77 | let p = if ((h.callerPublicKey == value(n))) | |
78 | 78 | then true | |
79 | 79 | else throw("You are not pending manager") | |
80 | 80 | if ((p == p)) | |
81 | 81 | then [StringEntry(a(), toBase58String(value(n))), DeleteEntry(b())] | |
82 | 82 | else throw("Strict value is not equal to itself.") | |
83 | 83 | } | |
84 | 84 | else throw("Strict value is not equal to itself.") | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | @Verifier(q) | |
89 | 89 | func r () = { | |
90 | 90 | let s = { | |
91 | 91 | let d = c() | |
92 | 92 | if ($isInstanceOf(d, "ByteVector")) | |
93 | 93 | then { | |
94 | 94 | let j = d | |
95 | 95 | j | |
96 | 96 | } | |
97 | 97 | else if ($isInstanceOf(d, "Unit")) | |
98 | 98 | then q.senderPublicKey | |
99 | 99 | else throw("Match error") | |
100 | 100 | } | |
101 | 101 | sigVerify(q.bodyBytes, q.proofs[0], s) | |
102 | 102 | } | |
103 | 103 |
github/deemru/w8io/026f985 25.59 ms ◑