Skip to content

Instantly share code, notes, and snippets.

@AlexxNica
Created February 21, 2023 01:14
Show Gist options
  • Save AlexxNica/f883caf5ecee75d2c782b5330ea3cc0a to your computer and use it in GitHub Desktop.
Save AlexxNica/f883caf5ecee75d2c782b5330ea3cc0a to your computer and use it in GitHub Desktop.
FVM Deal Making MVP

FVM Deal Making MVP

The FVM team is looking for a way to support storage clients being able to upload to a data depot (e.g. some HTTP server like Vercel) that generates a permalink to the CAR file, for SPs to download. The higher-level use case is for a smart contract to be able to create a storage deal (without having to know the SP beforehand). But we could also just do this as separate tool / example.

  • Yes, this is needed for a proof-of-concept / community example to support and e2e workflow of FVM deal making from a smart contract.
  • Yes, it would also do the CAR conversion, so users can just upload data (< 5GiB).
  • Here are some specs for a website + web server:
    • MVP:
      • End user can upload a file and get a URL of its equivalent CAR file
      • End user can only upload a file <5GB, and only upload 20 files at once
      • End user will be educated on how to use the URL of the car file when writing a smart contract
      • End user will be notified of file deletion in 30 days
    • lower priority
      • User auth via Github
      • End user can submit a deal of the car file directly on the site, without a smart contract
        • Allow the website to emit an event to the event log directly, without the end user having to write a smart contract
  • The target developer-users who would run this website + webserver example might not be the same as the users of Singularity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment