Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.84 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.84 KB

cover-token-mining

This Repo has the COVER token, migrator, vesting, blacksmith contracts.

Contracts on Mainnet

Design

design

Development

  • run npm install to install all node dependencies
  • run npm hardhat compile to compile

Run Test With hardhat EVM (as an independent node)

  • Run npx hardhat node to setup a local blockchain emulator in one terminal.
  • npx hardhat test --network localhost run tests in a new terminal. npx hardhat node restart required after full test run. As the blockchain timestamp has changed.

test Migrator

  • Comment the one hard-coded safe2 address requirement in Migrator constructor.

Deploy to Kovan Testnet

  • Update ./scripts/deploy-constants.js to use Kovan addresses.
  • Add required env vars into your ./.env file. KOVAN_DEV_PRIVATE_KEY KOVAN_TREASURY KOVAN_GOV.
  • Make sure your deployer account have keth.
  • Comment out requirement in Constructor of the Migrator
  • Run npx hardhat run scripts/deploy.js --network kovan.
  • Add pools manually, adjust protocolFactory address in add-pools.js file and run npx hardhat run scripts/add-pools.js --network kovan.