Skip to content

Commit

Permalink
fix no_reports_report
Browse files Browse the repository at this point in the history
  • Loading branch information
Tritium committed Oct 10, 2023
1 parent 06ef5b0 commit 21ef54b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 15 deletions.
2 changes: 1 addition & 1 deletion BIPs/00notGov/10-2023-zkevn-injectors/fund1week.report.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
File name: BIPs/00notGov/10-2023-zkevn-injectors/fund1week.json
COMMIT: `c368e23d73797145bc74539a5a3b4f73c14ac648`
COMMIT: `N/A`
CHAIN(S): `zkevm`
```
+------------+--------------------------------------------------+----------------------------------------------------------------------+--------------------------------------+-------+------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,44 @@
File name: BIPs/00notGov/10-2023-zkevn-injectors/makeInjectorsDistributors.json
COMMIT: `c368e23d73797145bc74539a5a3b4f73c14ac648`
COMMIT: `N/A`
CHAIN(S): `1101`
```
+------------------------+--------------------------------------------------------+---------+-------------------------------------------------------------------------------------------------------------+--------------+------------+
| fx_name | to | value | inputs | bip_number | tx_index |
+========================+========================================================+=========+=============================================================================================================+==============+============+
| set_reward_distributor | 0x7733650c7aaF2074FD1fCf98f70cbC09138E1Ea5 (Not Found) | 0 | { | N/A | N/A |
| | | | "_reward_token": [ | | |
| | | | "0xA8CE8aee21bC2A48a5EF670afCc9274C7bbbC035 (N/A) " | | |
| | | | ], | | |
| | | | "_distributor": [ | | |
| | | | "0x2F1901f2A82fcC3Ee9010b809938816B3b06FA6A (maxiKeepers/gaugeRewardsInjectors/usdc_rewards_injector) " | | |
| | | | ] | | |
| | | | } | | |
+------------------------+--------------------------------------------------------+---------+-------------------------------------------------------------------------------------------------------------+--------------+------------+
+------------------------+--------------------------------------------------------+---------+--------------------------------------------------------------------------------------------------------------+--------------+------------+
| fx_name | to | value | inputs | bip_number | tx_index |
+========================+========================================================+=========+==============================================================================================================+==============+============+
| set_reward_distributor | 0x7733650c7aaF2074FD1fCf98f70cbC09138E1Ea5 (Not Found) | 0 | { | N/A | N/A |
| | | | "_reward_token": [ | | |
| | | | "0xA8CE8aee21bC2A48a5EF670afCc9274C7bbbC035 (N/A) " | | |
| | | | ], | | |
| | | | "_distributor": [ | | |
| | | | "0x2F1901f2A82fcC3Ee9010b809938816B3b06FA6A (maxiKeepers/gaugeRewardsInjectors/usdc_rewards_injector) " | | |
| | | | ] | | |
| | | | } | | |
+------------------------+--------------------------------------------------------+---------+--------------------------------------------------------------------------------------------------------------+--------------+------------+
| set_reward_distributor | 0x544BDCE27174EA8Ba829939bd3568efc6A6c9c53 (Not Found) | 0 | { | N/A | N/A |
| | | | "_reward_token": [ | | |
| | | | "0xA8CE8aee21bC2A48a5EF670afCc9274C7bbbC035 (N/A) " | | |
| | | | ], | | |
| | | | "_distributor": [ | | |
| | | | "0x2F1901f2A82fcC3Ee9010b809938816B3b06FA6A (maxiKeepers/gaugeRewardsInjectors/usdc_rewards_injector) " | | |
| | | | ] | | |
| | | | } | | |
+------------------------+--------------------------------------------------------+---------+--------------------------------------------------------------------------------------------------------------+--------------+------------+
| set_reward_distributor | 0x544BDCE27174EA8Ba829939bd3568efc6A6c9c53 (Not Found) | 0 | { | N/A | N/A |
| | | | "_reward_token": [ | | |
| | | | "0xa2036f0538221a77A3937F1379699f44945018d0 (N/A) " | | |
| | | | ], | | |
| | | | "_distributor": [ | | |
| | | | "0x3fb4ee715987eD98EDbeEb144F9b6b034C4c9F02 (maxiKeepers/gaugeRewardsInjectors/matic_rewards_injector) " | | |
| | | | ] | | |
| | | | } | | |
+------------------------+--------------------------------------------------------+---------+--------------------------------------------------------------------------------------------------------------+--------------+------------+
| set_reward_distributor | 0x05257970368Efd323aeFfeC95F7e28C806c2e37F (Not Found) | 0 | { | N/A | N/A |
| | | | "_reward_token": [ | | |
| | | | "0xa2036f0538221a77A3937F1379699f44945018d0 (N/A) " | | |
| | | | ], | | |
| | | | "_distributor": [ | | |
| | | | "0x3fb4ee715987eD98EDbeEb144F9b6b034C4c9F02 (maxiKeepers/gaugeRewardsInjectors/matic_rewards_injector) " | | |
| | | | ] | | |
| | | | } | | |
+------------------------+--------------------------------------------------------+---------+--------------------------------------------------------------------------------------------------------------+--------------+------------+
```
2 changes: 1 addition & 1 deletion action-scripts/brownie/scripts/report_gauges.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,12 @@ def parse_no_reports_report(all_reports: list[dict[str, dict]], files: list[dict
filedata_by_file = defaultdict(dict)
# Generate a dict of sets of all files checked and a dict of all filedatas
for file in files:
tx_list_len_by_file[file["file_name"]] = len(file["transactions"])
covered_indexs_by_file[file["file_name"]] = set()
filedata_by_file[file["file_name"]] = file
# Figure out covered indexes per file based on provided reports
for report_info in all_reports:
for filename, info in report_info.items():
tx_list_len_by_file[filename] = len(info["report_data"]["file"]["transactions"])
for output in info["report_data"]["outputs"]:
covered_indexs_by_file[filename].add(output.get("tx_index"))
# Figure out uncovered indexes in the dict and report on them
Expand Down

0 comments on commit 21ef54b

Please sign in to comment.