crustio / w3bucket-contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

W3Bucket Contracts

Quick start

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]

About

License:Apache License 2.0


Languages

Language:TypeScript 67.0%Language:Solidity 33.0%