you can use following command
$ yarn
or
$ npm install
here we take example of deploying SharedLiquidityToken in source file contracts/SharedLiquidityToken.sol
and suppose that we deploy it on zksync mainnet
Open hardhat.config.ts and set defaultNetwork
as zkSyncMainnet
or zkSyncTestnet
.
first
$ touch .env
then, add WALLET_PRIVATE_KEY=${your pk}
to .env
file
$ yarn hardhat compile
or
$ npx hardhat compile
Fill TOKEN_NAME
TOKEN_SYMBOL
TOKEN_DECIMAL
AMOUNT
in the file .env
mentioned above, and then
$ yarn hardhat deploy-zksync --script token/deployTokenWithManagement.ts
Usually after deployment in step 4, the verification is also completed.