Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.04 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.04 KB

centre-tokens-hardhat-deployer

Use hardhat to deploy contracts in centre-tokens.

Environment

  • Node >= 16

Setup

$ git submodule update --init
$ npm install

Deploy

Please first refer to .env.example to check required configurations for deployment, then copy it and set values in your local .env. Note that PROXY_ADMIN_ADDRESS MUST NOT be identical to operator address or any other addresses in the configuration, since proxy admin can only call functions on proxy, but not the implementation behind it.

After setup your .env, run following commands to deploy:

# Deploy FiatTokenV1
$ npm run deploy:v1 -- --network [NETWORK]

# Deploy FiatTokenV2_1
$ npm run deploy:v2 -- --network [NETWORK]
  • NETWORK now supports mainnet, goerli and sepolia.
  • This script will also ask for verifying source code of proxy and implementation contracts. Remember to setup ETHERSCAN_API_KEY beforehand, and then press y when it shows the confirmation dialog.