tx · 5QkT36QZzgWzEyaLDncEnZXPtDirC5iFbkC2Dt4tv7gL
3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg: -1.00400000 Waves
2019.08.04 16:16 [616181] smart asset 3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg > SELF 0.00000000 OZOTOP
{
"type": 15,
"id": "5QkT36QZzgWzEyaLDncEnZXPtDirC5iFbkC2Dt4tv7gL",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1564924606732,
"version": 1,
"sender": "3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg",
"senderPublicKey": "BJB5QS4iQna1z8idKb5QQ5cACUmNgxzHc81Y7AW6ZZY7",
"proofs": [
"8skDeTgeb3zkpZnybvohHdxmNMocZXi5HhZWMQLnhiyX5miKdhdxfJqUQ7tN77AKzfqoF3KTKMiB6tyHzbpfHbx"
],
"assetId": "7oBrNTupD7DbgdpcmmbgPnFwPThRTBW88MCJvushcSRc",
"script": "base64:AwQAAAAOY29tcGFueUFkZGVyc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTYuGsQ23svLn7f1jEHvOAXUrYrcXeFFwsEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAARleFR4BQAAAAckbWF0Y2gwBAAAAAtwcmVzZWxsVGltZQkAAGYAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAOY29tcGFueUFkZGVyc3MCAAAADmVuZFByZXNlbGxUaW1lCAUAAAAEZXhUeAAAAAl0aW1lc3RhbXAEAAAAD3RydWVTZW5kZXJPcmRlcgMDCQEAAAACIT0AAAACCAgFAAAABGV4VHgAAAAIYnV5T3JkZXIAAAAGc2VuZGVyBQAAAA5jb21wYW55QWRkZXJzcwYJAAAAAAAAAggIBQAAAARleFR4AAAACXNlbGxPcmRlcgAAAAZzZW5kZXIFAAAADmNvbXBhbnlBZGRlcnNzBgkAAAAAAAACCAgFAAAABGV4VHgAAAAIYnV5T3JkZXIAAAAGc2VuZGVyBQAAAA5jb21wYW55QWRkZXJzcwMFAAAAC3ByZXNlbGxUaW1lBQAAAA90cnVlU2VuZGVyT3JkZXIHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwAwkAAGYAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAOY29tcGFueUFkZGVyc3MCAAAADmVuZFByZXNlbGxUaW1lCAUAAAABdAAAAAl0aW1lc3RhbXADCQAAAAAAAAIIBQAAAAF0AAAABnNlbmRlcgUAAAAOY29tcGFueUFkZGVyc3MGCQAAAAAAAAIIBQAAAAF0AAAACXJlY2lwaWVudAUAAAAOY29tcGFueUFkZGVyc3MGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAJzYwUAAAAHJG1hdGNoMAkAAAAAAAACCAUAAAACc2MAAAAGc2VuZGVyBQAAAA5jb21wYW55QWRkZXJzcwf4KQZk",
"chainId": 84,
"height": 616181,
"spentComplexity": 0
}
View: original | compacted
Prev: 4RBERXKvTf4Paj6bkgcCnpizQx7EVftZQ7PmEFvQx7cG
Next: ETtjDeW9xrNjnnhWxk2njBGgky9mEixw9i5ZGbWf8391
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 (if ((exTx.sellOrder.sender == companyAdderss)) |
---|
| 7 | + | let trueSenderOrder = if (if ((exTx.buyOrder.sender != companyAdderss)) |
---|
8 | 8 | | then true |
---|
9 | | - | else (exTx.buyOrder.sender == companyAdderss)) |
---|
| 9 | + | else (exTx.sellOrder.sender == companyAdderss)) |
---|
10 | 10 | | then true |
---|
11 | | - | else (exTx.buyOrder.sender != companyAdderss) |
---|
| 11 | + | else (exTx.buyOrder.sender == companyAdderss) |
---|
12 | 12 | | if (presellTime) |
---|
13 | 13 | | then trueSenderOrder |
---|
14 | 14 | | else false |
---|
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 (if ((exTx.sellOrder.sender == companyAdderss)) |
---|
| 7 | + | let trueSenderOrder = if (if ((exTx.buyOrder.sender != companyAdderss)) |
---|
8 | 8 | | then true |
---|
9 | | - | else (exTx.buyOrder.sender == companyAdderss)) |
---|
| 9 | + | else (exTx.sellOrder.sender == companyAdderss)) |
---|
10 | 10 | | then true |
---|
11 | | - | else (exTx.buyOrder.sender != companyAdderss) |
---|
| 11 | + | else (exTx.buyOrder.sender == companyAdderss) |
---|
12 | 12 | | if (presellTime) |
---|
13 | 13 | | then trueSenderOrder |
---|
14 | 14 | | else false |
---|
15 | 15 | | case t: TransferTransaction => |
---|
16 | 16 | | if ((extract(getInteger(companyAdderss, "endPresellTime")) > t.timestamp)) |
---|
17 | 17 | | then if ((t.sender == companyAdderss)) |
---|
18 | 18 | | then true |
---|
19 | 19 | | else (t.recipient == companyAdderss) |
---|
20 | 20 | | else true |
---|
21 | 21 | | case sc: SetAssetScriptTransaction => |
---|
22 | 22 | | (sc.sender == companyAdderss) |
---|
23 | 23 | | case _ => |
---|
24 | 24 | | false |
---|
25 | 25 | | } |
---|