This project is about staking MASK tokens to earn ecosystem token rewards. It consists of two main contracts:
StakeManager.sol, manages the staking of MASK tokens.
Reward.sol, distributes ecosystem token rewards.
| Chain | StakeManager | Reward |
|---|---|---|
| mainnet | 0x089f9e40 |
0xb55f6363 |
Build / Compile the contracts:
$ forge buildDelete the build artifacts and cache directories:
$ forge cleanGet a test coverage report:
$ forge coverageGenerate typechain (by hardhat):
$ npx hardhat compileDeploy:
$ npx hardhat --network <network> deploy <tag>Format the contracts:
$ forge fmtGet a gas report:
$ forge test --gas-reportRun the tests:
$ forge testRun the tests with detailed report:
$ forge test -vvvvVerify contracts:
$ ETHERSCAN_API_KEY=<etherscan_api_key> forge verify-contract --watch --compiler-version "v0.8.23" \
[--verifier-url http://localhost:5000] \
--constructor-args $(cast abi-encode "constructor(string)" "string") \
<address> Some-contract