UNPKG

@etherspot/remote-signer

Version:

Etherspot Permissioned Signer SDK - signs the UserOp with SessionKey and sends it to the Bundler

61 lines (58 loc) 2.5 kB
import { U as UserOperation } from '../ERC4337Utils-D4GRkIAr.mjs'; import { Gas } from './common/getGasFee.mjs'; import { Account, PublicClient } from 'viem'; import { BigNumberish, BigNumber } from './types/bignumber.mjs'; import { SessionKeyOnChainData } from './types/session-key-types.mjs'; import { UserOpsRequest, BatchUserOpsRequest } from './common/interfaces.mjs'; import { SdkOptions, PaymasterApi } from './interfaces.mjs'; import { HttpRpcClient } from './base/HttpRpcClient.mjs'; import { TransactionGasInfoForUserOp } from './base/TransactionDetailsForUserOp.mjs'; import { EtherspotWalletAPI } from './base/EtherspotWalletAPI.mjs'; import './types/common-types.mjs'; import 'node_modules/viem/_types/errors/utils'; import './bundler/interface.mjs'; import './base/BaseAccountAPI.mjs'; import '../PaymasterAPI-sOoROCL-.mjs'; import './base/calcPreVerificationGas.mjs'; import './dto/sign-message.dto.mjs'; declare class RemoteSignerSdk { externalViemAccount: Account; etherspotWalletAddress: string; chainId: number; index: number; apiKey: string; sessionKey: string; factoryUsed: string; providerUrl: string; publicClient: PublicClient; etherspotWallet: EtherspotWalletAPI; bundler: HttpRpcClient; erc20SessionKeyValidator: string; private userOpsBatch; private constructor(); private initialize; private getERC20SessionKeyValidator; static create(externalViemAccount: Account, sdkOptions: SdkOptions): Promise<RemoteSignerSdk>; getPublicClient(): PublicClient; getProviderUrl(): string; validateSessionKey(): Promise<boolean>; isSessionKeyLiveOnChain(): Promise<boolean>; getSessionKeyOnChainData(): Promise<SessionKeyOnChainData>; signUserOp(userOp: UserOperation): Promise<UserOperation>; getCounterFactualAddress(): Promise<string>; estimate(params?: { paymasterDetails?: PaymasterApi; gasDetails?: TransactionGasInfoForUserOp; callGasLimit?: BigNumberish; nonceKey?: BigNumber; }): Promise<any>; send(signedUserOp: any): Promise<string>; getGasFee(): Promise<Gas>; getNativeBalance(): Promise<string>; getUserOpReceipt(userOpHash: string): Promise<string>; getUserOpHash(userOp: UserOperation): Promise<string>; addUserOpsToBatch(tx: UserOpsRequest): Promise<BatchUserOpsRequest>; clearUserOpsFromBatch(): Promise<void>; totalGasEstimated(userOp: UserOperation): Promise<BigNumber>; } export { RemoteSignerSdk };