Skip to content

feat: add config checker for staking roles#102

Merged
Seth-Schmidt merged 4 commits intomainfrom
feature/pro-304-config-checker-for-staking-roles
Apr 20, 2026
Merged

feat: add config checker for staking roles#102
Seth-Schmidt merged 4 commits intomainfrom
feature/pro-304-config-checker-for-staking-roles

Conversation

@Seth-Schmidt
Copy link
Copy Markdown
Contributor

Summary

Adds a get-staking-roles script to chains-config-checker that reports role holders on the ProtocolStaking
contracts (KMS + Coprocessor) and the beneficiary of every OperatorStaking contract.

Contract addresses live in a new staking-addresses.json, organized as protocolStaking.{kms,coprocessor} and
operatorStaking.{kms,coprocessor}.<OperatorName>, so the ~20 operator addresses stay out of .env and can be
maintained in one place.

@Seth-Schmidt Seth-Schmidt self-assigned this Apr 11, 2026
@cla-bot cla-bot Bot added the cla-signed label Apr 11, 2026
@Seth-Schmidt Seth-Schmidt changed the title feat: add config checker for staking roles feat: add config checker for staking roles Apr 11, 2026
@Seth-Schmidt Seth-Schmidt marked this pull request as ready for review April 15, 2026 00:46
@Seth-Schmidt Seth-Schmidt requested review from a team and mortendahl as code owners April 15, 2026 00:46
Comment thread contracts/chains-config-checker/staking-addresses.json
- Introduced a new script `get-staking-roles` to report roles of ProtocolStaking contracts and their beneficiaries.
- Updated `package.json` to include the new script in the npm tasks.
- Enhanced the README to document the usage of the new script and added it to the list of available scripts.
- Created a new `staking-addresses.json` file to store addresses for ProtocolStaking and OperatorStaking contracts.
…ation updates

- Added support for the Sepolia testnet in the chains-config-checker, including new RPC endpoint in `.env.example`.
- Updated `staking-addresses.json` to include separate configurations for mainnet and testnet, with deployment blocks for each contract.
- Enhanced the `README.md` to clarify the usage of the `get-staking-roles` script across both mainnet and testnet, including details on deployment blocks.
- Modified the `get-staking-roles.js` script to handle network-specific configurations and improve error handling for missing RPC URLs.

chore: streamline staking address configurations and enhance script functionality

- Removed the RPC_SEPOLIA variable from `.env.example` as it is no longer needed.
- Updated `README.md` to clarify the usage of the `get-staking-roles` script, emphasizing the separation of mainnet and testnet configurations.
- Introduced a new `staking-addresses-testnet.json` file for testnet-specific staking addresses.
- Refactored `get-staking-roles.js` to utilize network-specific configuration files, improving clarity and maintainability.
@Seth-Schmidt Seth-Schmidt force-pushed the feature/pro-304-config-checker-for-staking-roles branch from 5918c0c to 56e38d2 Compare April 20, 2026 19:30
…script

- Added a new section for the `getStakingRoles` script, outlining its functionality to report roles of ProtocolStaking contracts and beneficiaries of OperatorStaking contracts.
- Clarified the usage instructions for mainnet and testnet configurations, including command examples and environment variable requirements.
- Enhanced documentation to improve clarity and usability for developers working with staking roles.
@Seth-Schmidt Seth-Schmidt merged commit ec6aea9 into main Apr 20, 2026
3 checks passed
@Seth-Schmidt Seth-Schmidt deleted the feature/pro-304-config-checker-for-staking-roles branch April 20, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants