Cloning repository and install dependencies:
$ git https://github.com/crustio/w3bucket-contracts.git
$ cd w3bucket-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/op-mainnet/op-sepolia/base-mainnet/base-sepolia]
To verify:
# Use `hardhat-shorthand`:
$ hh verify --network [mainnet/rinkeby/goerli/op-mainnet/op-sepolia/base-mainnet/base-sepolia] <address>
To initialize:
# Use `hardhat-shorthand`:
$ hh run scripts/initialize.ts --network [mainnet/rinkeby/goerli/op-mainnet/op-sepolia/base-mainnet/base-sepolia]