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 "ListAccounts" to cw20-base #48

Closed
ethanfrey opened this issue Aug 14, 2020 · 0 comments · Fixed by #64
Closed

Add "ListAccounts" to cw20-base #48

ethanfrey opened this issue Aug 14, 2020 · 0 comments · Fixed by #64

Comments

@ethanfrey
Copy link
Member

Allow a way to show all accounts. We can do that with the iterator, but it may use tons of gas if there is lots.

Maybe add some pagination here, like:

struct ListAllAccounts {
  // start from beginning if None, or right after this if set (use last address from previous result) 
  after: Option<HumanAddress>,
  // require some limit to how many on a page. Gas limits will cap it, we can enforce no more than 100 
  limit: u32,
}
@ethanfrey ethanfrey mentioned this issue Aug 28, 2020
3 tasks
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 a pull request may close this issue.

1 participant