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

zoneconcierge: API for listing all chain IDs #205

Merged
merged 2 commits into from
Nov 21, 2022

Conversation

SebastianElvis
Copy link
Member

This PR implements the API for querying IDs of all chains that checkpoint to Babylon. It comes with a fuzz test.

After this PR, all APIs for level 1 integration are ready.

Copy link
Member

@vitsalis vitsalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Minor:


ctx := sdk.UnwrapSDKContext(c)
chainIDs := k.GetAllChainIDs(ctx)
resp := &types.QueryChainListResponse{ChainIds: chainIDs}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add pagination? If it requires too much time we can add a github issue and add it later.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the time constraint and the project's status, I added a TODO on this. Thanks for pointing this out!

@SebastianElvis SebastianElvis merged commit 07b32d5 into dev Nov 21, 2022
@SebastianElvis SebastianElvis deleted the zoneconcierge-list-chainids-api branch November 21, 2022 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants