@owlprotocol/contracts-account-abstraction
Version:
ERC4337 Account Abstraction support for deploying relevant smart contracts and interacting with UserOps.
20 lines (19 loc) • 538 B
JavaScript
import { createClient } from "viem";
import { backendBundlerActions } from "./decorators/bundler.js";
function createBackendBundler(parameters) {
const { key = "bundler-backend", name = "Bundler Backend", transport, entryPointSimulationsAddress } = parameters;
const client = Object.assign(
createClient({
...parameters,
key,
name,
transport,
type: "BundlerBackend"
}),
{ entryPointSimulationsAddress }
);
return client.extend(backendBundlerActions);
}
export {
createBackendBundler
};