UNPKG

@wuwei-labs/srsly

Version:
17 lines 714 B
/** * Anchor event log parser for SRSLY audit events. * * Discriminators are read from the IDL (precomputed by Anchor's build). * Borsh decoding is manual — no external borsh dependency needed. */ import type { AuditEvent } from './types'; /** * Parse Anchor events from transaction log messages. * * Anchor emits events as `Program data: <base64>` log lines where the data * starts with an 8-byte discriminator followed by borsh-serialized fields. * * Discriminators are matched against the IDL — no runtime hashing needed. */ export declare function parseAnchorEvents(logs: readonly string[], programId: string, slot: bigint, signature: string): AuditEvent[]; //# sourceMappingURL=events.d.ts.map