tx · SyV8XzXjkR41nPah4yKmGAYDTaVkDuSmwcXtM5DgVuH
3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM: -1.00000000 Waves
2019.03.23 17:49 [549125] smart asset 3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM > SELF 0.00000000 Token
{
"type": 15,
"id": "SyV8XzXjkR41nPah4yKmGAYDTaVkDuSmwcXtM5DgVuH",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553352654703,
"version": 1,
"sender": "3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM",
"senderPublicKey": "3u3aeyi8aVT6ouJPSgpXyNzPcKAfm4eggtkD1PRJKFpi",
"proofs": [
"5gUMPDyQTACYmmxibJLJb17cgXu4avrW7EwvuaxupLc49aVSExBoud3Q1LgPNCEfHvXbDrC3Ra5JvbYqpXCwxXJP"
],
"assetId": "5WEgwFcP4VXp4Gh34XgdZrbREHZmWVPRWaQ4eAbRj68p",
"script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU40mqx+iKFqCBRTN5WZYD5tUciBjTsOJ0BAAAAAZtYXN0ZXIJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNOQWRzUXdzRTY2eXFxS0hCdmlDNGJZcU5mYzcyUFRvMm9NBAAAAAdhc3NldElkAQAAACBC7BGgO/A+wbqMtKRPTS5WqqrfDvFXME8Dq9DLdj3oiQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAmV4BQAAAAckbWF0Y2gwBAAAAARzZWxsCQAB9AAAAAMICAUAAAACZXgAAAAJc2VsbE9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAgFAAAAAmV4AAAACXNlbGxPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAICAUAAAACZXgAAAAJc2VsbE9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQQAAAAIbWluUHJpY2UJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAZpc3N1ZXICAAAACG1pblByaWNlBAAAAAVhbGVydAkBAAAAB2V4dHJhY3QAAAABCQAEHQAAAAIFAAAABmlzc3VlcgIAAAAFYWxlcnQDBQAAAARzZWxsBAAAAAZwZXJtaXQJAAAAAAAAAggFAAAAAmV4AAAABnNlbmRlcgUAAAAGbWFzdGVyAwkBAAAAASEAAAABBQAAAAZwZXJtaXQDCQAAZgAAAAIIBQAAAAJleAAAAAVwcmljZQUAAAAIbWluUHJpY2UGCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAFYWxlcnQCAAAABnNlbGw6IAkAAaUAAAABBQAAAARzZWxsAgAAAAdwZXJtaXQ6CQABpQAAAAEFAAAABnBlcm1pdAYGBm70xwY=",
"chainId": 84,
"height": 549125,
"spentComplexity": 0
}
View: original | compacted
Prev: 81bjCx6G2XuABqHwRfQg1d2jQLuwBrddXvpJSXLDR4XE
Next: ELNb86dg9F3JSgPHW3W4Rgejj5Vgan3285FnWYJ2ohok
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let issuer = Address(base58'3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM') |
---|
4 | | - | let adminPublicKey = base58'3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM' |
---|
| 4 | + | let master = addressFromString("3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM") |
---|
5 | 5 | | let assetId = base58'5WEgwFcP4VXp4Gh34XgdZrbREHZmWVPRWaQ4eAbRj68p' |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case ex: ExchangeTransaction => |
---|
|
10 | 10 | | let alert = extract(getString(issuer, "alert")) |
---|
11 | 11 | | if (sell) |
---|
12 | 12 | | then { |
---|
13 | | - | let permit = sigVerify(ex.sellOrder.bodyBytes, ex.sellOrder.proofs[0], adminPublicKey) |
---|
| 13 | + | let permit = (ex.sender == master) |
---|
14 | 14 | | if (!(permit)) |
---|
15 | 15 | | then if ((ex.price > minPrice)) |
---|
16 | 16 | | then true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let issuer = Address(base58'3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM') |
---|
4 | | - | let adminPublicKey = base58'3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM' |
---|
| 4 | + | let master = addressFromString("3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM") |
---|
5 | 5 | | let assetId = base58'5WEgwFcP4VXp4Gh34XgdZrbREHZmWVPRWaQ4eAbRj68p' |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case ex: ExchangeTransaction => |
---|
8 | 8 | | let sell = sigVerify(ex.sellOrder.bodyBytes, ex.sellOrder.proofs[0], ex.sellOrder.senderPublicKey) |
---|
9 | 9 | | let minPrice = extract(getInteger(issuer, "minPrice")) |
---|
10 | 10 | | let alert = extract(getString(issuer, "alert")) |
---|
11 | 11 | | if (sell) |
---|
12 | 12 | | then { |
---|
13 | | - | let permit = sigVerify(ex.sellOrder.bodyBytes, ex.sellOrder.proofs[0], adminPublicKey) |
---|
| 13 | + | let permit = (ex.sender == master) |
---|
14 | 14 | | if (!(permit)) |
---|
15 | 15 | | then if ((ex.price > minPrice)) |
---|
16 | 16 | | then true |
---|
17 | 17 | | else throw(((((alert + "sell: ") + toString(sell)) + "permit:") + toString(permit))) |
---|
18 | 18 | | else true |
---|
19 | 19 | | } |
---|
20 | 20 | | else true |
---|
21 | 21 | | case _ => |
---|
22 | 22 | | true |
---|
23 | 23 | | } |
---|