Skip to main content

Type Alias: ContractEventArgs<abi, eventName>

type ContractEventArgs<abi, eventName>: AbiEventParametersToPrimitiveTypes<ExtractAbiEvent<abi extends Abi ? abi : Abi, eventName>["inputs"]> 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>

Defined

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