Documentation

Schema

Database entities indexed by Ponder

Entities

Deposit

{
  id: string           // depositId
  depositor: string    // user address
  token: string        // token address
  initialAmount: bigint
  remainingAmount: bigint
  released: boolean
  createdAt: number
}

Action

{
  id: string           // actionHash
  depositId: string
  user: string
  actionType: number   // 0-3
  status: string       // pending|processed|failed
  encryptedPayload: bytes
  createdAt: number
}

Position

{
  id: string           // user address
  collateral: bigint
  debt: bigint
  lastUpdated: number
}

Related