Skip to content

Instantly share code, notes, and snippets.

@nenadjaja
Last active April 30, 2021 18:37
Show Gist options
  • Save nenadjaja/3563427f2b80a90b85483e4e663ee9e5 to your computer and use it in GitHub Desktop.
Save nenadjaja/3563427f2b80a90b85483e4e663ee9e5 to your computer and use it in GitHub Desktop.
Indexer allocations that are linking to empty images and displayNames on the Subgraph entity
[
{
displayName: "Opyn Gamma Mainnet",
image: "https://ipfs.network.thegraph.com/api/v0/cat?arg=QmQB3FSVSiYx9XoUjSeprzi35tYhPvMG6zS4NnFRfLcyM6
},
{
displayName: "mStable Protocol",
image: "https://ipfs.network.thegraph.com/api/v0/cat?arg=Qmd3ewU7FgzxfxKpE3Fp1BDkPgw4WeqnjQSrvzw66Fca7L"
},
{
displayName: "UMA Mainnet Voting",
image: "https://ipfs.network.thegraph.com/api/v0/cat?arg=QmUMFQw24Gz5BKXeGbBboXFqMPNJXvWqUStRxKZNUJ7mNe"
},
{
displayName: "Omen",
image: "https://ipfs.network.thegraph.com/api/v0/cat?arg=QmXNRTtKq52RthrWrTAT97aM6vnWzvw3n8emfY1HbDYsZX"
},
{
displayName: "DODOEX V2",
image: "https://ipfs.network.thegraph.com/api/v0/cat?arg=Qmao586HmvZ3ZctgFpC2421u2ykPzLdAT9Z3ywdGyMCpHH"
}
]
@davekaj
Copy link

davekaj commented Apr 30, 2021

What I believe is happening is we are losing the metadata files for each of these:

{
  "description": "Opyn is a capital efficient DeFi options protocol that allows users to buy, sell, and create options on ERC20s. DeFi users and products rely on Opyn’s smart contracts and interface to hedge themselves against DeFi risks or take positions on different cryptocurrencies. Opyn v2 is built using Gamma Protocol, a capital efficient options protocol that allows DeFi users to trade option spreads and combos, create flash mints, auto-exercise at expiry, and create new options. Developers can take advantage of Gamma's operator function, which allows an address to update an account's positions on behalf of the account. Operators play critical role in the protocol, enabling products such as options rollover contracts, portfolio managers, auto-minting, and AMMs to be built on top of Gamma.",
  "displayName": "Opyn Gamma Mainnet",
  "image": "https://ipfs.network.thegraph.com/api/v0/cat?arg=QmQB3FSVSiYx9XoUjSeprzi35tYhPvMG6zS4NnFRfLcyM6",
  "codeRepository": "https://github.com/opynfinance/Gamma-Subgraph",
  "website": "https://opyn.co/"
}
{
  "description": "Tracks the mStable protocol, including mAssets, Save, and more",
  "displayName": "mStable Protocol",
  "image": "https://ipfs.network.thegraph.com/api/v0/cat?arg=Qmd3ewU7FgzxfxKpE3Fp1BDkPgw4WeqnjQSrvzw66Fca7L",
  "codeRepository": "https://github.com/mstable/mStable-subgraphs-monorepo",
  "website": "https://mstable.org/"
}

etc. find those five files here https://github.com/edgeandnode/curation-migration/tree/main/metadata

Basically what is happening is that our IPFS node is running ipfs.cat() and it is timing out and not storing this information, thus we don't have the link to the image in the subgraph, and we cannot display anything.

I can CONFIRM that https://ipfs.network.thegraph.com does has all of the metadata files. I just queried them all. So it seems that this is a problem with the infrastructure setup of the graph node. Some reason ipfs.cat() is failing

@juanmardefago
Copy link

Most likely timeouts then, it's been the main issue with IPFS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment