@owlprotocol/contracts-account-abstraction
Version:
ERC4337 Account Abstraction support for deploying relevant smart contracts and interacting with UserOps.
20 lines (19 loc) • 841 B
JavaScript
import { getChainId } from "viem/actions";
import {
estimateUserOperationGas
} from "../../actions/bundler/estimateUserOperationGas.js";
import { getSupportedEntryPoints } from "../../actions/bundler/getSupportedEntryPoints.js";
import { sendUserOperation } from "../../actions/bundler/sendUserOperation.js";
import { getUserOperationReceipt } from "../../actions/index.js";
function backendBundlerActions(client) {
return {
estimateUserOperationGas: (parameters) => estimateUserOperationGas(client, parameters),
getChainId: () => getChainId(client),
getSupportedEntryPoints: () => getSupportedEntryPoints(client),
getUserOperationReceipt: (parameters) => getUserOperationReceipt(client, parameters),
sendUserOperation: (parameters) => sendUserOperation(client, parameters)
};
}
export {
backendBundlerActions
};