tx · Cr1mGJDBBCoqjv8LvKjhyt7aZbzbtJEKwaNDN44qyFMB

3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp:  -0.05000000 Waves

2020.10.07 13:34 [1210036] smart account 3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp > SELF 0.00000000 Waves

{ "type": 13, "id": "Cr1mGJDBBCoqjv8LvKjhyt7aZbzbtJEKwaNDN44qyFMB", "fee": 5000000, "feeAssetId": null, "timestamp": 1602066924792, "version": 2, "chainId": 84, "sender": "3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp", "senderPublicKey": "EDsT8xniB2ycm6wVZJ2XcrakhVsfC7vCemAx3gk3iopu", "proofs": [ "5rdj7SxzU7JsR5CxiqQ4fodgyQa1KcJRTQ96tdQqhkBBixARZGKBCKu3YnvJUNY26EGU5Zveh2bioe6Y5b1S2V7C" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5BAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADWN1cnJlbnRBbW91bnQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAAluZXdBbW91bnQJAABkAAAAAgUAAAANY3VycmVudEFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkFAAAACW5ld0Ftb3VudAUAAAADbmlsAAAAAF3OhTM=", "height": 1210036, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 81PsjyhCJxgJ52tmdToAUEosrUqEzPmHoN9sKYRjBKPn Next: A1pxvTVDUSNKKizP1fPa2CSaCt3MnpJyj7toGB8Zrpte Diff:
OldNewDifferences
1717 0
1818 }
1919 let newAmount = (currentAmount + pmt.amount)
20-[IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, 100000000, unit)]
20+[IntegerEntry(currentKey, newAmount)]
2121 }
2222 }
2323
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)
20-[IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, 100000000, unit)]
20+[IntegerEntry(currentKey, newAmount)]
2121 }
2222 }
2323
2424

github/deemru/w8io/169f3d6 
26.96 ms