Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 400 Bytes

data-writers.md

File metadata and controls

17 lines (14 loc) · 400 Bytes

Data writers

Data writers are callback functions that Checkpoint invokes when the event of a contract is discovered at a particular block.

type CheckpointWriter = (args: {
  tx: Transaction;
  block: FullBlock;
  blockNumber: number;
  eventIndex?: number;
  rawEvent?: Event;
  event?: ParsedEvent;
  source: ContractSourceConfig;
  instance: Checkpoint;
}) => Promise<void>;