feat: change notifications to be a daily summary #2164
+161
−9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a daily summary script of the proofs submitted by the periodic sender.
This script generates a summary of the file corresponding to the current day in the
alerts/notification_logsfolder.To run this script using cron, use the following command:
Note that you should change the /path/to/aligned/ placeholder with the actual path to aligned on your computer.
How to test (devnet)
To have some entries to test the generator, first, we are running the periodic sender for a few minutes. To do it, I recommend reducing the
sleep_timein the periodic sender before starting. After it, you should fund the account used in the script to send the proofs. You can do it by running:aligned deposit-to-batcher \ --network devnet \ --rpc_url http://localhost:8545 \ --amount 15ether \ --private_key 0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356Now we can run the script by using the following:
After a few minutes, you should see a few logs in the file alerts/notification_logs/log_2025_11_03.txt (or the one corresponding to the date you test this PR). You can shut down the operator to have unverified proofs in the summary, but it's not really necessary.
To generate the summary, run the following command:
This will output the summary on the terminal, but you can test it on Slack by setting the SLACK_WEBHOOK_URL in the
.env.devnetfile.Checklist
testnet, everything else tostaging