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 |
---|
|
|
|
Defined
@nilfoundation/niljs/src/contract-factory/ContractFactory.ts:264