This Repo has the COVER token, migrator, vesting, blacksmith contracts.
- COVER Token: 0x5D8d9F5b96f4438195BE9b99eee6118Ed4304286
- Migrator: 0xfcF3295b3B357e3e0D37ac5Ee14823E06ffdfBC6
- Blacksmith: 0xE0B94a7BB45dD905c79bB1992C9879f40F1CAeD5
- Vesting: 0xE98567885Df519dFeB12C0E268dD5d9b798bD531
- 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.
- Comment the one hard-coded safe2 address requirement in Migrator constructor.
- 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 runnpx hardhat run scripts/add-pools.js --network kovan
.