Skip to content

Commit

Permalink
static type checking for deployment config + full verifications (#1019)
Browse files Browse the repository at this point in the history
* verified factory

* Miscallaneous updates to the deployment tools

* Improved the deployment tooling documentation

* add schema and deploy plumbing for options, add verify command

* remove unnecessary compile warnings from foundry

* Updated deployment

* add back warning option

* update deployments for dai_14_day and dai_30_day

* new contract addresses

* remove overwrite option

* working erc4626 deploy and factory verify

* verify script up and running

* cleanup, config conversions, docs, verification hardening

* restore deployments.json that is currently live on ui

* backwards-compatible naming for forwarder factory

* pool config and verification bug fixes

- move any token setup / approval / mint code to prepare function in config so that these functions aren't called when parsing the configuration
- constructor arg fixes in verify script

* remove name argument to deploy:hyperdrive, fix typo on reth coordinator

* fix typo in instance deploy process

* ensure we await all txs

* responding to feedback

* fix prettierignore

* remove 'noSave' param

---------

Co-authored-by: Alex Towle <jalextowle@gmail.com>
  • Loading branch information
mcclurejt and jalextowle committed May 17, 2024
1 parent 5bec12c commit 4197f43
Show file tree
Hide file tree
Showing 36 changed files with 1,917 additions and 2,319 deletions.
4 changes: 4 additions & 0 deletions .env_template
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# ethereum rpc endpoints used in fork tests and migration scripts
MAINNET_RPC_URL=
SEPOLIA_RPC_URL=
BASE_SEPOLIA_RPC_URL=

# private key used for running migration scripts
PRIVATE_KEY=

# API key used to verify contracts
ETHERSCAN_API_KEY=
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ deployments/

# Local network deployment addresses
*.local.json

# etherscan debugging
etherscan_requests/
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*.md
*.yaml
lib/
!tasks/deploy/lib
!tasks/deploy/lib/
target/
forge-cache/
node_modules/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ COPY ./foundry.toml ./foundry.toml
RUN forge install && forge build

# Compile the migration script.
Run source $HOME/.profile && cargo build -Z sparse-registry --bin migrate
RUN source $HOME/.profile && cargo build -Z sparse-registry --bin migrate

# Load the environment variables used in the migration script.
ENV HYPERDRIVE_ETHEREUM_URL=http://localhost:8545
Expand Down
Loading

0 comments on commit 4197f43

Please sign in to comment.