tx · 14baYxbEnzoCmRBJnKcJ9QqL6L37RCATk5JoriPgHJWS
3My6LmrRSRvJ73T14oT5k53SGPavGFoacWc: -0.00500000 Waves
2022.12.02 18:00 [2342879] smart account 3My6LmrRSRvJ73T14oT5k53SGPavGFoacWc > SELF 0.00000000 Waves
{
"type": 13,
"id": "14baYxbEnzoCmRBJnKcJ9QqL6L37RCATk5JoriPgHJWS",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1669993297166,
"version": 2,
"chainId": 84,
"sender": "3My6LmrRSRvJ73T14oT5k53SGPavGFoacWc",
"senderPublicKey": "7d1SvcwczqVvG6wiT5VYevFv5gAFtbWZw1SSiEUFkmcD",
"proofs": [
"2PDrhTi1duwnLHafYsgLD935ogXHGfHWgE5C6cKVqGxyend6hPHyv7ofcH7ykfGqy7y6NhzVueUfbBypXeaXvo5d"
],
"script": "base64:BgIKCAISBAoCCAESAAMAB2Fzc2V0SWQCLEhIbWFGUXBVb2J3S3h6ano0RUNhQlB0b0Y2OWt1akt3VTJjb3phVXpUc2d2AQ1nZXRBc3NldEJ5dGVzAQphc3NldElkU3RyAwkAAAIFCmFzc2V0SWRTdHICBVdBVkVTBQR1bml0CQDZBAEFCmFzc2V0SWRTdHIBCmdldEJhbGFuY2UBB2Fzc2V0SWQEByRtYXRjaDAFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIEVW5pdAQBeAUHJG1hdGNoMAgJAO8HAQUEdGhpcwlhdmFpbGFibGUJAPAHAgUEdGhpcwkBBXZhbHVlAQUHYXNzZXRJZAIBaQEId2l0aGRyYXcCCmFzc2V0SWRTdHILYXNzZXRBbW91bnQEB2JhbGFuY2UJAQpnZXRCYWxhbmNlAQkA2QQBBQdhc3NldElkAwkAZgIFC2Fzc2V0QW1vdW50BQdiYWxhbmNlCQACAQIqVGhpcyBhbW91bnQgaXMgbm90IGF2YWlsYWJsZSBmb3IgdGhpcyB1c2VyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgULYXNzZXRBbW91bnQJAQ1nZXRBc3NldEJ5dGVzAQUKYXNzZXRJZFN0cgUDbmlsAWkBB2RlcG9zaXQABQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5SOJ1VQ==",
"height": 2342879,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: DoDiJoYhvgCFv5ovWQJxEA8vUsjn3y64u7PFyy4on7GN
Next: GBqArdceoo75o4HmfRazGjNtJTZ51g93YpsmgCspasma
Diff:
Old | New | | Differences |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | @Callable(g) |
---|
33 | | - | func deposit () = if (if ((size(g.payments) != 1)) |
---|
34 | | - | then true |
---|
35 | | - | else (g.payments[0].amount == 0)) |
---|
36 | | - | then throw("1 payment has to be attached") |
---|
37 | | - | else nil |
---|
| 33 | + | func deposit () = nil |
---|
38 | 34 | | |
---|
39 | 35 | | |
---|
40 | 36 | | @Verifier(j) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "HHmaFQpUobwKxzjz4ECaBPtoF69kujKwU2cozaUzTsgv" |
---|
5 | 5 | | |
---|
6 | 6 | | func b (c) = if ((c == "WAVES")) |
---|
7 | 7 | | then unit |
---|
8 | 8 | | else fromBase58String(c) |
---|
9 | 9 | | |
---|
10 | 10 | | |
---|
11 | 11 | | func d (a) = { |
---|
12 | 12 | | let e = a |
---|
13 | 13 | | if ($isInstanceOf(e, "Unit")) |
---|
14 | 14 | | then { |
---|
15 | 15 | | let f = e |
---|
16 | 16 | | wavesBalance(this).available |
---|
17 | 17 | | } |
---|
18 | 18 | | else assetBalance(this, value(a)) |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | @Callable(g) |
---|
23 | 23 | | func withdraw (c,h) = { |
---|
24 | 24 | | let i = d(fromBase58String(a)) |
---|
25 | 25 | | if ((h > i)) |
---|
26 | 26 | | then throw("This amount is not available for this user") |
---|
27 | 27 | | else [ScriptTransfer(g.caller, h, b(c))] |
---|
28 | 28 | | } |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | @Callable(g) |
---|
33 | | - | func deposit () = if (if ((size(g.payments) != 1)) |
---|
34 | | - | then true |
---|
35 | | - | else (g.payments[0].amount == 0)) |
---|
36 | | - | then throw("1 payment has to be attached") |
---|
37 | | - | else nil |
---|
| 33 | + | func deposit () = nil |
---|
38 | 34 | | |
---|
39 | 35 | | |
---|
40 | 36 | | @Verifier(j) |
---|
41 | 37 | | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
42 | 38 | | |
---|