tx · 8joSxCgkgCUDRtAAFWKf97MKQTaudjHgoFVv2PLiSA4x
3Mp1UwXnLxks1iAZatJXxQyTu4sSC15RdbT: -0.01000000 Waves
2019.12.23 18:47 [821836] smart account 3Mp1UwXnLxks1iAZatJXxQyTu4sSC15RdbT > SELF 0.00000000 Waves
{
"type": 13,
"id": "8joSxCgkgCUDRtAAFWKf97MKQTaudjHgoFVv2PLiSA4x",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1577115765033,
"version": 1,
"sender": "3Mp1UwXnLxks1iAZatJXxQyTu4sSC15RdbT",
"senderPublicKey": "2TZi4FQc5zvG3bJprYSVXrmuDGoFFd2bfDbXSpbYnSLf",
"proofs": [
"wC1CThFNnzGspx4yTZfwqD6LNAguTSgkBEud1zzkW4cMBzF7ro3Ha32enDheSwK1cqG1indeRpt1KJysXAKZHGg"
],
"script": "base64:AgQAAAAKZXhwaXJhdGlvbgAAAAFpXj9KgAQAAAAFcHJpY2UAAAAAADuaygAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARwYWlyCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyBAAAAA50cmFkZWRGb3JXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAARwYWlyAAAAC2Ftb3VudEFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAAKcHJpY2VBc3NldAMFAAAADnRyYWRlZEZvcldhdmVzCQAAAAAAAAIIBQAAAAFlAAAABXByaWNlBQAAAAVwcmljZQcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAABYgUAAAAHJG1hdGNoMAkAAGYAAAACCAUAAAABYgAAAAl0aW1lc3RhbXAFAAAACmV4cGlyYXRpb24DAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgYHjPLyDw==",
"chainId": 84,
"height": 821836,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 2 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let expiration = 1552064400000 |
---|
| 4 | + | let price = 1000000000 |
---|
| 5 | + | match tx { |
---|
| 6 | + | case e: ExchangeTransaction => |
---|
| 7 | + | let pair = e.buyOrder.assetPair |
---|
| 8 | + | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
| 9 | + | then true |
---|
| 10 | + | else !(isDefined(pair.priceAsset)) |
---|
| 11 | + | if (tradedForWaves) |
---|
| 12 | + | then (e.price == price) |
---|
| 13 | + | else false |
---|
| 14 | + | case b: BurnTransaction => |
---|
| 15 | + | (b.timestamp > expiration) |
---|
| 16 | + | case _: MassTransferTransaction|TransferTransaction => |
---|
| 17 | + | true |
---|
| 18 | + | case _ => |
---|
| 19 | + | false |
---|
| 20 | + | } |
---|