bbgo_origin/contracts
dependabot[bot] 5d203ac5ba
build(deps): bump underscore, @nomiclabs/hardhat-waffle and ethereum-waffle
Removes [underscore](https://github.com/jashkenas/underscore). It's no longer used after updating ancestor dependencies [underscore](https://github.com/jashkenas/underscore), [@nomiclabs/hardhat-waffle](https://github.com/NomicFoundation/hardhat-waffle) and [ethereum-waffle](https://github.com/EthWorks/Waffle). These dependencies need to be updated together.


Removes `underscore`

Updates `@nomiclabs/hardhat-waffle` from 2.0.1 to 2.0.6
- [Release notes](https://github.com/NomicFoundation/hardhat-waffle/releases)
- [Changelog](https://github.com/NomicFoundation/hardhat-waffle/blob/main/CHANGELOG.md)
- [Commits](https://github.com/NomicFoundation/hardhat-waffle/commits)

Updates `ethereum-waffle` from 3.4.0 to 4.0.10
- [Release notes](https://github.com/EthWorks/Waffle/releases)
- [Commits](https://github.com/EthWorks/Waffle/compare/ethereum-waffle@3.4.0...ethereum-waffle@4.0.10)

---
updated-dependencies:
- dependency-name: underscore
  dependency-type: indirect
- dependency-name: "@nomiclabs/hardhat-waffle"
  dependency-type: direct:development
- dependency-name: ethereum-waffle
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 12:22:00 +00:00
..
contracts add missing files on bbgo contract folder 2022-01-26 14:51:38 +09:00
flat rename sol to contracts dir 2021-11-20 23:12:22 +08:00
migrations add missing files on bbgo contract folder 2022-01-26 14:51:38 +09:00
test add missing files on bbgo contract folder 2022-01-26 14:51:38 +09:00
.eslintrc.js add missing files on bbgo contract folder 2022-01-26 14:51:38 +09:00
.gitignore rename sol to contracts dir 2021-11-20 23:12:22 +08:00
.solhint.json add missing files on bbgo contract folder 2022-01-26 14:51:38 +09:00
bsc-secret.json add missing files on bbgo contract folder 2022-01-26 14:51:38 +09:00
development-secret.json add missing files on bbgo contract folder 2022-01-26 14:51:38 +09:00
hardhat.config.js rename sol to contracts dir 2021-11-20 23:12:22 +08:00
package-lock.json build(deps): bump underscore, @nomiclabs/hardhat-waffle and ethereum-waffle 2023-08-01 12:22:00 +00:00
package.json build(deps): bump underscore, @nomiclabs/hardhat-waffle and ethereum-waffle 2023-08-01 12:22:00 +00:00
polygon-secret.json add missing files on bbgo contract folder 2022-01-26 14:51:38 +09:00
README.md add missing files on bbgo contract folder 2022-01-26 14:51:38 +09:00
truffle-config.js add missing files on bbgo contract folder 2022-01-26 14:51:38 +09: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 develope 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