Closed golangisfun123 closed 1 month ago
The changes in this pull request involve the addition of a new field, 'BridgeRequestEvents.request'
, across multiple files related to the qDeposits
function and the BridgeRequestEvents
structure. This new field enhances the data retrieved for deposit events in the GraphQL resolvers, database queries, and type definitions. The modifications also include updates to the event handling logic for FastBridgeV2
events, ensuring that the new property is captured during event processing. The overall structure and logic of existing functionalities remain unchanged.
File Path | Change Summary |
---|---|
.../graphql/resolvers.ts |
Added field 'BridgeRequestEvents.request' in qDeposits function. |
.../queries/depositsQueries.ts |
Added selection field 'BridgeRequestEvents.request' in qDeposits function. |
.../types/index.ts |
Added property request: ColumnType<string> in BridgeRequestEvents interface. |
.../ponder.schema.ts |
Added field request: p.string() in BridgeRequestEvents table schema. |
.../index/src/index.ts |
Added property request in event handler for FastBridgeV2:BridgeRequested . |
BridgeRequestEvents
and the handling of disputes.BridgeProofDisputedEvents
table schema and modifies event handling logic, which aligns with the main PR's focus on expanding the BridgeRequestEvents
functionality.request
field in the context of bridge events.size/m
, M-docs
π In the fields where bridges sway,
A new request has come to play.
With data rich, our queries grow,
In events of bridges, we now know!
So hop along, letβs celebrate,
For changes made, we elevate! π
packages/rfq-indexer/api/src/graphql/types/events.graphql (1)
`20-20`: **New field `request` added to `BridgeRequestEvent`** The addition of the `request: String!` field to the `BridgeRequestEvent` type is consistent with the PR objectives to enhance the functionality for refunds. This non-nullable field will ensure that all bridge request events include this information. Consider the following points: 1. Ensure that all resolvers and data sources are updated to provide this new field. 2. Update any existing queries that fetch `BridgeRequestEvent` to include this new field if necessary. 3. Consider adding a comment or description to the field to clarify its purpose and expected content. To ensure consistency across the codebase, let's verify the usage of this new field:
Latest commit: |
a714503
|
Status: | β Deploy successful! |
Preview URL: | https://3feae47d.sanguine-fe.pages.dev |
Branch Preview URL: | https://add-request.sanguine-fe.pages.dev |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 35.14833%. Comparing base (
8724af9
) to head (a714503
). Report is 12 commits behind head on feat/explorer-w.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description A clear and concise description of the features you're adding in this pull request.
Additional context Add any other context about the problem you're solving.
Metadata
Summary by CodeRabbit
New Features
request
, to the deposit events, enhancing the information retrieved for bridge requests.request
field in theBridgeRequestEvent
type.Bug Fixes
originChainId
anddestChainId
to numbers in the event data structure.