Raw Uniswap events

proxima.univ2.{network}.domain-events.2_0

Uniswap V2 events parsed from logs emitted by pool contracts.

TypeScript schema:

export type Univ2Event = NewPair | PairTx;

export interface NewPair {
  type: "NewPair";

  address: string;
  token0: string;
  token1: string;
}

export interface PairTx {
  type: "PairTx";

  pairAddress: string;
  sync: SyncState;
  event: PairEvent;
}

export interface SyncState {
  reserve0: string;
  reserve1: string;
}

export type PairEvent = MintEvent | BurnEvent | SwapEvent | OtherEvent;

export interface MintEvent {
  type: "Mint";

  sender: string;
  mintsTo: EthTransfer[];
  amount0: string;
  amount1: string;
}

export interface EthTransfer {
  from: string;
  to: string;
  value: string;
}

export interface BurnEvent {
  type: "Burn";

  sender: string;
  amount0: string;
  amount1: string;
  burnTransfers: EthTransfer[];
  feeTransfers: EthTransfer[];
}

export interface SwapEvent {
  type: "Swap";

  to: string;
  sender: string;
  amount0In: string;
  amount1In: string;
  amount0Out: string;
  amount1Out: string;
}

export class OtherEvent {
  type = "Other" as const;
}

proxima.univ3.{network}.domain-events.2_0

Uniswap V3 events parsed from logs emitted by pool contracts.

TypeScript schema:

Last updated