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