Dropping the legacy storage (#1117) brought to light an issue in using the subgraph as backend, which requires a non-optimized workaround: first finding all channelIds referenced for some topics, then looping through the channelIds to fetch the body.
Blocked by RequestNetwork/storage-subgraph#9. This could be done in a single call once RequestNetwork/storage-subgraph#9 is resolved.
I'm omitting the link to the code on purpose (at this time, #1117 isn't closed), but for future references, the code in question is in the thegraph-data-access package, in SubgraphClient.getTransactionsByTopics
Dropping the legacy storage (#1117) brought to light an issue in using the subgraph as backend, which requires a non-optimized workaround: first finding all
channelIdsreferenced for sometopics, then looping through the channelIds to fetch the body.Blocked by RequestNetwork/storage-subgraph#9. This could be done in a single call once RequestNetwork/storage-subgraph#9 is resolved.
I'm omitting the link to the code on purpose (at this time, #1117 isn't closed), but for future references, the code in question is in the
thegraph-data-accesspackage, inSubgraphClient.getTransactionsByTopics