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

Namadillo: IBC -> List all available tokens for IBC withdrawal #1213

Open
emccorson opened this issue Oct 28, 2024 · 0 comments
Open

Namadillo: IBC -> List all available tokens for IBC withdrawal #1213

emccorson opened this issue Oct 28, 2024 · 0 comments

Comments

@emccorson
Copy link
Collaborator

Following on from #1210, we should list all available tokens in a user's account as assets for IBC withdrawal.

Mateusz has updated the indexer to return IBC balances in the usual balance query, with the response being something like:

[
  {
    "tokenAddress": "tnam1qy440ynh9fwrx8aewjvvmu38zxqgukgc259fzp6h",
    "balance": "999000000"
  },
  {
    "tokenAddress": "tnam1p5nnjnasjtfwen2kzg78fumwfs0eycqpecuc2jwz",
    "balance": "18"
  }
]

We just need to display these balances and decode the token addresses. Namada CLI can already decode addresses, so we can just follow whatever it does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant