Use hardhat
to deploy contracts in centre-tokens.
- Node >= 16
$ git submodule update --init
$ npm install
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 supportsmainnet
,goerli
andsepolia
.- This script will also ask for verifying source code of proxy and implementation contracts. Remember to setup
ETHERSCAN_API_KEY
beforehand, and then pressy
when it shows the confirmation dialog.