To install dependencies, run npm i
on command line.
To compile contracts, first install dependencies. Run npm run compile
on command line
Add PRIVATE_KEY
and ETHERSCAN_KEY
environment variables.
PRIVATE_KEY
variable will be deployer address for smart contract deployment.
ETHERSCAN_KEY
variable is used for smart contract verification on block explorer.
Deployment scripts of smart contracts can be found under scripts
folder. Refer package json for deployement of contracts on mumbai matic testnet and polygon network.
To run test-case for StakingPoolUpdatableFixedAPR contract, execute below on command line :
npx hardhat test test/deploy_staking_pool_updateable_fixed_apr.js
To run test-case for StakingPoolUpdatableFixedAPRWhitelisting contract, execute below on command line :
npx hardhat test test/deploy_staking_pool_fixed_apr_updateable_merkle.js