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