UNPKG

@etherspot/modular-sdk

Version:

Etherspot Modular SDK - build with ERC-7579 smart accounts modules

16 lines 805 B
/** * an API to external a UserOperation with paymaster info */ export class PaymasterAPI { /** * @param userOp a partially-filled UserOperation (without signature and paymasterData * note that the "preVerificationGas" is incomplete: it can't account for the * paymasterData value, which will only be returned by this method.. * @returns the value to put into the PaymasterData, undefined to leave it empty */ // eslint-disable-next-line @typescript-eslint/no-unused-vars async getPaymasterData(userOp) { return { result: { paymaster: '0x', paymasterData: '0x', paymasterPostOpGasLimit: '0x', paymasterVerificationGasLimit: '0x', preVerificationGas: '0x', verificationGasLimit: '0x', callGasLimit: '0x' } }; } } //# sourceMappingURL=PaymasterAPI.js.map