-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Right now the steps are:
- Run deployment script
- Creates custom
env/latest/<chainid>-latest.jsonfile (through JsonRegistry)- This step stores the contract addresses and version per contract
- Creates the default
broadcast/<script>.s.sol/<chainid>/latest.json
- Creates custom
- Run
update_network_config.py- Reads
env/latest/<chainid>-latest.json - Reads
broadcast/<script>.s.sol/<chainid>/latest.json - Populates
env/<netwok>.jsonfile
- Reads
We don't need env/latest/<chainid>-latest.json and JsonRegistry. We can get the contract addresses from the broadcast file, and we can just write the versioning in the own broadcast/<script>.s.sol/<chainid>/latest.json after stopBroadcast(). With this, we have just one file with all the deployment information. update_network_config.py can later read one file.
Benefits:
- Easier to infer from where the values come.
- Only one single file that we can share by just copying the file after a new deployment.
- Simplify deployment scripts
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels