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
If there are no events found for the given group, or the group doesn't exist, just return an empty array with a 200.
Strategy
We should be able to do this in a single DB query to EventVersion without any joins, since we are already denormalizing the namespace associated with an event version. See EventVersion.nsp for more, but you should be able to do a simple, where-in query on the nsp column for all possible chain namespaces for the given contract group. The nsp column of the matching results can then be used to deduce the chain id for each event version, and the results can then uniquely be grouped by name+version.
The text was updated successfully, but these errors were encountered:
Overview
We need a backend route that gets all events for a particular contract group, across all chains that contract group is associated with.
Route
GET /contract/group/events
Input Payload Example
Payload Validation
group
should exist and passisValidContractGroup
Success Response
Empty Response
If there are no events found for the given group, or the group doesn't exist, just return an empty array with a
200
.Strategy
We should be able to do this in a single DB query to
EventVersion
without any joins, since we are already denormalizing the namespace associated with an event version. SeeEventVersion.nsp
for more, but you should be able to do a simple, where-in query on thensp
column for all possible chain namespaces for the given contract group. Thensp
column of the matching results can then be used to deduce the chain id for each event version, and the results can then uniquely be grouped by name+version.The text was updated successfully, but these errors were encountered: