This is the sample implementation of ERC20 using diamond proxy repository SolidState and Hardhat unit testing for diamond proxy
- clone the repository
- change file
.env.example
to.env
and fill in the required env value - run command
$ npm i
it will install all dependencies from
- Hardhat : To unit tests the diamond proxy contracts and facets
- SolidState : I recommend to use this repository for ease when developing contract using diamond proxy method
before we start doing unit testing, please run following command to generate contracts-exposed
, this tools will allow us to check for internal functions
to test the contract run the command
$ npx hardhat test