tx · 8yhKc3sGRVk1MJQgzTmicjyDcakHZCLLQNqrGVAgFyy 3N8KMNYKj7ofWznfupc9Najt93rhp1NBTwH: -0.01000000 Waves 2022.01.04 15:19 [1864136] smart account 3N8KMNYKj7ofWznfupc9Najt93rhp1NBTwH > SELF 0.00000000 Waves
{ "type": 13, "id": "8yhKc3sGRVk1MJQgzTmicjyDcakHZCLLQNqrGVAgFyy", "fee": 1000000, "feeAssetId": null, "timestamp": 1641298849264, "version": 2, "chainId": 84, "sender": "3N8KMNYKj7ofWznfupc9Najt93rhp1NBTwH", "senderPublicKey": "21mJxj7hNi8Pmo95Eg4GfBA2PSDcSNkEKzJCKTArwcDL", "proofs": [ "Fw1nJLPCB4vocixuqE27sSaJ3Tuj2CLLNJC7DgMvZXhNBs5HSHs6VneyXX1KYczR9tcsRQqs6iHAL9Gsw9ueZx7" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAAAAAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAJZmlyc3RVc2VyAQAAACAPDcm8P3falLJfjIJCZidsLBY2uSkvsPYE9nxVDug+VwQAAAAKc2Vjb25kVXNlcgEAAAAg6WCmA+zPqAEDNdbeJCCVC46gM7jEmXg89NM3kT6O80IEAAAACXRoaXJkVXNlcgEAAAAg6IKSt7EWHUzGM86iLcy0OdeSzlUOXgvvkqWf28jkRloEAAAAD2ZpcnN0VXNlclNpZ25lZAMDAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAACWZpcnN0VXNlcgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAlmaXJzdFVzZXIGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAA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AAAAAAEJAABnAAAAAgUAAAAPc2lnbmF0dXJlc0NvdW50AAAAAAAAAAACQFY3mg==", "height": 1864136, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | @Verifier(tx) | |
8 | + | func verify () = { | |
9 | + | let firstUser = base58'21mJxj7hNi8Pmo95Eg4GfBA2PSDcSNkEKzJCKTArwcDL' | |
10 | + | let secondUser = base58'Gi1UG5XTroxD6gaZkPGBDKgwV4WytWyBx3zYWuUx9mqb' | |
11 | + | let thirdUser = base58'Ged4o2TYV3pPcVg8sbvDoZAZZVDZciap7hRNYUZnfwtu' | |
12 | + | let firstUserSigned = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
13 | + | then true | |
14 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
15 | + | then true | |
16 | + | else sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
17 | + | then 1 | |
18 | + | else 0 | |
19 | + | let secondUserSigned = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
20 | + | then true | |
21 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
22 | + | then true | |
23 | + | else sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
24 | + | then 1 | |
25 | + | else 0 | |
26 | + | let thirdUserSigned = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
27 | + | then true | |
28 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
29 | + | then true | |
30 | + | else sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
31 | + | then 1 | |
32 | + | else 0 | |
33 | + | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
34 | + | match tx { | |
35 | + | case t: DataTransaction => | |
36 | + | (signaturesCount >= 1) | |
37 | + | case _ => | |
38 | + | (signaturesCount >= 2) | |
39 | + | } | |
40 | + | } | |
41 | + |
github/deemru/w8io/026f985 13.45 ms ◑