2019.04.18 20:59 [1488439] smart account 3PGZeXfoHHTVvxbn35Cc9WDYsJDpLVossBG > SELF 0.00000000 Waves
{ "type": 13, "id": "CCruQowmrjJdpRFzgdZ4UvQFgXu4yExSwjiqLkfKZ1oh", "fee": 1400000, "feeAssetId": null, "timestamp": 1555610468825, "version": 1, "sender": "3PGZeXfoHHTVvxbn35Cc9WDYsJDpLVossBG", "senderPublicKey": "FLoFbkYbVTH2Bef5FHLXC7MxWMfkX8ur1aYKbvbYW6nv", "proofs": [ "5DPPSv4bLNwyi3wiu7Tb2BxiYcTuVpigPMFvQFbHrbu7eiKQZjmSqyZF58DhheNixhPcEVgHNP5oJgnPKHLcc2wS" ], "script": "base64:AgQAAAAIdmVyaWZpZWQJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHIFAAAAByRtYXRjaDAEAAAABHRoaXMIBQAAAAJ0cgAAAAZzZW5kZXIEAAAADmFjY291bnRiYWxhbmNlCQEAAAAMd2F2ZXNCYWxhbmNlAAAAAQUAAAAEdGhpcwQAAAAIdHhoZWlnaHQJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAR0aGlzAgAAAAh0eGhlaWdodAQAAAAKbWluYmFsYW5jZQkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABHRoaXMCAAAAA2JhbAMJAABmAAAAAgUAAAAKbWluYmFsYW5jZQUAAAAOYWNjb3VudGJhbGFuY2UJAAACAAAAAQIAAAALTG93IGJhbGFuY2UDCQAAZgAAAAIFAAAACHR4aGVpZ2h0BQAAAAZoZWlnaHQJAAACAAAAAQIAAAAiVHJhZGluZyBub3QgYWxsb3dlZCBvbiB0aGlzIGhlaWdodAUAAAAIdmVyaWZpZWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABU9yZGVyBAAAAAJvcgUAAAAHJG1hdGNoMAQAAAAEdGhpcwgFAAAAAm9yAAAABnNlbmRlcgQAAAAOYWNjb3VudGJhbGFuY2UJAQAAAAx3YXZlc0JhbGFuY2UAAAABBQAAAAR0aGlzBAAAAAh0eGhlaWdodAkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABHRoaXMCAAAACHR4aGVpZ2h0BAAAAAptaW5iYWxhbmNlCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAEdGhpcwIAAAADYmFsAwkAAGYAAAACBQAAAAptaW5iYWxhbmNlBQAAAA5hY2NvdW50YmFsYW5jZQkAAAIAAAABAgAAAAtMb3cgYmFsYW5jZQMJAABmAAAAAgUAAAAIdHhoZWlnaHQFAAAABmhlaWdodAkAAAIAAAABAgAAACJUcmFkaW5nIG5vdCBhbGxvd2VkIG9uIHRoaXMgaGVpZ2h0BQAAAAh2ZXJpZmllZAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAVvdGhlcgUAAAAHJG1hdGNoMAUAAAAIdmVyaWZpZWQJAQAAAAV0aHJvdwAAAACln0RD", "chainId": 87, "height": 1488439, "spentComplexity": 0 } View: original | compacted Prev: 8XsybBtz7QPojrzYvp2XyZ8iMbQRfvreAMkxqFZ1bjvm Next: 9qEdYi8RjjzdAsC5jBJSYFJPuiSmWK4c1mB7LgVYnCWY Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | let accountbalance = wavesBalance(this) | |
8 | 8 | let txheight = extract(getInteger(this, "txheight")) | |
9 | 9 | let minbalance = extract(getInteger(this, "bal")) | |
10 | - | if ( | |
11 | - | then | |
12 | - | else (txheight > height)) | |
13 | - | then throw(" | |
14 | - | else verified | |
10 | + | if ((minbalance > accountbalance)) | |
11 | + | then throw("Low balance") | |
12 | + | else if ((txheight > height)) | |
13 | + | then throw("Trading not allowed on this height") | |
14 | + | else verified | |
15 | 15 | case or: Order => | |
16 | - | if ((tx.sender != or.sender)) | |
17 | - | then { | |
18 | - | let this = or.sender | |
19 | - | let accountbalance = wavesBalance(this) | |
20 | - | let txheight = extract(getInteger(this, "txheight")) | |
21 | - | let minbalance = extract(getInteger(this, "bal")) | |
22 | - | if (if ((minbalance > accountbalance)) | |
23 | - | then true | |
24 | - | else (txheight > height)) | |
25 | - | then throw("Trading not allowed") | |
26 | - | else verified | |
27 | - | } | |
28 | - | else verified | |
16 | + | let this = or.sender | |
17 | + | let accountbalance = wavesBalance(this) | |
18 | + | let txheight = extract(getInteger(this, "txheight")) | |
19 | + | let minbalance = extract(getInteger(this, "bal")) | |
20 | + | if ((minbalance > accountbalance)) | |
21 | + | then throw("Low balance") | |
22 | + | else if ((txheight > height)) | |
23 | + | then throw("Trading not allowed on this height") | |
24 | + | else verified | |
29 | 25 | case other: ExchangeTransaction|SetScriptTransaction|DataTransaction => | |
30 | 26 | verified | |
31 | 27 | case _ => |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 2 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let verified = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
4 | 4 | match tx { | |
5 | 5 | case tr: TransferTransaction => | |
6 | 6 | let this = tr.sender | |
7 | 7 | let accountbalance = wavesBalance(this) | |
8 | 8 | let txheight = extract(getInteger(this, "txheight")) | |
9 | 9 | let minbalance = extract(getInteger(this, "bal")) | |
10 | - | if ( | |
11 | - | then | |
12 | - | else (txheight > height)) | |
13 | - | then throw(" | |
14 | - | else verified | |
10 | + | if ((minbalance > accountbalance)) | |
11 | + | then throw("Low balance") | |
12 | + | else if ((txheight > height)) | |
13 | + | then throw("Trading not allowed on this height") | |
14 | + | else verified | |
15 | 15 | case or: Order => | |
16 | - | if ((tx.sender != or.sender)) | |
17 | - | then { | |
18 | - | let this = or.sender | |
19 | - | let accountbalance = wavesBalance(this) | |
20 | - | let txheight = extract(getInteger(this, "txheight")) | |
21 | - | let minbalance = extract(getInteger(this, "bal")) | |
22 | - | if (if ((minbalance > accountbalance)) | |
23 | - | then true | |
24 | - | else (txheight > height)) | |
25 | - | then throw("Trading not allowed") | |
26 | - | else verified | |
27 | - | } | |
28 | - | else verified | |
16 | + | let this = or.sender | |
17 | + | let accountbalance = wavesBalance(this) | |
18 | + | let txheight = extract(getInteger(this, "txheight")) | |
19 | + | let minbalance = extract(getInteger(this, "bal")) | |
20 | + | if ((minbalance > accountbalance)) | |
21 | + | then throw("Low balance") | |
22 | + | else if ((txheight > height)) | |
23 | + | then throw("Trading not allowed on this height") | |
24 | + | else verified | |
29 | 25 | case other: ExchangeTransaction|SetScriptTransaction|DataTransaction => | |
30 | 26 | verified | |
31 | 27 | case _ => | |
32 | 28 | throw() | |
33 | 29 | } |
github/deemru/w8io/786bc32 66.06 ms ◑