tx · AebeZuMt8p7AndpsHa93DwWW79A9FF3RHZKKZHTHfkp4

3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp:  -0.05000000 Waves

2020.10.14 09:50 [1219893] smart account 3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp > SELF 0.00000000 Waves

{ "type": 13, "id": "AebeZuMt8p7AndpsHa93DwWW79A9FF3RHZKKZHTHfkp4", "fee": 5000000, "feeAssetId": null, "timestamp": 1602658290561, "version": 2, "chainId": 84, "sender": "3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp", "senderPublicKey": "EDsT8xniB2ycm6wVZJ2XcrakhVsfC7vCemAx3gk3iopu", "proofs": [ "3n644yPXV24sn5vsGJTvKFgY6v6qdgyCTh45NM1qh1BvEzMYU8sKZjbRAowcr69FFV23v76d2P6k3iXZ9NB8AWch" ], "script": "base64:AAIEAAAAAAAAAAgIAhIAEgASAAAAAAAAAAADAAAAAWkBAAAAB2RlcG9zaXQAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAFXdvcmtzIHdpdGggd2F2ZXMgb25seQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQIBQAAAANwbXQAAAAGYW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAApjdXJyZW50S2V5BQAAAAluZXdBbW91bnQFAAAAA25pbAAAAAFpAQAAAAlnZXRIZWlnaHQAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAZoZWlnaHQAAAAAAAAAAAEFAAAAA25pbAAAAAFpAQAAAAxnZXRUaW1lc3RhbXAAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAl0aW1lc3RhbXAAAAAAAAAAAAEFAAAAA25pbAAAAAAQ8YTV", "height": 1219893, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AX8bU6oUU5VCAsxSVVsbscZq6UiJMbiuLXxvJYYFMZoK Next: 76ypBAofS5kYWS7WD1scByVxPo4BcFJtN55rd8fxJi9F Diff:
OldNewDifferences
2222 }
2323
2424
25+
26+@Callable(i)
27+func getHeight () = [IntegerEntry("height", 1)]
28+
29+
30+
31+@Callable(i)
32+func getTimestamp () = [IntegerEntry("timestamp", 1)]
33+
34+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func deposit () = {
88 let pmt = value(i.payments[0])
99 if (isDefined(pmt.assetId))
1010 then throw("works with waves only")
1111 else {
1212 let currentKey = toBase58String(i.caller.bytes)
1313 let currentAmount = match getInteger(this, currentKey) {
1414 case a: Int =>
1515 a
1616 case _ =>
1717 0
1818 }
1919 let newAmount = (currentAmount + pmt.amount)
2020 [IntegerEntry(currentKey, newAmount)]
2121 }
2222 }
2323
2424
25+
26+@Callable(i)
27+func getHeight () = [IntegerEntry("height", 1)]
28+
29+
30+
31+@Callable(i)
32+func getTimestamp () = [IntegerEntry("timestamp", 1)]
33+
34+

github/deemru/w8io/169f3d6 
24.53 ms