tx · AUBpH393S1ZviBCB4PQyz4JLqXnZGLjgohw8NupcUAn4
3N49shcErzZepEy7HDR1fjAce8humpL7QiH: -0.01000000 Waves
2022.12.18 12:48 [2365565] smart account 3N49shcErzZepEy7HDR1fjAce8humpL7QiH > SELF 0.00000000 Waves
{
"type": 13,
"id": "AUBpH393S1ZviBCB4PQyz4JLqXnZGLjgohw8NupcUAn4",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1671356934539,
"version": 2,
"chainId": 84,
"sender": "3N49shcErzZepEy7HDR1fjAce8humpL7QiH",
"senderPublicKey": "9frGdXQHcSntKXRWwZ4YJZWnnKREWwYH4cEzMVQwcwYj",
"proofs": [
"2Pz3DdfzmsAnrCddP7Z9LznUJEdD6eswAZdLFaSrvDvior8fTAS3Y1nK3nDnpnLgnDzwy9JLGS2UUvint66JAHgM"
],
"script": "base64:BgIHCAISAwoBAQIAB2ZlZVRhbmsJAQdBZGRyZXNzAQEaAVT0a9RUk0VehJePvE6ZZrUjKYothFBWfP8AA2M1YQkAzAgCCQDMCAIJAQdBZGRyZXNzAQEaAVRLd+b7vlOc2D4ee4t82/CQ9p9WvVIXlJYJAMwIAgkBB0FkZHJlc3MBARoBVEt35vu+U5zYPh57i3zb8JD2n1a9UheUlgkAzAgCCQEHQWRkcmVzcwEBGgFUS3fm+75TnNg+HnuLfNvwkPafVr1SF5SWCQDMCAIJAQdBZGRyZXNzAQEaAVRLd+b7vlOc2D4ee4t82/CQ9p9WvVIXlJYJAMwIAgkBB0FkZHJlc3MBARoBVEt35vu+U5zYPh57i3zb8JD2n1a9UheUlgUDbmlsBQNuaWwBAWkBAmM1AQJjaQoBAXcCBWFjY3VtB2FkZHJlc3MEA3JlcwkA/AcEBQdhZGRyZXNzAgJ2ZgkAzAgCBwkAzAgCBgUDbmlsBQNuaWwDCQAAAgUDcmVzBQNyZXMEByRtYXRjaDAFA3JlcwMJAAECBQckbWF0Y2gwAgNJbnQEA3JlcwUHJG1hdGNoMAkAzAgCCQEMS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J0eA9zZW5kZXJQdWJsaWNLZXnsQgTV",
"height": 2365565,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 7nPcngL6m7yVQMSrXsP9mLzEqsWeSbSCYYxHf8WthQeR
Next: GuSgiudQe9m3Luq9qe2ty65eDVWUzVjCmWgi5xfXgzk9
Diff:
Old | New | | Differences |
---|
10 | 10 | | func e (f,g) = { |
---|
11 | 11 | | let h = invoke(g, "vf", [false, true], nil) |
---|
12 | 12 | | if ((h == h)) |
---|
13 | | - | then nil |
---|
| 13 | + | then { |
---|
| 14 | + | let i = h |
---|
| 15 | + | if ($isInstanceOf(i, "Int")) |
---|
| 16 | + | then { |
---|
| 17 | + | let h = i |
---|
| 18 | + | [IntegerEntry("res", (valueOrElse(getInteger("res"), 0) + h))] |
---|
| 19 | + | } |
---|
| 20 | + | else nil |
---|
| 21 | + | } |
---|
14 | 22 | | else throw("Strict value is not equal to itself.") |
---|
15 | 23 | | } |
---|
16 | 24 | | |
---|
17 | 25 | | if ((c.caller != this)) |
---|
18 | 26 | | then throw("only admin allowed") |
---|
19 | 27 | | else { |
---|
20 | | - | let i = b[d] |
---|
21 | | - | let j = { |
---|
22 | | - | let k = i |
---|
23 | | - | let l = size(k) |
---|
24 | | - | let m = "" |
---|
25 | | - | func n (o,p) = if ((p >= l)) |
---|
26 | | - | then o |
---|
27 | | - | else e(o, k[p]) |
---|
| 28 | + | let j = b[d] |
---|
| 29 | + | let k = { |
---|
| 30 | + | let l = j |
---|
| 31 | + | let m = size(l) |
---|
| 32 | + | let n = "" |
---|
| 33 | + | func o (p,q) = if ((q >= m)) |
---|
| 34 | + | then p |
---|
| 35 | + | else e(p, l[q]) |
---|
28 | 36 | | |
---|
29 | | - | func q (o,p) = if ((p >= l)) |
---|
30 | | - | then o |
---|
| 37 | + | func r (p,q) = if ((q >= m)) |
---|
| 38 | + | then p |
---|
31 | 39 | | else throw("List size exceeds 5") |
---|
32 | 40 | | |
---|
33 | | - | q(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5) |
---|
| 41 | + | r(o(o(o(o(o(n, 0), 1), 2), 3), 4), 5) |
---|
34 | 42 | | } |
---|
35 | | - | if ((j == j)) |
---|
| 43 | + | if ((k == k)) |
---|
36 | 44 | | then { |
---|
37 | | - | let r = invoke(a, "smf", [c.fee], nil) |
---|
38 | | - | if ((r == r)) |
---|
| 45 | + | let s = invoke(a, "smf", [c.fee], nil) |
---|
| 46 | + | if ((s == s)) |
---|
39 | 47 | | then nil |
---|
40 | 48 | | else throw("Strict value is not equal to itself.") |
---|
41 | 49 | | } |
---|
|
44 | 52 | | } |
---|
45 | 53 | | |
---|
46 | 54 | | |
---|
47 | | - | @Verifier(s) |
---|
48 | | - | func t () = { |
---|
49 | | - | let u = s |
---|
50 | | - | if ($isInstanceOf(u, "InvokeScriptTransaction")) |
---|
| 55 | + | @Verifier(t) |
---|
| 56 | + | func u () = { |
---|
| 57 | + | let i = t |
---|
| 58 | + | if ($isInstanceOf(i, "InvokeScriptTransaction")) |
---|
51 | 59 | | then { |
---|
52 | | - | let v = u |
---|
| 60 | + | let v = i |
---|
53 | 61 | | if ((addressFromRecipient(v.dApp) == this)) |
---|
54 | 62 | | then true |
---|
55 | | - | else sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey) |
---|
| 63 | + | else sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) |
---|
56 | 64 | | } |
---|
57 | | - | else sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey) |
---|
| 65 | + | else sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) |
---|
58 | 66 | | } |
---|
59 | 67 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = Address(base58'3NCCTpr3CvajyxfmNGFv2nzx6iajXDk2zPg') |
---|
5 | 5 | | |
---|
6 | 6 | | let b = [[Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM')]] |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(c) |
---|
9 | 9 | | func c5 (d) = { |
---|
10 | 10 | | func e (f,g) = { |
---|
11 | 11 | | let h = invoke(g, "vf", [false, true], nil) |
---|
12 | 12 | | if ((h == h)) |
---|
13 | | - | then nil |
---|
| 13 | + | then { |
---|
| 14 | + | let i = h |
---|
| 15 | + | if ($isInstanceOf(i, "Int")) |
---|
| 16 | + | then { |
---|
| 17 | + | let h = i |
---|
| 18 | + | [IntegerEntry("res", (valueOrElse(getInteger("res"), 0) + h))] |
---|
| 19 | + | } |
---|
| 20 | + | else nil |
---|
| 21 | + | } |
---|
14 | 22 | | else throw("Strict value is not equal to itself.") |
---|
15 | 23 | | } |
---|
16 | 24 | | |
---|
17 | 25 | | if ((c.caller != this)) |
---|
18 | 26 | | then throw("only admin allowed") |
---|
19 | 27 | | else { |
---|
20 | | - | let i = b[d] |
---|
21 | | - | let j = { |
---|
22 | | - | let k = i |
---|
23 | | - | let l = size(k) |
---|
24 | | - | let m = "" |
---|
25 | | - | func n (o,p) = if ((p >= l)) |
---|
26 | | - | then o |
---|
27 | | - | else e(o, k[p]) |
---|
| 28 | + | let j = b[d] |
---|
| 29 | + | let k = { |
---|
| 30 | + | let l = j |
---|
| 31 | + | let m = size(l) |
---|
| 32 | + | let n = "" |
---|
| 33 | + | func o (p,q) = if ((q >= m)) |
---|
| 34 | + | then p |
---|
| 35 | + | else e(p, l[q]) |
---|
28 | 36 | | |
---|
29 | | - | func q (o,p) = if ((p >= l)) |
---|
30 | | - | then o |
---|
| 37 | + | func r (p,q) = if ((q >= m)) |
---|
| 38 | + | then p |
---|
31 | 39 | | else throw("List size exceeds 5") |
---|
32 | 40 | | |
---|
33 | | - | q(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5) |
---|
| 41 | + | r(o(o(o(o(o(n, 0), 1), 2), 3), 4), 5) |
---|
34 | 42 | | } |
---|
35 | | - | if ((j == j)) |
---|
| 43 | + | if ((k == k)) |
---|
36 | 44 | | then { |
---|
37 | | - | let r = invoke(a, "smf", [c.fee], nil) |
---|
38 | | - | if ((r == r)) |
---|
| 45 | + | let s = invoke(a, "smf", [c.fee], nil) |
---|
| 46 | + | if ((s == s)) |
---|
39 | 47 | | then nil |
---|
40 | 48 | | else throw("Strict value is not equal to itself.") |
---|
41 | 49 | | } |
---|
42 | 50 | | else throw("Strict value is not equal to itself.") |
---|
43 | 51 | | } |
---|
44 | 52 | | } |
---|
45 | 53 | | |
---|
46 | 54 | | |
---|
47 | | - | @Verifier(s) |
---|
48 | | - | func t () = { |
---|
49 | | - | let u = s |
---|
50 | | - | if ($isInstanceOf(u, "InvokeScriptTransaction")) |
---|
| 55 | + | @Verifier(t) |
---|
| 56 | + | func u () = { |
---|
| 57 | + | let i = t |
---|
| 58 | + | if ($isInstanceOf(i, "InvokeScriptTransaction")) |
---|
51 | 59 | | then { |
---|
52 | | - | let v = u |
---|
| 60 | + | let v = i |
---|
53 | 61 | | if ((addressFromRecipient(v.dApp) == this)) |
---|
54 | 62 | | then true |
---|
55 | | - | else sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey) |
---|
| 63 | + | else sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) |
---|
56 | 64 | | } |
---|
57 | | - | else sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey) |
---|
| 65 | + | else sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) |
---|
58 | 66 | | } |
---|
59 | 67 | | |
---|