Basic contracts cases with openzeppelin, mocks and hardhat deploy mechanism.
- Unit tests
- Stage tests
- Mocks
- Deploy&Verification of contract (hardhat)
- VRF (LINK) function case (random lottery)
- Storage class (funwithStorage.js + .sol)
This repository about code examples in Solidity and JS, based on hardhat sample.
Solidity tools:
- hardhat deploy
- hardhat gas-reporter
- coverage
Contracts:
- Airdrop (merkletree drop)
- Lottery (chainlink VRF)
- StorageTester (data storage tester)
- ERC721 stake -> ERC20 rewards
- Marketplace (ERC721 with mock weth)
- VerifySignature
- CrowdFunding
- NFTstaker
GAS OPTIMISATION TRICKS:
- use errors instead of require
- external instead of public (copy args)