@locker-labs/sdk
Version:
A utility library for enhancing your ERC-4337 experience
32 lines • 1.13 kB
TypeScript
import { type Address } from "viem";
import { LocalAccountSigner } from "@aa-sdk/core";
import type { EChain } from "./tokens.js";
export interface ILockerClientParams {
alchemyApiKey: string;
chain: EChain;
signer: ReturnType<typeof LocalAccountSigner.privateKeyToAccountSigner>;
merchantSeed1?: string;
salt?: bigint;
}
export declare enum EPlugins {
SAVINGS_PLUGIN = "savings_plugin",
SPLIT_PLUGIN = "split_plugin"
}
/**
* Interface representing the LockerClient.
* This is the client returned by createLockerClient.
*/
export type ILockerClient = {
/**
* Extend the client with a plugin that adds extra functionality.
* @param plugin - An object containing additional functions.
* @returns The extended client.
*/
getAddress: () => Address;
isPluginInstalled: (plugin: Address) => Promise<boolean>;
extend: (pluginActions: any) => any;
installPlugin: (plugin: Address) => Promise<any>;
uninstallPlugin: (plugin: Address) => Promise<any>;
sendUserOps: (to: Address, data: Address, value: bigint) => Promise<any>;
};
//# sourceMappingURL=types.d.ts.map