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

feat: add the ability to query the hash associated with an IBC denom trace #1436

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

jtieri
Copy link
Member

@jtieri jtieri commented Mar 27, 2024

We currently have commands to query all IBC denom traces or a specific IBC denom trace based off a given hash, but we are lacking the ability to query a hash based off a specific IBC denom trace. This adds a new query to the Provider interface that allows users to query this IBC denom trace information for a given chain and hash.

Closes #1416

We currently have commands to query all IBC denom traces or a specific IBC denom trace based off a given hash, but we are lacking the ability to query a hash based off a specific IBC denom trace. This adds a new query to the `Provider` interface that allows users to query this IBC denom trace information for a given chain and hash.
@jtieri jtieri requested a review from agouin as a code owner March 27, 2024 22:03
@jtieri jtieri enabled auto-merge (squash) March 29, 2024 20:41
Copy link
Member

@Reecepbcups Reecepbcups left a comment

Choose a reason for hiding this comment

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

LGTM!

Short: "query the denom hash info from a given denom trace",
Args: withUsage(cobra.ExactArgs(2)),
Example: strings.TrimSpace(fmt.Sprintf(`
$ %s query denom-hash osmosis transfer/channel-0/uatom
Copy link
Member

Choose a reason for hiding this comment

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

TIL this is the IBC denom trace and than you can take this and convert to the hash. Cool!

@jtieri jtieri merged commit 65d4330 into main Mar 29, 2024
22 checks passed
@jtieri jtieri deleted the justin/denom-trace branch March 29, 2024 20:51
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.

Add support query ibc-denoms for a given chain id and path
2 participants