This repository contains the UniswapV2Periphery mockup contract, which complements the UniswapV2Core by providing additional functionalities such as router contracts and other utilities.
- UniswapV2Router01: 0x90f2F4E97Eb6B62D9049D07C6f6877FD171a9a0F
- UniswapV2Router02: 0x3FBA3ef10e452D1e8Cc6C0cf552A8A25b572Ec41
- Node.js v12+ LTS and npm (comes with Node)
- Hardhat
git clone https://github.com/ScumAgent/v2-periphery
cd v2-periphery
npm istall
- Review the .example.env file.
- Create a .env file based on the example and adjust the values as needed.
cp .example.env .env
copy .example.env .env
Compile the smart contracts using Hardhat:
npx hardhat compile
Run the following command to execute the contract tests. Ensure you've written the tests in your Hardhat project's test directory.
npx hardhat test
Run the following command to compile the contracts using the Solidity compiler and deploy the UniswapV2Router.
npx hardhat run scripts/deploy.js --network arbtest
If you would like to contribute to the project, please fork the repository, make your changes, and then submit a pull request. We appreciate all contributions and feedback!