Skip to content

the example of simple implementation of Diamond Proxy on ERC20

Notifications You must be signed in to change notification settings

KevinH2810/ERC20-Diamond-Proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC20-Diamond-Proxy

This is the sample implementation of ERC20 using diamond proxy repository SolidState and Hardhat unit testing for diamond proxy


HOW TO USAGE

  • 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

Unit Testing

Preparation

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

Tools

References