tx · E29P26DxwvVnDJNBRLhSZdm9pu3oF4r89eynk95yhMDX
3Mqg7LwuHRY3GQjz8dbCFvHDQb33gWNFaSA: -1.40000000 Waves
2019.01.16 12:18 [452366] smart asset 3Mqg7LwuHRY3GQjz8dbCFvHDQb33gWNFaSA > SELF 0 LottoTicket
{
"type": 15,
"id": "E29P26DxwvVnDJNBRLhSZdm9pu3oF4r89eynk95yhMDX",
"fee": 140000000,
"feeAssetId": null,
"timestamp": 1547630233669,
"version": 1,
"sender": "3Mqg7LwuHRY3GQjz8dbCFvHDQb33gWNFaSA",
"senderPublicKey": "Eu5ZUHQswbdySVdGsEw7y2MrKCJGPvjkFtyf1YVoJLfH",
"proofs": [
"5exyCjbPH9pFW1ScxPaSLZZDVtFgtzN6ndhBXoNzHMxLDstwcuSB87pbu7FwhCb9UMTEsxYYixToZtBk4vRDjjTt"
],
"assetId": "4eSq39asHCNpvvbGVBDzyw4d5KkfnKLfJpbU6oUCpKZK",
"script": "base64:AQQAAAAFbG90dG8BAAAAIM5/SbYnQBvmeWPjlbnQqjja9sn0WmqR6XNSaCaPDtkgBAAAAAlsb3R0b0FkZHIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAABWxvdHRvBAAAAAZpc09wZW4JAAQbAAAAAgUAAAAJbG90dG9BZGRyAgAAAAZpc09wZW4EAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQDAwMJAAAAAAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQUAAAAFbG90dG8GAwMJAAAAAAAAAggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQAAAAAABfXhAAkAAAAAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABmFtb3VudAAAAAAAAAAAAQcJAAAAAAAAAgUAAAAGaXNPcGVuBgcGCQAAAAAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAAVwcmljZQAAI4byb8EAAAYHBgZsSNbe",
"chainId": 84,
"height": 452366,
"spentComplexity": 0
}
View: original | compacted
Prev: 93GQU4wtoF9LX6BrLdneLiZmjwYsyfmyACVGsNUPKkpF
Next: 3N7zoEM1DfCCd7rKwmYMLGMsVVx2MoRSEBjKrRAiWZRq
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 ((e.buyOrder.senderPublicKey == lotto)) |
---|
| 9 | + | then if (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)) |
---|
16 | 18 | | then true |
---|
17 | 19 | | else false |
---|
18 | 20 | | 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 ((e.buyOrder.senderPublicKey == lotto)) |
---|
| 9 | + | then if (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)) |
---|
16 | 18 | | then true |
---|
17 | 19 | | else false |
---|
18 | 20 | | else true |
---|
19 | 21 | | case _ => |
---|
20 | 22 | | true |
---|
21 | 23 | | } |
---|