- Node.js >= v18.x
- npm >= v9 (usually bundled with Nodejs)
- git bash (for command terminal)
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
Create new .env file by running:
cp .env.example .env
Then define all the variables needed.
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>
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.