@dgpub/prime-sdk
Version:
Etherspot Prime (Account Abstraction) SDK
32 lines (31 loc) • 879 B
TypeScript
import { SponsorUserOperationDto } from '@biconomy/paymaster';
import { BundlerProviderLike } from './bundler';
import { StateStorage } from './state';
export declare enum PaymasterType {
BICONOMY = "biconomy",
PIMLICO = "pimlico",
MULTITOKEN = "multitoken"
}
export interface PaymasterApi {
url: string;
type?: PaymasterType;
context?: any;
paymasterServiceData?: SponsorUserOperationDto;
}
export declare enum Factory {
ZERO_DEV = "zeroDev",
ETHERSPOT = "etherspot",
SIMPLE_ACCOUNT = "simpleAccount",
BICONOMY_V1 = "biconomyV1"
}
export interface SdkOptions {
chainId: number;
bundlerProvider?: BundlerProviderLike;
stateStorage?: StateStorage;
rpcProviderUrl?: string;
factoryWallet?: Factory;
walletFactoryAddress?: string;
entryPointAddress?: string;
accountAddress?: string;
index?: number;
}