tx · F2EkqKomkAFtusf9QWQ8fXZn3dJBzZhN5Cz1nyznoQJv

3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S:  -0.01400000 Waves

2020.12.31 19:43 [1333142] smart account 3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S > SELF 0.00000000 Waves

{ "type": 13, "id": "F2EkqKomkAFtusf9QWQ8fXZn3dJBzZhN5Cz1nyznoQJv", "fee": 1400000, "feeAssetId": null, "timestamp": 1609433089614, "version": 2, "chainId": 84, "sender": "3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S", "senderPublicKey": "H8moDp5wDnu7iRR16S1brcH7dn2p3tUhKNW3A8LKosMa", "proofs": [ "BkrqtLJNCThFc7yL43TMP6o8WQ6g1sizKCFP8tFey1wJJ3WMYoSe3u2pcJgh6RfRdbHAvxmdohw7a2WL9TtBBPa" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQEAAAAAAAAAAgAAAAFpAQAAAAdkZXBvenl0AAAAAAQAAAADcG10CQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACBtb3plc3ogcHJ6ZWNob3d5d2HEhyB0eWxrbyBXQVZFUwQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQIBQAAAANwbXQAAAAGYW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAApjdXJyZW50S2V5BQAAAAluZXdBbW91bnQFAAAAA25pbAAAAAFpAQAAAAZ3eXBsYWMAAAABAAAABWt3b3RhBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADWN1cnJlbnRBbW91bnQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAAluZXdBbW91bnQJAABlAAAAAgUAAAANY3VycmVudEFtb3VudAUAAAAFa3dvdGEDCQAAZgAAAAIAAAAAAAAAAAAFAAAABWt3b3RhCQAAAgAAAAECAAAALU5pZW1vxbxuYSB3eXDFgmFjacSHIHVqZW1uZWogbGljemJ5IMWbcm9ka8OzdwMJAABmAAAAAgAAAAAAAAAAAAUAAAAJbmV3QW1vdW50CQAAAgAAAAECAAAAIk5pd3lzdGFyY3phasSFY2EgaWxvxZvEhyDFm3JvZGvDs3cJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkFAAAACW5ld0Ftb3VudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABWt3b3RhBQAAAAR1bml0BQAAAANuaWwAAAAAAB8Ivw==", "height": 1333142, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6bQZddNP7hoSbUsX24Bbu3JCjmjwTHcoZqymbW8RUxhu Next: BkknYron5cmMcptYFxMG8uLaQEmNuE4mCqLE6goVRDpZ Diff:
OldNewDifferences
77 func depozyt () = {
88 let pmt = i.payments[0]
99 if (isDefined(pmt.assetId))
10- then throw("can hodl waves only at the moment")
10+ then throw("mozesz przechowywać tylko WAVES")
1111 else {
1212 let currentKey = toBase58String(i.caller.bytes)
1313 let currentAmount = match getInteger(this, currentKey) {
3434 }
3535 let newAmount = (currentAmount - kwota)
3636 if ((0 > kwota))
37- then throw("Can't withdraw negative amount")
37+ then throw("Niemożna wypłacić ujemnej liczby środków")
3838 else if ((0 > newAmount))
39- then throw("Not enough balance")
39+ then throw("Niwystarczająca ilość środków")
4040 else [IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, kwota, unit)]
4141 }
4242
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func depozyt () = {
88 let pmt = i.payments[0]
99 if (isDefined(pmt.assetId))
10- then throw("can hodl waves only at the moment")
10+ then throw("mozesz przechowywać tylko WAVES")
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
2525
2626 @Callable(i)
2727 func wyplac (kwota) = {
2828 let currentKey = toBase58String(i.caller.bytes)
2929 let currentAmount = match getInteger(this, currentKey) {
3030 case a: Int =>
3131 a
3232 case _ =>
3333 0
3434 }
3535 let newAmount = (currentAmount - kwota)
3636 if ((0 > kwota))
37- then throw("Can't withdraw negative amount")
37+ then throw("Niemożna wypłacić ujemnej liczby środków")
3838 else if ((0 > newAmount))
39- then throw("Not enough balance")
39+ then throw("Niwystarczająca ilość środków")
4040 else [IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, kwota, unit)]
4141 }
4242
4343

github/deemru/w8io/169f3d6 
36.50 ms