UNPKG

permissionless

Version:

A utility library for working with ERC-4337

26 lines 1.24 kB
import { getTokenQuotes, sendCompressedUserOperation, validateSponsorshipPolicies } from "../../actions/pimlico.js"; import { getUserOperationGasPrice } from "../../actions/pimlico/getUserOperationGasPrice.js"; import { getUserOperationStatus } from "../../actions/pimlico/getUserOperationStatus.js"; import { sponsorUserOperation } from "../../actions/pimlico/sponsorUserOperation.js"; export const pimlicoActions = ({ entryPoint }) => (client) => ({ getUserOperationGasPrice: async () => getUserOperationGasPrice(client), getUserOperationStatus: async (args) => getUserOperationStatus(client, args), sendCompressedUserOperation: async (args) => sendCompressedUserOperation(client, { ...args, entryPointAddress: entryPoint.address }), sponsorUserOperation: async (args) => sponsorUserOperation(client, { ...args, entryPoint }), validateSponsorshipPolicies: async (args) => validateSponsorshipPolicies(client, { ...args, entryPointAddress: entryPoint.address }), getTokenQuotes: async (args) => getTokenQuotes(client, { ...args, chain: args.chain, entryPointAddress: entryPoint.address }) }); //# sourceMappingURL=pimlico.js.map