tx · C4yXHaBAyrJSTp55dwpCMQg7rwmJuTnJfZ3WpZiRtr5p

3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp:  -0.05000000 Waves

2020.10.14 14:12 [1220147] smart account 3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp > SELF 0.00000000 Waves

{ "type": 13, "id": "C4yXHaBAyrJSTp55dwpCMQg7rwmJuTnJfZ3WpZiRtr5p", "fee": 5000000, "feeAssetId": null, "timestamp": 1602674049798, "version": 2, "chainId": 84, "sender": "3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp", "senderPublicKey": "EDsT8xniB2ycm6wVZJ2XcrakhVsfC7vCemAx3gk3iopu", "proofs": [ "3Ljzzqcqj2SoyfJW6EBbq1WynXaEDLMEkdXV1GF1A3W5SwgNYv5MJgQ6NK1HPyfj1kjj7x54hsKjA7b9ZJU8JWKh" ], "script": "base64:AAIEAAAAAAAAAAoIAhIAEgASABIAAAAAAgAAAAAJbWluSGVpZ2h0AAAAAAAAEp14AAAAAAxtaW5UaW1lc3RhbXAAAAABdSaBNxUAAAAEAAAAAWkBAAAAB2RlcG9zaXQAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAFXdvcmtzIHdpdGggd2F2ZXMgb25seQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQIBQAAAANwbXQAAAAGYW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAApjdXJyZW50S2V5BQAAAAluZXdBbW91bnQFAAAAA25pbAAAAAFpAQAAAAlnZXRIZWlnaHQAAAAAAwkAAGcAAAACBQAAAAZoZWlnaHQFAAAACW1pbkhlaWdodAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAGaGVpZ2h0BQAAAAZoZWlnaHQFAAAAA25pbAkAAAIAAAABAgAAABhNaW4gSGVpZ2h0IGlzIG1pbkhlaWdodCAAAAABaQEAAAAMZ2V0VGltZXN0YW1wAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAJdGltZXN0YW1wAAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAANaW5jcmVhc2VDb3VudAAAAAAEAAAABWNvdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAABWNvdW50AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAABWNvdW50BQAAAAckbWF0Y2gwBQAAAAVjb3VudAAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFY291bnQJAABkAAAAAgUAAAAFY291bnQAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAJUC+QABQAAAAR1bml0BQAAAANuaWwAAAAAdnHyRQ==", "height": 1220147, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DTvQbjMJ3XYp8kGaynns5NLc3Ejan4EFQnugEFh3mWCz Next: 7EqykozJ4VHrdwCrVUQZC6JU5gsL1jfARGevWkNQGbJ9 Diff:
OldNewDifferences
4545 case _ =>
4646 0
4747 }
48-[IntegerEntry("count", (count + 1))]
48+[IntegerEntry("count", (count + 1)), ScriptTransfer(i.caller, 10000000000, unit)]
4949 }
5050
5151
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let minHeight = 1219960
55
66 let minTimestamp = 1602668803861
77
88 @Callable(i)
99 func deposit () = {
1010 let pmt = value(i.payments[0])
1111 if (isDefined(pmt.assetId))
1212 then throw("works with waves only")
1313 else {
1414 let currentKey = toBase58String(i.caller.bytes)
1515 let currentAmount = match getInteger(this, currentKey) {
1616 case a: Int =>
1717 a
1818 case _ =>
1919 0
2020 }
2121 let newAmount = (currentAmount + pmt.amount)
2222 [IntegerEntry(currentKey, newAmount)]
2323 }
2424 }
2525
2626
2727
2828 @Callable(i)
2929 func getHeight () = if ((height >= minHeight))
3030 then [IntegerEntry("height", height)]
3131 else throw("Min Height is minHeight ")
3232
3333
3434
3535 @Callable(i)
3636 func getTimestamp () = [IntegerEntry("timestamp", 1)]
3737
3838
3939
4040 @Callable(i)
4141 func increaseCount () = {
4242 let count = match getInteger(this, "count") {
4343 case count: Int =>
4444 count
4545 case _ =>
4646 0
4747 }
48-[IntegerEntry("count", (count + 1))]
48+[IntegerEntry("count", (count + 1)), ScriptTransfer(i.caller, 10000000000, unit)]
4949 }
5050
5151

github/deemru/w8io/169f3d6 
44.13 ms