Skip to content

Swap protocol based on ethereum using Uniswap protocol, hardhat framework

Notifications You must be signed in to change notification settings

mastercodercat/erc20-swap

Repository files navigation

ERC20 Token Swap

This project demonstrates a hardhat use case to swap ERC20 tokens using the Uniswap protocol

Setup

  • Clone the repository and Run npm install
  • Create an enviroment file named .env and fill the next enviroment variables
# Add Infura provider key
INFURA_API_KEY=

# An owner address's private key to deploy the contract on the testnets
PRIVATE_KEY=

# Optional Etherscan key, for automatize the verification of the contracts at Etherscan
ETHERSCAN_KEY=

Compile

npm run compile

Test

npm run test

Deploy on the ropsten testnet

npm run deploy

About

Swap protocol based on ethereum using Uniswap protocol, hardhat framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published