tx · Him5zE4D2CPiTz2T7vrQnfa8BDqSvaBoRLCGQN83q145
3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV: -0.01400000 Waves
2021.12.10 13:22 [1828021] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves
{
"type": 13,
"id": "Him5zE4D2CPiTz2T7vrQnfa8BDqSvaBoRLCGQN83q145",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1639131757493,
"version": 2,
"chainId": 84,
"sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV",
"senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7",
"proofs": [
"43huyp8ZXaWH2S1VtuZe56dkGXMmEJ9M3TdNz1cH2aBdBxbhcUuiVsf2fCaurJBWEwxRTzs5ir9M5C3unfU2DYwX"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAEAAAAEaWQ1OAQAAAACaWQJAAJZAAAAAQUAAAAEaWQ1OAQAAAAMY2FsbGVyQWRyZXNzCQEAAAAHQWRkcmVzcwAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABHRpbWUAAAABfaOXkikEAAAABnRydGltZQQAAAAHJG1hdGNoMAkAA+4AAAABBQAAAAJpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADdHR4BQAAAAckbWF0Y2gwCAUAAAADdHR4AAAACXRpbWVzdGFtcAkAAAIAAAABAgAAABZDYW4ndCBmaW5kIHRyYW5zYWN0aW9uBAAAAAh0cnNlbmRlcgQAAAAHJG1hdGNoMAkAA+4AAAABBQAAAAJpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADdHR4BQAAAAckbWF0Y2gwCAUAAAADdHR4AAAABnNlbmRlcgkAAAIAAAABAgAAABZDYW4ndCBmaW5kIHRyYW5zYWN0aW9uBAAAAARtZXNzAwkAAGYAAAACBQAAAAZ0cnRpbWUFAAAABHRpbWUJAAEsAAAAAgIAAAAKb3ZlcnRpbWU6IAkAAaQAAAABBQAAAAZ0cnRpbWUDCQEAAAACIT0AAAACBQAAAAxjYWxsZXJBZHJlc3MFAAAACHRyc2VuZGVyCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAABJpbmNvcnJlY3Qgc2VuZGVyOiAJAAQlAAAAAQUAAAAMY2FsbGVyQWRyZXNzAgAAAAMgLyAJAAQlAAAAAQUAAAAIdHJzZW5kZXICAAAAB3Byb292ZWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAABLQUAAAAEbWVzcwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkxmHW8",
"height": 1828021,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: AqKFuyrEKWfDCzHMA2pM8JQzoNdeXDrX45GEEiaYqPmx
Next: 79LmQbUfwjNGLUWbLDwjGY4qtynC2NDw4VLy3ZzuLPbp
Diff:
Old | New | | Differences |
---|
21 | 21 | | throw("Can't find transaction") |
---|
22 | 22 | | } |
---|
23 | 23 | | let mess = if ((trtime > time)) |
---|
24 | | - | then "overtime" |
---|
| 24 | + | then ("overtime: " + toString(trtime)) |
---|
25 | 25 | | else if ((callerAdress != trsender)) |
---|
26 | 26 | | then ((("incorrect sender: " + toString(callerAdress)) + " / ") + toString(trsender)) |
---|
27 | 27 | | else "prooved" |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func call (id58) = { |
---|
8 | 8 | | let id = fromBase58String(id58) |
---|
9 | 9 | | let callerAdress = Address(i.caller.bytes) |
---|
10 | 10 | | let time = 1639127159337 |
---|
11 | 11 | | let trtime = match transferTransactionById(id) { |
---|
12 | 12 | | case ttx: TransferTransaction => |
---|
13 | 13 | | ttx.timestamp |
---|
14 | 14 | | case _ => |
---|
15 | 15 | | throw("Can't find transaction") |
---|
16 | 16 | | } |
---|
17 | 17 | | let trsender = match transferTransactionById(id) { |
---|
18 | 18 | | case ttx: TransferTransaction => |
---|
19 | 19 | | ttx.sender |
---|
20 | 20 | | case _ => |
---|
21 | 21 | | throw("Can't find transaction") |
---|
22 | 22 | | } |
---|
23 | 23 | | let mess = if ((trtime > time)) |
---|
24 | | - | then "overtime" |
---|
| 24 | + | then ("overtime: " + toString(trtime)) |
---|
25 | 25 | | else if ((callerAdress != trsender)) |
---|
26 | 26 | | then ((("incorrect sender: " + toString(callerAdress)) + " / ") + toString(trsender)) |
---|
27 | 27 | | else "prooved" |
---|
28 | 28 | | [StringEntry("-", mess)] |
---|
29 | 29 | | } |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | @Verifier(tx) |
---|
33 | 33 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
34 | 34 | | |
---|