tx · FGF7xU6gmWGYLLvE6MFNLzjtBx1q6CqGhzP6g9eQzB9W
3N2zxYnJpnK29faWNfVTiSrm5X7XbBzFvi5: -1.00000000 Waves
2019.03.18 03:27 [540954] smart asset 3N2zxYnJpnK29faWNfVTiSrm5X7XbBzFvi5 > SELF 0.00 vostok1
{
"type": 15,
"id": "FGF7xU6gmWGYLLvE6MFNLzjtBx1q6CqGhzP6g9eQzB9W",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1552868840864,
"version": 1,
"sender": "3N2zxYnJpnK29faWNfVTiSrm5X7XbBzFvi5",
"senderPublicKey": "Gm42EEXhEp68FtQj9r6yRmVExRiLYPwgWW4465b1pRmF",
"proofs": [
"S2n7X911cDRWcddzjZKw8TQsS5izD4nRWWs6AF92DnVyGGU9t96BQmG9KigoUE9aVjwkKgiP1DJotQDS2je6nGx"
],
"assetId": "AbBjDq6kzNspSUt5zAJBzQMncfsTsZznyiHpZUTiiQkt",
"script": "base64:AgQAAAALbmFtaUFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNOMnp4WW5KcG5LMjlmYVdOZlZUaVNybTVYN1hiQnpGdmk1BAAAAAVwcmljZQAAAAAAAVMVjgQAAAAOdHJhZGVkRm9yV2F2ZXMJAAAAAAAAAgUAAAAFcHJpY2UFAAAABXByaWNlBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAMDCQAAAAAAAAIICAUAAAABdAAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyBQAAAAtuYW1pQWRkcmVzcwYJAAAAAAAAAggIBQAAAAF0AAAACGJ1eU9yZGVyAAAABnNlbmRlcgUAAAALbmFtaUFkZHJlc3MGAwMJAAAAAAAAAggIBQAAAAF0AAAACXNlbGxPcmRlcgAAAAZzZW5kZXIFAAAAC25hbWlBZGRyZXNzBgkAAAAAAAACCAgFAAAAAXQAAAAIYnV5T3JkZXIAAAAGc2VuZGVyCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAAAlpc0RlZmluZWQGCQAAAAAAAAIICAUAAAABdAAAAAhidXlPcmRlcgAAAAlvcmRlclR5cGUFAAAAA0J1eQYtd5p2",
"chainId": 84,
"height": 540954,
"spentComplexity": 0
}
View: original | compacted
Prev: PeghgV1Uk3W1kYmvTbvMvPxF8UaXs4WU1Jkt6RvSAYV
Next: none
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let namiAddress = addressFromString("3N2zxYnJpnK29faWNfVTiSrm5X7XbBzFvi5") |
---|
4 | 4 | | let price = 22222222 |
---|
5 | | - | let tradedForWaves = Buy |
---|
| 5 | + | let tradedForWaves = (price == price) |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case t: ExchangeTransaction => |
---|
8 | | - | if ((t.sellOrder.sender == namiAddress)) |
---|
| 8 | + | if (if ((t.sellOrder.sender == namiAddress)) |
---|
9 | 9 | | then true |
---|
10 | | - | else (t.buyOrder.sender == namiAddress) |
---|
11 | | - | case e: ExchangeTransaction => |
---|
12 | | - | (e.buyOrder.orderType == Buy) |
---|
| 10 | + | else (t.buyOrder.sender == namiAddress)) |
---|
| 11 | + | then true |
---|
| 12 | + | else if (if ((t.sellOrder.sender == namiAddress)) |
---|
| 13 | + | then true |
---|
| 14 | + | else (t.buyOrder.sender == addressFromString("isDefined"))) |
---|
| 15 | + | then true |
---|
| 16 | + | else (t.buyOrder.orderType == Buy) |
---|
13 | 17 | | case _ => |
---|
14 | 18 | | true |
---|
15 | 19 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let namiAddress = addressFromString("3N2zxYnJpnK29faWNfVTiSrm5X7XbBzFvi5") |
---|
4 | 4 | | let price = 22222222 |
---|
5 | | - | let tradedForWaves = Buy |
---|
| 5 | + | let tradedForWaves = (price == price) |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case t: ExchangeTransaction => |
---|
8 | | - | if ((t.sellOrder.sender == namiAddress)) |
---|
| 8 | + | if (if ((t.sellOrder.sender == namiAddress)) |
---|
9 | 9 | | then true |
---|
10 | | - | else (t.buyOrder.sender == namiAddress) |
---|
11 | | - | case e: ExchangeTransaction => |
---|
12 | | - | (e.buyOrder.orderType == Buy) |
---|
| 10 | + | else (t.buyOrder.sender == namiAddress)) |
---|
| 11 | + | then true |
---|
| 12 | + | else if (if ((t.sellOrder.sender == namiAddress)) |
---|
| 13 | + | then true |
---|
| 14 | + | else (t.buyOrder.sender == addressFromString("isDefined"))) |
---|
| 15 | + | then true |
---|
| 16 | + | else (t.buyOrder.orderType == Buy) |
---|
13 | 17 | | case _ => |
---|
14 | 18 | | true |
---|
15 | 19 | | } |
---|