Type alias GetInferredLogValues<TAbiEvent, TAbi, TEventName, TStrict, _EventNames>

GetInferredLogValues<TAbiEvent, TAbi, TEventName, TStrict, _EventNames>: TAbi extends Abi
    ? TEventName extends string
        ? {
            args: GetEventArgs<TAbi, TEventName, {
                EnableUnion: false;
                IndexedOnly: false;
                Required: TStrict extends boolean
                    ? TStrict
                    : false;
            }>;
            eventName: TEventName;
            topics: GetTopics<TAbiEvent, TAbi, TEventName>;
        }
        : {
            [TName in _EventNames]: {
                args: GetEventArgs<TAbi, TName, {
                    EnableUnion: false;
                    IndexedOnly: false;
                    Required: TStrict extends boolean
                        ? TStrict
                        : false;
                }>;
                eventName: TName;
                topics: GetTopics<TAbiEvent, TAbi, TName>;
            }
        }[_EventNames]
    : {
        topics: [Hex, ...Hex[]] | [];
    }

Type Parameters

  • TAbiEvent extends AbiEvent | undefined = undefined

  • TAbi extends Abi | readonly unknown[] | undefined = TAbiEvent extends AbiEvent
        ? [TAbiEvent]
        : undefined

  • TEventName extends string | undefined = TAbiEvent extends AbiEvent
        ? TAbiEvent["name"]
        : undefined

  • TStrict extends boolean | undefined = undefined

  • _EventNames extends string = TAbi extends Abi
        ? Abi extends TAbi
            ? string
            : ExtractAbiEventNames<TAbi>
        : string

Generated using TypeDoc