Okay, that’s fair, seems like it would be difficult to accommodate opening up a swarm connection with how its set up right now!
Normally I would use the HTTPS endpoint that you guys provide, but for The Graph software it won’t work right now.
Also it’s unfortunate that IPFS doesn’t work as well as I wish it could. I went through this when Indexing all the Origin Dapp data. I think because IPFS is not incentivized, and is a service people opt into, it doesn’t distribute content very well. It’s really hard to get all the data from either Origin, Foam, or other smart contract platforms, without a direct connection. Public gateways seem to always eventually find the files, but it can take 0-15 minutes, and with 1000’s of IPFS hashes it doesn’t scale. (Hopefully filecoin can fix such a problem!)
@yinzeus There is a way around this. Essentially it would be - hit FOAMs http endpoint, grab the file, hash the file myself, confirm that the file hash matches the hash used in the URL. This roundabout way of doing it is to prevent false documents being provided through the HTTP endpoint. Obviously I highly doubt FOAM would post fake docs, but I need to build it properly from the start. Swarm provides a guarantee that the file served matches the hash.
But I probably won’t end up doing this, as it would involve adding some features that The Graph software doesn’t have right now, and there are other subgraphs to index right now .
@Ryan_foam let me know if there is any plan to open an IPFS swarm connection in the future. If not, thanks anyways!