ParseAbi
ParseAbi<
signatures
>:string
[] extendssignatures
?Abi
:signatures
extends readonlystring
[] ?signatures
extendsSignatures
<signatures
> ?ParseStructs
<signatures
> extends infer sructs ?{ [key in keyof signatures]: signatures[key] extends string ? ParseSignature<signatures[key], sructs> : never }
extends infer mapped ?Filter
<mapped
,never
> extends infer result ?result
extends readonly [] ?never
:result
:never
:never
:never
:never
:never
Parses human-readable ABI into JSON Abi
Example
type Result = ParseAbi< // ^? type Result = readonly [{ name: "balanceOf"; type: "function"; stateMutability:... [ 'function balanceOf(address owner) view returns (uint256)', 'event Transfer(address indexed from, address indexed to, uint256 amount)', ]>
Type Parameters
• signatures extends readonly string
[]
Human-readable ABI
Defined in
node_modules/.pnpm/abitype@1.0.4_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/types/human-readable/parseAbi.d.ts:21