graphprotocol / support

Community support for the Hosted Service of The Graph
https://thegraph.com/
10 stars 3 forks source link

Suggestion: Generate code for ABIs only once #15

Open fubhy opened 5 years ago

fubhy commented 5 years ago

Currently, when using the same ABI in multiple data sources, each of the data sources will have its own version of the contract's types generated into a nested directory hierarchy.

Instead, it would be great to just generate the ABI's types once. Currently one has to be careful to import the types from the right source and since they are usually named identical it's hard to find the right one with autocompletion which results in a continuous annoyance / inconvenience when working in the mappings.