-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download URL for Import deals #115
Comments
minor point: I think this would be classified an "end to end" deal in our terms because Boost can automatically download it from the provided url. So the user doesn't have to import it. +1 for this feature though- I think having the flexibility to set transfer params is useful for a lot of use cases 😃 |
My understanding was is that not correct? |
if you provide a download URL (http, ftp, etc) in the transfer params, Boost will automatically try to download it as soon as the deal lands. So, the SP doesn't actually decide to pull the data when they want - in that regard it's not an import deal in the traditional sense, SP does not have to do any importing. I'm thinking of Import deals as those with absolutely no transfer params, so the SP must perform some actions on their end to get the carfile into Boost out of band At least, this is how it worked when I last tested this 4 months ago- could be different now! |
I started working on this, there is actually a "source" field on the deal request and my intention is to use that as a source on where to get the file. The idea is to add a CID and the source (multiaddr or http or libp2p) then delta pulls it from the source, make an online deal etc. there's going to be two modes here:
If it's an e2e deal:
if it's an import deal:
|
Would be good to also support http url for source. This issue is currently the blocker for me to be able to integrate data prep tools with delta. |
Given that delta uses boost under the hood, i don't think this actually supports the out-of-band/import deal flow. Even if this is set on the delta side, boost will never use it. Which means it doesn't get sent to the SP. |
So I think it does do the thing @jcace describes above for e2e deals, but it does not handle import deals. |
the user can use the "label" field to include the source of the CAR file. So the flow would be 1 - create an import deal with a label - "https://myfile.car" Does that make sense? |
Hmm maybe, that's a bit hacky though. Also will need each SP to implement their own tooling to parse + handle this. |
As a client making import deals I need to provide the SP with a url from where they can download the car files. That seems to be missing from the
DealRequest
struct?The text was updated successfully, but these errors were encountered: