2 Commits

Author SHA1 Message Date
r4bbit
22704ebe1a
refactor: move deployer assignment to the top (#9)
This ensures `deployer` is set then deployment configs are created.
2023-09-26 16:35:42 +02:00
r4bbit
013c9b7e9f
feat: add DeploymentConfig for network specifc deployments (#5)
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
2023-09-07 10:21:11 +02:00