tx · EFVK4Evj6vY72EE4hKoyohMctC32PSANK4aEc4b9Udme 3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA: -1.00000000 Waves 2019.03.23 17:27 [549107] smart asset 3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA > SELF 0.00000000 A008
{ "type": 15, "id": "EFVK4Evj6vY72EE4hKoyohMctC32PSANK4aEc4b9Udme", "fee": 100000000, "feeAssetId": null, "timestamp": 1553351279373, "version": 1, "sender": "3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA", "senderPublicKey": "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob", "proofs": [ "yZzhc4YL4myVyFxHM4FDaHJyXFGscvvKy5GmSjWck73KVU7d8Z1AWTaXcBCc4w7yYvr9cxVcr5yBx7R9CQmYtYV" ], "assetId": "9aBN3qftSjLLmtreR1mctuzRUwU9sgZPC3MVEHpaREgh", "script": "base64:AgQAAAAGc3lzdGVtAgAAACw3emk0VjQyYzQxN2ZLblcxdWJ2R3Z3M1JSc2FhUWZHQ0Q4dzhSSENGNDNvYgQAAAADYWR2AgAAACxEaDdzdmtSUGVzaXAyRVBVNGdMaWtqQ3JqS1FRNFJxRHA2eXVoNlVhbko4TAQAAAAEdGVjaAIAAAAsNlB3WVl4c2NHMkNkUGdWYW9YR2Zna2dtVGpWdGppZXh3V3RzeFJFdnA2NkYEAAAACnN0YXJ0UHJpY2UAAAAAAAX14QAEAAAACmRlbHRhUHJpY2UAAAAAAAAPQkAEAAAAC3N0YXJ0SGVpZ2h0AAAAAAAACGC3BAAAAAtkZWx0YUhlaWdodAAAAAAAAAAAAwQAAAAJdGltZU9yZGVyAAAAAAAAAAADBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAMDCQAAAAAAAAIJAAJYAAAAAQgFAAAAAWUAAAAPc2VuZGVyUHVibGljS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AIFAAAABmhlaWdodAUAAAALc3RhcnRIZWlnaHQFAAAAC2RlbHRhSGVpZ2h0BQAAAApkZWx0YVByaWNlAwkAAGcAAAACCAUAAAABZQAAAAVwcmljZQUAAAAMbWluaW11bVByaWNlBAAAAANidXkJAAH0AAAAAwgIBQAAAAFlAAAACGJ1eU9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAPc2VuZGVyUHVibGljS2V5AwUAAAADYnV5AwkAAGcAAAACBQAAAAl0aW1lT3JkZXIJAABlAAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAACmV4cGlyYXRpb24ICAUAAAABZQAAAAhidXlPcmRlcgAAAAl0aW1lc3RhbXAGCQAAAgAAAAECAAAACFRJTUUgQlVZAwkAAGcAAAACBQAAAAl0aW1lT3JkZXIJAABlAAAAAggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAApleHBpcmF0aW9uCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACXRpbWVzdGFtcAYJAAACAAAAAQIAAAAJVElNRSBTRUxMCQAAAgAAAAEJAAEsAAAAAgIAAAAXTWluaW11bSBvcmRlciBwcmljZSBpcyAJAAGkAAAAAQUAAAAMbWluaW11bVByaWNlCQAAAgAAAAECAAAAFlByb2hpYml0ZWQgYnkgY29udHJhY3SHKao0", "chainId": 84, "height": 549107, "spentComplexity": 0 } View: original | compacted Prev: none Next: AwTizwC8kZJBpKx6HP5Ye1fdrafPsEVeWyD5wF988heo Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 2 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let system = "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob" | |
4 | + | let adv = "Dh7svkRPesip2EPU4gLikjCrjKQQ4RqDp6yuh6UanJ8L" | |
5 | + | let tech = "6PwYYxscG2CdPgVaoXGfgkgmTjVtjiexwWtsxREvp66F" | |
6 | + | let startPrice = 100000000 | |
7 | + | let deltaPrice = 1000000 | |
8 | + | let startHeight = 549047 | |
9 | + | let deltaHeight = 3 | |
10 | + | let timeOrder = 3 | |
11 | + | match tx { | |
12 | + | case e: TransferTransaction => | |
13 | + | if (if ((toBase58String(e.senderPublicKey) == system)) | |
14 | + | then true | |
15 | + | else (toBase58String(e.senderPublicKey) == adv)) | |
16 | + | then true | |
17 | + | else false | |
18 | + | case e: ReissueTransaction => | |
19 | + | if ((toBase58String(e.senderPublicKey) == system)) | |
20 | + | then true | |
21 | + | else false | |
22 | + | case e: BurnTransaction => | |
23 | + | if ((toBase58String(e.senderPublicKey) == system)) | |
24 | + | then true | |
25 | + | else false | |
26 | + | case e: MassTransferTransaction => | |
27 | + | if (if ((toBase58String(e.senderPublicKey) == system)) | |
28 | + | then true | |
29 | + | else (toBase58String(e.senderPublicKey) == adv)) | |
30 | + | then true | |
31 | + | else false | |
32 | + | case e: SetAssetScriptTransaction => | |
33 | + | if ((toBase58String(e.senderPublicKey) == system)) | |
34 | + | then true | |
35 | + | else false | |
36 | + | case e: ExchangeTransaction => | |
37 | + | let minimumPrice = (startPrice + ((((height - startHeight) / deltaHeight) - ((height - startHeight) % deltaHeight)) * deltaPrice)) | |
38 | + | if ((e.price >= minimumPrice)) | |
39 | + | then { | |
40 | + | let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey) | |
41 | + | if (buy) | |
42 | + | then if ((timeOrder >= (e.buyOrder.expiration - e.buyOrder.timestamp))) | |
43 | + | then true | |
44 | + | else throw("TIME BUY") | |
45 | + | else if ((timeOrder >= (e.sellOrder.expiration - e.sellOrder.timestamp))) | |
46 | + | then true | |
47 | + | else throw("TIME SELL") | |
48 | + | } | |
49 | + | else throw(("Minimum order price is " + toString(minimumPrice))) | |
50 | + | case _ => | |
51 | + | throw("Prohibited by contract") | |
52 | + | } |
github/deemru/w8io/169f3d6 24.03 ms ◑