Interface GenericPalletEvent<_, Pallet, EventName, Data>

interface GenericPalletEvent<_, Pallet, EventName, Data> {
    filter: ((events: IEventRecord<IRuntimeEvent, `0x${string}`>[] | PalletEvent<string, string, any>[]) => PalletEvent<Pallet, EventName, Data>[]);
    find: ((events: IEventRecord<IRuntimeEvent, `0x${string}`>[] | PalletEvent<string, string, any>[]) => undefined | PalletEvent<Pallet, EventName, Data>);
    is: ((event: IEventRecord<IRuntimeEvent, `0x${string}`> | PalletEvent<string, string, any>) => event is PalletEvent<Pallet, EventName, Data>);
    meta: PalletEventMetadataLatest;
    watch: ((callback: ((events: PalletEvent<Pallet, EventName, Data>[]) => void)) => Promise<Unsub>);
}

Type Parameters

  • _ extends RpcVersion = RpcVersion
  • Pallet extends string = string
  • EventName extends string = string
  • Data extends any = any

Properties

Properties

filter: ((events: IEventRecord<IRuntimeEvent, `0x${string}`>[] | PalletEvent<string, string, any>[]) => PalletEvent<Pallet, EventName, Data>[])
find: ((events: IEventRecord<IRuntimeEvent, `0x${string}`>[] | PalletEvent<string, string, any>[]) => undefined | PalletEvent<Pallet, EventName, Data>)
is: ((event: IEventRecord<IRuntimeEvent, `0x${string}`> | PalletEvent<string, string, any>) => event is PalletEvent<Pallet, EventName, Data>)
watch: ((callback: ((events: PalletEvent<Pallet, EventName, Data>[]) => void)) => Promise<Unsub>)