-
Deployer secret key (Nova and BSC chains)
-
NodeJs v16+ see
-
yarn
npm install --global yarn
-
install dependencies
yarn i
-
prepare
.envfiles, see.env.sample# secret key of Nova deployer NOVA_ACCOUNTS= # secret key of Bsc deployer BSC_ACCOUNTS= # secret key of Bsc Testnet deployer BSC_TESTNET_ACCOUNTS= # address of the contract authority, deployer is not authority by default AUTHORITY=
-
run the following command to deploy the smart contract to NOVA and BSC chain
# Deploy to Nova chain yarn hardhat deploy --tags TokenCtrl --network nova # Deploy to BSC chain yarn hardhat deploy --tags TokenCtrl --network bsc # Deploy to BSC Testnet chain yarn hardhat deploy --tags TokenCtrl --network bsc_testnet
-
Take note of the contract addresses. These will be used in setting token portal configuration.
Below example of deployment output, as the contract was successfully deployed at
0x7730b55BcC64276b224819a03109b3D21079C3a2onbsc_testnet================= Network: bsc_testnet Token Ctrl: 0x7730b55BcC64276b224819a03109b3D21079C3a2 Authority: 0x111b0fbA4E94ff9A312B517D5F817F4a8957375F Token Template: 0xF437aFA354eE0A428D905Fe2396f75DdecCf2886 =================
-
for
bscandbscTestnetrun the following command. Api key ofbscscan.commust be provided (BSCSCAN_APIKEY).# for bsc_testnet yarn hardhat verify <ContractAddress> --network bsc_testnet # for bsc yarn hardhat verify <ContractAddress> --network bsc
-
for
Novachain, the deployed smart contracts can be manually verified byStandard Input Jsonfile, see instructions here. -
Verification process needs to be completed with
TokenCtrl(token controller) andToken(token template) separately