tx · 9dDQ5rWzX5J3KFjgVraAKut7R5bcqzmJKysgZL6Axoen
3MtBiuMMRHZnRXwVr4137hjVNtV3DTYiYtH: -0.01000000 Waves
2019.06.24 20:11 [556457] smart account 3MtBiuMMRHZnRXwVr4137hjVNtV3DTYiYtH > SELF 0.00000000 Waves
{
"type": 13,
"id": "9dDQ5rWzX5J3KFjgVraAKut7R5bcqzmJKysgZL6Axoen",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1561396312818,
"version": 1,
"sender": "3MtBiuMMRHZnRXwVr4137hjVNtV3DTYiYtH",
"senderPublicKey": "2qfc1BQRHSNoKXtqveUfZCLFq63wJF5Zjyd97XgZAGba",
"proofs": [
"3rR7E7FvhVB2dpv9G3SagV5mLNiKQpWCYAPy2C3kPFq9FSaoMQm2s2UUUM3TfrD6j8xorMVAv1CcYbZZ3gJJJxKU"
],
"script": "base64:AwQAAAAIYnV5ZXJQdWIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwIAAAAFYnV5ZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAAFYnV5ZXIFAAAAByRtYXRjaDAFAAAABWJ1eWVyAgAAAAAEAAAACXNlbGxlclB1YgQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzAgAAAAZzZWxsZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAAGc2VsbGVyBQAAAAckbWF0Y2gwBQAAAAZzZWxsZXICAAAAAAQAAAAQdmVyaWZpY2F0aW9uSGFzaAQAAAAHJG1hdGNoMAkABBwAAAACBQAAAAR0aGlzAgAAABB2ZXJpZmljYXRpb25IYXNoAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAARoYXNoBQAAAAckbWF0Y2gwBQAAAARoYXNoCQABmwAAAAECAAAAAAQAAAANYmxvY2tVbmxvY2tlZAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAA1ibG9ja1VubG9ja2VkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAmJuBQAAAAckbWF0Y2gwBQAAAAJibgAAAAAAAAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAB9AAAAAMIBQAAAAF0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABdAAAAAZwcm9vZnMAAAAAAAAAAAAJAAJZAAAAAQUAAAAIYnV5ZXJQdWIGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkAAlkAAAABBQAAAAlzZWxsZXJQdWIHpx66zA==",
"chainId": 84,
"height": 556457,
"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 getString(this, "buyer") { |
---|
| 4 | + | case buyer: String => |
---|
| 5 | + | buyer |
---|
| 6 | + | case _ => |
---|
| 7 | + | "" |
---|
| 8 | + | } |
---|
| 9 | + | let sellerPub = match getString(this, "seller") { |
---|
| 10 | + | case seller: String => |
---|
| 11 | + | seller |
---|
| 12 | + | case _ => |
---|
| 13 | + | "" |
---|
| 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 (sigVerify(t.bodyBytes, t.proofs[0], fromBase58String(buyerPub))) |
---|
| 30 | + | then true |
---|
| 31 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(sellerPub)) |
---|
| 32 | + | case _ => |
---|
| 33 | + | false |
---|
| 34 | + | } |
---|