UNPKG

@etherspot/remote-signer

Version:

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

28 lines (24 loc) 1.05 kB
import { U as UserOperation, h as UserOperationStruct } from './ERC4337Utils-DFwtlIAE.js'; interface PaymasterResponse { result: { paymaster: string; paymasterData: string; preVerificationGas: string; verificationGasLimit: string; callGasLimit: string; paymasterVerificationGasLimit: string; paymasterPostOpGasLimit: string; }; } declare class VerifyingPaymasterAPI extends PaymasterAPI { private paymasterUrl; private entryPoint; private context; constructor(paymasterUrl: string, entryPoint: string, context: any); getPaymasterData(userOp: Partial<UserOperation>): Promise<PaymasterResponse>; } declare const getVerifyingPaymaster: (paymasterUrl: string, entryPoint: string, context: any) => VerifyingPaymasterAPI; declare class PaymasterAPI { getPaymasterData(userOp: Partial<UserOperationStruct>): Promise<PaymasterResponse | undefined>; } export { PaymasterAPI as P, VerifyingPaymasterAPI as V, type PaymasterResponse as a, getVerifyingPaymaster as g };