Skip to content

feat: add support for local nitro networks #674

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

Merged
merged 1 commit into from
Aug 5, 2022
Merged

Conversation

tmigone
Copy link
Member

@tmigone tmigone commented Aug 5, 2022

Motivation

This PR adds the local nitro networks L1 and L2 to hardhat and fixes a few bugs to allow deploying the protocol to those networks.

Changes

  • Add local nitro networks (L1 and L2) to hardhat
  • Fail gracefully if the network doesn't support evm_setAutomine on local networks. Nitro uses geth in dev mode which already has automine behaviour and doesn't support the RPC call.

@tmigone tmigone changed the base branch from dev to l2-testnet August 5, 2022 10:13
@tmigone tmigone requested review from abarmat and pcarranzav August 5, 2022 10:15
@codecov
Copy link

codecov bot commented Aug 5, 2022

Codecov Report

Merging #674 (21e8695) into l2-testnet (3a22a27) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           l2-testnet     #674   +/-   ##
===========================================
  Coverage       92.13%   92.13%           
===========================================
  Files              44       44           
  Lines            2137     2137           
  Branches          370      370           
===========================================
  Hits             1969     1969           
  Misses            168      168           
Flag Coverage Δ
unittests 92.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -72,7 +72,7 @@ export const migrate = async (cli: CLIEnvironment, cliArgs: CLIArgs): Promise<vo

if (chainId == 1337) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Once we move the list of contracts to deploy to a config file we won't need this if/case

@tmigone tmigone merged commit 19de7a2 into l2-testnet Aug 5, 2022
@tmigone tmigone deleted the local-nitro branch August 5, 2022 14:54
tmigone added a commit that referenced this pull request Sep 5, 2022
tmigone added a commit that referenced this pull request Sep 6, 2022
tmigone added a commit that referenced this pull request Sep 6, 2022
tmigone added a commit that referenced this pull request Sep 7, 2022
tmigone added a commit that referenced this pull request Sep 7, 2022
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