@etherspot/remote-signer
Version:
Etherspot Permissioned Signer SDK - signs the UserOp with SessionKey and sends it to the Bundler
36 lines (33 loc) • 1.34 kB
TypeScript
import { Hex } from 'viem';
import { BigNumber, BigNumberish } from '../types/bignumber.js';
import { BaseApiParams, BaseAccountAPI } from './BaseAccountAPI.js';
import '../types/common-types.js';
import './TransactionDetailsForUserOp.js';
import '../../PaymasterAPI-kjTxpLRH.js';
import '../../ERC4337Utils-DFwtlIAE.js';
import 'node_modules/viem/_types/errors/utils';
import './calcPreVerificationGas.js';
import '../interfaces.js';
import '../bundler/interface.js';
import '../dto/sign-message.dto.js';
interface EtherspotWalletApiParams extends BaseApiParams {
factoryAddress?: string;
index?: number;
chainId: number;
etherspotWalletAddress?: string;
}
declare class EtherspotWalletAPI extends BaseAccountAPI {
index: number;
accountAddress?: string;
bootstrapAddress?: string;
multipleOwnerECDSAValidatorAddress?: string;
eoaAddress: Hex;
constructor(params: EtherspotWalletApiParams);
getEOAAddress(): Hex;
getAccountInitCode(): Promise<string>;
getInitCodeData(): Promise<string>;
getNonce(key?: BigNumber): Promise<BigNumber>;
encodeExecute(target: string, value: BigNumberish, data: string): Promise<string>;
encodeBatch(targets: string[], values: BigNumberish[], datas: string[]): Promise<string>;
}
export { EtherspotWalletAPI, type EtherspotWalletApiParams };