- Install dependencies
pnpm i-
Copy
config.example.tstoconfig.tsand fill in the values:
accounts- private keys for testnet and mainnet accounts;
apis.infura- infura API key;
deploy.<network_name>.stakeToken- stakeToken (Recall token) address. -
Compile contracts
npx hardhat compile- Tests and coverage
npx hardhat testnpx hardhat coverage- Deploy contracts
npx hardhat deploy --network <network_name>network_name can be sepolia, baseSepolia, base.
The contracts roles are assigned in the deployment script (deploy/04_deploy_AssignRoles.ts, see L30-L33, L73-76).
The script is executed automatically during the deployment. Before starting the deployment, you need to set the addresses of the admins for the contracts.
In case you want to assign admins later, you can run the script manually:
npx hardhat deploy --tags Roles --network <network_name>