Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an endpoint to return the status of the bridged message #1323

Closed
xgreenx opened this issue Aug 25, 2023 · 3 comments
Closed

Add an endpoint to return the status of the bridged message #1323

xgreenx opened this issue Aug 25, 2023 · 3 comments
Assignees
Labels
graphql-api Affects API of the GraphQL

Comments

@xgreenx
Copy link
Collaborator

xgreenx commented Aug 25, 2023

We use the SpentMessages table internally for the relayer and executor. But on the bridge UI we need to know the status of messages. There is a workaround based on the DA height, but it is safer to provide an endpoint to fetch this kind of information.

image
@MitchTurner
Copy link
Member

I assume that this endpoint is meant to be on the client? And the bridge UI will have access to the client?

@xgreenx
Copy link
Collaborator Author

xgreenx commented Sep 18, 2023

We need to implement it in the crates/fuel-core/src/schema directory as we did for all API and provide a getter from fuel-core-client. The next step depends on the typescript SDK team.

MitchTurner added a commit that referenced this issue Sep 20, 2023
The bridge UI requires an client endpoint for querying the status of a
specific `Message`, whether it has been spent or not. An additional
variant is added for unknown messages, i.e. messages that can't be found
in the DB.

The lookup is by `Nonce`. I'm not sure if we would prefer some other
discriminators, but that seems like the obvious choice when you're
searching the entire space--IDK if it's the most efficient though.

#1323

---------

Co-authored-by: Green Baneling <[email protected]>
@xgreenx
Copy link
Collaborator Author

xgreenx commented Sep 21, 2023

Fixed with #1371

@xgreenx xgreenx closed this as completed Sep 21, 2023
crypto523 added a commit to crypto523/fuel-core that referenced this issue Oct 7, 2024
The bridge UI requires an client endpoint for querying the status of a
specific `Message`, whether it has been spent or not. An additional
variant is added for unknown messages, i.e. messages that can't be found
in the DB.

The lookup is by `Nonce`. I'm not sure if we would prefer some other
discriminators, but that seems like the obvious choice when you're
searching the entire space--IDK if it's the most efficient though.

FuelLabs/fuel-core#1323

---------

Co-authored-by: Green Baneling <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphql-api Affects API of the GraphQL
Projects
None yet
Development

No branches or pull requests

2 participants