tx · 7488MS6YhQJY6ZwVuY4bjveiJdLdTstetcMCr1YiWiVP 3MwJL2DqwKdgVQ2Aw5ov1rTEmGTKEkK1wET: -0.00100000 Waves 2023.05.15 14:15 [2579000] smart account 3MwJL2DqwKdgVQ2Aw5ov1rTEmGTKEkK1wET > SELF 0.00000000 Waves
{ "type": 13, "id": "7488MS6YhQJY6ZwVuY4bjveiJdLdTstetcMCr1YiWiVP", "fee": 100000, "feeAssetId": null, "timestamp": 1684149356585, "version": 2, "chainId": 84, "sender": "3MwJL2DqwKdgVQ2Aw5ov1rTEmGTKEkK1wET", "senderPublicKey": "ACNdxdXUS5uLiYS4LMdrApJBVCQj8FDMHEknQkNYCUaK", "proofs": [ "3TXYNHc2uuEdCBdddhFsYY7eHvBD8k7ARpuNNEofTwdXr9Pg9JsESVkU5qEJPNUyQVdBRZs5RxdAaxMHtaf7t5hB" ], "script": "base64:BgIPCAISABIDCgEBEgQKAgEIAAMBaQEHZGVwb3NpdAAEB3BheW1lbnQJAQV2YWx1ZQEIBQFpCHBheW1lbnRzAwMJAGYCCQCQAwEFB3BheW1lbnQAAQYJAQlpc0RlZmluZWQBCAkAkQMCBQdwYXltZW50AAAHYXNzZXRJZAkAAgECKFlvdSBjYW4gb25seSBvbmUgV0FWRVMgZGVwb3NpdCBhdCBhIHRpbWUECmN1cnJlbnRLZXkJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQNY3VycmVudEFtb3VudAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQpjdXJyZW50S2V5AAAECW5ld0Ftb3VudAkAZAIFDWN1cnJlbnRBbW91bnQICQCRAwIFB3BheW1lbnQAAAZhbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIFCmN1cnJlbnRLZXkFCW5ld0Ftb3VudAUDbmlsAWkBCHdpdGhkcmF3AQZhbW91bnQECmN1cnJlbnRLZXkJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQNY3VycmVudEFtb3VudAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQpjdXJyZW50S2V5AAAECW5ld0Ftb3VudAkAZQIFDWN1cnJlbnRBbW91bnQFBmFtb3VudAMJAGYCAAAFBmFtb3VudAkAAgECH0Nhbm5vdCB3aXRoZHJhdyBuZWdhdGl2ZSBhbW91bnQDCQBmAgAABQluZXdBbW91bnQJAAIBAhJOb3QgZW5vdWdoIGJhbGFuY2UJAMwIAgkBDEludGVnZXJFbnRyeQIFCmN1cnJlbnRLZXkFCW5ld0Ftb3VudAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFBmFtb3VudAUEdW5pdAUDbmlsAWkBCmRlcDNTd2F2ZXMCBmFtb3VudA1hZGRyZXNzU3dhdmVzBApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEB2FkZHJlc3MJAKYIAQUNYWRkcmVzc1N3YXZlcwkAzAgCCQEMSW50ZWdlckVudHJ5AgUKY3VycmVudEtleQUGYW1vdW50BQNuaWwBAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleYY92iU=", "height": 2579000, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EvNjrZERhFCLCnXHVLQDAtuxQbquGQgxaBTbrxLeY9o9 Next: 5tSfbMrsH5hysiKtzMsiTMn1pCZBgAEFQM6G2Gpvxz84 Diff:
Old | New | Differences | |
---|---|---|---|
35 | 35 | ||
36 | 36 | ||
37 | 37 | @Callable(a) | |
38 | - | func | |
38 | + | func dep3Swaves (f,g) = { | |
39 | 39 | let c = toBase58String(a.caller.bytes) | |
40 | 40 | let h = addressFromString(g) | |
41 | - | let d = f | |
42 | - | [IntegerEntry(c, d)] | |
41 | + | [IntegerEntry(c, f)] | |
43 | 42 | } | |
44 | 43 | ||
45 | 44 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
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 = value(a.payments) | |
9 | 9 | if (if ((size(b) > 1)) | |
10 | 10 | then true | |
11 | 11 | else isDefined(b[0].assetId)) | |
12 | 12 | then throw("You can only one WAVES deposit at a time") | |
13 | 13 | else { | |
14 | 14 | let c = toBase58String(a.caller.bytes) | |
15 | 15 | let d = valueOrElse(getInteger(this, c), 0) | |
16 | 16 | let e = (d + b[0].amount) | |
17 | 17 | [IntegerEntry(c, e)] | |
18 | 18 | } | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | ||
23 | 23 | @Callable(a) | |
24 | 24 | func withdraw (f) = { | |
25 | 25 | let c = toBase58String(a.caller.bytes) | |
26 | 26 | let d = valueOrElse(getInteger(this, c), 0) | |
27 | 27 | let e = (d - f) | |
28 | 28 | if ((0 > f)) | |
29 | 29 | then throw("Cannot withdraw negative amount") | |
30 | 30 | else if ((0 > e)) | |
31 | 31 | then throw("Not enough balance") | |
32 | 32 | else [IntegerEntry(c, e), ScriptTransfer(a.caller, f, unit)] | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | ||
37 | 37 | @Callable(a) | |
38 | - | func | |
38 | + | func dep3Swaves (f,g) = { | |
39 | 39 | let c = toBase58String(a.caller.bytes) | |
40 | 40 | let h = addressFromString(g) | |
41 | - | let d = f | |
42 | - | [IntegerEntry(c, d)] | |
41 | + | [IntegerEntry(c, f)] | |
43 | 42 | } | |
44 | 43 | ||
45 | 44 | ||
46 | 45 | @Verifier(i) | |
47 | 46 | func j () = { | |
48 | 47 | let k = i | |
49 | 48 | sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) | |
50 | 49 | } | |
51 | 50 |
github/deemru/w8io/026f985 22.24 ms ◑