Skip to content

EncodeEventTopicsParameters

EncodeEventTopicsParameters<abi, eventName, hasEvents, allArgs, allErrorNames>: object & UnionEvaluate<IsNarrowable<abi, Abi> extends true ? abi["length"] extends 1 ? object : object : object> & hasEvents extends true ? unknown : never

Type declaration

abi

abi: abi

args?

optional args: allArgs

Type Parameters

abi extends Abi | readonly unknown[] = Abi

eventName extends ContractEventName<abi> | undefined = ContractEventName<abi>

hasEvents = abi extends Abi ? Abi extends abi ? true : [ExtractAbiEvents<abi>] extends [never] ? false : true : true

allArgs = ContractEventArgs<abi, eventName extends ContractEventName<abi> ? eventName : ContractEventName<abi>>

allErrorNames = ContractEventName<abi>

Defined in

node_modules/.pnpm/viem@2.14.2_bufferutil@4.0.8_typescript@5.5.2_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/utils/abi/encodeEventTopics.d.ts:13