Simple tool for generating list of all accounts that have staked MEME before/at a specific block number
- Node/npm
- An Ethereum node that has all historic Staked events for the relevant contracts
- Update the
JSON_RPC_URL
field inconfig.js
to have an Ethereum node URL that satisfies the above requirements yarn
to install packagesyarn build
to build this projectyarn start snapshot blockNumber
to print out a snapshot. ReplaceblockNumber
with the block you want to snapshot at. LeavingblockNumber
blank will default it to the current block height
- Iterates over the pool addresses and fetches
Staked
events for each - Grabs user addresses
- Filters by unique