tx · ESoXtW9F22rqi8fDNdpXKDG9KMv4Ht3mQsJZyXMj2TES 3MyrEdTUWNqqLexQmQacXrfSBmott7vQgWR: -0.01000000 Waves 2022.03.21 15:28 [1973699] smart account 3MyrEdTUWNqqLexQmQacXrfSBmott7vQgWR > SELF 0.00000000 Waves
{ "type": 13, "id": "ESoXtW9F22rqi8fDNdpXKDG9KMv4Ht3mQsJZyXMj2TES", "fee": 1000000, "feeAssetId": null, "timestamp": 1647865744895, "version": 2, "chainId": 84, "sender": "3MyrEdTUWNqqLexQmQacXrfSBmott7vQgWR", "senderPublicKey": "FAdqPkNeKgEgC7ZsXgoNCpZCSnMcwG1HTkTi42NuAPS7", "proofs": [ "pXKgkrJk5J1GgtadUpegRH9UaZCXpJ56WcEh3auUbgdXdRYnFBmmqeSf6kVDonGXKUaiET9Cz1fSXXQcU2q8WzK" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAAAAAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAJZmlyc3RVc2VyAQAAACBuT4oPa8yL4OSk8clgaLFmFXMPPZM7L/zWhfh8lzxmbQQAAAAKc2Vjb25kVXNlcgEAAAAgZDQIeswO0Ct6yNvvR4sCoJb0E5TcIWUY+F1TId/upk0EAAAACXRoaXJkVXNlcgEAAAAgoLkIn0FXoFgqoR9CmI5isS8VjSMQ/T/p6acRMzN6xU8EAAAAD2ZpcnN0VXNlclNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAlmaXJzdFVzZXIAAAAAAAAAAAEDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAJZmlyc3RVc2VyAAAAAAAAAAABAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAA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c2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAGcAAAACBQAAAA9zaWduYXR1cmVzQ291bnQAAAAAAAAAAAEJAABnAAAAAgUAAAAPc2lnbmF0dXJlc0NvdW50AAAAAAAAAAACcRlLxQ==", "height": 1973699, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 2D4g4CpA9Y66Fern3m7oBqKrTSLiBEe2BfuHRNnLQaXn 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'8RcC7vJKeW7W4t9h9RDaW6fSW8AwCdHiQSRQgEnYkWNG' | |
10 | + | let secondUser = base58'7k9niHWH2k5HMhAM7aAL28BE5b6E25pmDL5aFYPuuGL4' | |
11 | + | let thirdUser = base58'BpPsq6cFsjcimA2m68Pju4NLbckLaGZbRBXq5Y1dNCir' | |
12 | + | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
13 | + | then 1 | |
14 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
15 | + | then 1 | |
16 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
17 | + | then 1 | |
18 | + | else 0 | |
19 | + | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
20 | + | then 1 | |
21 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
22 | + | then 1 | |
23 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
24 | + | then 1 | |
25 | + | else 0 | |
26 | + | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
27 | + | then 1 | |
28 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
29 | + | then 1 | |
30 | + | else if (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/169f3d6 15.40 ms ◑