OHM (and associated contracts) may need to be deployed on testnets. If so, this document can help with the steps.
-
Check out the olympus-contracts repo.
-
In the
olympus-contractsrepo:- Install dependencies:
yarn install - Compile contracts:
yarn run compile - Set up the environment (using
.env.sample) - Ensure that
hardhat.config.tshas the testnet defined - Run
yarn run deploy:<network>to deploy - Run
yarn run etherscan:<network>to verify on Etherscan
- Install dependencies:
-
Record the addresses in
scripts/env.json
After this, the Bophades stack can be deployed (e.g. using shell/L2/deploy.sh).
Update env.json with the addresses.
Then run ./shell/L2/grantRoles.sh.
The following are also likely to be required (deployment and installation):
- Clearinghouse Registry
- Clearinghouse
Run mint() in DeployUsdsMocks.sol
Grant the minter admin role:
./shell/roles/grantRole.sh --role minter_admin --to <address> --chain <chain> --account <wallet> --broadcast trueAdd a minting category:
./shell/mint/addCategory.sh --category test --chain <chain> --account <wallet> --broadcast trueMint OHM:
./shell/mint/mint.sh --to <recipient> --amount <amount> --category test --chain <chain> --account <wallet> --broadcast trueRun ./shell/mint/stakeToGOhm.sh.