Sitelet https://github.com/OlympusDAO/olympus-v3/blob/master/src/scripts/DEPLOY_TESTNET.md
Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.5 KB

File metadata and controls

58 lines (36 loc) · 1.5 KB

Deploying on a Testnet

OHM (and associated contracts) may need to be deployed on testnets. If so, this document can help with the steps.

Deploying OHM

  1. Check out the olympus-contracts repo.

  2. In the olympus-contracts repo:

    1. Install dependencies: yarn install
    2. Compile contracts: yarn run compile
    3. Set up the environment (using .env.sample)
    4. Ensure that hardhat.config.ts has the testnet defined
    5. Run yarn run deploy:<network> to deploy
    6. Run yarn run etherscan:<network> to verify on Etherscan
  3. Record the addresses in scripts/env.json

Deploying Bophades

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

Minting Reserve Tokens

Run mint() in DeployUsdsMocks.sol

Minting OHM

Grant the minter admin role:

./shell/roles/grantRole.sh --role minter_admin --to <address> --chain <chain> --account <wallet> --broadcast true

Add a minting category:

./shell/mint/addCategory.sh --category test --chain <chain> --account <wallet> --broadcast true

Mint OHM:

./shell/mint/mint.sh --to <recipient> --amount <amount> --category test --chain <chain> --account <wallet> --broadcast true

Wrapping OHM to gOHM

Run ./shell/mint/stakeToGOhm.sh.