Skip to content

travisformayor/curiocards-wrapper-subgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Curio Cards Wrapper Subgraph

The Graph subgraph for the Curio Cards Wrapper smart contract

Features List

  • 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

Data Model

Unlike with erc721, erc1155 nfts can have multiple print holders. This creates a many-to-many relationship between cards and holders.

Entities

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors