treasure-chess / treasure-contracts

Smart Contracts and Subgraphs for Treasure Chess
MIT License
6 stars 1 forks source link

[Back end] Subgraph for Treasure and TreasureMarket #1

Closed cupOJoseph closed 2 years ago

cupOJoseph commented 3 years ago

Subgraph requirements:

  1. List of all tokens by owner. Watches for transfer and minting events. Ie query owner 0xabc123 and get a list of tokens they own [1, 7, 8]
  2. List of tokens listed for sale, includes price and who listed it. [{tokenId: 5, price: , saleCurrency: eth/0xUsdc},]
  3. Track transfers and sales of each token. Watches market + transfers. Ie token 5 has been sold for X amount on Y day.
  4. Query token id to get current price in our marketplace (if for sale), meta data, current owner
  5. Query token id to get a history of previous transfers / sales: [who sold it, who got it, time of transfer, price/0]
pi0neerpat commented 2 years ago

Closed in favor of #7