tx · 2yurDjS2RUDgcZiR6niecUPsuMB6BPrME92VjDDYZZxu 3MqmJsoCQFwvVQt3gBKE7FAXAXXqabM74xa: -0.01000000 Waves 2019.07.11 04:00 [580344] smart account 3MqmJsoCQFwvVQt3gBKE7FAXAXXqabM74xa > SELF 0.00000000 Waves
{ "type": 13, "id": "2yurDjS2RUDgcZiR6niecUPsuMB6BPrME92VjDDYZZxu", "fee": 1000000, "feeAssetId": null, "timestamp": 1562806857547, "version": 1, "sender": "3MqmJsoCQFwvVQt3gBKE7FAXAXXqabM74xa", "senderPublicKey": "GmV4p8vCafjTGwVaAhtDX35aje2UPAJYs5gnLQNHBqCS", "proofs": [ "2VsdPZ71WwF1FZFZyxSPEjNW2E5jBkHa9TBV9yimTrsLeVmvPjCzv9AgB8Q9pKkJttNg6S4qr7AVF6dSf5C1mFZE" ], "script": "base64:AwQAAAAIYnV5ZXJQdWIJAQAAAAdleHRyYWN0AAAAAQkABB0AAAACBQAAAAR0aGlzAgAAAAVidXllcgQAAAAJc2VsbGVyUHViCQEAAAAHZXh0cmFjdAAAAAEJAAQdAAAAAgUAAAAEdGhpcwIAAAAGc2VsbGVyBAAAABB2ZXJpZmljYXRpb25IYXNoCQEAAAAHZXh0cmFjdAAAAAEJAAQcAAAAAgUAAAAEdGhpcwIAAAAQdmVyaWZpY2F0aW9uSGFzaAQAAAANYmxvY2tVbmxvY2tlZAkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABHRoaXMCAAAADWJsb2NrVW5sb2NrZWQEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwAwkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEFAAAACGJ1eWVyUHViBgMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEFAAAACXNlbGxlclB1YgMJAABmAAAAAggFAAAACWxhc3RCbG9jawAAAAZoZWlnaHQFAAAADWJsb2NrVW5sb2NrZWQGCQAAAAAAAAIJAAH1AAAAAQgFAAAAAXQAAAAKYXR0YWNobWVudAUAAAAQdmVyaWZpY2F0aW9uSGFzaAcHsd5/GQ==", "chainId": 84, "height": 580344, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let buyerPub = extract(getString(this, "buyer")) | |
4 | + | let sellerPub = extract(getString(this, "seller")) | |
5 | + | let verificationHash = extract(getBinary(this, "verificationHash")) | |
6 | + | let blockUnlocked = extract(getInteger(this, "blockUnlocked")) | |
7 | + | match tx { | |
8 | + | case t: TransferTransaction => | |
9 | + | if (sigVerify(t.bodyBytes, t.proofs[0], fromBase58String(buyerPub))) | |
10 | + | then true | |
11 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(sellerPub))) | |
12 | + | then if ((lastBlock.height > blockUnlocked)) | |
13 | + | then true | |
14 | + | else (keccak256(t.attachment) == verificationHash) | |
15 | + | else false | |
16 | + | case _ => | |
17 | + | false | |
18 | + | } |
github/deemru/w8io/03bedc9 16.14 ms ◑![]()