Skip to main content

Type Alias: ExtractAbiItemForArgs<abi, name, args>

type ExtractAbiItemForArgs<abi, name, args>: ExtractAbiItem<abi, name> extends infer abiItem ? IsUnion<abiItem> extends true ? UnionToTuple<abiItem> extends infer abiItems ? { [k in keyof abiItems]: (readonly [] extends args ? readonly [] : args) extends AbiParametersToPrimitiveTypes<abiItems[k]["inputs"], "inputs"> ? abiItems[k] : never }[number] : never : abiItem : never;

Type Parameters

Type Parameter

abi extends Abi

name extends AbiItemName<abi>

args extends AbiItemArgs<abi, name>

Defined

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