Skip to content
This repository was archived by the owner on Jul 10, 2026. It is now read-only.

DEV-34: Mainnet deployment preparation — permissions, complianceOwner, interfaces - #19

Closed
madschristensen99 wants to merge 1 commit into
chainlink-resolverfrom
mads/dev-34-mainnet-deployment-preparation-permissions-complianceowner
Closed

DEV-34: Mainnet deployment preparation — permissions, complianceOwner, interfaces#19
madschristensen99 wants to merge 1 commit into
chainlink-resolverfrom
mads/dev-34-mainnet-deployment-preparation-permissions-complianceowner

Conversation

@madschristensen99

Copy link
Copy Markdown
Contributor

Scope

  • Minimize permissions — each role gets only necessary rights
  • Add COMPLIANCE_ROLE for regulatory operations (pause/unpause)
  • Finalize interfaces — public API frozen after this PR
  • Deploy scripts for mainnet with Arbiscan verification
  • Documentation of deploy procedure and ownership transfer to multisig

Changes

  • New: — shared role-based access control (DEFAULT_ADMIN_ROLE, PROTOCOL_ROLE, COMPLIANCE_ROLE, UPGRADE_ROLE)
  • Updated: All canonical resolvers now inherit ReineiraAccessControl

  • New: — unified mainnet deployment with automatic role setup and deployer admin renouncement
  • New: — complete deployment guide
  • Updated: , , all tests

Tests

  • Unit tests: 44 passed, 0 failed
  • Fork tests (Arbitrum Sepolia): 20 passed, 0 failed

Closes DEV-34

…trol, complianceOwner, deploy scripts, docs

- Add ReineiraAccessControl with DEFAULT_ADMIN_ROLE, PROTOCOL_ROLE, COMPLIANCE_ROLE, UPGRADE_ROLE
- Gate onConditionSet to onlyProtocol + whenNotPaused
- Gate isConditionMet to whenNotPaused across all resolvers
- Add complianceOwner pause/unpause for regulatory ops
- Finalize interfaces — public API frozen
- DeployMainnet.s.sol for unified mainnet deploy with Arbiscan verification
- Update individual deploy scripts with role setup
- Add docs/MAINNET_DEPLOY.md with full procedure and ownership transfer
- Update foundry.toml with arbitrum RPC + Etherscan config
- Update .env.example with mainnet role variables
- Update all tests for new constructors and access control
@madschristensen99
madschristensen99 marked this pull request as draft May 11, 2026 20:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant