tx · 5hPNLaNnxZd8RtAbuC11TniDEykLwLj7165tuFB6Nfbd 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc: -1.00000000 Waves 2019.03.14 16:27 [535844] smart asset 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc > SELF 0.00000000 oooo
{ "type": 15, "id": "5hPNLaNnxZd8RtAbuC11TniDEykLwLj7165tuFB6Nfbd", "fee": 100000000, "feeAssetId": null, "timestamp": 1552570090655, "version": 1, "sender": "3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc", "senderPublicKey": "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T", "proofs": [ "3tTnWisKdirFLqEQ24pfugyKo12QUyPMmvUYcgrteSzXhvkLUXt37S2w3iHTKgVddCKxtsykhNggXgx4AV45SYrC" ], "assetId": "6QXK7NxXhJtzvABLDKmzYH3V9NfedLAEjSb4Cnvk43wv", "script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAILPwEAAAACnN0YXJ0UHJpY2UAAAAAAAABhqAEAAAACGludGVydmFsCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAADwEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAADwAAAAAAAAAADwAAAAAAAAAA+gEAAAABHBhc3MAAAAAFO51IwAEAAAAA3ZhbAAAAAAAAIlUQAQAAAAHQVNpZ25lZAIAAAArV0hGWkwyc2VEemM0Y2dIRXk1alQ3TFN0dDV4cHF6dFZmQjU4VnhoaGk4VAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAJYAAAAAQgFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5BQAAAAdBU2lnbmVkBgQAAAAEc2VsbAkAAfQAAAADCAgFAAAAAXQAAAAJc2VsbE9yZGVyAAAACWJv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kFAAAAB0FTaWduZWQGBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAF0AAAAD3NlbmRlclB1YmxpY0tleQUAAAAHQVNpZ25lZAYHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAJYAAAAAQgFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5BQAAAAdBU2lnbmVkBgcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAF0AAAAD3NlbmRlclB1YmxpY0tleQUAAAAHQVNpZ25lZAYHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAF0AAAAD3NlbmRlclB1YmxpY0tleQUAAAAHQVNpZ25lZAYHCQAAAgAAAAECAAAAKlRyYW5zYWN0aW9uIGlzIG5vdCBhbGxvd2VkIGJ5IHRva2VuLXNjcmlwdNjl8/E=", "chainId": 84, "height": 535844, "spentComplexity": 0 } View: original | compacted Prev: GwTVHeseKkpjeNsu6W3KWVYmf1Rr7zyuvPcMJPUnw3tY Next: 5SexWB5iMJa99VKwPcqntF1bFaJadWsJm5Hk1ZAfVyDu Diff:
Old | New | Differences | |
---|---|---|---|
12 | 12 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
13 | 13 | then true | |
14 | 14 | else { | |
15 | + | let sell = sigVerify(t.sellOrder.bodyBytes, t.sellOrder.proofs[0], t.sellOrder.senderPublicKey) | |
16 | + | let buy = sigVerify(t.buyOrder.bodyBytes, t.buyOrder.proofs[0], t.buyOrder.senderPublicKey) | |
15 | 17 | let days = ((height - startHeight) / interval) | |
16 | 18 | if (if (if ((t.price >= (startPrice * (1 + (days * days))))) | |
17 | 19 | then !(isDefined(t.sellOrder.assetPair.priceAsset)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let startHeight = 535804 | |
4 | 4 | let startPrice = 100000 | |
5 | 5 | let interval = (24 * 60) | |
6 | 6 | let exp = ((60 * 60) * 1000) | |
7 | 7 | let pass = 89900000000 | |
8 | 8 | let val = 9000000 | |
9 | 9 | let ASigned = "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T" | |
10 | 10 | match tx { | |
11 | 11 | case t: ExchangeTransaction => | |
12 | 12 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
13 | 13 | then true | |
14 | 14 | else { | |
15 | + | let sell = sigVerify(t.sellOrder.bodyBytes, t.sellOrder.proofs[0], t.sellOrder.senderPublicKey) | |
16 | + | let buy = sigVerify(t.buyOrder.bodyBytes, t.buyOrder.proofs[0], t.buyOrder.senderPublicKey) | |
15 | 17 | let days = ((height - startHeight) / interval) | |
16 | 18 | if (if (if ((t.price >= (startPrice * (1 + (days * days))))) | |
17 | 19 | then !(isDefined(t.sellOrder.assetPair.priceAsset)) | |
18 | 20 | else throw("001")) | |
19 | 21 | then (exp >= (t.sellOrder.expiration - t.sellOrder.timestamp)) | |
20 | 22 | else throw("24")) | |
21 | 23 | then (exp >= (t.buyOrder.expiration - t.buyOrder.timestamp)) | |
22 | 24 | else throw("25") | |
23 | 25 | } | |
24 | 26 | case t: TransferTransaction => | |
25 | 27 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
26 | 28 | then true | |
27 | 29 | else false | |
28 | 30 | case t: ReissueTransaction => | |
29 | 31 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
30 | 32 | then true | |
31 | 33 | else false | |
32 | 34 | case t: BurnTransaction => | |
33 | 35 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
34 | 36 | then true | |
35 | 37 | else false | |
36 | 38 | case t: MassTransferTransaction => | |
37 | 39 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
38 | 40 | then true | |
39 | 41 | else false | |
40 | 42 | case t: SetAssetScriptTransaction => | |
41 | 43 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
42 | 44 | then true | |
43 | 45 | else false | |
44 | 46 | case _ => | |
45 | 47 | throw("Transaction is not allowed by token-script") | |
46 | 48 | } |
github/deemru/w8io/026f985 17.19 ms ◑