npm install
- Run
npx hardhat compile
- set the main account owner private key in
.env
file (this is used by hardhat.config.js) to deploy token contracts:
PK_TEST=2342342325383458348582834283482348aaaaaa
- Set you rpc url in
hardhat.config.js
for whichever network you’re deploying to
e.g:
toronto: {
url: "http://rpc.toronto.sx.technology",
accounts: [`0x${process.env.PK_TEST}`],
}
- Deploy token contracts by running the following commands:
npx hardhat run deploy/WSX.js --network toronto
npx hardhat run deploy/WMATIC.js --network toronto
npx hardhat run deploy/WETH.js --network toronto
npx hardhat run deploy/USDC.js --network toronto
- Each of this command will output:
Deploying contracts with the account: <address-of-owner-associated-with-private-key-env-var>
Account balance: <account-balance-of-owner>
Contract deployed at: <address-where-contract-is-deployed>
- Note down each of these contract address