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

Add forked deployment #442

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Open

Add forked deployment #442

wants to merge 11 commits into from

Conversation

coreyar
Copy link
Collaborator

@coreyar coreyar commented Sep 24, 2024

Description

Add supports for doing a "dry run" of deployments using hardhat. Require setting URI at variables ARCHIVE_NODE_<NETWORK> and setting the network with HARDHAT_FORK_NETWORK.

Without HARDHAT_FORK_NETWORK set it will run like normal. With HARDHAT_FORK_NETWORK set it runs on hardhat but overrides hardhat values with those of the forked networks

kkirka
kkirka previously approved these changes Oct 9, 2024
Copy link
Collaborator

@kkirka kkirka left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 43 to 20
if (owner !== targetOwner && pendingOwner !== targetOwner) {
if (owner.toLowerCase() !== targetOwner.toLowerCase() && pendingOwner.toLowerCase() !== targetOwner.toLowerCase()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe the convention should be to use checksummed addresses everywhere. This is what ethers returns in the calls, so we could avoid case conversions in this case.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated

Copy link

Code Coverage

Package Line Rate Branch Rate Health
contracts 94% 76%
contracts.Gateway 98% 68%
contracts.Gateway.Interfaces 100% 100%
contracts.Lens 95% 71%
contracts.Lens.legacy 0% 0%
contracts.Pool 100% 92%
contracts.Rewards 96% 70%
contracts.Shortfall 100% 85%
contracts.legacy.RiskFund 0% 0%
contracts.lib 100% 89%
Summary 76% (1557 / 2055) 65% (516 / 798)

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