Skip to main content

Type Alias: ContractFunctionParameters<abi, mutability, functionName, args, deployless, allFunctionNames, allArgs>

type ContractFunctionParameters<abi, mutability, functionName, args, deployless, allFunctionNames, allArgs>: object & readonly [] extends allArgs ? object : object & deployless extends true ? object : object;

Type declaration

abi

abi: abi;

args?

optional args: abi extends Abi ? UnionWiden<args> : never | allArgs;

functionName

functionName: allFunctionNames | functionName extends allFunctionNames ? functionName : never;

Type Parameters

Type ParameterDefault type

abi extends Abi | readonly unknown[]

Abi

mutability extends AbiStateMutability

AbiStateMutability

functionName extends ContractFunctionName<abi, mutability>

ContractFunctionName<abi, mutability>

args extends ContractFunctionArgs<abi, mutability, functionName>

ContractFunctionArgs<abi, mutability, functionName>

deployless extends boolean

false

allFunctionNames

ContractFunctionName<abi, mutability>

allArgs

ContractFunctionArgs<abi, mutability, functionName>

Defined

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