tx · AmWZMWRdqo4hcrQooQhXarbxqjfvSmzkxoynR3fwjX6N 3MxxygTia4uJRezgeXKtaWwV6dHBADJBAxb: -0.01000000 Waves 2023.12.03 18:17 [2870634] smart account 3MxxygTia4uJRezgeXKtaWwV6dHBADJBAxb > SELF 0.00000000 Waves
{ "type": 13, "id": "AmWZMWRdqo4hcrQooQhXarbxqjfvSmzkxoynR3fwjX6N", "fee": 1000000, "feeAssetId": null, "timestamp": 1701616640146, "version": 2, "chainId": 84, "sender": "3MxxygTia4uJRezgeXKtaWwV6dHBADJBAxb", "senderPublicKey": "FgdjGJ4tLFiavKEKf4WkWwkgvU8ARWP1WYZfmUrXo4CY", "proofs": [ "4nkjFy4qPrrVouSyo3XG39PJfAjpb4QpxYYECvevZQsAoWJNwh9Jv6udN5qXTUrRqD678tHL7wiaK81V9GN8K3h9" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAAAMAAAAACmFjYzFQdWJLZXkBAAAAINoqzDs5WpVhYDTUvUDFMunBHoYto6DfGaP0KadDFYl5AAAAAAphY2MyUHViS2V5AQAAACDEqrME/jjBGs4Mrxcvf2rYimlLp6n4e/JFPZGNpxSDUQAAAAAKYWNjM1B1YktleQEAAAAgUNvEPKDCChp09z9n6F1NbPXldSbE9+5rrmMBqTTu7wMAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAGYWNjMV8xCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAKYWNjMVB1YktleQQAAAAGYWNjMV8yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAKYWNjMVB1YktleQQAAAAGYWNjMV8zCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAA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BwYDBQAAAAZhY2MxXzIFAAAABmFjYzNfMQcGAwUAAAAGYWNjMV8yBQAAAAZhY2MzXzMHBgMFAAAABmFjYzFfMwUAAAAGYWNjM18xBwYDBQAAAAZhY2MxXzMFAAAABmFjYzNfMgcEAAAACGFjYzJhY2MzAwMDAwMDBQAAAAZhY2MzXzEFAAAABmFjYzJfMgcGAwUAAAAGYWNjM18xBQAAAAZhY2MyXzMHBgMFAAAABmFjYzNfMgUAAAAGYWNjMl8xBwYDBQAAAAZhY2MzXzIFAAAABmFjYzJfMwcGAwUAAAAGYWNjM18zBQAAAAZhY2MyXzEHBgMFAAAABmFjYzNfMwUAAAAGYWNjMl8yBwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwAwMFAAAACGFjYzFhY2MyBgUAAAAIYWNjMmFjYzMGBQAAAAhhY2MxYWNjMwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwAwMFAAAACGFjYzFhY2MyBgUAAAAIYWNjMmFjYzMGBQAAAAhhY2MxYWNjMwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAMDBQAAAAhhY2MxYWNjMgYFAAAACGFjYzJhY2MzBgUAAAAIYWNjMWFjYzMHawcjVQ==", "height": 2870634, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GbcY2RvbMst4j5Bam1VbAYPHzTH1wUQHf4GBt2G1asaZ Next: 4TW6j8WTQQiy822GVCxaqw6QVSA7Ao9EL811nsFEmgKo Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = base58'FgdjGJ4tLFiavKEKf4WkWwkgvU8ARWP1WYZfmUrXo4CY' | |
5 | + | ||
6 | + | let b = base58'EEhsp9Jd5MwVmYJMGAZJL3tTb5KcurTz8Aw7wksZuw3e' | |
7 | + | ||
8 | + | let c = base58'6SdykacJeMCbeNvVJY71gWMJeXt9ZT44X4KexwZxHEYz' | |
4 | 9 | ||
5 | 10 | ||
6 | - | @Callable(a) | |
7 | - | func deposit () = { | |
8 | - | let b = extract(a.payment) | |
9 | - | if (isDefined(b.assetId)) | |
10 | - | then throw("can hodl waves only at the moment") | |
11 | - | else { | |
12 | - | let c = toBase58String(a.caller.bytes) | |
13 | - | let d = { | |
14 | - | let e = getInteger(this, c) | |
15 | - | if ($isInstanceOf(e, "Int")) | |
16 | - | then { | |
17 | - | let f = e | |
18 | - | f | |
19 | - | } | |
20 | - | else 0 | |
11 | + | @Verifier(d) | |
12 | + | func e () = { | |
13 | + | let f = sigVerify(d.bodyBytes, d.proofs[0], a) | |
14 | + | let g = sigVerify(d.bodyBytes, d.proofs[1], a) | |
15 | + | let h = sigVerify(d.bodyBytes, d.proofs[2], a) | |
16 | + | let i = sigVerify(d.bodyBytes, d.proofs[0], b) | |
17 | + | let j = sigVerify(d.bodyBytes, d.proofs[1], b) | |
18 | + | let k = sigVerify(d.bodyBytes, d.proofs[2], b) | |
19 | + | let l = sigVerify(d.bodyBytes, d.proofs[0], c) | |
20 | + | let m = sigVerify(d.bodyBytes, d.proofs[1], c) | |
21 | + | let n = sigVerify(d.bodyBytes, d.proofs[2], c) | |
22 | + | let o = if (if (if (if (if (if (f) | |
23 | + | then j | |
24 | + | else false) | |
25 | + | then true | |
26 | + | else if (f) | |
27 | + | then k | |
28 | + | else false) | |
29 | + | then true | |
30 | + | else if (g) | |
31 | + | then i | |
32 | + | else false) | |
33 | + | then true | |
34 | + | else if (g) | |
35 | + | then k | |
36 | + | else false) | |
37 | + | then true | |
38 | + | else if (h) | |
39 | + | then i | |
40 | + | else false) | |
41 | + | then true | |
42 | + | else if (h) | |
43 | + | then j | |
44 | + | else false | |
45 | + | let p = if (if (if (if (if (if (f) | |
46 | + | then m | |
47 | + | else false) | |
48 | + | then true | |
49 | + | else if (f) | |
50 | + | then n | |
51 | + | else false) | |
52 | + | then true | |
53 | + | else if (g) | |
54 | + | then l | |
55 | + | else false) | |
56 | + | then true | |
57 | + | else if (g) | |
58 | + | then n | |
59 | + | else false) | |
60 | + | then true | |
61 | + | else if (h) | |
62 | + | then l | |
63 | + | else false) | |
64 | + | then true | |
65 | + | else if (h) | |
66 | + | then m | |
67 | + | else false | |
68 | + | let q = if (if (if (if (if (if (l) | |
69 | + | then j | |
70 | + | else false) | |
71 | + | then true | |
72 | + | else if (l) | |
73 | + | then k | |
74 | + | else false) | |
75 | + | then true | |
76 | + | else if (m) | |
77 | + | then i | |
78 | + | else false) | |
79 | + | then true | |
80 | + | else if (m) | |
81 | + | then k | |
82 | + | else false) | |
83 | + | then true | |
84 | + | else if (n) | |
85 | + | then i | |
86 | + | else false) | |
87 | + | then true | |
88 | + | else if (n) | |
89 | + | then j | |
90 | + | else false | |
91 | + | let r = d | |
92 | + | if ($isInstanceOf(r, "SetScriptTransaction")) | |
93 | + | then { | |
94 | + | let s = r | |
95 | + | if (if (o) | |
96 | + | then true | |
97 | + | else q) | |
98 | + | then true | |
99 | + | else p | |
100 | + | } | |
101 | + | else if ($isInstanceOf(r, "DataTransaction")) | |
102 | + | then { | |
103 | + | let s = r | |
104 | + | if (if (o) | |
105 | + | then true | |
106 | + | else q) | |
107 | + | then true | |
108 | + | else p | |
21 | 109 | } | |
22 | - | let g = (d + b.amount) | |
23 | - | WriteSet([DataEntry(c, g)]) | |
24 | - | } | |
110 | + | else if ($isInstanceOf(r, "TransferTransaction")) | |
111 | + | then { | |
112 | + | let s = r | |
113 | + | if (if (o) | |
114 | + | then true | |
115 | + | else q) | |
116 | + | then true | |
117 | + | else p | |
118 | + | } | |
119 | + | else false | |
25 | 120 | } | |
26 | - | ||
27 | - | ||
28 | - | ||
29 | - | @Callable(a) | |
30 | - | func withdraw (h) = { | |
31 | - | let c = toBase58String(a.caller.bytes) | |
32 | - | let d = { | |
33 | - | let e = getInteger(this, c) | |
34 | - | if ($isInstanceOf(e, "Int")) | |
35 | - | then { | |
36 | - | let f = e | |
37 | - | f | |
38 | - | } | |
39 | - | else 0 | |
40 | - | } | |
41 | - | let g = (d - h) | |
42 | - | if ((0 > h)) | |
43 | - | then throw("Can't withdraw negative amount") | |
44 | - | else if ((0 > g)) | |
45 | - | then throw("Not enough balance") | |
46 | - | else ScriptResult(WriteSet([DataEntry(c, g)]), TransferSet([ScriptTransfer(a.caller, h, unit)])) | |
47 | - | } | |
48 | - | ||
49 | - | ||
50 | - | @Verifier(i) | |
51 | - | func j () = sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) | |
52 | 121 |
github/deemru/w8io/169f3d6 35.84 ms ◑