Simple tool for generating a list of Totle users that swapped through Uniswap v1/v2 at least once. The list
- Node/npm
- An Ethereum node that has historic events
- valid-accounts.txt file in the root of this project. The script will do an inner join on the addresses in the file and the addresses generated from the on-chain queries.
- Update the
JSON_RPC_URL
field inconfig.js
to have an Ethereum node URL that satisfies the above requirements - Copy the valid-accounts.txt to the root of this project
yarn
to install packagesyarn build
to build this projectyarn start snapshot blockNumber
to print out a snapshot. ReplaceblockNumber
with the block you want to look upto. LeavingblockNumber
blank will default it to # 10771924, the last block before Uniswap's snapshot deadline (2020-09-01 00:00:00+00 GMT)
- Fetch all LogSwapCollection events on relevant Totle Primaries
- Turn these into tx receipts
- Check if Uniswap v1 or v2 is used in the receipt