UNPKG

@owlprotocol/contracts-account-abstraction

Version:

ERC4337 Account Abstraction support for deploying relevant smart contracts and interacting with UserOps.

34 lines (33 loc) 1.59 kB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var constants_exports = {}; __export(constants_exports, { ENTRYPOINT_ADDRESS_V07: () => ENTRYPOINT_ADDRESS_V07, ENTRYPOINT_SALT_V07: () => ENTRYPOINT_SALT_V07, SIMPLE_ACCOUNT_FACTORY_ADDRESS: () => SIMPLE_ACCOUNT_FACTORY_ADDRESS, SIMPLE_ACCOUNT_IMPLEMENTATION_ADDRESS: () => SIMPLE_ACCOUNT_IMPLEMENTATION_ADDRESS }); module.exports = __toCommonJS(constants_exports); var import_viem = require("viem"); const ENTRYPOINT_ADDRESS_V07 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032"; const ENTRYPOINT_SALT_V07 = "0x90d8084deab30c2a37c45e8d47f49f2f7965183cb6990a98943ef94940681de3"; const SIMPLE_ACCOUNT_FACTORY_ADDRESS = "0xe7A78BA9be87103C317a66EF78e6085BD74Dd538"; const SIMPLE_ACCOUNT_IMPLEMENTATION_ADDRESS = (0, import_viem.getCreateAddress)({ from: SIMPLE_ACCOUNT_FACTORY_ADDRESS, nonce: 1n });