Closed rasmuscnielsen closed 2 years ago
@briangershon As for this one my thoughts are
useAvatarContract@getAvailableTokens
to somehow include mint status. Say an array of objects rather than current array of plain integersgetAvailableTokens
would - after fetching the inventory from server - also need to fetch the claim status of the individual tokens before return the response. I imagine the code would be quite similar to what the web server does for the genesis tokens only it might be another method to call on the avatar contract https://github.com/Developer-DAO/pixel-avatars/blob/29c44cbfacba4f63eea01b9d96b2d5bdb6567de7/web-server/src/repositories/GenesisRepository.js#L13-L18
Ie by adding "Already minted - {TOKEN ID}" to the dropdown of personal tokens.