tx · CgEA3xn8XVYQMKVNbn7mpY3xaYx5hu7HvDCF9FpvfQ1Z
3MriE7K8w227Uy9UxkUokBWyNEGR2Z2zLwy: -0.01000000 Waves
2019.01.31 15:23 [474443] smart account 3MriE7K8w227Uy9UxkUokBWyNEGR2Z2zLwy > SELF 0.00000000 Waves
{
"type": 13,
"id": "CgEA3xn8XVYQMKVNbn7mpY3xaYx5hu7HvDCF9FpvfQ1Z",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1548937375153,
"version": 1,
"sender": "3MriE7K8w227Uy9UxkUokBWyNEGR2Z2zLwy",
"senderPublicKey": "FwNibYv1gPg7Mz6Q7MsrfoFv8kbo1Nqf2PLZtxmHHdHT",
"proofs": [
"5QCbv3CbyAippRd7Uk17KhUeaDmFhq34UyxKf3ALLyHoadKyXoUax6MkMREVx77eJuS9CWpuehZHNhBeiG6AUHKH"
],
"script": "base64:AQQAAAAGc2VuZGVyAQAAACD8+D10++o/0Iy7tnTxtnxbBUufYDu12cdJ+m/J2cjQcAQAAAAJcmVjaXBpZW50AQAAACAqp+u+oLWarJMjfWGkiimkctlYWj9pGbX1W9T55nSyTQQAAAAIdGltZWxvY2sAAAAAAADN/mAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAADHNlbmRlclNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAZzZW5kZXIAAAAAAAAAAAEAAAAAAAAAAAAEAAAAD3JlY2lwaWVudFNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAlyZWNpcGllbnQAAAAAAAAAAAEAAAAAAAAAAAAEAAAADnRpbWVsb2NrUGFzc2VkCQAAZgAAAAIFAAAABmhlaWdodAUAAAAIdGltZWxvY2sDCQAAAAAAAAIJAABkAAAAAgUAAAAMc2VuZGVyU2lnbmVkBQAAAA9yZWNpcGllbnRTaWduZWQAAAAAAAAAAAIGAwUAAAAOdGltZWxvY2tQYXNzZWQJAAAAAAAAAgUAAAAMc2VuZGVyU2lnbmVkAAAAAAAAAAABBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgZJj8HV",
"chainId": 84,
"height": 474443,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 53iRdKtUmnvY7Skfg5viYEDUgV2nnDKgpttm1AUNNnJA
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 1 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let sender = base58'J2VHWRcFfMeGq3MwWpVaLcqTWBRCyLX9iiD19p2MjSMu' |
---|
| 4 | + | let recipient = base58'3sWdjhHob2AAmL9XVaZKXgTBBqfjJbbvBQG7nW4EDVcY' |
---|
| 5 | + | let timelock = 13500000 |
---|
| 6 | + | match tx { |
---|
| 7 | + | case tx: MassTransferTransaction => |
---|
| 8 | + | let senderSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], sender)) |
---|
| 9 | + | then 1 |
---|
| 10 | + | else 0 |
---|
| 11 | + | let recipientSigned = if (sigVerify(tx.bodyBytes, tx.proofs[1], recipient)) |
---|
| 12 | + | then 1 |
---|
| 13 | + | else 0 |
---|
| 14 | + | let timelockPassed = (height > timelock) |
---|
| 15 | + | if (((senderSigned + recipientSigned) == 2)) |
---|
| 16 | + | then true |
---|
| 17 | + | else if (timelockPassed) |
---|
| 18 | + | then (senderSigned == 1) |
---|
| 19 | + | else false |
---|
| 20 | + | case tx: SetScriptTransaction => |
---|
| 21 | + | true |
---|
| 22 | + | case _ => |
---|
| 23 | + | true |
---|
| 24 | + | } |
---|