tx · Cx664tGxnZRWGQWCiy8SzzQukNFeyUUHNQSXwVVB1DiD

3MuNdeQyTQVrdStwprvCEgPgC2vjqRvbX6o:  -0.00200000 Waves

2022.08.11 18:12 [2179994] smart account 3MuNdeQyTQVrdStwprvCEgPgC2vjqRvbX6o > SELF 0.00000000 Waves

{ "type": 13, "id": "Cx664tGxnZRWGQWCiy8SzzQukNFeyUUHNQSXwVVB1DiD", "fee": 200000, "feeAssetId": null, "timestamp": 1660230779756, "version": 2, "chainId": 84, "sender": "3MuNdeQyTQVrdStwprvCEgPgC2vjqRvbX6o", "senderPublicKey": "CJJANoX2M5vQtitZCKU1TGULEY3aZyDBdAp6XESFVH8F", "proofs": [ "3ic7jJaPjZUwFvoN2HEjBnYWiktv8k5j9VbQgkZoG814mk6qmijb3PWbkAqkvYJ9hTyV3RsCn1krRm8dnBfk6Yug" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQEAAAAAAAAAAgAAAAFpAQAAAAdkZXBvc2l0AAAAAAQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAHEF0dGFjaGVkIHBheW1lbnQgaXMgcmVxdWlyZWQDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAFXdvcmtzIHdpdGggd2F2ZXMgb25seQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQIBQAAAANwbXQAAAAGYW1vdW50CQAFFAAAAAIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkFAAAACW5ld0Ftb3VudAUAAAADbmlsBQAAAAR1bml0AAAAAWkBAAAACHdpdGhkcmF3AAAAAQAAAAZhbW91bnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACW5ld0Ftb3VudAkAAGUAAAACBQAAAA1jdXJyZW50QW1vdW50BQAAAAZhbW91bnQDCQAAZgAAAAIAAAAAAAAAAAAFAAAABmFtb3VudAkAAAIAAAABAgAAAB5DYW4ndCB3aXRoZHJhdyBuZWdhdGl2ZSBhbW91bnQDCQAAZgAAAAIAAAAAAAAAAAAFAAAACW5ld0Ftb3VudAkAAAIAAAABAgAAABJOb3QgZW5vdWdoIGJhbGFuY2UJAAUUAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAKY3VycmVudEtleQUAAAAJbmV3QW1vdW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGYW1vdW50BQAAAAR1bml0BQAAAANuaWwFAAAABHVuaXQAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABwprKl4=", "height": 2179994, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2r8vySBdn2SvwpGppuXn7VyaDBsZr1UsKMTDMMoxoMvA Next: none Diff:
OldNewDifferences
4949 }
5050
5151
52+@Verifier(i)
53+func j () = false
54+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func deposit () = {
88 let b = if ((size(a.payments) == 1))
99 then a.payments[0]
1010 else throw("Attached payment is required")
1111 if (isDefined(b.assetId))
1212 then throw("works with waves only")
1313 else {
1414 let c = toBase58String(a.caller.bytes)
1515 let d = {
1616 let e = getInteger(this, c)
1717 if ($isInstanceOf(e, "Int"))
1818 then {
1919 let f = e
2020 f
2121 }
2222 else 0
2323 }
2424 let g = (d + b.amount)
2525 $Tuple2([IntegerEntry(c, g)], unit)
2626 }
2727 }
2828
2929
3030
3131 @Callable(a)
3232 func withdraw (h) = {
3333 let c = toBase58String(a.caller.bytes)
3434 let d = {
3535 let e = getInteger(this, c)
3636 if ($isInstanceOf(e, "Int"))
3737 then {
3838 let f = e
3939 f
4040 }
4141 else 0
4242 }
4343 let g = (d - h)
4444 if ((0 > h))
4545 then throw("Can't withdraw negative amount")
4646 else if ((0 > g))
4747 then throw("Not enough balance")
4848 else $Tuple2([IntegerEntry(c, g), ScriptTransfer(a.caller, h, unit)], unit)
4949 }
5050
5151
52+@Verifier(i)
53+func j () = false
54+

github/deemru/w8io/169f3d6 
28.11 ms