rmrk-substrate icon indicating copy to clipboard operation
rmrk-substrate copied to clipboard

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

Open Yuripetusko opened this issue 3 years ago • 1 comments

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

https://github.com/paritytech/substrate/pull/9940

Originally posted by @h4x3rotab in https://github.com/rmrk-team/rmrk-substrate/issues/108#issuecomment-1088644030

Yuripetusko avatar Jun 02 '22 17:06 Yuripetusko

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?

bmacer avatar Jun 10 '22 04:06 bmacer