tx · 5k7WztJ31kt93nUZEESLveicFU1sB4GA7ezHhpf89o58 3Mt3uq6behAKSgx3ctg91xYPSZnXXer8Hsv: -0.01000000 Waves 2019.06.24 18:33 [556358] smart account 3Mt3uq6behAKSgx3ctg91xYPSZnXXer8Hsv > SELF 0.00000000 Waves
{ "type": 13, "id": "5k7WztJ31kt93nUZEESLveicFU1sB4GA7ezHhpf89o58", "fee": 1000000, "feeAssetId": null, "timestamp": 1561390459858, "version": 1, "sender": "3Mt3uq6behAKSgx3ctg91xYPSZnXXer8Hsv", "senderPublicKey": "6WZ213bmG4mXFCLppLq2JhcJffTH72kZwuewqMR1ekAt", "proofs": [ "5seNdxag7R2i3T83gcGvGw5udWszaZRriKLuVNbzxwouJQXFP8Xd8pKemRuo36sohoYvbbQemmwbSLHcG4GKZmPZ" ], "script": "base64:AwQAAAAIYnV5ZXJQdWIEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAFYnV5ZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAABWJ1eWVyBQAAAAckbWF0Y2gwBQAAAAVidXllcgkAAZsAAAABAgAAAAAEAAAACXNlbGxlclB1YgQAAAAHJG1hdGNoMAkABBwAAAACBQAAAAR0aGlzAgAAAAZzZWxsZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAABnNlbGxlcgUAAAAHJG1hdGNoMAUAAAAGc2VsbGVyCQABmwAAAAECAAAAAAQAAAAQdmVyaWZpY2F0aW9uSGFzaAQAAAAHJG1hdGNoMAkABBwAAAACBQAAAAR0aGlzAgAAABB2ZXJpZmljYXRpb25IYXNoAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAARoYXNoBQAAAAckbWF0Y2gwBQAAAARoYXNoCQABmwAAAAECAAAAAAQAAAANYmxvY2tVbmxvY2tlZAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAA1ibG9ja1VubG9ja2VkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAmJuBQAAAAckbWF0Y2gwBQAAAAJibgAAAAAAAAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAAF0AAAAD3NlbmRlclB1YmxpY0tleQUAAAAIYnV5ZXJQdWIJAAH0AAAAAwgFAAAAAXQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAF0AAAABnByb29mcwAAAAAAAAAAAAUAAAAIYnV5ZXJQdWIDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAJc2VsbGVyUHViAwkAAGYAAAACCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAUAAAANYmxvY2tVbmxvY2tlZAYJAAAAAAAAAgkAAfUAAAABCAUAAAABdAAAAAphdHRhY2htZW50BQAAABB2ZXJpZmljYXRpb25IYXNoBwc8hox1", "chainId": 84, "height": 556358, "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 = match getBinary(this, "buyer") { | |
4 | + | case buyer: ByteVector => | |
5 | + | buyer | |
6 | + | case _ => | |
7 | + | toBytes("") | |
8 | + | } | |
9 | + | let sellerPub = match getBinary(this, "seller") { | |
10 | + | case seller: ByteVector => | |
11 | + | seller | |
12 | + | case _ => | |
13 | + | toBytes("") | |
14 | + | } | |
15 | + | let verificationHash = match getBinary(this, "verificationHash") { | |
16 | + | case hash: ByteVector => | |
17 | + | hash | |
18 | + | case _ => | |
19 | + | toBytes("") | |
20 | + | } | |
21 | + | let blockUnlocked = match getInteger(this, "blockUnlocked") { | |
22 | + | case bn: Int => | |
23 | + | bn | |
24 | + | case _ => | |
25 | + | 0 | |
26 | + | } | |
27 | + | match tx { | |
28 | + | case t: TransferTransaction => | |
29 | + | if ((t.senderPublicKey == buyerPub)) | |
30 | + | then sigVerify(t.bodyBytes, t.proofs[0], buyerPub) | |
31 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[0], sellerPub)) | |
32 | + | then if ((lastBlock.height > blockUnlocked)) | |
33 | + | then true | |
34 | + | else (keccak256(t.attachment) == verificationHash) | |
35 | + | else false | |
36 | + | case _ => | |
37 | + | false | |
38 | + | } |
github/deemru/w8io/169f3d6 26.44 ms ◑