Scrapes snapshot to pin the IPFS files to your own node.
you can ignore the Makefile and Dockerfile no reason to use them
- Install via
npm/yarn
, startup your local IPFS daemon
Note there is a script
check-ipfs.sh
if you are unsure if your IPFS daemon is working!
-
configure the
run.sh
with your parameters, the default is setup to Yearn Finance's snapshot (ychad.eth) -
Run the command
./run.sh
- Examine the directory
data/
Copy and rename .env.example
to .env
and replace the variables with their
corresponding values.
cp .env.example .env
Scrape Snapshot API and sync files to IPFS
make scrape
-
scrape.ts
hits snapshots API to get all the proposals - It writes the file proposals.txt to use for
ipfs-sync
- It then gets all the votes from the proposals from snapshots api
- It writes the file votes.txt
- It then runs
ipfs-sync
on these four files - All the scripts are de-dupped so that this could run on a VM in the cloud, ping it once a day, and it will only append to the txt files. Then ipfs-sync already skips over dupes.