tx · 93jpbXgycguPdeT9VkqmLxs13SmMRN6Qef4mNrCENPP5
3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg: -1.00400000 Waves
2019.08.04 17:52 [616278] smart asset 3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg > SELF 0.00000000 OZOTOP
{
"type": 15,
"id": "93jpbXgycguPdeT9VkqmLxs13SmMRN6Qef4mNrCENPP5",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1564930314684,
"version": 1,
"sender": "3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg",
"senderPublicKey": "BJB5QS4iQna1z8idKb5QQ5cACUmNgxzHc81Y7AW6ZZY7",
"proofs": [
"2BCF1hL9Hj7gvdy72fYMGYnQmgWAZ19vGN4ybdFFsNbW8NbTC9uCurRMAVNTc8JDU2jGfE1pDf6hRzqTgEnDd3TP"
],
"assetId": "7oBrNTupD7DbgdpcmmbgPnFwPThRTBW88MCJvushcSRc",
"script": "base64:AwQAAAAOY29tcGFueUFkZGVyc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTYuGsQ23svLn7f1jEHvOAXUrYrcXeFFwsEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAARleFR4BQAAAAckbWF0Y2gwBAAAAAtwcmVzZWxsVGltZQkAAGYAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAOY29tcGFueUFkZGVyc3MCAAAADmVuZFByZXNlbGxUaW1lCAUAAAAEZXhUeAAAAAl0aW1lc3RhbXAEAAAAD3RydWVTZW5kZXJPcmRlcgkBAAAAAiE9AAAAAggIBQAAAARleFR4AAAACXNlbGxPcmRlcgAAAAZzZW5kZXIFAAAADmNvbXBhbnlBZGRlcnNzBAAAAAtpc0Ftb3VudEJ1eQkAAGYAAAACCAgFAAAABGV4VHgAAAAIYnV5T3JkZXIAAAAGYW1vdW50AAAAAAAAAAAAAwMDBQAAAA90cnVlU2VuZGVyT3JkZXIFAAAAC2lzQW1vdW50QnV5BwUAAAALcHJlc2VsbFRpbWUHBgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAAZgAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAA5jb21wYW55QWRkZXJzcwIAAAAOZW5kUHJlc2VsbFRpbWUIBQAAAAF0AAAACXRpbWVzdGFtcAMJAAAAAAAAAggFAAAAAXQAAAAGc2VuZGVyBQAAAA5jb21wYW55QWRkZXJzcwYJAAAAAAAAAggFAAAAAXQAAAAJcmVjaXBpZW50BQAAAA5jb21wYW55QWRkZXJzcwYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnNjBQAAAAckbWF0Y2gwCQAAAAAAAAIIBQAAAAJzYwAAAAZzZW5kZXIFAAAADmNvbXBhbnlBZGRlcnNzB/m7VNo=",
"chainId": 84,
"height": 616278,
"spentComplexity": 0
}
View: original | compacted
Prev: 5X1RCCgWNR1aCLM1F3uP3QVcZEtKaoRZpex5nHSuMpiF
Next: DkM9mw6rpJCTDc1rtV9HKCejEdYAgpQoXmsVpJq2gyFs
Diff:
Old | New | | Differences |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case exTx: ExchangeTransaction => |
---|
6 | 6 | | let presellTime = (extract(getInteger(companyAdderss, "endPresellTime")) > exTx.timestamp) |
---|
7 | | - | let trueSenderOrder = if ((exTx.buyOrder.sender != exTx.sellOrder.sender)) |
---|
8 | | - | then if (if ((exTx.buyOrder.sender != companyAdderss)) |
---|
9 | | - | then true |
---|
10 | | - | else (exTx.buyOrder.sender == companyAdderss)) |
---|
11 | | - | then true |
---|
12 | | - | else (exTx.sellOrder.sender == companyAdderss) |
---|
13 | | - | else false |
---|
14 | | - | if (presellTime) |
---|
15 | | - | then trueSenderOrder |
---|
16 | | - | else false |
---|
| 7 | + | let trueSenderOrder = (exTx.sellOrder.sender != companyAdderss) |
---|
| 8 | + | let isAmountBuy = (exTx.buyOrder.amount > 0) |
---|
| 9 | + | if (if (if (trueSenderOrder) |
---|
| 10 | + | then isAmountBuy |
---|
| 11 | + | else false) |
---|
| 12 | + | then presellTime |
---|
| 13 | + | else false) |
---|
| 14 | + | then true |
---|
| 15 | + | else true |
---|
17 | 16 | | case t: TransferTransaction => |
---|
18 | 17 | | if ((extract(getInteger(companyAdderss, "endPresellTime")) > t.timestamp)) |
---|
19 | 18 | | then if ((t.sender == companyAdderss)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let companyAdderss = Address(base58'3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg') |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case exTx: ExchangeTransaction => |
---|
6 | 6 | | let presellTime = (extract(getInteger(companyAdderss, "endPresellTime")) > exTx.timestamp) |
---|
7 | | - | let trueSenderOrder = if ((exTx.buyOrder.sender != exTx.sellOrder.sender)) |
---|
8 | | - | then if (if ((exTx.buyOrder.sender != companyAdderss)) |
---|
9 | | - | then true |
---|
10 | | - | else (exTx.buyOrder.sender == companyAdderss)) |
---|
11 | | - | then true |
---|
12 | | - | else (exTx.sellOrder.sender == companyAdderss) |
---|
13 | | - | else false |
---|
14 | | - | if (presellTime) |
---|
15 | | - | then trueSenderOrder |
---|
16 | | - | else false |
---|
| 7 | + | let trueSenderOrder = (exTx.sellOrder.sender != companyAdderss) |
---|
| 8 | + | let isAmountBuy = (exTx.buyOrder.amount > 0) |
---|
| 9 | + | if (if (if (trueSenderOrder) |
---|
| 10 | + | then isAmountBuy |
---|
| 11 | + | else false) |
---|
| 12 | + | then presellTime |
---|
| 13 | + | else false) |
---|
| 14 | + | then true |
---|
| 15 | + | else true |
---|
17 | 16 | | case t: TransferTransaction => |
---|
18 | 17 | | if ((extract(getInteger(companyAdderss, "endPresellTime")) > t.timestamp)) |
---|
19 | 18 | | then if ((t.sender == companyAdderss)) |
---|
20 | 19 | | then true |
---|
21 | 20 | | else (t.recipient == companyAdderss) |
---|
22 | 21 | | else true |
---|
23 | 22 | | case sc: SetAssetScriptTransaction => |
---|
24 | 23 | | (sc.sender == companyAdderss) |
---|
25 | 24 | | case _ => |
---|
26 | 25 | | false |
---|
27 | 26 | | } |
---|