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