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

have Account and CollectionAccount storage to get a list of the NFTs and Collections by an owner. #163

Open
Yuripetusko opened this issue Jun 2, 2022 · 1 comment

Comments

@Yuripetusko
Copy link
Member

Similary topallet-uniques's Account and ClassAccount storage. RMRK pallets should have Account and CollectionAccount storage to be able to query NFTs and Collections by account on the front end

https://github.com/paritytech/substrate/blob/9bf7aaa2f5411db7f6efd5aa00360d04f09d1b53/frame/uniques/src/lib.rs#L169-L178

paritytech/substrate#9940

Originally posted by @h4x3rotab in #108 (comment)

@bmacer
Copy link
Contributor

bmacer commented Jun 10, 2022

This seems really hard, since it requires recursion I assume, unless there's a tricky way to figure this out...
Consider ALICE has a Grandfather NFT with 10,000 grandchildren, sends to BOB. How do we maintain this storage in an efficient manner?

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

2 participants