Files
tycho-execution/foundry/scripts
Diana Carvalho 90cf194869 feat: Set roles script
Added a roles.json file where we can define all the addresses that need roles

--- don't change below this line ---
ENG-4101 Took 42 seconds
2025-02-26 09:49:00 +00:00
..
2025-02-26 09:49:00 +00:00
2025-02-26 09:49:00 +00:00
2025-02-26 09:49:00 +00:00

How to deploy

  • Install dependencies npm install

Deploy on Tenderly fork

  1. Make a new fork in tenderly dashboard.
  2. Set the following environment variables:
export TENDERLY_RPC_URL=<fork-rpc-from-tenderly>
export DEPLOY_WALLET=<wallet-address>
export PRIVATE_KEY=<private-key>
  1. Fund wallet: npx hardhat run scripts/fund-wallet-tenderly-fork.js --network tenderly
  2. Deploy router: npx hardhat run scripts/deploy-router.js --network tenderly
  3. Define the accounts to grant roles to in scripts/roles.json
  4. Export the router address to the environment variable export ROUTER=<router-address>
  5. Grant roles: npx hardhat run scripts/set-roles.js --network tenderly