I am learning solidity, this repository store some solidity demos which I learned.
Some demos contain unit testing by hardhat, here is the quick installation of the hardhat.
npm init
npm install --save-dev hardhat
npx hardhat
After the installation, move *.sol
file to contract folder and *.js
to test folder.
Start the unit testing with npx hardhat test
command.
## Run unit testing script
npx hardhat test
- Voting [Code] [UnitTest]
- VotingV2 [Code] [UnitTest]
- OpenAuction [Code] [UnitTest]
- BlindAuctioin [Code] [UnitTest]
- Purchase [Code]
- ReceivedPays [Code]
- PaymentChannel [Code]
- Token (ERC20) [Code]
- ERC721 [Code]
- DuctionAuction [Code]
- MerkleProof [Code]
- DigitalSignature [Code]
- NFTDeX [Code]
- RandomNum [Code]
- WETH [UnitTest]
- PaymentSplit [Code]
- TokenVesting [Code]
- TokenLocker [Code]
- TimeLocker [Code]
- Proxy [Code]
- UpgradeableContract [Code]
- TransparentUpgradeableProxy [Code]
- UUPS [Code]
- MultisigWallet [Code]
- ERC4626 [Code][UnitTest]
- EIP712 [Code]
- GasOptimizationResearch [Code]
MIT