tx · EicqbHY9AiRxHAASNgHEWaAu75GStuVyM1kEYtreBwhn
3NBLhM7i817HXNmUfMtuSmXNn67FvCrZqXw: -1.04000000 Waves
2019.01.17 10:03 [453694] smart asset 3NBLhM7i817HXNmUfMtuSmXNn67FvCrZqXw > SELF 0 LottoTicket
{
"type": 15,
"id": "EicqbHY9AiRxHAASNgHEWaAu75GStuVyM1kEYtreBwhn",
"fee": 104000000,
"feeAssetId": null,
"timestamp": 1547708605732,
"version": 1,
"sender": "3NBLhM7i817HXNmUfMtuSmXNn67FvCrZqXw",
"senderPublicKey": "CraQbwqtaZQENZfzqHN11a2iqMjHnDRpw58iLLTYbdCC",
"proofs": [
"56UkPS5Rc4U3Wh8mNR3kcHpNKzinYS58SzTncEmgCGNG9cosYhoxebG6x6QtWhTQKsG9aVDoNRHtZ1HxfA4BRMtg"
],
"assetId": "HdsJ9SFENUBseSk7gEQuwNL9QbPvV63AEiLnMLiSbFQL",
"script": "base64:AQQAAAAFbG90dG8BAAAAILAjygfSHbXfHiMn6tAvUu2cUpzxdZpqsP8WxLgk84lZBAAAAAd3YXZlbGV0AAAAAAAF9eEABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0AwMDCQAAAAAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkFAAAABWxvdHRvCQAAAAAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAPc2VuZGVyUHVibGljS2V5BwYDAwkAAAAAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlBQAAAAd3YXZlbGV0CQAAAAAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGYW1vdW50AAAAAAAAAAABBwkBAAAAAiE9AAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQUAAAAFbG90dG8HBgMJAAAAAAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAABXByaWNlBQAAAAd3YXZlbGV0BgQAAAAKcmFuZG9tQnl0ZQkAAMkAAAACCQABkQAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAAAAAAAAAAAAEEAAAAA3JicwkAAlgAAAABBQAAAApyYW5kb21CeXRlBwYGOMTrzg==",
"chainId": 84,
"height": 453694,
"spentComplexity": 0
}
View: original | compacted
Prev: GzZYQTSDDcQg7ycJV7ZZ4zGp1JVm27VyU6FBGYDgDndy
Next: 5VrWJGNCZbh5msxf7TL7z6qBqz1bKMZ1cJoH6KAFAmaS
Diff:
Old | New | | Differences |
---|
9 | 9 | | then (e.buyOrder.senderPublicKey == e.sellOrder.senderPublicKey) |
---|
10 | 10 | | else false) |
---|
11 | 11 | | then true |
---|
12 | | - | else if ((e.sellOrder.price == wavelet)) |
---|
| 12 | + | else if (if ((e.sellOrder.price == wavelet)) |
---|
13 | 13 | | then (e.sellOrder.amount == 1) |
---|
| 14 | + | else false) |
---|
| 15 | + | then (e.buyOrder.senderPublicKey != lotto) |
---|
14 | 16 | | else false) |
---|
15 | 17 | | then true |
---|
16 | 18 | | else if ((e.buyOrder.price == wavelet)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let lotto = base58'CraQbwqtaZQENZfzqHN11a2iqMjHnDRpw58iLLTYbdCC' |
---|
4 | 4 | | let wavelet = 100000000 |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case e: ExchangeTransaction => |
---|
7 | 7 | | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
8 | 8 | | then if (if (if ((e.buyOrder.senderPublicKey == lotto)) |
---|
9 | 9 | | then (e.buyOrder.senderPublicKey == e.sellOrder.senderPublicKey) |
---|
10 | 10 | | else false) |
---|
11 | 11 | | then true |
---|
12 | | - | else if ((e.sellOrder.price == wavelet)) |
---|
| 12 | + | else if (if ((e.sellOrder.price == wavelet)) |
---|
13 | 13 | | then (e.sellOrder.amount == 1) |
---|
| 14 | + | else false) |
---|
| 15 | + | then (e.buyOrder.senderPublicKey != lotto) |
---|
14 | 16 | | else false) |
---|
15 | 17 | | then true |
---|
16 | 18 | | else if ((e.buyOrder.price == wavelet)) |
---|
17 | 19 | | then true |
---|
18 | 20 | | else { |
---|
19 | 21 | | let randomByte = take(e.buyOrder.proofs[0], 1) |
---|
20 | 22 | | let rbs = toBase58String(randomByte) |
---|
21 | 23 | | false |
---|
22 | 24 | | } |
---|
23 | 25 | | else true |
---|
24 | 26 | | case _ => |
---|
25 | 27 | | true |
---|
26 | 28 | | } |
---|