Skip to main content

Type Alias: ContractFunctionArgs<abi, mutability, functionName>

type ContractFunctionArgs<abi, mutability, functionName>: AbiParametersToPrimitiveTypes<ExtractAbiFunction<abi extends Abi ? abi : Abi, functionName, mutability>["inputs"], "inputs"> extends infer args ? [args] extends [never] ? readonly unknown[] : args : readonly unknown[];

Type Parameters

Type ParameterDefault type

abi extends Abi | readonly unknown[]

Abi

mutability extends AbiStateMutability

AbiStateMutability

functionName extends ContractFunctionName<abi, mutability>

ContractFunctionName<abi, mutability>

Defined

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