tx · 9kXG7VdFaJd6mPzcfpSmvRGGECgaAuepXzvK5wXqLWLw
3N49shcErzZepEy7HDR1fjAce8humpL7QiH: -0.01000000 Waves
2022.12.18 13:20 [2365600] smart account 3N49shcErzZepEy7HDR1fjAce8humpL7QiH > SELF 0.00000000 Waves
{
"type": 13,
"id": "9kXG7VdFaJd6mPzcfpSmvRGGECgaAuepXzvK5wXqLWLw",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1671358883436,
"version": 2,
"chainId": 84,
"sender": "3N49shcErzZepEy7HDR1fjAce8humpL7QiH",
"senderPublicKey": "9frGdXQHcSntKXRWwZ4YJZWnnKREWwYH4cEzMVQwcwYj",
"proofs": [
"256wxQhJGob9ZvNfrgNNTL63YKsawa93MN7FpvvBTxTRLxhjjBZccw2dsPa6ZzyJLLk7KNCrCLHsei4kCZvX5UCX"
],
"script": "base64:BgIHCAISAwoBAQIAB2ZlZVRhbmsJAQdBZGRyZXNzAQEaAVT0a9RUk0VehJePvE6ZZrUjKYothFBWfP8AA2M1YQkAzAgCCQDMCAIJAQdBZGRyZXNzAQEaAVRLd+b7vlOc2D4ee4t82/CQ9p9WvVIXlJYJAMwIAgkBB0FkZHJlc3MBARoBVEt35vu+U5zYPh57i3zb8JD2n1a9UheUlgkAzAgCCQEHQWRkcmVzcwEBGgFUS3fm+75TnNg+HnuLfNvwkPafVr1SF5SWCQDMCAIJAQdBZGRyZXNzAQEaAVRLd+b7vlOc2D4ee4t82/CQ9p9WvVIXlJYJAMwIAgkBB0FkZHJlc3MBARoBVEt35vu+U5zYPh57i3zb8JD2n1a9UheUlgUDbmlsBQNuaWwBAWkBAmM1AQJjaQoBAXcCBWFjY3VtB2FkZHJlc3MEA3JlcwkA/AcEBQdhZGRyZXNzAgJ2ZgkAzAgCBwkAzAgCBgUDbmlsBQNuaWwDCQAAAgUDcmVzBQNyZXMFA3JlcwkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgMJAQIhP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pY0tleQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleRuJEjo=",
"height": 2365600,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: GuSgiudQe9m3Luq9qe2ty65eDVWUzVjCmWgi5xfXgzk9
Next: qtbp8vGH9uXgQ1NFuADk2MKRf6Kx7VUEjmV8b7k6yoS
Diff:
Old | New | | Differences |
---|
10 | 10 | | func w (accum,address) = { |
---|
11 | 11 | | let res = invoke(address, "vf", [false, true], nil) |
---|
12 | 12 | | if ((res == res)) |
---|
13 | | - | then match res { |
---|
14 | | - | case res: Int => |
---|
15 | | - | [IntegerEntry("res", (valueOrElse(getInteger("res"), 0) + res))] |
---|
16 | | - | case _ => |
---|
17 | | - | throw("Res not Int") |
---|
18 | | - | } |
---|
| 13 | + | then res |
---|
19 | 14 | | else throw("Strict value is not equal to itself.") |
---|
20 | 15 | | } |
---|
21 | 16 | | |
---|
|
23 | 18 | | then throw("only admin allowed") |
---|
24 | 19 | | else { |
---|
25 | 20 | | let addr = c5a[ci] |
---|
26 | | - | let fold = { |
---|
| 21 | + | let resFold = { |
---|
27 | 22 | | let $l = addr |
---|
28 | 23 | | let $s = size($l) |
---|
29 | | - | let $acc0 = "" |
---|
| 24 | + | let $acc0 = 0 |
---|
30 | 25 | | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
31 | 26 | | then $a |
---|
32 | 27 | | else w($a, $l[$i]) |
---|
|
37 | 32 | | |
---|
38 | 33 | | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) |
---|
39 | 34 | | } |
---|
40 | | - | if ((fold == fold)) |
---|
| 35 | + | if ((resFold == resFold)) |
---|
41 | 36 | | then { |
---|
42 | 37 | | let gFee = invoke(feeTank, "smf", [i.fee], nil) |
---|
43 | 38 | | if ((gFee == gFee)) |
---|
44 | | - | then nil |
---|
| 39 | + | then match resFold { |
---|
| 40 | + | case resFold: Int => |
---|
| 41 | + | [IntegerEntry("resFold", (valueOrElse(getInteger("resFold"), 0) + resFold))] |
---|
| 42 | + | case _ => |
---|
| 43 | + | throw("Res not Int") |
---|
| 44 | + | } |
---|
45 | 45 | | else throw("Strict value is not equal to itself.") |
---|
46 | 46 | | } |
---|
47 | 47 | | else throw("Strict value is not equal to itself.") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let feeTank = Address(base58'3NCCTpr3CvajyxfmNGFv2nzx6iajXDk2zPg') |
---|
5 | 5 | | |
---|
6 | 6 | | let c5a = [[Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM')]] |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func c5 (ci) = { |
---|
10 | 10 | | func w (accum,address) = { |
---|
11 | 11 | | let res = invoke(address, "vf", [false, true], nil) |
---|
12 | 12 | | if ((res == res)) |
---|
13 | | - | then match res { |
---|
14 | | - | case res: Int => |
---|
15 | | - | [IntegerEntry("res", (valueOrElse(getInteger("res"), 0) + res))] |
---|
16 | | - | case _ => |
---|
17 | | - | throw("Res not Int") |
---|
18 | | - | } |
---|
| 13 | + | then res |
---|
19 | 14 | | else throw("Strict value is not equal to itself.") |
---|
20 | 15 | | } |
---|
21 | 16 | | |
---|
22 | 17 | | if ((i.caller != this)) |
---|
23 | 18 | | then throw("only admin allowed") |
---|
24 | 19 | | else { |
---|
25 | 20 | | let addr = c5a[ci] |
---|
26 | | - | let fold = { |
---|
| 21 | + | let resFold = { |
---|
27 | 22 | | let $l = addr |
---|
28 | 23 | | let $s = size($l) |
---|
29 | | - | let $acc0 = "" |
---|
| 24 | + | let $acc0 = 0 |
---|
30 | 25 | | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
31 | 26 | | then $a |
---|
32 | 27 | | else w($a, $l[$i]) |
---|
33 | 28 | | |
---|
34 | 29 | | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
35 | 30 | | then $a |
---|
36 | 31 | | else throw("List size exceeds 5") |
---|
37 | 32 | | |
---|
38 | 33 | | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) |
---|
39 | 34 | | } |
---|
40 | | - | if ((fold == fold)) |
---|
| 35 | + | if ((resFold == resFold)) |
---|
41 | 36 | | then { |
---|
42 | 37 | | let gFee = invoke(feeTank, "smf", [i.fee], nil) |
---|
43 | 38 | | if ((gFee == gFee)) |
---|
44 | | - | then nil |
---|
| 39 | + | then match resFold { |
---|
| 40 | + | case resFold: Int => |
---|
| 41 | + | [IntegerEntry("resFold", (valueOrElse(getInteger("resFold"), 0) + resFold))] |
---|
| 42 | + | case _ => |
---|
| 43 | + | throw("Res not Int") |
---|
| 44 | + | } |
---|
45 | 45 | | else throw("Strict value is not equal to itself.") |
---|
46 | 46 | | } |
---|
47 | 47 | | else throw("Strict value is not equal to itself.") |
---|
48 | 48 | | } |
---|
49 | 49 | | } |
---|
50 | 50 | | |
---|
51 | 51 | | |
---|
52 | 52 | | @Verifier(tx) |
---|
53 | 53 | | func verify () = match tx { |
---|
54 | 54 | | case inv: InvokeScriptTransaction => |
---|
55 | 55 | | if ((addressFromRecipient(inv.dApp) == this)) |
---|
56 | 56 | | then true |
---|
57 | 57 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
58 | 58 | | case _ => |
---|
59 | 59 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
60 | 60 | | } |
---|
61 | 61 | | |
---|