The Graph subgraph for the Curio Cards Wrapper smart contract
- This subgraph only supports wrapped cards
- Index all users who hold a specific card
- Index user balance for each card they hold
- (To Do) Retrieve ipfs data with Graph's ipfs support
- (Optional To Do) Index number of unique cards each holder has
- (Optional To Do) Index Sets balances same as Card balances
Unlike with erc721, erc1155 nfts can have multiple print holders. This creates a many-to-many relationship between cards and holders.
- Card
- Card token ID number
- metadata ipfs hash
- wrapped balance
- list of holders
- Holder
- ethereum address
- list of cards owned
- Can be null if transferred away all previously owned cards
- HolderCardBalance
- Many-to-many relationship mapping table
- Cards can have many holders
- Holders can have many cards
- Balance of the holder's card
- Many-to-many relationship mapping table