-
$ yarn install
- Install all dependencies -
$ echo PK="PRIVATE_KEY" > .env
- Add testing private key -
$ npx hardhat compile
- Compile all contracts -
$ npx hardhat test
- Run all tests -
Migrations are inside
scripts/
folder. -
Tests are inside
test/
folder.
node 版本:v18.19.1
部署流程
npx hardhat run --network local scripts/deployment/deploy_boba_token.js
npx hardhat run --network local scripts/deployment/deploy_c2n_token.js
npx hardhat run --network local scripts/deployment/deploy_mock_token.js
npx hardhat run --network local scripts/deployment/deploy_singletons.js
- 设置saleConfig
npx hardhat run --network local scripts/deployment/deploy_sales.js