Documentation

GraphQL Schema

The data capabilities of the Ponder indexer

type Deposit @entity {
  id: String!
  depositor: String!
  token: String!
  amount: BigInt!
  timestamp: Int!
  txHash: String!
}

type Action @entity {
  id: String!
  user: String!
  type: String! # "SUPPLY" | "BORROW" | "REPAY" | "WITHDRAW"
  status: String! # "PENDING" | "PROCESSED" | "FAILED"
  payload: String! # Encrypted blob
}

type Query {
  deposits(
    first: Int
    skip: Int
    orderBy: String
    orderDirection: String
    where: DepositFilter
  ): [Deposit!]!

  actions(
    where: ActionFilter
  ): [Action!]!
}