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

feat: add DeploymentConfig for network specifc deployments #5

Merged
merged 1 commit into from
Sep 7, 2023

Commits on Sep 6, 2023

  1. feat: add DeploymentConfig for network specifc deployments

    To allow deployment to different chains but using the same deployment
    scripts, this commit introduces a basic `DeploymentConfig` which can be
    extended as necessary in each project.
    
    There's a few things that should be considered:
    
    - `activeNetworkConfig` will be initialized via the constructor, at
      which point it is know what `block.chainid` is
    - To add new configuration settings, extend `NetworkConfig`
    - To add a new config for a different chain, extend the `if/else` block
      in the constructor so that it creates a `NetworkConfig` for the chain
      in question
    0x-r4bbit committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    d6bbd46 View commit details
    Browse the repository at this point in the history