tx · 2KvhFwxUa85RuY6ixGmJcpDHUfccCvYmBthu5YbmaQdf 3N3zqyHQMQBsdE8GBCTP8nfAztXgTvmbVj9: -0.05000000 Waves 2020.09.18 20:28 [1183032] smart account 3N3zqyHQMQBsdE8GBCTP8nfAztXgTvmbVj9 > SELF 0.00000000 Waves
{ "type": 13, "id": "2KvhFwxUa85RuY6ixGmJcpDHUfccCvYmBthu5YbmaQdf", "fee": 5000000, "feeAssetId": null, "timestamp": 1600450143969, "version": 2, "chainId": 84, "sender": "3N3zqyHQMQBsdE8GBCTP8nfAztXgTvmbVj9", "senderPublicKey": "AQC4cqNzFb67Z2eYUSiv1nFtcsfEbtimY9iCQhsW1Tut", "proofs": [ "4zWx3iV8Js3vvYH4669bcjgEwFvo3dhCUquuLsh9QFY3iUUH6zYbXMf3AjGuT9drKr5BXXsKRQBQZCi7KvGw3o4E", "53d3WEqEs1HChojxJvT8PUFd3eNd3C6viXTGghhnb44yow1LPCxHx8Swp8JNJjBdYHMZyY3XUPAaHe44WWtgo2UB" ], "script": "base64:AAIEAAAAAAAAAAIIAgAAAAQAAAAABFRydWUAAAAAAAAAAAEAAAAAC2FsaWNlUHViS2V5AQAAACCLqgyZVlSwLv3zsQKqR9nso+UXjN38fIzB54ytOKxOMwAAAAAJYm9iUHViS2V5AQAAACCUqoL99z99yt8V4c9BQAk4cX2C4u1ce2I0RHcd71boYgAAAAAMY29vcGVyUHViS2V5AQAAACAgJ19jGsi7T+1Jn64qIXtMoMbkPySVigTvynVoEeSAeQAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAZhbGljZTEJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAthbGljZVB1YktleQQAAAAGYWxpY2UyCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAA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Ym9iMgcEAAAADmFsaWNlQW5kQ29vcGVyAwMDAwMDBQAAAAZhbGljZTEFAAAAB2Nvb3BlcjIHBgMFAAAABmFsaWNlMQUAAAAHY29vcGVyMwcGAwUAAAAGYWxpY2UyBQAAAAdjb29wZXIxBwYDBQAAAAZhbGljZTIFAAAAB2Nvb3BlcjMHBgMFAAAABmFsaWNlMwUAAAAHY29vcGVyMQcGAwUAAAAGYWxpY2UzBQAAAAdjb29wZXIyBwQAAAAMYm9iQW5kQ29vcGVyAwMDAwMDBQAAAAdjb29wZXIxBQAAAARib2IyBwYDBQAAAAdjb29wZXIxBQAAAARib2IzBwYDBQAAAAdjb29wZXIyBQAAAARib2IxBwYDBQAAAAdjb29wZXIyBQAAAARib2IzBwYDBQAAAAdjb29wZXIzBQAAAARib2IxBwYDBQAAAAdjb29wZXIzBQAAAARib2IyBwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGAwMFAAAAC2FsaWNlQW5kQm9iBgUAAAAOYWxpY2VBbmRDb29wZXIGBQAAAAxib2JBbmRDb29wZXJN/Rds", "height": 1183032, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CNKhNFkrFWrnjeqLJeP4WH53ipEjVRixvo4GWD472eKG Next: DeqVFAbVvc6ryKDCZsf6G2bTproSXehSrVNu661uJwfs Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let True = | |
4 | + | let True = 1 | |
5 | 5 | ||
6 | 6 | let alicePubKey = base58'AQC4cqNzFb67Z2eYUSiv1nFtcsfEbtimY9iCQhsW1Tut' | |
7 | 7 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let True = | |
4 | + | let True = 1 | |
5 | 5 | ||
6 | 6 | let alicePubKey = base58'AQC4cqNzFb67Z2eYUSiv1nFtcsfEbtimY9iCQhsW1Tut' | |
7 | 7 | ||
8 | 8 | let bobPubKey = base58'B1L9ADLhT3AgSCGBbDqFgvHGQg23J4vtF6qx38yTzi2V' | |
9 | 9 | ||
10 | 10 | let cooperPubKey = base58'3AWsKp1X42XqcUCWsp8NXfV2W6fkXLZG5w4EwfgDkgtQ' | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | @Verifier(tx) | |
14 | 14 | func verify () = { | |
15 | 15 | let alice1 = sigVerify(tx.bodyBytes, tx.proofs[0], alicePubKey) | |
16 | 16 | let alice2 = sigVerify(tx.bodyBytes, tx.proofs[1], alicePubKey) | |
17 | 17 | let alice3 = sigVerify(tx.bodyBytes, tx.proofs[2], alicePubKey) | |
18 | 18 | let bob1 = sigVerify(tx.bodyBytes, tx.proofs[0], bobPubKey) | |
19 | 19 | let bob2 = sigVerify(tx.bodyBytes, tx.proofs[1], bobPubKey) | |
20 | 20 | let bob3 = sigVerify(tx.bodyBytes, tx.proofs[2], bobPubKey) | |
21 | 21 | let cooper1 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperPubKey) | |
22 | 22 | let cooper2 = sigVerify(tx.bodyBytes, tx.proofs[1], cooperPubKey) | |
23 | 23 | let cooper3 = sigVerify(tx.bodyBytes, tx.proofs[2], cooperPubKey) | |
24 | 24 | let aliceAndBob = if (if (if (if (if (if (alice1) | |
25 | 25 | then bob2 | |
26 | 26 | else false) | |
27 | 27 | then true | |
28 | 28 | else if (alice1) | |
29 | 29 | then bob3 | |
30 | 30 | else false) | |
31 | 31 | then true | |
32 | 32 | else if (alice2) | |
33 | 33 | then bob1 | |
34 | 34 | else false) | |
35 | 35 | then true | |
36 | 36 | else if (alice2) | |
37 | 37 | then bob3 | |
38 | 38 | else false) | |
39 | 39 | then true | |
40 | 40 | else if (alice3) | |
41 | 41 | then bob1 | |
42 | 42 | else false) | |
43 | 43 | then true | |
44 | 44 | else if (alice3) | |
45 | 45 | then bob2 | |
46 | 46 | else false | |
47 | 47 | let aliceAndCooper = if (if (if (if (if (if (alice1) | |
48 | 48 | then cooper2 | |
49 | 49 | else false) | |
50 | 50 | then true | |
51 | 51 | else if (alice1) | |
52 | 52 | then cooper3 | |
53 | 53 | else false) | |
54 | 54 | then true | |
55 | 55 | else if (alice2) | |
56 | 56 | then cooper1 | |
57 | 57 | else false) | |
58 | 58 | then true | |
59 | 59 | else if (alice2) | |
60 | 60 | then cooper3 | |
61 | 61 | else false) | |
62 | 62 | then true | |
63 | 63 | else if (alice3) | |
64 | 64 | then cooper1 | |
65 | 65 | else false) | |
66 | 66 | then true | |
67 | 67 | else if (alice3) | |
68 | 68 | then cooper2 | |
69 | 69 | else false | |
70 | 70 | let bobAndCooper = if (if (if (if (if (if (cooper1) | |
71 | 71 | then bob2 | |
72 | 72 | else false) | |
73 | 73 | then true | |
74 | 74 | else if (cooper1) | |
75 | 75 | then bob3 | |
76 | 76 | else false) | |
77 | 77 | then true | |
78 | 78 | else if (cooper2) | |
79 | 79 | then bob1 | |
80 | 80 | else false) | |
81 | 81 | then true | |
82 | 82 | else if (cooper2) | |
83 | 83 | then bob3 | |
84 | 84 | else false) | |
85 | 85 | then true | |
86 | 86 | else if (cooper3) | |
87 | 87 | then bob1 | |
88 | 88 | else false) | |
89 | 89 | then true | |
90 | 90 | else if (cooper3) | |
91 | 91 | then bob2 | |
92 | 92 | else false | |
93 | 93 | match tx { | |
94 | 94 | case t: TransferTransaction => | |
95 | 95 | true | |
96 | 96 | case d: DataTransaction => | |
97 | 97 | true | |
98 | 98 | case _ => | |
99 | 99 | if (if (aliceAndBob) | |
100 | 100 | then true | |
101 | 101 | else aliceAndCooper) | |
102 | 102 | then true | |
103 | 103 | else bobAndCooper | |
104 | 104 | } | |
105 | 105 | } | |
106 | 106 |
github/deemru/w8io/026f985 26.55 ms ◑