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