From 5af967dff9e8309af908854c6f28e3598092fe47 Mon Sep 17 00:00:00 2001 From: jordaniza Date: Fri, 11 Oct 2024 17:02:27 +0400 Subject: [PATCH] deployment addresses --- Makefile | 21 +++++++++++++++++++-- README.md | 23 +++++++++++------------ 2 files changed, 30 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 6be48c6..abcfc72 100644 --- a/Makefile +++ b/Makefile @@ -39,12 +39,29 @@ ft-sepolia-fork :; forge test --match-contract TestE2EV2 \ # Fork testing - mainnet ft-mainnet-fork :; forge test --match-contract TestE2EV2 \ - --rpc-url https://eth.llamarpc.com \ - --fork-block-number 20890902 \ + --rpc-url https://eth-mainnet.g.alchemy.com/v2/$(ALCHEMY_API_KEY) \ -vvvvv #### Deployments #### +deploy-preview-mainnet :; forge script script/Deploy.s.sol:Deploy \ + --rpc-url https://eth-mainnet.g.alchemy.com/v2/$(ALCHEMY_API_KEY) \ + --private-key $(DEPLOYMENT_PRIVATE_KEY) \ + -vvvvv + +deploy-mainnet :; forge script script/Deploy.s.sol:Deploy \ + --rpc-url https://eth-mainnet.g.alchemy.com/v2/$(ALCHEMY_API_KEY) \ + --slow \ + --resume \ + --private-key $(DEPLOYMENT_PRIVATE_KEY) \ + --verify \ + --etherscan-api-key $(ETHERSCAN_API_KEY) \ + -vvvvv + +log-mainnet :; forge script Logger \ + --rpc-url https://eth-mainnet.g.alchemy.com/v2/$(ALCHEMY_API_KEY) \ + -vvvvv + deploy-preview-mode-sepolia :; forge script script/Deploy.s.sol:Deploy \ --rpc-url https://sepolia.mode.network \ --private-key $(DEPLOYMENT_PRIVATE_KEY) \ diff --git a/README.md b/README.md index d8092af..0d0272c 100644 --- a/README.md +++ b/README.md @@ -71,19 +71,18 @@ Check the `Makefile` for examples of deployments on different networks. ### Deployment Checklist -- [] I have reviewed the parameters for the veDAO I want to deploy -- [] I have reviewed the multisig file for the correct addresses - - [] I have ensured all multisig members have undergone a proper security review and are aware of the security implications of being on said multisig -- [] I have updated the `.env` with these parameters -- [] I have updated the `CurveConstantLib` and `Clock` with any new constants. -- [] All my unit tests pass -- [] I have run a fork test in `fork-deploy` mode against the OSx contracts on my target testnet -- [] I have deployed my contracts successfully to a target testnet +- [x] I have reviewed the parameters for the veDAO I want to deploy +- [x] I have reviewed the multisig file for the correct addresses + - [x] I have ensured all multisig members have undergone a proper security review and are aware of the security implications of being on said multisig +- [x] I have updated the `.env` with these parameters +- [x] I have updated the `CurveConstantLib` and `Clock` with any new constants. +- [x] All my unit tests pass +- [x] I have run a fork test in `fork-deploy` mode against the OSx contracts on my target testnet +- [x] I have deployed my contracts successfully to a target testnet +- [x] I have previewed my deploy +- [x] My deployer address is a fresh wallet or setup for repeat production deploys in a safe manner. +- [x] My wallet has sufficient native token for gas - [] I have confirmed my tests still work in `fork-existing` mode with the live tokens and the factory. -- [] I have run the same workflow against the mainnet I wish to deploy on -- [] I have previewed my deploy -- [] My deployer address is a fresh wallet or setup for repeat production deploys in a safe manner. -- [] My wallet has sufficient native token for gas **Puffer Only**