Skip to main content

Type Alias: ContractFunctionName<abi, mutability>

type ContractFunctionName<abi, mutability>: ExtractAbiFunctionNames<abi extends Abi ? abi : Abi, mutability> extends infer functionName ? [functionName] extends [never] ? string : functionName : string;

Type Parameters

Type ParameterDefault type

abi extends Abi | readonly unknown[]

Abi

mutability extends AbiStateMutability

AbiStateMutability

Defined

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