Skip to main content

Type Alias: ExtractAbiFunctionForArgs<abi, mutability, functionName, args>

type ExtractAbiFunctionForArgs<abi, mutability, functionName, args>: ExtractAbiFunction<abi, functionName, mutability> extends infer abiFunction ? IsUnion<abiFunction> extends true ? UnionToTuple<abiFunction> extends infer abiFunctions ? { [k in keyof abiFunctions]: CheckArgs<abiFunctions[k], args> }[number] : never : abiFunction : never;

Type Parameters

Type Parameter

abi extends Abi

mutability extends AbiStateMutability

functionName extends ContractFunctionName<abi, mutability>

args extends ContractFunctionArgs<abi, mutability, functionName>

Defined

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