Skip to content

Add Slack notifications to reward minting scripts - #50

Merged
rsolari merged 2 commits into
mainfrom
rsolari/slack-mint-summaries
Feb 11, 2026
Merged

Add Slack notifications to reward minting scripts#50
rsolari merged 2 commits into
mainfrom
rsolari/slack-mint-summaries

Conversation

@rsolari

@rsolari rsolari commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Added optional Slack webhook notifications to RequestMint, ExecuteMints, and NotifyReward scripts
  • New slackNotify.ts utility handles posting to Slack with level-based emoji prefixes
  • Notifications sent on successful mints, rate adjustments, and critical failures
  • Slack is optional—if SLACK_WEBHOOK_URL env var is unset, scripts run normally without any notifications

Test Plan

  • Set SLACK_WEBHOOK_URL to a test webhook and run --dry-run to confirm no messages are sent (dry runs excluded)
  • Run each script against testnet and verify Slack messages arrive with correct formatting
  • Unset SLACK_WEBHOOK_URL and verify scripts run normally without notification warnings

🤖 Generated with Claude Code

rsolari and others added 2 commits February 10, 2026 17:13
Add optional Slack webhook integration to RequestMint, ExecuteMints, and NotifyReward scripts. Notifications are sent for successful mints, rate adjustments, and critical failures. Slack is optional—if SLACK_WEBHOOK_URL is unset, scripts run normally without notifications.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Replace the fixed 3-second sleep with a polling loop that checks
port 8011 until the zkSync node is actually accepting connections
(up to 30s). Also increase the before hook timeout to 120s and
handle ESRCH in the after hook when the node process already exited.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Coverage after merging rsolari/slack-mint-summaries into main will be

73.33%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   ZkStaker.sol68.42%100%50%73.33%79, 85, 90, 95

@rsolari
rsolari merged commit 03b1313 into main Feb 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant