@locker-labs/sdk
Version:
A utility library for enhancing your ERC-4337 experience
22 lines • 1.24 kB
TypeScript
import { type Address } from "viem";
import type { ILockerClient, ILockerClientParams } from "../accounts/types.js";
export interface ILockerSplitClient extends ILockerClient {
getAddress: () => Address;
getConfigs: () => Promise<bigint[]>;
createSplit: (tokenAddress: Address, percentage: bigint[], receiverAddresses: Address[]) => Promise<any>;
installSplitPlugin: (tokenAddress: Address, percentages: bigint[], receiverAddresses: Address[]) => Promise<any>;
isSplitPluginInstalled: () => Promise<boolean>;
uninstallSplitPlugin: () => Promise<any>;
toggleIsSplitEnabled: (configIndex: number) => Promise<any>;
split: (configIndex: number) => Promise<any>;
deleteSplit: (configIndex: bigint) => Promise<any>;
}
/**
* Creates a Locker Split Client that the end user interacts with.
* It takes in all necessary parameters to build the extended client, then wraps it to expose only selected functions.
*
* @param params - The configuration parameters(ExtendedClientParams) for creating the client.
* @returns A promise that resolves to a LockerSplitClient.
*/
export declare function createLockerSplitClient(params: ILockerClientParams): Promise<ILockerSplitClient>;
//# sourceMappingURL=index.d.ts.map