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