Skip to content

tud0r6/cover-token-mining

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%