tx · 2PtNSsHzVNg2D7KpvHkmyLwyurjvvpJAQuGtEQpMC2Yt

3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz:  -1.00000000 Waves

2019.09.12 23:26 [673416] smart asset 3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz > SELF 0.00000000 time3

{ "type": 15, "id": "2PtNSsHzVNg2D7KpvHkmyLwyurjvvpJAQuGtEQpMC2Yt", "fee": 100000000, "feeAssetId": null, "timestamp": 1568319969278, "version": 1, "sender": "3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz", "senderPublicKey": "8xbFEr8yZ5HF64v8tiadoqScjuYSatXx8ceugsivh1zn", "proofs": [ "28HiqPrHRXF8PpWKEAGCSi2uxpj7bYgnSKDo945uLqcNn7v3K3N6YPaaBjnoMzspz6ieFhaf79Y3RsMZBbQbgnK1" ], "assetId": "J6C8iuvmPWE7erepvWeYQisAy6p2Wf1uYVB2cVqriC7", "script": "base64:AgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAABHR4SWQIBQAAAAF0AAAACmF0dGFjaG1lbnQEAAAAC3RyYW5zYWN0aW9uCQAD6AAAAAEJAQAAAAdleHRyYWN0AAAAAQgFAAAAAXQAAAAHYXNzZXRJZAQAAAAHJG1hdGNoMQUAAAALdHJhbnNhY3Rpb24DCQAAAQAAAAIFAAAAByRtYXRjaDECAAAAEElzc3VlVHJhbnNhY3Rpb24EAAAAB2lzc3VlVHgFAAAAByRtYXRjaDEEAAAAE3RyYW5zYWN0aW9uQnlJc3N1ZXIJAAAAAAAAAggFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5CAUAAAAHaXNzdWVUeAAAAA9zZW5kZXJQdWJsaWNLZXkEAAAACXJlY2VpdmVUeAkAA+gAAAABBQAAAAR0eElkBAAAAAckbWF0Y2gyBQAAAAlyZWNlaXZlVHgDAwkAAAEAAAACBQAAAAckbWF0Y2gyAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMgIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAAFcmVjVHgFAAAAByRtYXRjaDIEAAAAFHRyYW5zYWN0aW9uQnlJc3N1ZXJzCQAAAAAAAAIIBQAAAAVyZWNUeAAAAA9zZW5kZXJQdWJsaWNLZXkIBQAAAAdpc3N1ZVR4AAAAD3NlbmRlclB1YmxpY0tleQQAAAATcmVjZWl2ZWRCbG9ja051bWJlcgkBAAAAB2V4dHJhY3QAAAABCQAD6QAAAAEIBQAAAAVyZWNUeAAAAAJpZAQAAAAacmVjZWl2ZWRBc3NldEluTGFzdE5CbG9ja3MJAABmAAAAAgAAAAAAAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAE3JlY2VpdmVkQmxvY2tOdW1iZXIDCQEAAAABIQAAAAEFAAAAGnJlY2VpdmVkQXNzZXRJbkxhc3ROQmxvY2tzCQAAAgAAAAECAAAAPVlvdSBnb3QgcG90YXRvIGxvbmcgdGltZSBhZ28sIG5vdyB5b3UgaGF2ZSB0byBwYXkgMSBXQVZFUyBmZWUDBQAAABpyZWNlaXZlZEFzc2V0SW5MYXN0TkJsb2NrcwYDBQAAABR0cmFuc2FjdGlvbkJ5SXNzdWVycwYHCQAAAgAAAAECAAAAH1JlY2VpdmUgdHggc2hvdWxkIGJlIGEgdHJhbnNmZXIJAAACAAAAAQIAAAAJTm90IGlzc3VlBgcFUrs=", "chainId": 84, "height": 673416, "spentComplexity": 0 } View: original | compacted Prev: 75UV5Z8LGmusgeLXdGST7EuBmo8h46tnYzDof1R65aWG Next: BAx1SGeVh7kgchwPoPjtqojvTMgTZGRpb1XwTZz6M5hg Diff:
OldNewDifferences
1010 let receiveTx = transactionById(txId)
1111 match receiveTx {
1212 case recTx: MassTransferTransaction|TransferTransaction =>
13+ let transactionByIssuers = (recTx.senderPublicKey == issueTx.senderPublicKey)
1314 let receivedBlockNumber = extract(transactionHeightById(recTx.id))
14- let receivedAssetInLastNBlocks = if ((5 >= (height - receivedBlockNumber)))
15- then (t.assetId == recTx.assetId)
16- else false
15+ let receivedAssetInLastNBlocks = (2 > (height - receivedBlockNumber))
1716 if (!(receivedAssetInLastNBlocks))
1817 then throw("You got potato long time ago, now you have to pay 1 WAVES fee")
1918 else if (receivedAssetInLastNBlocks)
2019 then true
21- else if (transactionByIssuer)
20+ else if (transactionByIssuers)
2221 then true
2322 else false
2423 case _ =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 match tx {
44 case t: TransferTransaction =>
55 let txId = t.attachment
66 let transaction = transactionById(extract(t.assetId))
77 match transaction {
88 case issueTx: IssueTransaction =>
99 let transactionByIssuer = (t.senderPublicKey == issueTx.senderPublicKey)
1010 let receiveTx = transactionById(txId)
1111 match receiveTx {
1212 case recTx: MassTransferTransaction|TransferTransaction =>
13+ let transactionByIssuers = (recTx.senderPublicKey == issueTx.senderPublicKey)
1314 let receivedBlockNumber = extract(transactionHeightById(recTx.id))
14- let receivedAssetInLastNBlocks = if ((5 >= (height - receivedBlockNumber)))
15- then (t.assetId == recTx.assetId)
16- else false
15+ let receivedAssetInLastNBlocks = (2 > (height - receivedBlockNumber))
1716 if (!(receivedAssetInLastNBlocks))
1817 then throw("You got potato long time ago, now you have to pay 1 WAVES fee")
1918 else if (receivedAssetInLastNBlocks)
2019 then true
21- else if (transactionByIssuer)
20+ else if (transactionByIssuers)
2221 then true
2322 else false
2423 case _ =>
2524 throw("Receive tx should be a transfer")
2625 }
2726 case _ =>
2827 throw("Not issue")
2928 }
3029 case _ =>
3130 true
3231 }

github/deemru/w8io/169f3d6 
25.14 ms