tx · 4pimw4aLcDAmPJ5aW4d22Xe2vW44vHA8azXaBhuiejm8

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01400000 Waves

2021.12.10 12:53 [1827992] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "4pimw4aLcDAmPJ5aW4d22Xe2vW44vHA8azXaBhuiejm8", "fee": 1400000, "feeAssetId": null, "timestamp": 1639130048538, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "4CkYAp1YAk3V78w8rTc8iu5W98ayecCLNAwSL6jGq9eJnAPQQUGianqLrBntvdvWy8kbbbodiwDSCiWCtE6QEjrp" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAEAAAAEaWQ1OAQAAAACaWQJAAJZAAAAAQUAAAAEaWQ1OAQAAAAMY2FsbGVyQWRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABHRpbWUAAAABfaOXkikEAAAABnRydGltZQQAAAAHJG1hdGNoMAkAA+4AAAABBQAAAAJpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADdHR4BQAAAAckbWF0Y2gwCAUAAAADdHR4AAAACXRpbWVzdGFtcAkAAAIAAAABAgAAABZDYW4ndCBmaW5kIHRyYW5zYWN0aW9uBAAAAAh0cnNlbmRlcgQAAAAHJG1hdGNoMAkAA+4AAAABBQAAAAJpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADdHR4BQAAAAckbWF0Y2gwCAUAAAADdHR4AAAABnNlbmRlcgkAAAIAAAABAgAAABZDYW4ndCBmaW5kIHRyYW5zYWN0aW9uBAAAAARtZXNzAwkAAGYAAAACBQAAAAZ0cnRpbWUFAAAABHRpbWUCAAAACG92ZXJ0aW1lAwkBAAAAAiE9AAAAAgUAAAAMY2FsbGVyQWRyZXNzCQAEJQAAAAEFAAAACHRyc2VuZGVyAgAAABBpbmNvcnJlY3Qgc2VuZGVyAgAAAAdwcm9vdmVkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAAS0FAAAABG1lc3MFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5mJAZkQ==", "height": 1827992, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5WWd3dKpfr2PabFQxmt8e9FNvCPxdoKSJCFjNBkvXoRv Next: 9XAP3jTNFwtn8RMr1HssFzJk53KjCkE2gBmUDd6tTe2z Diff:
OldNewDifferences
66 @Callable(i)
77 func call (id58) = {
88 let id = fromBase58String(id58)
9- let x = match transferTransactionById(id) {
9+ let callerAdress = toBase58String(i.caller.bytes)
10+ let time = 1639127159337
11+ let trtime = match transferTransactionById(id) {
1012 case ttx: TransferTransaction =>
11- ((((("sender: " + toString(ttx.sender)) + ", amount: ") + toString(ttx.amount)) + " time: ") + toString(ttx.timestamp))
13+ ttx.timestamp
1214 case _ =>
1315 throw("Can't find transaction")
1416 }
15-[StringEntry("-", x)]
17+ let trsender = match transferTransactionById(id) {
18+ case ttx: TransferTransaction =>
19+ ttx.sender
20+ case _ =>
21+ throw("Can't find transaction")
22+ }
23+ let mess = if ((trtime > time))
24+ then "overtime"
25+ else if ((callerAdress != toString(trsender)))
26+ then "incorrect sender"
27+ else "prooved"
28+[StringEntry("-", mess)]
1629 }
1730
1831
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func call (id58) = {
88 let id = fromBase58String(id58)
9- let x = match transferTransactionById(id) {
9+ let callerAdress = toBase58String(i.caller.bytes)
10+ let time = 1639127159337
11+ let trtime = match transferTransactionById(id) {
1012 case ttx: TransferTransaction =>
11- ((((("sender: " + toString(ttx.sender)) + ", amount: ") + toString(ttx.amount)) + " time: ") + toString(ttx.timestamp))
13+ ttx.timestamp
1214 case _ =>
1315 throw("Can't find transaction")
1416 }
15-[StringEntry("-", x)]
17+ let trsender = match transferTransactionById(id) {
18+ case ttx: TransferTransaction =>
19+ ttx.sender
20+ case _ =>
21+ throw("Can't find transaction")
22+ }
23+ let mess = if ((trtime > time))
24+ then "overtime"
25+ else if ((callerAdress != toString(trsender)))
26+ then "incorrect sender"
27+ else "prooved"
28+[StringEntry("-", mess)]
1629 }
1730
1831
1932 @Verifier(tx)
2033 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2134

github/deemru/w8io/169f3d6 
40.12 ms