In the ERC721Token contract, I am wondering the limits of:
mapping (address => uint256[]) private ownedTokens;
I am interested in providing functionality for users to potentially have thousands of ERC721 tokens.
What are the upper limits for returning their entire array in ownedTokens fetches?
I am trying to think up possible paging mechanisms by subclassing ERC721 token, but it seems to necessitate an entire new ERC721 implementation.
We also intend to cache token ownership off chain, however there will come times we'd need to sync ownership arrays with on chain.
ERC721Token
contract you're talking about?tokenOfOwnerByIndex
to fetch tokens one at a time instead. I think some sort of pagination would be even better.