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:
Old | New | Differences | |
---|---|---|---|
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | + | @Verifier(i) | |
53 | + | func j () = false | |
54 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func deposit () = { | |
8 | 8 | let b = if ((size(a.payments) == 1)) | |
9 | 9 | then a.payments[0] | |
10 | 10 | else throw("Attached payment is required") | |
11 | 11 | if (isDefined(b.assetId)) | |
12 | 12 | then throw("works with waves only") | |
13 | 13 | else { | |
14 | 14 | let c = toBase58String(a.caller.bytes) | |
15 | 15 | let d = { | |
16 | 16 | let e = getInteger(this, c) | |
17 | 17 | if ($isInstanceOf(e, "Int")) | |
18 | 18 | then { | |
19 | 19 | let f = e | |
20 | 20 | f | |
21 | 21 | } | |
22 | 22 | else 0 | |
23 | 23 | } | |
24 | 24 | let g = (d + b.amount) | |
25 | 25 | $Tuple2([IntegerEntry(c, g)], unit) | |
26 | 26 | } | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | ||
31 | 31 | @Callable(a) | |
32 | 32 | func withdraw (h) = { | |
33 | 33 | let c = toBase58String(a.caller.bytes) | |
34 | 34 | let d = { | |
35 | 35 | let e = getInteger(this, c) | |
36 | 36 | if ($isInstanceOf(e, "Int")) | |
37 | 37 | then { | |
38 | 38 | let f = e | |
39 | 39 | f | |
40 | 40 | } | |
41 | 41 | else 0 | |
42 | 42 | } | |
43 | 43 | let g = (d - h) | |
44 | 44 | if ((0 > h)) | |
45 | 45 | then throw("Can't withdraw negative amount") | |
46 | 46 | else if ((0 > g)) | |
47 | 47 | then throw("Not enough balance") | |
48 | 48 | else $Tuple2([IntegerEntry(c, g), ScriptTransfer(a.caller, h, unit)], unit) | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | + | @Verifier(i) | |
53 | + | func j () = false | |
54 | + |
github/deemru/w8io/169f3d6 28.11 ms ◑