Interface GenericContractEvent<EventName, Data>

interface GenericContractEvent<EventName, Data> {
    filter: ((events: IEventRecord<IRuntimeEvent, `0x${string}`>[] | ({
        name: string;
    } | {
        data: any;
        name: string;
    })[]) => ContractEvent<EventName, Data>[]);
    find: ((events: IEventRecord<IRuntimeEvent, `0x${string}`>[] | ({
        name: string;
    } | {
        data: any;
        name: string;
    })[]) => undefined | ContractEvent<EventName, Data>);
    is: ((event: IEventRecord<IRuntimeEvent, `0x${string}`> | {
        name: string;
    } | {
        data: any;
        name: string;
    }) => event is ContractEvent<EventName, Data>);
    meta: ContractEventMeta;
    watch: ((callback: ((events: ContractEvent<EventName, Data>[]) => void)) => Promise<Unsub>);
}

Type Parameters

  • EventName extends string = string
  • Data extends any = any

Properties

Properties

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