bbgo/contracts
2024-08-30 22:55:17 +08:00
..
contracts 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
flat 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
migrations 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
test 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
.eslintrc.js 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
.gitignore 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
.solhint.json 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
bsc-secret.json 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
development-secret.json 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
hardhat.config.js 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
package-lock.json 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
package.json 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
polygon-secret.json 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
README.md 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00
truffle-config.js 初始化仓库,b87213827e08344908cdd718039f3120d047b44e 2024-08-30 22:55:17 +08:00

BBG Contracts


1. Before Start

Create and modify the following files in this directory, the secret key inside the files are dummy ones from truffle dev server:

  • development-secret.json
  • polygon-secret.json
  • bsc-secret.json

2. Prepare the dependencies

npm i
# if you want to develop in localhost, try to run npm run devserver separately
# ex: npm run devserver
# it will give you a set of secrets and account addresses

3. Deploy

Migrate:

npm run migrate:dev
# npm run migrate:polygon
# npm run migrate:polygon-test
# npm run migrate:bsc
# npm run migrate:bsc-test

Lint:

npm run lint
# # fix solidity issue
# npm run lint:sol:fix
# # fix js issue
# npm run lint:js:fix

Test:

npm run test 
truffle run verify ChildMintableERC20 --network polygon
truffle run verify ChildMintableERC20@0x3Afe98235d680e8d7A52e1458a59D60f45F935C0 --network polygon