Cloning repository and install dependencies:
$ git clone [email protected]:gtech-world/carbon3-contracts.git
$ cd carbon3-contracts
$ yarn
To compile contracts:
# Use `hardhat-shorthand`:
$ hh compile
# Use `yarn`:
$ yarn run hardhat compile
# Use `npx`:
$ npx hardhat compile
To 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 test
To 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>