0.2.0 • Published 4 years ago
snapborg v0.2.0
Snapshot Governance
Scrapes snapshot to pin the IPFS files to your own node.
Quickstart
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.shif you are unsure if your IPFS daemon is working!
configure the
run.shwith your parameters, the default is setup to Yearn Finance's snapshot (ychad.eth)Run the command
./run.sh- Examine the directory
data/
How to Run
Copy and rename .env.example to .env and replace the variables with their
corresponding values.
cp .env.example .envScrape Snapshot API and sync files to IPFS
make scrapeHow it works
scrape.tshits 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-syncon 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.
0.2.0
4 years ago