Skip to content

A set of tools to manually ingest Filecoin storage deals and produce a list of retrieval tasks

License

Notifications You must be signed in to change notification settings

filecoin-station/fil-deal-ingester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fil-deal-ingester

A set of tools to manually ingest Filecoin storage deals and produce a list of retrieval tasks

Basic use

Make sure you have a recent Rust toolchain set up.

Make sure you have the latest Node.js LTS version installed. Remember to install dependencies after cloning this repository locally.

❯ npm install

Setup port forwarding between your local computer and Postgres instance hosted by Fly.io (docs). Remember to use a different port if you have a local Postgres server for development!

fly proxy 5454:5432 -a spark-db

Find spark-db entry in 1Password and get the user and password from the connection string.

Run the following command to fetch the market deals and update SPARK DB:

DATABASE_URL=postgres://user:password@localhost:5454/spark ./run.sh

NOTE: This will download & store several gigabytes of data and can take up to 3-5 hours to complete.

If you want to free up disk space, generated/StateMarketDeals.ndjson can weigh in at 40GB or more. Feel free to delete all files in the generated folder after the script finished running.

About

A set of tools to manually ingest Filecoin storage deals and produce a list of retrieval tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published