Tide
  • About Tide
    • 🌊Tide
    • 🚀Project? Let's grow!
    • 🛣️Roadmap
  • White-label
    • 🆕White-label Solutions
    • 🏷️Tide on your subdomain
    • 🖼️Simple Embeds
      • ⚒️Embedded campaigns
        • How to integrate embedded campaigns
        • Embed campaigns on your blog or docs
      • 🚀Embedded spaces
        • How to integrate embedded spaces
        • Embed spaces on your blog or docs
  • Projects
    • 🎨Space
      • ✅Space Verification
      • ⚽Space Collaboration
    • 🏗️Campaigns
      • 🥎Create a campaign
        • ⛓️On-chain Tasks
        • 🫂Off-chain Tasks
        • 💯Points Campaign
          • How to create a Point Campaign
          • Managing your Data Sources
        • 🔌 API Tasks
        • 🤝Mitigate Bots
      • 🏈Launch & Edit Campaigns
        • 🎾Manage and edit campaigns
      • ⏮️How to Manage Reviews
    • 🎁Rewards
      • 🔁Tide Reward Cycles
      • 🖼️Dynamic NFT Loyalty Program
      • ✌️Tide Referral Program
    • 📊Analytics
      • 📊Insights
    • ❓Project FAQ
  • Users
    • 👉Participate in campaigns
    • 🔔Get notified on new listings
    • 🔄Tide Reward Cycles
    • ❓Users FAQ
  • Resources
    • 🎨Brand Kit
    • 📖Tide vs Other Platforms
    • ⚖️Case Studies
      • Magpie Mafia Bridge
      • Decoding DEX Users
      • PoolTogether Marketing Initiatives analysis
      • Growth Challenges for Bridges
      • Tide “Audiences”: Engaging Authentic Users
      • Rodeo Finance Engagement Program
      • nftperp Paper Trading Competition
  • CONTRACTS & API
  • 📑Smart contracts overview
  • 🌊Wave Contract
  • 🏭Wave Factory
  • 📬Deployment addresses
  • ⌨️Tide APIs
Powered by GitBook
On this page
  • How to create a Data Source
  • Use your Data Sources:
  1. Projects
  2. Campaigns
  3. Create a campaign
  4. Points Campaign

Managing your Data Sources

PreviousHow to create a Point CampaignNext🔌 API Tasks

Last updated 1 year ago

Data Sources are subgraphs used by Tide to gather activity data from tracked protocols and convert them to XP via Point Campaigns.

You can view and manage your project Data Sources from the in your project area.

How to create a Data Source

Select your template

Choose the template best suited for the activity you want to track (currently, "Swaps" is the only available template, but more are coming soon)

Get your subgraph ready and paste your API link

Data sources currently require a subgraph to fetch the activity info. The subgraph schema should match the selected template requirements. For example, the "Swaps" template requires the subgraph to save the activity data into one Swap entity defined as follows:

type Swap {
  id: Bytes!
  user: User!
  toToken: Token!
  toTokenAmount: BigInt!
  timestamp: BigInt!
  txHash: Bytes!
}

type User @entity {
  id: Bytes!
}

type Token @entity {
  id: Bytes!
  decimals: Int
}

Select the data source chain

You can then select which blockchain will the actions be associated to and a name to identify your Data Source.

Use your Data Sources:

You're now ready to use the newly created data source to launch a Point Campaign, for more info, you can refer to the .

🏗️
🥎
💯
dedicated page
dedicated section