- ROPSTEN_URL: RPC URL to connect to ropsten network
- PRIVATE_KEY: Private key of the deployer
- ETHERSCAN_API_KEY: Etherscan API key for contract verification
- Network: Ropsten Network
- Token (VRK): 0x12102898F38Ab89F5e60d5FBE1084De476d673E7
- Swap: 0xADC258CFbd2Ce0E03cDf25267Bf0b4b25B22D37A
npx hardhat compile
npx hardhat run ./scripts/deploy-token.ts --network ropsten
npx hardhat verify --network ropsten --contract contracts/Token.sol:Token <token_address>
Change TokenAddress in ./scripts/deploy-swap.ts
npx hardhat compile
npx hardhat run ./scripts/deploy-swap.ts --network ropsten
npx hardhat verify --network ropsten <swap_address> <token_address>
- Transfer all or certain tokens to Swap contract
- Swap ETH to Token using contract function
- Approve Swap Contract in Token
- Swap Token to ETH using contract function
npx hardhat test