Cloning repository and install dependencies:
$ git clone git@github.com:gtech-world/carbon3-contracts.git
$ cd carbon3-contracts
$ yarnTo compile contracts:
# Use `hardhat-shorthand`:
$ hh compile
# Use `yarn`:
$ yarn run hardhat compile
# Use `npx`:
$ npx hardhat compileTo run test cases,
$ hh test
# To run test cases of a test file:
$ hh test ./test/xxx.ts
# To run all test cases with gas report:
$ REPORT_GAS=true hh testTo deploy to remote network
# Use `hardhat-shorthand`:
$ hh run scripts/deploy.ts --network [mainnet/rinkeby/goerli/polygon/mumbai]To verify:
# Use `hardhat-shorthand`:
$ hh verify --network [mainnet/rinkeby/goerli/polygon/mumbai] <address>