tx · B6K5DU7NKXukdG67okgByjMMj53o5iAKRjUDi8mYePT1 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc: -1.00000000 Waves 2019.03.14 14:58 [535761] smart asset 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc > SELF 0.00000000 wwww
{ "type": 15, "id": "B6K5DU7NKXukdG67okgByjMMj53o5iAKRjUDi8mYePT1", "fee": 100000000, "feeAssetId": null, "timestamp": 1552564690043, "version": 1, "sender": "3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc", "senderPublicKey": "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T", "proofs": [ "4Nq8K5x5aGZDNcoFeBU6z85SN7ay7Y78XNtV9cAbwQFRWyFhgcSEJwskUE2z51pkSCJ43w4BHqYooEMH542Eejms" ], "assetId": "7oLX12jK33FqBoeqipBNbbVwdXNjDffp1SZvNf5MsSMP", "script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAU/UUEAAAACnN0YXJ0UHJpY2UAAAAAAAABhqAEAAAACGludGVydmFsCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAADwEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAADwAAAAAAAAAADwAAAAAAAAAA+gEAAAABHBhc3MAAAAAFO51IwAEAAAAA3ZhbAAAAAAAAIlUQAQAAAAHQVNpZ25lZAIAAAArV0hGWkwyc2VEemM0Y2dIRXk1alQ3TFN0dDV4cHF6dFZmQjU4VnhoaGk4VAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAJYAAAAAQgFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5BQAAAAdBU2lnbmVkBgQAAAAEZGF5cwkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAALc3RhcnRI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dGlvbgQAAAABdAUAAAAHJG1hdGNoMAMJAAAAAAAAAgkAAlgAAAABCAUAAAABdAAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAB0FTaWduZWQGBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAF0AAAAD3NlbmRlclB1YmxpY0tleQUAAAAHQVNpZ25lZAYHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAMJAAAAAAAAAgkAAlgAAAABCAUAAAABdAAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAB0FTaWduZWQGBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAZU2V0QXNzZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAMJAAAAAAAAAgkAAlgAAAABCAUAAAABdAAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAB0FTaWduZWQGBwkAAAIAAAABAgAAACpUcmFuc2FjdGlvbiBpcyBub3QgYWxsb3dlZCBieSB0b2tlbi1zY3JpcHQ57PDq", "chainId": 84, "height": 535761, "spentComplexity": 0 } View: original | compacted Prev: none Next: DCJtxS8X3YC3JAhMxwXym9ySpkeCE4vk9zADjVkb1ucr Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 1 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let startHeight = 1375557 | |
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 false) | |
19 | + | then (exp >= (t.sellOrder.expiration - t.sellOrder.timestamp)) | |
20 | + | else false) | |
21 | + | then (exp >= (t.buyOrder.expiration - t.buyOrder.timestamp)) | |
22 | + | else { | |
23 | + | let buy = sigVerify(t.buyOrder.bodyBytes, t.buyOrder.proofs[0], t.buyOrder.senderPublicKey) | |
24 | + | if (buy) | |
25 | + | then true | |
26 | + | else if ((t.amount >= pass)) | |
27 | + | then if ((t.price > val)) | |
28 | + | then true | |
29 | + | else throw("price => 0.09") | |
30 | + | else throw("make buy => 369") | |
31 | + | } | |
32 | + | } | |
33 | + | case t: TransferTransaction => | |
34 | + | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
35 | + | then true | |
36 | + | else false | |
37 | + | case t: ReissueTransaction => | |
38 | + | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
39 | + | then true | |
40 | + | else false | |
41 | + | case t: BurnTransaction => | |
42 | + | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
43 | + | then true | |
44 | + | else false | |
45 | + | case t: MassTransferTransaction => | |
46 | + | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
47 | + | then true | |
48 | + | else false | |
49 | + | case t: SetAssetScriptTransaction => | |
50 | + | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
51 | + | then true | |
52 | + | else false | |
53 | + | case _ => | |
54 | + | throw("Transaction is not allowed by token-script") | |
55 | + | } |
github/deemru/w8io/026f985 15.94 ms ◑