events.ts 406 B

123456789101112
  1. import { Idl, Event, EventCoder } from "@coral-xyz/anchor";
  2. import { IdlEvent } from "@coral-xyz/anchor/dist/cjs/idl";
  3. export class SplFeatureProposalEventsCoder implements EventCoder {
  4. constructor(_idl: Idl) {}
  5. decode<E extends IdlEvent = IdlEvent, T = Record<string, string>>(
  6. _log: string
  7. ): Event<E, T> | null {
  8. throw new Error("SplFeatureProposal program does not have events");
  9. }
  10. }