tx · JBQ2YctenmUP1JMcAgwY7V6oCmPbC2LH83ZC2p6BkeNG 3N5Sf2tQjkpP8hFWSkGnFxL1yhEymt4fcXd: -0.01400000 Waves 2018.12.21 16:37 [414707] smart account 3N5Sf2tQjkpP8hFWSkGnFxL1yhEymt4fcXd > SELF 0.00000000 Waves
{ "type": 13, "id": "JBQ2YctenmUP1JMcAgwY7V6oCmPbC2LH83ZC2p6BkeNG", "fee": 1400000, "feeAssetId": null, "timestamp": 1545399615070, "version": 1, "sender": "3N5Sf2tQjkpP8hFWSkGnFxL1yhEymt4fcXd", "senderPublicKey": "4VXgbr5qJL5biXcj2f8pHNVtGHPaQ9rou4VTUL5RSg2h", "proofs": [ "4fLqgS34cmShHJS24wuSKj1YLC21PZ4Fp3WphnEeHQtKg7AYRv8KctpiTYzZHK94gA1Vsehbed52hDu6xseZXvpR" ], "script": "base64:AQQAAAAPRmluaXNoVGltZXN0YW1wAAAAAWhq2CJABAAAABFWYWxpZGF0ZVRpbWVzdGFtcAAAAAFn1X+2QAQAAAAFVG9rZW4AAAAAAAAAJxAEAAAAB1BheW1lbnQAAAAAACPDRgAEAAAAC2NvbnRyYWN0QWRyCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABAQAAACAz4gQ86ikHpZvZRtRLbB36pHJC4BEAo687iIxTyd4PBgQAAAAHYXNzZXRJZAEAAAAgn4CR8kmdfGUr4JMh1vT14Lhc1vHdJXLA3Dw817/MbT8EAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAQaXNQZXJpb2RGaW5pc2hlZAkAAGYAAAACCAUAAAACdHgAAAAJdGltZXN0YW1wBQAAAA9GaW5pc2hUaW1lc3RhbXAEAAAAGGlzVmFsaWRhdGVQZXJpb2RGaW5pc2hlZAkAAGYAAAACCAUAAAACdHgAAAAJdGltZXN0YW1wBQAAABFWYWxpZGF0ZVRpbWVzdGFtcAQAAAAJaGFzVG9rZW5zCQAAZwAAAAIJAAPrAAAAAgUAAAALY29udHJhY3RBZHIFAAAAB2Fzc2V0SWQFAAAABVRva2VuBAAAAApoYXNQYXltZW50CQAAZwAAAAIJAQAAAAx3YXZlc0JhbGFuY2UAAAABBQAAAAtjb250cmFjdEFkcgUAAAAHUGF5bWVudAQAAAAOY29udHJhY3RJc0Z1bGwDBQAAAAloYXNUb2tlbnMFAAAACmhhc1BheW1lbnQHBAAAABFjb250cmFjdElzTm90RnVsbAkBAAAAASEAAAABBQAAAA5jb250cmFjdElzRnVsbAQAAAAlY29udHJhY3RVbmNvbXBsZXRlQWZ0ZXJWYWxpZGF0ZVBlcmlvZAMFAAAAGGlzVmFsaWRhdGVQZXJpb2RGaW5pc2hlZAUAAAARY29udHJhY3RJc05vdEZ1bGwHBAAAAAZyZXN1bHQDBQAAABBpc1BlcmlvZEZpbmlzaGVkBgUAAAAlY29udHJhY3RVbmNvbXBsZXRlQWZ0ZXJWYWxpZGF0ZVBlcmlvZAMFAAAABnJlc3VsdAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleYscVTU=", "chainId": 84, "height": 414707, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 1 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let FinishTimestamp = 1547980776000 | |
4 | + | let ValidateTimestamp = 1545475176000 | |
5 | + | let Token = 10000 | |
6 | + | let Payment = 600000000 | |
7 | + | let contractAdr = addressFromPublicKey(base58'4VXgbr5qJL5biXcj2f8pHNVtGHPaQ9rou4VTUL5RSg2h') | |
8 | + | let assetId = base58'BjdXrddqPxjduQoRxErg5WV6bZsp5FWa3FFizZPuh8xE' | |
9 | + | match tx { | |
10 | + | case tx: TransferTransaction => | |
11 | + | let isPeriodFinished = (tx.timestamp > FinishTimestamp) | |
12 | + | let isValidatePeriodFinished = (tx.timestamp > ValidateTimestamp) | |
13 | + | let hasTokens = (assetBalance(contractAdr, assetId) >= Token) | |
14 | + | let hasPayment = (wavesBalance(contractAdr) >= Payment) | |
15 | + | let contractIsFull = if (hasTokens) | |
16 | + | then hasPayment | |
17 | + | else false | |
18 | + | let contractIsNotFull = !(contractIsFull) | |
19 | + | let contractUncompleteAfterValidatePeriod = if (isValidatePeriodFinished) | |
20 | + | then contractIsNotFull | |
21 | + | else false | |
22 | + | let result = if (isPeriodFinished) | |
23 | + | then true | |
24 | + | else contractUncompleteAfterValidatePeriod | |
25 | + | if (result) | |
26 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
27 | + | else false | |
28 | + | case _ => | |
29 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
30 | + | } |
github/deemru/w8io/026f985 18.15 ms ◑