You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting. Just FYI, although it's not a nice API this is achievable if you define the event separately per chain in your config. And give the contract a different name. You can pass the same contractRegister callback to each of them with different eventConfig options.
Since the filter is not reactive to the event that gets passed to the handler, but rather, it defines the filters applied in hypersync before returning to the indexer.
Do you have any suggestions for a preferred API?
Maybe a field called "getEventFilters" which is a callback that takes (chainId) => eventFilters. Then a different set of eventFilters can be created per chain on the indexer start up?
Interesting. Just FYI, although it's not a nice API this is achievable if you define the event separately per chain in your config. And give the contract a different name. You can pass the same contractRegister callback to each of them with different eventConfig options.
Since the filter is not reactive to the event that gets passed to the handler, but rather, it defines the filters applied in hypersync before returning to the indexer.
Do you have any suggestions for a preferred API?
Maybe a field called "getEventFilters" which is a callback that takes (chainId) => eventFilters. Then a different set of eventFilters can be created per chain on the indexer start up?
Callback approach with chainId sounds great! Would be enough for now.
https://docs.envio.dev/docs/HyperIndex/wildcard-indexing
Not quite suitable for multichain indexer. Since it doesn't hold event context. I can't parse right WETH address for it which are different per chain.
The text was updated successfully, but these errors were encountered: