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
This commit is contained in:
Diana Carvalho
2025-02-24 14:50:07 +00:00
parent 77ba9498a7
commit 90cf194869
4 changed files with 69 additions and 1 deletions

View File

@@ -13,5 +13,8 @@ export DEPLOY_WALLET=<wallet-address>
export PRIVATE_KEY=<private-key>
```
3. Fund wallet: `npx hardhat run scripts/fund-tenderly-fork.js --network tenderly`
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`