UNPKG

@owlprotocol/contracts-account-abstraction

Version:

ERC4337 Account Abstraction support for deploying relevant smart contracts and interacting with UserOps.

11 lines (10 loc) 1.08 kB
import { Address, Chain, Client, ClientConfig, Account, Prettify, Transport } from "viem"; import { BackendBundlerActions } from "./decorators/bundler.js"; export type BackendBundlerConfig<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends Account = Account> = Prettify<Pick<ClientConfig<transport, chain, account, undefined>, "cacheTime" | "key" | "name" | "pollingInterval" | "transport" | "chain" | "account"> & { account: account; entryPointSimulationsAddress: Address; }>; export type BackendBundler<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends Account = Account> = Prettify<Client<transport, chain, account, undefined, BackendBundlerActions> & { entryPointSimulationsAddress: Address; }>; export declare function createBackendBundler<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends Account = Account>(parameters: BackendBundlerConfig<transport, chain, account>): BackendBundler;