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

Query nft coin commitments in the exchange module #2252

Open
4 tasks
rgipson-figure opened this issue Dec 31, 2024 · 0 comments
Open
4 tasks

Query nft coin commitments in the exchange module #2252

rgipson-figure opened this issue Dec 31, 2024 · 0 comments

Comments

@rgipson-figure
Copy link

Summary

Requesting a way to query if an nft coin is committed to a market in the exchange module.

Problem Definition

There currently isn't a way to query if an nft coin has been committed to a market.

The closest query options available are getaccountcommitments and getholds, but it will return all the coins for the account.

Our use case is our loan onboarding process will commit a loan nft to a market and confirm it is in the market before proceeding with the next onboarding steps. Our other services will also need the ability to check the commitment status of a loan for warehousing the loan.

Proposal

Options:

  1. Add an optional query param of denom: string in getaccountcommitments
  2. Add an optional query param of denom: string in getholds

Up for discussing other options or best practices for this use case.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
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

No branches or pull requests

1 participant