1.2 KiB
1.2 KiB
How to deploy
- Install dependencies
npm install
Deploy on a Tenderly fork
- Make a new fork in tenderly dashboard.
- Set the following environment variables:
export TENDERLY_RPC_URL=<fork-rpc-from-tenderly>
export DEPLOY_WALLET=<wallet-address>
export PRIVATE_KEY=<private-key>
- Fund wallet:
npx hardhat run scripts/fund-wallet-tenderly-fork.js --network tenderly
Deploy Tycho Router
- Deploy router:
npx hardhat run scripts/deploy-router.js --network tenderly - Define the accounts to grant roles to in
scripts/roles.json - Export the router address to the environment variable
export ROUTER=<router-address> - Grant roles:
npx hardhat run scripts/set-roles.js --network tenderly - 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
- In
scripts/deploy-executors.jsdefine the executors to be deployed - Deploy executors:
npx hardhat run scripts/deploy-executors.js --network tenderly - Fill in the executor addresses in
scripts/executors.json