tx · AGpWNL9dRaUxpJQhU469BSMxSVNKpABhkFJFrR7zKmLk
3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9: -1.00000000 Waves
2019.03.18 05:20 [541074] smart asset 3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9 > SELF 0.00000000 serrote
{
"type": 15,
"id": "AGpWNL9dRaUxpJQhU469BSMxSVNKpABhkFJFrR7zKmLk",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1552875634289,
"version": 1,
"sender": "3MtHweJiyA6ikkkPCn4ssqpi4Nokcrf9hT9",
"senderPublicKey": "5HwUTPzUP1wy7djMELX2wLNmasSaARD4kw1xpAyeJw1h",
"proofs": [
"uyeBmCD6mqgRH3135bBB2GvxFxP67XS4mzJ6sCy75oqXcSyhTMQjtBwuxGbRkH9o9CGn3rKDEdLKAnkZSyQisq1"
],
"assetId": "CpMnMP75j2vyK5cGaiVsLTgFTfxgFcFLMnVUshzzeHrA",
"script": "base64:AgQAAAAFcHJpY2UAAAAAAAAAAAEEAAAABmFtb3VudAAAAAAAAAAABQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWEFAAAAByRtYXRjaDAEAAAABHBhaXIICAUAAAABYQAAAAhidXlPcmRlcgAAAAlhc3NldFBhaXIEAAAADnRyYWRlZEZvcldhdmVzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAALYW1vdW50QXNzZXQGCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAEcGFpcgAAAApwcmljZUFzc2V0AwUAAAAOdHJhZGVkRm9yV2F2ZXMJAAAAAAAAAggFAAAAAWEAAAAFcHJpY2UFAAAABXByaWNlBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABYgUAAAAHJG1hdGNoMAkAAAAAAAACCAUAAAABYgAAAAZhbW91bnQFAAAABmFtb3VudAYbTgYF",
"chainId": 84,
"height": 541074,
"spentComplexity": 0
}
View: original | compacted
Prev: 72x76ibkZpjP4xwQa55ESLKcLhgZ5Bq2cUdWMej1Xcgb
Next: 2zn9RTfYkUVDMvg9g5gUXzrxx5EU8XTDcDJWZNVpu835
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let price = 1 |
---|
4 | 4 | | let amount = 5 |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case a: ExchangeTransaction => |
---|
7 | 7 | | let pair = a.buyOrder.assetPair |
---|
8 | 8 | | let tradedForWaves = if (!(isDefined(pair.amountAsset))) |
---|
9 | 9 | | then true |
---|
10 | 10 | | else !(isDefined(pair.priceAsset)) |
---|
11 | 11 | | if (tradedForWaves) |
---|
12 | 12 | | then (a.price == price) |
---|
13 | 13 | | else false |
---|
14 | 14 | | case b: ExchangeTransaction => |
---|
15 | 15 | | (b.amount == amount) |
---|
16 | 16 | | case _ => |
---|
17 | 17 | | true |
---|
18 | 18 | | } |
---|