LogoLogo
WebsiteBlogApp↗
  • 〰️Introduction
    • 🔊Social Curation Protocol
    • 💬Curation Adds Context
    • Use Cases
    • "For You" Feeds
  • 💡Major Concepts
    • Reactions
    • Registration
    • RA! Like Tokens
    • Glossary of Terms
  • 🛠️Protocol Features
    • ✅Register
    • ❤️React
    • Optional Curation Incentives
      • Buy Reactions
      • Spend Reactions
      • Curation Tokens
      • Claiming ERC20 Rewards
  • 📋Protocol Data
    • GraphQL Subgraph
    • Event Diagram
  • 🚢Implementation
    • Permissions
    • Source Code
    • GraphQL Subgraph
  • ⚙️Integration Guide
    • Integration Guide
    • Protocol Interactions
  • Other
    • Security and Vulnerability Reporting
    • FAQ
Powered by GitBook

RARA, the Social Curation Protocol for NFTs. © 2020-2023 RARA Social Inc.

On this page
  • GraphQL Subgraph
  • Entity Definitions
  • Contract Event Diagram
  • Source Code
  1. Protocol Data

GraphQL Subgraph

View protocol curation graph data using graphQL

PreviousClaiming ERC20 RewardsNextEvent Diagram

Last updated 2 years ago

GraphQL Subgraph

The Graph is an indexing protocol for organizing blockchain data and making it easily accessible with GraphQL. RARA has developed a subgraph to make RARA protocol data easily available.

Entity Definitions

  • Source: a “Source” entity represents an external NFT that has been registered with the RARA protocol for use as a reaction.

  • Transform: a “Transform” entity represents a specific version of an external NFT that has been registered with the RARA protocol for use as a reaction. This concept allows for multiple versions of an external NFT to be represented in the RARA protocol.

  • Reaction: a “Reaction” entity represents a transform that has been purchased by a user to use as a reaction to a curated NFT.

  • UserReaction: a “UserReaction” entity is a representation of a single reaction owned by a single user.

  • UserSpend: a “UserSpend” entity is a representation of a specific use of a reaction to a curated NFT by a user. This entity includes the user’s NFT exhibit tags and comments. ​​

  • CuratorVaultToken: a “​​CuratorVaultToken” entity represents an external NFT that has been curated with the RARA protocol.

  • UserSell: a “UserSell” entity is created each time a user sells curation tokens.

  • UserPosition: a “UserPosition” entity represents a user’s balance in a specific ​​CuratorVaultToken

  • UserEarning: a “UserEarning” entity represents a single user’s royalty earnings.

Contract Event Diagram

This diagram illustrates the relationship between contract functions, contract events, and the graph entities:

Source Code

  • Entity Schema

  • Event Mappings

📋
theGraph Playground
Contract Event Diagram
Schema
MakerRegistrar
ReactionVault
CuratorVault