tx · BAx1SGeVh7kgchwPoPjtqojvTMgTZGRpb1XwTZz6M5hg

3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz:  -1.00000000 Waves

2019.09.12 23:30 [673422] smart asset 3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz > SELF 0.00000000 time3

{ "type": 15, "id": "BAx1SGeVh7kgchwPoPjtqojvTMgTZGRpb1XwTZz6M5hg", "fee": 100000000, "feeAssetId": null, "timestamp": 1568320234191, "version": 1, "sender": "3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz", "senderPublicKey": "8xbFEr8yZ5HF64v8tiadoqScjuYSatXx8ceugsivh1zn", "proofs": [ "2kjgirmvx95yFETRYGyqRQLEfnJ7Npsqto62JWGsQo8uX9e5BHCSY36yv1J6RAiUtGjT2WkbyVhpHHj7eep3oUZG" ], "assetId": "J6C8iuvmPWE7erepvWeYQisAy6p2Wf1uYVB2cVqriC7", "script": "base64:AgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAABHR4SWQIBQAAAAF0AAAACmF0dGFjaG1lbnQEAAAAC3RyYW5zYWN0aW9uCQAD6AAAAAEJAQAAAAdleHRyYWN0AAAAAQgFAAAAAXQAAAAHYXNzZXRJZAQAAAAHJG1hdGNoMQUAAAALdHJhbnNhY3Rpb24DCQAAAQAAAAIFAAAAByRtYXRjaDECAAAAEElzc3VlVHJhbnNhY3Rpb24EAAAAB2lzc3VlVHgFAAAAByRtYXRjaDEEAAAAE3RyYW5zYWN0aW9uQnlJc3N1ZXIJAAAAAAAAAggFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5CAUAAAAHaXNzdWVUeAAAAA9zZW5kZXJQdWJsaWNLZXkEAAAACXJlY2VpdmVUeAkAA+gAAAABBQAAAAR0eElkBAAAAAckbWF0Y2gyBQAAAAlyZWNlaXZlVHgDAwkAAAEAAAACBQAAAAckbWF0Y2gyAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMgIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAAFcmVjVHgFAAAAByRtYXRjaDIEAAAAE3JlY2VpdmVkQmxvY2tOdW1iZXIJAQAAAAdleHRyYWN0AAAAAQkAA+kAAAABCAUAAAAFcmVjVHgAAAACaWQEAAAAGnJlY2VpdmVkQXNzZXRJbkxhc3ROQmxvY2tzCQAAZgAAAAIAAAAAAAAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAABNyZWNlaXZlZEJsb2NrTnVtYmVyAwkBAAAAASEAAAABBQAAABpyZWNlaXZlZEFzc2V0SW5MYXN0TkJsb2NrcwkAAAIAAAABAgAAAD1Zb3UgZ290IHBvdGF0byBsb25nIHRpbWUgYWdvLCBub3cgeW91IGhhdmUgdG8gcGF5IDEgV0FWRVMgZmVlAwUAAAAacmVjZWl2ZWRBc3NldEluTGFzdE5CbG9ja3MGAwkBAAAAASEAAAABBQAAABN0cmFuc2FjdGlvbkJ5SXNzdWVyBwYJAAACAAAAAQIAAAAfUmVjZWl2ZSB0eCBzaG91bGQgYmUgYSB0cmFuc2ZlcgkAAAIAAAABAgAAAAlOb3QgaXNzdWUGg39qsg==", "chainId": 84, "height": 673422, "spentComplexity": 0 } View: original | compacted Prev: 2PtNSsHzVNg2D7KpvHkmyLwyurjvvpJAQuGtEQpMC2Yt Next: 5SPMfKjknpBtWvAQAd8rB4Hvk1dneGbVi5btmqgfGVNz Diff:
OldNewDifferences
1010 let receiveTx = transactionById(txId)
1111 match receiveTx {
1212 case recTx: MassTransferTransaction|TransferTransaction =>
13- let transactionByIssuers = (recTx.senderPublicKey == issueTx.senderPublicKey)
1413 let receivedBlockNumber = extract(transactionHeightById(recTx.id))
1514 let receivedAssetInLastNBlocks = (2 > (height - receivedBlockNumber))
1615 if (!(receivedAssetInLastNBlocks))
1716 then throw("You got potato long time ago, now you have to pay 1 WAVES fee")
1817 else if (receivedAssetInLastNBlocks)
1918 then true
20- else if (transactionByIssuers)
21- then true
22- else false
19+ else if (!(transactionByIssuer))
20+ then false
21+ else true
2322 case _ =>
2423 throw("Receive tx should be a transfer")
2524 }
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)
1413 let receivedBlockNumber = extract(transactionHeightById(recTx.id))
1514 let receivedAssetInLastNBlocks = (2 > (height - receivedBlockNumber))
1615 if (!(receivedAssetInLastNBlocks))
1716 then throw("You got potato long time ago, now you have to pay 1 WAVES fee")
1817 else if (receivedAssetInLastNBlocks)
1918 then true
20- else if (transactionByIssuers)
21- then true
22- else false
19+ else if (!(transactionByIssuer))
20+ then false
21+ else true
2322 case _ =>
2423 throw("Receive tx should be a transfer")
2524 }
2625 case _ =>
2726 throw("Not issue")
2827 }
2928 case _ =>
3029 true
3130 }

github/deemru/w8io/169f3d6 
24.10 ms