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