Tracked Data

Swap

type Swap @entity {
  # transaction hash + "#" + index in swaps Transaction array
  id: ID!
  # pointer to transaction
  transaction: Transaction!
  # timestamp of transaction
  timestamp: BigInt!
  # pool swap occured within
  pool: Pool!
  # token swap from
  token0: Token!
  # token swap to
  token1: Token!
  # sender of the swap
  sender: Bytes!
  # the EOA that initiated the txn
  origin: Bytes! 
  # delta of token0 swapped
  amount0: BigDecimal!
  # delta of token1 swapped
  amount1: BigDecimal!
  # amount of liquidity left in pool after swap
  liquidity: BigInt!
  # derived info
  amountUSD: BigDecimal!
  # The sqrt(price) of the pool after the swap, as a Q64.96
  sqrtPriceX96: BigInt!
  # the tick after the swap
  tick: BigInt!
  fee: Int!
  # index within the txn
  logIndex: BigInt
  # running sum of gas for current tx
  gasAccumulated: BigInt!
  gasInWeiAccumulated: BigInt!
}

TokenDayData

UniswapDayData

PoolDayData

PoolHourData

TokenHourData

PoolManager

Pool

Token

Bundle

Hook

PositionManager

Position

Transfer

ModifyLiquidity

Tick

Last updated