tx · 91VYoqEMVy4QJnjgaCryggepcLFXzbvVARYMZ4V4tRUY

3MzsPnBwpkEPGZZb5wrDHeBdvdLWBHHc85Y:  -0.01000002 Waves

2019.12.25 16:42 [824602] smart account 3MzsPnBwpkEPGZZb5wrDHeBdvdLWBHHc85Y > SELF 0.00000000 Waves

{ "type": 13, "id": "91VYoqEMVy4QJnjgaCryggepcLFXzbvVARYMZ4V4tRUY", "fee": 1000002, "feeAssetId": null, "timestamp": 1577281209939, "version": 1, "sender": "3MzsPnBwpkEPGZZb5wrDHeBdvdLWBHHc85Y", "senderPublicKey": "6386TjwUeCqp7PTkFt3quPcZwHFfSqF5X6TaA9JGmiGD", "proofs": [ "35qksYS7xAyVuFSPfctMq8mdbSRE9T1S1JY4Rj4o1ECZGEkF4pSsTGo4gUmJ7jhdsGPSS1kn2e1DWe1iyGe16YoU" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAB2Fzc2V0SUQBAAAAIM8nlSfCfmvawtYqmd0YxYDdTXWBH3ARhaADeaA3oQCYBAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAAAAAAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAdhc3NldElECQAAAgAAAAECAAAARdCb0L7QttC40YLRjCDQvdCwINC00LXQv9C+0LfQuNGCINC80L7QttC90L4g0YLQvtC70YzQutC+INGC0L7QutC10L3RiwQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQIBQAAAANwbXQAAAAGYW1vdW50CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAApjdXJyZW50S2V5BQAAAAluZXdBbW91bnQFAAAAA25pbAAAAACn7Tzi", "chainId": 84, "height": 824602, "spentComplexity": 0 } View: original | compacted Prev: none Next: B5U9tm5DxwuTbmRadfidwoYUwc9HC1pcuJweaWd8Hrhz Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(i)
7+func deposit () = {
8+ let assetID = base58'EweQEMhC4tk3ae6E2N5wtsJBzvzRHsgqQZjoAk4xNnZm'
9+ let pmt = extract(i.payment)
10+ if ((pmt.assetId == assetID))
11+ then throw("Ложить на депозит можно только токены")
12+ else {
13+ let currentKey = toBase58String(i.caller.bytes)
14+ let currentAmount = match getInteger(this, currentKey) {
15+ case a: Int =>
16+ a
17+ case _ =>
18+ 0
19+ }
20+ let newAmount = (currentAmount + pmt.amount)
21+ WriteSet([DataEntry(currentKey, newAmount)])
22+ }
23+ }
24+
25+

github/deemru/w8io/026f985 
16.81 ms