Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README with command to deploy the new address registry #30

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

garyghayrat
Copy link
Member

No description provided.

README.md Outdated

```bash
make
forge create src/gov-action-contracts/address-registries/L2AddressRegistry.sol:L2AddressRegistry --constructor-args <NEW_CORE_GOVERNOR_CONTRACT_ADDRESS> <NEW_TREASURY_GOVERNOR_CONTRACT_ADDRESS> 0xF3FC178157fb3c87548bAA86F9d24BA38E649B58 0x1D62fFeB72e4c360CcBbacf7c965153b00260417 --rpc-url <ARB_ONE_RPC_URL> --private-key <PRIVATE_KEY>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is probably best not to include the private key in the command. It would probably be better to use the interactive flag.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a sample command we could test with? Or would I have to deploy a governor and treasury contract first?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forge create src/gov-action-contracts/address-registries/L2AddressRegistry.sol:L2AddressRegistry --constructor-args 0xf07DeD9dC292157749B6Fd268E37DF6EA38395B9 0x789fC99093B09aD01C34DC7251D0C89ce743e5a4 0xF3FC178157fb3c87548bAA86F9d24BA38E649B58 0x1D62fFeB72e4c360CcBbacf7c965153b00260417 --rpc-url https://arbitrum.llamarpc.com --interactive But this would actually deploy to Arb mainnet. There are some relational conditions between these contracts that need to be met, so I'm not sure how to test it without the properly setup testnet contract addresses.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like there is a way to look for contracts with the bytecode deployed on other networks using etherscan? That way maybe we can test on arbitrum sepolia. But can't seem to find that option right now. Any recs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

Coverage after merging fix-deploying-new-address-registry into main will be

93.07%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   L2ArbitrumGovernorV2.sol100%100%100%100%
src/gov-action-contracts
   TimelockRolesUpgrader.sol89.19%60%100%100%49–52
src/lib/governance/extensions
   GovernorCountingFractionalUpgradeable.sol78.65%73.08%50%86.79%189–191, 194–196, 199–201, 207–208, 223, 85, 92

@alexkeating alexkeating merged commit 8686f9c into main Jul 26, 2024
6 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.

2 participants