Skip to main content

Type Alias: ContractEventName<abi>

type ContractEventName<abi>: ExtractAbiEventNames<abi extends Abi ? abi : Abi> extends infer eventName ? [eventName] extends [never] ? string : eventName : string;

Type Parameters

Type ParameterDefault type

abi extends Abi | readonly unknown[]

Abi

Defined

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