feat: Deploy executors and set them in router

--- don't change below this line ---
ENG-4101 Took 59 minutes


Took 10 seconds
This commit is contained in:
Diana Carvalho
2025-02-24 15:56:59 +00:00
parent 90cf194869
commit 02a9da183e
9 changed files with 178 additions and 29 deletions

View File

@@ -2,7 +2,7 @@
- Install dependencies `npm install`
## Deploy on Tenderly fork
## Deploy on a Tenderly fork
1. Make a new [fork](https://dashboard.tenderly.co/) in tenderly dashboard.
2. Set the following environment variables:
@@ -14,7 +14,18 @@ export PRIVATE_KEY=<private-key>
```
3. Fund wallet: `npx hardhat run scripts/fund-wallet-tenderly-fork.js --network tenderly`
4. Deploy router: `npx hardhat run scripts/deploy-router.js --network tenderly`
5. Define the accounts to grant roles to in `scripts/roles.json`
6. Export the router address to the environment variable `export ROUTER=<router-address>`
7. Grant roles: `npx hardhat run scripts/set-roles.js --network tenderly`
### Deploy Tycho Router
1. Deploy router: `npx hardhat run scripts/deploy-router.js --network tenderly`
2. Define the accounts to grant roles to in `scripts/roles.json`
3. Export the router address to the environment variable `export ROUTER=<router-address>`
4. Grant roles: `npx hardhat run scripts/set-roles.js --network tenderly`
5. Set executors: `npx hardhat run scripts/set-executors.js --network tenderly`. Make sure you change the DEPLOY_WALLET
to the executor deployer wallet. If you need to deploy executors, follow the instructions below.
### Deploy executors
1. In `scripts/deploy-executors.js` define the executors to be deployed
2. Deploy executors: `npx hardhat run scripts/deploy-executors.js --network tenderly`
3. Fill in the executor addresses in `scripts/executors.json`