UNPKG

@alchemy/aa-core

Version:

viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts

9 lines (8 loc) 1.14 kB
import { type Chain } from "viem"; import type { DefaultEntryPointVersion, EntryPointDefRegistry, EntryPointRegistry, EntryPointVersion, GetEntryPointOptions } from "./types.js"; export declare const defaultEntryPointVersion: DefaultEntryPointVersion; export declare const entryPointRegistry: EntryPointRegistry; export declare const isEntryPointVersion: (value: any) => value is keyof EntryPointRegistry<Chain>; export declare function getEntryPoint<TEntryPointVersion extends EntryPointVersion = DefaultEntryPointVersion, TChain extends Chain = Chain>(chain: TChain, options: GetEntryPointOptions<TEntryPointVersion>): EntryPointDefRegistry<TChain>[TEntryPointVersion]; export declare function getEntryPoint<TEntryPointVersion extends DefaultEntryPointVersion = DefaultEntryPointVersion, TChain extends Chain = Chain>(chain: TChain, options?: GetEntryPointOptions<TEntryPointVersion>): EntryPointDefRegistry<TChain>[TEntryPointVersion]; export declare function getEntryPoint<TChain extends Chain = Chain>(chain: TChain, options?: GetEntryPointOptions<DefaultEntryPointVersion>): EntryPointDefRegistry<TChain>[DefaultEntryPointVersion];