Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 424 Bytes

data-writers.md

File metadata and controls

17 lines (14 loc) · 424 Bytes

Data writers (Starknet)

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

type StarknetWriter = (args: {
  blockNumber: number;
  eventIndex?: number;
  source: ContractSourceConfig;
  helpers: { executeTemplate };
  tx: Transaction;
  block: FullBlock | null;
  rawEvent?: Event;
  event?: ParsedEvent;
}) => Promise<void>;