Skip to content

feat(scripts): enhance monitoring, multi-sig upgrades, deployment cost estimation and rollback support - #682

Merged
DeFiVC merged 1 commit into
ChainLearnOfficial:mainfrom
OluwapelumiElisha:feat/scripts-enhancements-deployment-monitor-multisig
Oct 21, 2026
Merged

DeFiVC merged 1 commit into
ChainLearnOfficial:mainfrom
OluwapelumiElisha:feat/scripts-enhancements-deployment-monitor-multisig

Conversation

@OluwapelumiElisha

Copy link
Copy Markdown
Contributor

Closes

Closes #605
Closes #604
Closes #603
Closes #602

Description:

Summary of Changes

This PR addresses operational script enhancements across contract monitoring, upgrades, and deployment flows:

  1. Monitor Health Checks Enhancement (#605):

    • Added contract pause state checks for all contracts (learn-token, credential-nft, progress-tracker).
    • Added pending admin transfer checks across all contracts.
    • Added cross-contract wiring verification to confirm that learn-token and credential-nft point to the correct progress-tracker.
    • Added credential-nft specific metrics (total credentials issued, revocation count query).
    • Added progress-tracker specific metrics (course and enrollment metrics).
    • Updated docs/monitoring-guide.md with the new health check overview.
  2. Multi-Sig Upgrade Support (#604):

    • Added --multisig and --co-signer <ADDRESS> flags to scripts/upgrade.sh.
    • Implemented upgrade_multisig path for learn-token while keeping single-admin upgrades for credential-nft and progress-tracker.
    • Documented the multi-sig authorization flow in script comments, --help, and docs/upgrade-guide.md.
  3. Deployment Cost Estimation (#602):

    • Added pre-deployment cost estimation calculating upload storage rent and instance deployment fees from actual optimized WASM byte sizes.
    • Added --confirm flag to skip interactive prompts for automated deployments.
    • Added --estimate-only flag to inspect costs without triggering deployments.
  4. Rollback & Resume Support for Partial Deployments (#603):

    • Implemented state tracking via .deploy-partial-${NETWORK}.json after each contract deployment step.
    • Added failure handling with clear status reports and rollback guidance.
    • Added --resume flag to pick up partially-deployed setups without redeploying existing contracts.
    • Cleans up partial state upon final JSON generation.

Closes

Closes #605
Closes #604
Closes #603
Closes #602

@drips-wave

drips-wave Bot commented Oct 21, 2026

Copy link
Copy Markdown

@OluwapelumiElisha Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@DeFiVC
DeFiVC merged commit 70d4970 into ChainLearnOfficial:main Oct 21, 2026
alfeedrips pushed a commit to Seniorman-org/chainlearn-contracts that referenced this pull request Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants