https://github.com/circlefin/stablecoin-evm/tree/v2.2.0/contracts
Requirements:
- Node 16.14.0
- Yarn 1.22.21
$ git clone git@github.com:bitlayer-org/circle-usdc.git
$ cd circle-usdc
$ nvm use
$ npm i -g yarn@1.22.21 # Install yarn if you don't already have it
$ yarn install # Install npm packages$ yarn compile$ yarn fmtRun all tests:
$ yarn testTo run tests in a specific file, run:
$ yarn test [path/to/file]- Create a copy of the file
.env.example, and name it.env. Fill in appropriate values in the.envfile. This file must not be checked into the repository.
cp .env.example .env- Update .env file key
DEPLOYER_PRIVATE_KEYdeloyer private keyNEW_PROXY_ADMINproxy contract admin, default is deployerTOKEN_NAMEUSD CoinTOKEN_SYMBOLUSDCTOKEN_CURRENCYUSDTOKEN_DECIMALStoken decimalNEW_MASTER_MINTERmanager minter role and minter mint amountNEW_PAUSERmanager project pause or unpauseNEW_BLACK_LISTERmanager black listNEW_OWNERproject owner, manager masterMinter role, pauser role, blacklist role
- Run deploy cmd
yarn deploy bitlayer | bitlayerTest