tx · 2YBYQX78WyrJGU4WdbVNUCwVYxZ2jpMwBe8KmQt9tuCa 3MpgodrFvTXkz7QQpY4iLxzXW6EHzwyhN8N: -0.01000000 Waves 2022.04.27 20:29 [2027187] smart account 3MpgodrFvTXkz7QQpY4iLxzXW6EHzwyhN8N > SELF 0.00000000 Waves
{ "type": 13, "id": "2YBYQX78WyrJGU4WdbVNUCwVYxZ2jpMwBe8KmQt9tuCa", "fee": 1000000, "feeAssetId": null, "timestamp": 1651080528694, "version": 2, "chainId": 84, "sender": "3MpgodrFvTXkz7QQpY4iLxzXW6EHzwyhN8N", "senderPublicKey": "4g5YVbd997ubswFwUFWFknp1fzq44itHuQtP4JaATK8M", "proofs": [ "1HZZHUGdQZaCmwiK9pU99bGmGEf2M7qDf84iPCbHtp5sEnDiiXKrpD6GUWFjRSqSs5WzLhjwoUiwYj7gPTmewtX" ], "script": "base64:AAIDAAAAAAAAAAIIAQAAAAMAAAAADmFsaWNlUHVibGljS2V5AQAAACA2ldlerihjiDLBJ05JZ6hepBWz4AxHRS7kPumUGRV/MgAAAAAMYm9iUHVibGljS2V5AQAAACBGHK8dZ1papiOU8HZUp3YW/kFb7fvs8y31KBWDwZZFQAAAAAAPY29vcGVyUHVibGljS2V5AQAAACDKj9P/twROSdUN6WLbexYq8Dvx9xoS7BhUD054c3ImVQAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAZhbGljZTEJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA5hbGljZVB1YmxpY0tleQQAAAAGYWxpY2UyCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAOYWxpY2VQdWJsaWNLZXkEAAAABmFsaWNlMwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAI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BlcjIHBgMFAAAABmFsaWNlMQUAAAAHY29vcGVyMwcGAwUAAAAGYWxpY2UyBQAAAAdjb29wZXIxBwYDBQAAAAZhbGljZTIFAAAAB2Nvb3BlcjMHBgMFAAAABmFsaWNlMwUAAAAHY29vcGVyMQcGAwUAAAAGYWxpY2UzBQAAAAdjb29wZXIyBwQAAAAMYm9iQW5kQ29vcGVyAwMDAwMDBQAAAAdjb29wZXIxBQAAAARib2IyBwYDBQAAAAdjb29wZXIxBQAAAARib2IzBwYDBQAAAAdjb29wZXIyBQAAAARib2IxBwYDBQAAAAdjb29wZXIyBQAAAARib2IzBwYDBQAAAAdjb29wZXIzBQAAAARib2IxBwYDBQAAAAdjb29wZXIzBQAAAARib2IyBwQAAAAHJG1hdGNoMAUAAAACdHgDAwUAAAALYWxpY2VBbmRCb2IGBQAAAA5hbGljZUFuZENvb3BlcgYFAAAADGJvYkFuZENvb3BlcpDO8ws=", "height": 2027187, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: A1ZsWqXeLmeYUfxjz1pnebQFHYhR5T3XbdRMxFxv9eKG Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let alicePublicKey = base58'4g5YVbd997ubswFwUFWFknp1fzq44itHuQtP4JaATK8M' | |
5 | + | ||
6 | + | let bobPublicKey = base58'5igucfz6KQnAsn2JzpqScKgo8NqZRu5pMW5kHiVqCT1Z' | |
7 | + | ||
8 | + | let cooperPublicKey = base58'EdiZKeSSzmoYqkk6ce532zc65KcUXi9HckEuP7sWPHmW' | |
9 | + | ||
10 | + | ||
11 | + | @Verifier(tx) | |
12 | + | func verify () = { | |
13 | + | let alice1 = sigVerify(tx.bodyBytes, tx.proofs[0], alicePublicKey) | |
14 | + | let alice2 = sigVerify(tx.bodyBytes, tx.proofs[1], alicePublicKey) | |
15 | + | let alice3 = sigVerify(tx.bodyBytes, tx.proofs[2], alicePublicKey) | |
16 | + | let bob1 = sigVerify(tx.bodyBytes, tx.proofs[0], bobPublicKey) | |
17 | + | let bob2 = sigVerify(tx.bodyBytes, tx.proofs[1], bobPublicKey) | |
18 | + | let bob3 = sigVerify(tx.bodyBytes, tx.proofs[2], bobPublicKey) | |
19 | + | let cooper1 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperPublicKey) | |
20 | + | let cooper2 = sigVerify(tx.bodyBytes, tx.proofs[1], cooperPublicKey) | |
21 | + | let cooper3 = sigVerify(tx.bodyBytes, tx.proofs[2], cooperPublicKey) | |
22 | + | let aliceAndBob = if (if (if (if (if (if (alice1) | |
23 | + | then bob2 | |
24 | + | else false) | |
25 | + | then true | |
26 | + | else if (alice1) | |
27 | + | then bob3 | |
28 | + | else false) | |
29 | + | then true | |
30 | + | else if (alice2) | |
31 | + | then bob1 | |
32 | + | else false) | |
33 | + | then true | |
34 | + | else if (alice2) | |
35 | + | then bob3 | |
36 | + | else false) | |
37 | + | then true | |
38 | + | else if (alice3) | |
39 | + | then bob1 | |
40 | + | else false) | |
41 | + | then true | |
42 | + | else if (alice3) | |
43 | + | then bob2 | |
44 | + | else false | |
45 | + | let aliceAndCooper = if (if (if (if (if (if (alice1) | |
46 | + | then cooper2 | |
47 | + | else false) | |
48 | + | then true | |
49 | + | else if (alice1) | |
50 | + | then cooper3 | |
51 | + | else false) | |
52 | + | then true | |
53 | + | else if (alice2) | |
54 | + | then cooper1 | |
55 | + | else false) | |
56 | + | then true | |
57 | + | else if (alice2) | |
58 | + | then cooper3 | |
59 | + | else false) | |
60 | + | then true | |
61 | + | else if (alice3) | |
62 | + | then cooper1 | |
63 | + | else false) | |
64 | + | then true | |
65 | + | else if (alice3) | |
66 | + | then cooper2 | |
67 | + | else false | |
68 | + | let bobAndCooper = if (if (if (if (if (if (cooper1) | |
69 | + | then bob2 | |
70 | + | else false) | |
71 | + | then true | |
72 | + | else if (cooper1) | |
73 | + | then bob3 | |
74 | + | else false) | |
75 | + | then true | |
76 | + | else if (cooper2) | |
77 | + | then bob1 | |
78 | + | else false) | |
79 | + | then true | |
80 | + | else if (cooper2) | |
81 | + | then bob3 | |
82 | + | else false) | |
83 | + | then true | |
84 | + | else if (cooper3) | |
85 | + | then bob1 | |
86 | + | else false) | |
87 | + | then true | |
88 | + | else if (cooper3) | |
89 | + | then bob2 | |
90 | + | else false | |
91 | + | match tx { | |
92 | + | case _ => | |
93 | + | if (if (aliceAndBob) | |
94 | + | then true | |
95 | + | else aliceAndCooper) | |
96 | + | then true | |
97 | + | else bobAndCooper | |
98 | + | } | |
99 | + | } | |
100 | + |
github/deemru/w8io/026f985 20.08 ms ◑