Proxy and Implementation ABIs should be imported when creating a new subgraph #1724
marcusrein
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When indexing a proxy smart contract, automatically find the ABI for the implementation smart contract and spin up the subgraph as appropriately.
One of the big headaches when spinning up a subgraph that is directed at a proxy is to find the ABI of the implementation and manually add it to the subgraph, then manually update the schema, mappings, and subgraph.yaml. Would this be able to be done automatically?
EXAMPLE
@saihaj and I chatted about this and he added this context:
"I suppose if there are standard proxy contracts interfaces used (like EIP1967) then we could have additional fetching steps. If there’s not a know format used then it’s hard.
So for the case we detect the proxy l suppose we can get the address to implementation.
There’s some more research that I would need to do in order to figure out proxy impl.
Additionally we would need to solve for our ABI rate limits to make the UX smooth cause today it’s starting to become a real issue.
You should also create an issue and add my above as a context.
I think this one would be a bit more involved effort"
Beta Was this translation helpful? Give feedback.
All reactions