Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.19 KB

README.md

File metadata and controls

74 lines (52 loc) · 1.19 KB

Taiko Trailblazers ETH/WETH Swap Script

Requirements

  • Node.js >= v18.x
  • npm >= v9 (usually bundled with Nodejs)
  • git bash (for command terminal)

Getting Started

Clone Repository

git clone https://github.com/dCodeX21/taiko-trailblazers-weth-swap.git

Go to the downloaded repository

cd taiko-trailblazers-weth-swap

Install dependencies by running:

npm install

Config .env

Create new .env file by running:

cp .env.example .env

Then define all the variables needed.

Updating the script

On the repo directory, update the files by running:

git fetch --all --tags
git checkout tags/<latest tag>

Example: git checkout tags/v1.1

This will fetch all latest updates from the github repository and will checkout to the latest tag.

Note

If you want to use the previous script, you can do so by checking out on the old tag using the command:

git checkout tags/<old tag>

Running the script

Run the following command to start the script:

$ node executeSwap.js

This will execute the new script which will give you an option on which transaction will run first.