tx · AdvMJH2y2v6vnrkmZQHA3spGvaJRVabwxdVX9U24VP1z 3N4DGbdpgjoSygnQJBhimrxWk9VJUcFwsZv: -0.01400000 Waves 2018.12.24 11:52 [418805] smart account 3N4DGbdpgjoSygnQJBhimrxWk9VJUcFwsZv > SELF 0.00000000 Waves
{ "type": 13, "id": "AdvMJH2y2v6vnrkmZQHA3spGvaJRVabwxdVX9U24VP1z", "fee": 1400000, "feeAssetId": null, "timestamp": 1545641719562, "version": 1, "sender": "3N4DGbdpgjoSygnQJBhimrxWk9VJUcFwsZv", "senderPublicKey": "EDiFhWf8tEZCirhhZdvHUnW9A4GWoR1ZUyDh6SbgiDpH", "proofs": [ "4Uk8Nh94aQ7MgKkhKyUkGtf3q4Rg2A2RfTCik2Hc6GYaUfAnVV6hgRzvCv7wxi7p4TT7w32PxgkFWqLQL8Ffjhsd" ], "script": "base64:AQQAAAAPRmluaXNoVGltZXN0YW1wAAAAAWffcYTQBAAAABFWYWxpZGF0ZVRpbWVzdGFtcAAAAAFn323bUAQAAAAFVG9rZW4AAAAAAAAAJxAEAAAAB1BheW1lbnQAAAAAAAX14QAEAAAAC2NvbnRyYWN0QWRyCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABAQAAACDEaYuOlJG4QPg3ueGFiehINzOfcp+4deDwaoPtguU+PgQAAAAHYXNzZXRJZAEAAAAgn4CR8kmdfGUr4JMh1vT14Lhc1vHdJXLA3Dw817/MbT8EAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAQaXNQZXJpb2RGaW5pc2hlZAkAAGYAAAACCAUAAAACdHgAAAAJdGltZXN0YW1wBQAAAA9GaW5pc2hUaW1lc3RhbXAEAAAAGGlzVmFsaWRhdGVQZXJpb2RGaW5pc2hlZAkAAGYAAAACCAUAAAACdHgAAAAJdGltZXN0YW1wBQAAABFWYWxpZGF0ZVRpbWVzdGFtcAQAAAAJaGFzVG9rZW5zCQAAZwAAAAIJAAPrAAAAAgUAAAALY29udHJhY3RBZHIFAAAAB2Fzc2V0SWQFAAAABVRva2VuBAAAAApoYXNQYXltZW50CQAAZwAAAAIJAQAAAAx3YXZlc0JhbGFuY2UAAAABBQAAAAtjb250cmFjdEFkcgUAAAAHUGF5bWVudAQAAAAOY29udHJhY3RJc0Z1bGwDBQAAAAloYXNUb2tlbnMFAAAACmhhc1BheW1lbnQHBAAAABFjb250cmFjdElzTm90RnVsbAkBAAAAASEAAAABBQAAAA5jb250cmFjdElzRnVsbAQAAAAlY29udHJhY3RVbmNvbXBsZXRlQWZ0ZXJWYWxpZGF0ZVBlcmlvZAMFAAAAGGlzVmFsaWRhdGVQZXJpb2RGaW5pc2hlZAUAAAARY29udHJhY3RJc05vdEZ1bGwHBAAAAAZyZXN1bHQDBQAAABBpc1BlcmlvZEZpbmlzaGVkBgUAAAAlY29udHJhY3RVbmNvbXBsZXRlQWZ0ZXJWYWxpZGF0ZVBlcmlvZAMFAAAABnJlc3VsdAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXzBsDU=", "chainId": 84, "height": 418805, "spentComplexity": 0 } View: original | compacted Prev: Hm5obHwPKqs3fACV3X9Pcyykd5HpCyaduLgo37W3VfP Next: none Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | - | let FinishTimestamp = | |
4 | - | let ValidateTimestamp = | |
3 | + | let FinishTimestamp = 1545642018000 | |
4 | + | let ValidateTimestamp = 1545641778000 | |
5 | 5 | let Token = 10000 | |
6 | 6 | let Payment = 100000000 | |
7 | 7 | let contractAdr = addressFromPublicKey(base58'EDiFhWf8tEZCirhhZdvHUnW9A4GWoR1ZUyDh6SbgiDpH') |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | - | let FinishTimestamp = | |
4 | - | let ValidateTimestamp = | |
3 | + | let FinishTimestamp = 1545642018000 | |
4 | + | let ValidateTimestamp = 1545641778000 | |
5 | 5 | let Token = 10000 | |
6 | 6 | let Payment = 100000000 | |
7 | 7 | let contractAdr = addressFromPublicKey(base58'EDiFhWf8tEZCirhhZdvHUnW9A4GWoR1ZUyDh6SbgiDpH') | |
8 | 8 | let assetId = base58'BjdXrddqPxjduQoRxErg5WV6bZsp5FWa3FFizZPuh8xE' | |
9 | 9 | match tx { | |
10 | 10 | case tx: TransferTransaction => | |
11 | 11 | let isPeriodFinished = (tx.timestamp > FinishTimestamp) | |
12 | 12 | let isValidatePeriodFinished = (tx.timestamp > ValidateTimestamp) | |
13 | 13 | let hasTokens = (assetBalance(contractAdr, assetId) >= Token) | |
14 | 14 | let hasPayment = (wavesBalance(contractAdr) >= Payment) | |
15 | 15 | let contractIsFull = if (hasTokens) | |
16 | 16 | then hasPayment | |
17 | 17 | else false | |
18 | 18 | let contractIsNotFull = !(contractIsFull) | |
19 | 19 | let contractUncompleteAfterValidatePeriod = if (isValidatePeriodFinished) | |
20 | 20 | then contractIsNotFull | |
21 | 21 | else false | |
22 | 22 | let result = if (isPeriodFinished) | |
23 | 23 | then true | |
24 | 24 | else contractUncompleteAfterValidatePeriod | |
25 | 25 | if (result) | |
26 | 26 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
27 | 27 | else false | |
28 | 28 | case _ => | |
29 | 29 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
30 | 30 | } |
github/deemru/w8io/026f985 19.83 ms ◑