tx · FK79jYp3VreEKmpQsLD2bvBgASC1omhHaMqqD6UfoKPW
3N7scAYKUXinMXdBLRFJVu7SpWPMNWDN4Yn: -1.00000000 Waves
2019.03.07 22:25 [525969] smart asset 3N7scAYKUXinMXdBLRFJVu7SpWPMNWDN4Yn > SELF 0.00000000 ARKAT2
{
"type": 15,
"id": "FK79jYp3VreEKmpQsLD2bvBgASC1omhHaMqqD6UfoKPW",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1551986734984,
"version": 1,
"sender": "3N7scAYKUXinMXdBLRFJVu7SpWPMNWDN4Yn",
"senderPublicKey": "7XQiLNeBt9NjeipSMMyhb9cU8w217h4afcQS8FN8EM1A",
"proofs": [
"4AS8WDikYX46sbsHBLUikVuWxJWY1anbGCLvGsjtGDtH8E8cvbcoRM9WwuzoXd1mn6Av3KSy17yfZHLyqKkBm1d6"
],
"assetId": "6MDuCXdCWV6PRqJSHkp7PqPuEpt5hRkS1apnQzdRTZUX",
"script": "base64:AQQAAAAFcHJpY2UAAAAAAAABhqAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARwYWlyCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyBAAAAA50cmFkZWRGb3JXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAARwYWlyAAAAC2Ftb3VudEFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAAKcHJpY2VBc3NldAMFAAAADnRyYWRlZEZvcldhdmVzCQAAAAAAAAIIBQAAAAFlAAAABXByaWNlBQAAAAVwcmljZQcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBwakPf2I",
"chainId": 84,
"height": 525969,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: AdDCyMQPLnmVLhsYeTYzx2SNLAaVcgPy8t4VyCCrJE7S
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 1 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let price = 100000 |
---|
| 4 | + | match tx { |
---|
| 5 | + | case e: ExchangeTransaction => |
---|
| 6 | + | let pair = e.buyOrder.assetPair |
---|
| 7 | + | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
| 8 | + | then true |
---|
| 9 | + | else !(isDefined(pair.priceAsset)) |
---|
| 10 | + | if (tradedForWaves) |
---|
| 11 | + | then (e.price == price) |
---|
| 12 | + | else false |
---|
| 13 | + | case _: MassTransferTransaction => |
---|
| 14 | + | false |
---|
| 15 | + | case _ => |
---|
| 16 | + | true |
---|
| 17 | + | } |
---|