Contracts for Cover Protocol bonus tokens rewards
- run
npm installto install all node dependencies - run
npx hardhat compileto compile
Run Test With hardhat EVM (as an independent node)
- Run
npx hardhat nodeto setup a local blockchain emulator in one terminal. npx hardhat test --network localhostrun tests in a new terminal.npx hardhat noderestart required after full test run. As the blockchain timestamp has changed.
- Comment out requirement in Constructor of the Migrator
- Run
npx hardhat run scripts/deploy.js --network kovan. - Run
npx hardhat flatten contracts/BonusRewards.sol > flat.solwill flatten all contracts into one - BonusRewards
npx hardhat verify --network kovan 0xb5BBf98F7e3A83bAa0D088599AE634660309b0CC