-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6326e91
commit d9a2969
Showing
2 changed files
with
27 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,25 @@ | ||
## Deploy CL | ||
## Deploy | ||
|
||
Deployment is straightforward. Hardhat scripts for deployment on tenderly are provided in script/hardhat. | ||
This deployment assumes an existing Velodrome deployment exists. | ||
|
||
### Environment Setup | ||
1. Copy `.env.example` into a new `.env` file and set the environment variables. `PRIVATE_KEY_DEPLOY` is the private key to deploy all scripts. | ||
2. Copy `script/constants/TEMPLATE.json` into a new file `script/constants/{CONSTANTS_FILENAME}`. For example, "Optimism.json" in the .env would be a file at location `script/constants/Optimism.json`. Set the variables in the new file. | ||
3. Run tests to ensure deployment state is configured correctly: | ||
``` | ||
forge init | ||
forge build | ||
forge test | ||
``` | ||
Fill out the parameters as required in `foundry.toml`. | ||
|
||
### Deployment | ||
|
||
Deploy Root Contracts | ||
|
||
``` | ||
forge script script/deployParameters/optimism/DeployRootCL.s.sol:DeployRootCL --slow --rpc-url optimism -vvvv | ||
forge script script/deployParameters/optimism/DeployRootCL.s.sol:DeployRootCL --broadcast --slow --rpc-url optimism --broadcast --verify -vvvv | ||
forge script script/deployParameters/optimism/DeployRootCL.s.sol:DeployRootCL --broadcast --slow --rpc-url optimism --verify -vvvv | ||
``` | ||
|
||
Deploy Leaf Contracts | ||
|
||
Replace `leaf` with the chain you are deploying to. | ||
|
||
``` | ||
forge script script/deployParameters/mode/DeployLeafCL.s.sol:DeployLeafCL --slow --rpc-url mode -vvvv | ||
forge script script/deployParameters/mode/DeployLeafCL.s.sol:DeployLeafCL --broadcast --slow --rpc-url mode --broadcast --verify --verifier blockscout --verifier-url https://explorer.mode.network/api\? -vvvv | ||
``` | ||
forge script script/deployParameters/leaf/DeployLeafCL.s.sol:DeployLeafCL --slow --rpc-url leaf -vvvv | ||
forge script script/deployParameters/leaf/DeployLeafCL.s.sol:DeployLeafCL --broadcast --slow --rpc-url leaf --verify -vvvv | ||
``` | ||
|
||
If there is a verification failure, simply remove `--broadcast` and add `--resume`. | ||
|
||
For blockscout verifications, append `--verifier blockscout` after `--verify` |