Our V3 contracts are written using the EIP-2535 "Diamond" Standard, please read the documentation before interacting with them. Our Diamond contract is deployed here.
Before being able to run any command, you need to create a .env
file. You can follow the example in .env.example
.
Then, proceed with installing dependencies:
$ yarn install
Compile the smart contracts with Hardhat:
$ yarn compile
Compile the smart contracts and generate TypeChain bindings:
$ yarn typechain
Run the tests with Hardhat:
$ yarn test
Generate the code coverage report:
$ yarn coverage
Delete the smart contract artifacts, the coverage reports and the Hardhat cache:
$ yarn clean
Deploy the contracts to Hardhat Network:
$ yarn deploy