Code Monkey home page Code Monkey logo

pedrosgmagalhaes / swap_tokens_forking_mainnet Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 91 KB

"swap_tokens_forking_mainnet" is a Node.js application that performs token swaps on Ethereum's mainnet by forking it through Hardhat Network. The application makes use of the Uniswap protocol to swap Ethereum wrapped Ether (WETH) for Tether (USDT).

Home Page: https://ioralabs.com

Solidity 10.54% JavaScript 89.46%
ethereum fork hardhat mainnet mocha nodejs swap uniswap web3

swap_tokens_forking_mainnet's Introduction

Swap Tokens Forking Mainnet

"swap_tokens_forking_mainnet" is a Node.js application that performs token swaps on Ethereum's mainnet by forking it through the Hardhat Network. The application uses the Uniswap protocol to swap Ethereum wrapped Ether (WETH) for Tether (USDT).

Getting Started

These instructions will guide you on how to run this project locally.

Tutorial

Prerequisites

  • Node.js v14.17 or later
  • Yarn v1.22 or later

You'll also need to have the following environment variable:

- INFURA_MAINNET_ENDPOINT: Your Infura mainnet URL

Installation

  1. Clone the repository:
git clone https://github.com/ioralabs/swap_tokens_forking_mainnet.git
  1. Change the working directory to swap_tokens_forking_mainnet:
cd swap_tokens_forking_mainnet
  1. Install the project dependencies:
yarn install
  1. Running the Project To execute the token swap, use the following command:
yarn hardhat run scripts/01_v2Swap.js

Acknowledgments

  • This project is licensed under the ISC License - see the LICENSE.md file for details.

Author

Pedro Magalhães

swap_tokens_forking_mainnet's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

oscargross

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.