push-smart-contracts-genesis
push-smart-contracts-genesis copied to clipboard
$PUSH Token + Vesting Smart Contracts
Push Protocol (EPNS)
PUSH Tokens and Time Vesting Smart Contracts
The repo contains smart contracts that form the $PUSH token functionality and all the vesting contracts functionality including their test cases.
Setup
- Clone repo
- Run npm install
- Run npm start first to setup environment variables
- Run hardhat functions
- Read more about Hardhat here: https://hardhat.org/
Initial Setup Example
npm install
npm start
npx hardhat [operations]
Compiling
For compiling the smart contracts placed under contracts
npx hardhat compile
Testing
The test folder contains various test cases in different test files.
Run Entire Testcases
npx hardhat test
Run Specific Testcases
npx hardhat test ./test/token/EPNS.NonERC20.test
npx hardhat test ./test/token/EPNS.StandardERC20.test
Deploy
To deploy smart contracts on a selected network
Deploy on the default network
npx hardhat run scripts/deploy.js
Deploy on different network
npx hardhat run scripts/deploy.js --network ropsten