LogoLogo
  • 🌊Superfluid
  • Protocol Overview
    • 💡What is Superfluid?
    • 📄In-Depth Overview
      • Super Tokens
      • Super Agreements
        • 🚰Money Streaming (CFA)
        • ✳️Distributions (IDA)
        • 🌊Streaming Distributions
      • Super Apps
      • Superfluid Host
    • 🧠Use Cases
      • Recurring Payments
      • DeFi
      • Social & Community
      • Gaming
    • 📔Glossary of Terms
  • Developers
    • 🏃Quickstart
    • 🪙Super Tokens
      • Super Tokens - Solidity
      • Super Tokens - SDK Core
      • Super Tokens - Frontend Examples
      • Types of Super Tokens
      • Deploy a Super Token
        • Deploying a Wrapper Super Token
        • Deploying a Self Governed Super Token
        • Deploying a Pure Super Token
      • In-Depth
        • Tracking Super Token Balances
        • ERC777 in Super Tokens
      • Test Super Token Faucet
    • 🌊Money Streaming (CFA)
      • Solidity
        • Read Methods
          • getFlowInfo
          • getFlowRate
          • getNetFlowRate
        • Write Methods
          • createFlow
          • updateFlow
          • deleteFlow
          • With User Data
          • With Context
      • SDK Core
        • Read Methods
          • getFlow
          • getNetFlow
          • getAccountFlowInfo
        • Write Methods
          • createFlow
          • updateFlow
          • deleteFlow
      • Access Control List (ACL)
        • Solidity
          • createFlowFrom
          • updateFlowFrom
          • deleteFlowFrom
          • setFlowPermissions
          • setMaxFlowPermissions
          • revokeFlowPermissions
          • increaseFlowRateAllowanceWithPermissions
          • decreaseFlowRateAllowanceWithPermissions
          • getFlowPermissions
        • SDK Core
          • createFlowByOperator
          • updateFlowByOperator
          • deleteFlowByOperator
          • updateFlowOperatorPermissions
          • revokeFlowOperatorPermissions
          • increaseFlowRateAllowanceWithPermissions
          • getFlowOperatorData
      • Frontend Examples
      • More...
        • Flow Rate Time Frames
        • Building Batched Streams in Safe
        • Flow NFTs
    • ✳️Distributions (IDA)
      • IDA - Solidity
      • IDA - SDK Core
      • IDA - Frontend Examples
    • 🤖Super Apps
      • Super Apps in Depth
      • Super App Callbacks
        • Calling Agreements In Super Apps
      • User Data
        • NFT Billboard Example
      • SuperAppBaseFlow
      • Super App Examples
      • Super App Deployment Guide
    • 🧺Batch Calls
      • Batch Calls - SDK Core
      • Batch Calls - Frontend Examples
    • ⚙️Automations
      • Auto-Wrap
        • Dev Guide
      • Stream Scheduler
        • Dev Guide
      • Vesting Scheduler
        • Dev Guide
      • Stream Accounting API
        • Dev Guide
      • Automation Subgraphs
        • Stream Scheduler Subgraph
        • Vesting Scheduler Subgraph
        • Auto Wrap Subgraph
    • 🏗️Integration Guides
      • For Your Integration: The Basics
        • Supporting Super Tokens
        • Supporting Money Streams
        • Supporting Instant Distributions
      • Gating with Superfluid Subscriptions & Guild.xyz
      • Displaying Token Balances
      • Useful Queries for Your Integration
        • Instant Distribution Events
        • Money Streaming Events
        • Super Token Events
        • Other Helpful Queries
      • Constructing Links to The Superfluid Dashboard
    • 🔁Superfluid Subscriptions
      • Superfluid Checkout Widget
      • Implementing Subscriptions in your App
    • SDK Core General
      • Initialization
      • Functionality
      • Getting Data
      • Resolver
      • Reference Docs
    • Solidity General
      • Calling Super Agreements
      • Libraries
      • Resolver
    • Testing Guide
      • Hardhat Testing
      • Foundry Testing
      • In-Depth
        • Hardhat Mainnet Fork Testing
        • Super App Testing on Mainnet Forks
    • Subgraph
    • Reference
      • Deploying The Framework
      • EVM Contracts
      • SDK Redux
      • Superfluid Console
      • Superfluid Protocol Addresses
    • Contract Addresses
  • Sentinels
    • 🥅Liquidations & TOGA
    • 🤖Running a Sentinel
    • 🗺️Solvency Dashboard
  • Resources
    • 🌊Superfluid Wave Pool
    • 📜Superfluid on Ethereum Mainnet
    • 💰Bounty Program
    • 🛡️Security & Bug Bounties
    • 💡Project Ideas
    • 🗳️Token Dashboard Submission
    • 🎥Videos
    • Superfluid Deployment Guide
    • Learn about Ethereum
    • Code of Conduct
Powered by GitBook
On this page
  • Repo
  • Subgraph Explorers
  • Basic Example Queries

Was this helpful?

  1. Developers
  2. Automations
  3. Automation Subgraphs

Vesting Scheduler Subgraph

PreviousStream Scheduler SubgraphNextAuto Wrap Subgraph

Last updated 1 year ago

Was this helpful?

Repo

Subgraph Explorers

Mainnets

Testnets

Basic Example Queries

Essential details on vesting schedules

{
  vestingSchedules(first: 10) {
    cliffAmount
    cliffAndFlowExpirationAt
    cliffDate
    tasks {
      id
    }
    endDate
    cliffAndFlowExecutedAt
    createdAt
    startDate
    flowRate
    superToken
  }
}

Querying by tokenSenderReceiverCursor

The tokenSenderReceiverCursor is comprised as "{super token address}-{sender}-{receiver}". This way you can look up vesting schedules with these parameters on hand.

{
  tokenSenderReceiverCursor(
    id: "0x288398f314d472b82c44855f3f6ff20b633c2a97-0x9be85a79d847dfa90584f3fd40cc1f6d4026e2b9-0xf9ce34dfcd3cc92804772f3022af27bcd5e43ff2"
  ) {
    currentVestingSchedule {
      startDate
      endDate
      cliffDate
      endExecutedAt
      cliffAndFlowExecutedAt
    }
    currentCliffAndFlowTask {
      executedAt
      executionAt
      expirationAt
      failedAt
    }
    currentEndVestingTask {
      executedAt
      executionAt
      expirationAt
      failedAt
    }
  }
}

Finding all vesting schedules between a certain sender and receiver.

{
  vestingSchedules(where:{
    and: [
      {sender: "0x9be85a79d847dfa90584f3fd40cc1f6d4026e2b9"}
      {receiver:"0xf9ce34dfcd3cc92804772f3022af27bcd5e43ff2"}
    ]
  }) {
    sender
    receiver
    startDate
    cliffDate
    cliffAmount
    flowRate
    endDate
    tasks {
      type
      executionAt
      expirationAt
    }
  }
}

⚙️
Ethereum Mainnet
Polygon
Gnosis (xDAI)
Avalanche
Arbitrum
Optimism
Binance Smart Chain (BSC)
Polygon Mumbai
Ethereum Goerli
https://github.com/superfluid-finance/platform-monorepo/tree/master/packages/subgraph/vesting-schedulergithub.com