Skip to main content

Type Alias: ContractEventArgsFromTopics<abi, eventName, strict>

type ContractEventArgsFromTopics<abi, eventName, strict>: AbiEventParametersToPrimitiveTypes<ExtractAbiEvent<abi extends Abi ? abi : Abi, eventName>["inputs"], object> extends infer args ? [args] extends [never] ? readonly unknown[] | Record<string, unknown> : args : readonly unknown[] | Record<string, unknown>;

Type Parameters

Type ParameterDefault type

abi extends Abi | readonly unknown[]

Abi

eventName extends ContractEventName<abi>

ContractEventName<abi>

strict extends boolean

true

Defined

@nilfoundation/niljs/src/contract-factory/ContractFactory.ts:119