tx · 3N7zoEM1DfCCd7rKwmYMLGMsVVx2MoRSEBjKrRAiWZRq
3Mqg7LwuHRY3GQjz8dbCFvHDQb33gWNFaSA: -1.40000000 Waves
2019.01.16 12:18 [452366] smart asset 3Mqg7LwuHRY3GQjz8dbCFvHDQb33gWNFaSA > SELF 0 LottoTicket
{
"type": 15,
"id": "3N7zoEM1DfCCd7rKwmYMLGMsVVx2MoRSEBjKrRAiWZRq",
"fee": 140000000,
"feeAssetId": null,
"timestamp": 1547630361726,
"version": 1,
"sender": "3Mqg7LwuHRY3GQjz8dbCFvHDQb33gWNFaSA",
"senderPublicKey": "Eu5ZUHQswbdySVdGsEw7y2MrKCJGPvjkFtyf1YVoJLfH",
"proofs": [
"4SQMyJeqk81uEtjf63uwYFHmqvxS44jQuHZiysRo29yCUHTtkxtySe1Y6Am6C3xgYzrPRzU9nMbXew4Qv7AxKfWw"
],
"assetId": "4eSq39asHCNpvvbGVBDzyw4d5KkfnKLfJpbU6oUCpKZK",
"script": "base64:AQQAAAAFbG90dG8BAAAAIM5/SbYnQBvmeWPjlbnQqjja9sn0WmqR6XNSaCaPDtkgBAAAAAlsb3R0b0FkZHIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAABWxvdHRvBAAAAAZpc09wZW4JAAQbAAAAAgUAAAAJbG90dG9BZGRyAgAAAAZpc09wZW4EAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQDAwkAAAAAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAPc2VuZGVyUHVibGljS2V5BQAAAAVsb3R0bwYDAwkAAAAAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlAAAAAAAF9eEACQAAAAAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGYW1vdW50AAAAAAAAAAABBwkAAAAAAAACBQAAAAZpc09wZW4GBwYHBgaHjn4C",
"chainId": 84,
"height": 452366,
"spentComplexity": 0
}
View: original | compacted
Prev: E29P26DxwvVnDJNBRLhSZdm9pu3oF4r89eynk95yhMDX
Next: none
Diff:
Old | New | | Differences |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case e: ExchangeTransaction => |
---|
8 | 8 | | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
9 | | - | then if (if (if ((e.buyOrder.senderPublicKey == lotto)) |
---|
| 9 | + | then if (if ((e.buyOrder.senderPublicKey == lotto)) |
---|
10 | 10 | | then true |
---|
11 | 11 | | else if (if ((e.sellOrder.price == 100000000)) |
---|
12 | 12 | | then (e.sellOrder.amount == 1) |
---|
13 | 13 | | else false) |
---|
14 | 14 | | then (isOpen == true) |
---|
15 | 15 | | else false) |
---|
16 | | - | then true |
---|
17 | | - | else (e.buyOrder.price == 10000000000000000)) |
---|
18 | 16 | | then true |
---|
19 | 17 | | else false |
---|
20 | 18 | | else true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let lotto = base58'Eu5ZUHQswbdySVdGsEw7y2MrKCJGPvjkFtyf1YVoJLfH' |
---|
4 | 4 | | let lottoAddr = addressFromPublicKey(lotto) |
---|
5 | 5 | | let isOpen = getBoolean(lottoAddr, "isOpen") |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case e: ExchangeTransaction => |
---|
8 | 8 | | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
9 | | - | then if (if (if ((e.buyOrder.senderPublicKey == lotto)) |
---|
| 9 | + | then if (if ((e.buyOrder.senderPublicKey == lotto)) |
---|
10 | 10 | | then true |
---|
11 | 11 | | else if (if ((e.sellOrder.price == 100000000)) |
---|
12 | 12 | | then (e.sellOrder.amount == 1) |
---|
13 | 13 | | else false) |
---|
14 | 14 | | then (isOpen == true) |
---|
15 | 15 | | else false) |
---|
16 | | - | then true |
---|
17 | | - | else (e.buyOrder.price == 10000000000000000)) |
---|
18 | 16 | | then true |
---|
19 | 17 | | else false |
---|
20 | 18 | | else true |
---|
21 | 19 | | case _ => |
---|
22 | 20 | | true |
---|
23 | 21 | | } |
---|