@owlprotocol/contracts-account-abstraction
Version:
ERC4337 Account Abstraction support for deploying relevant smart contracts and interacting with UserOps.
51 lines (50 loc) • 3.17 kB
JavaScript
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 MyContract_exports = {};
__export(MyContract_exports, {
MyContract: () => MyContract,
abi: () => abi,
bytecode: () => bytecode,
deployedBytecode: () => deployedBytecode,
errors: () => errors,
events: () => events,
functions: () => functions,
helloWorld: () => helloWorld,
implementation: () => implementation
});
module.exports = __toCommonJS(MyContract_exports);
const helloWorld = {
inputs: [],
name: "helloWorld",
outputs: [{ internalType: "string", name: "", type: "string" }],
stateMutability: "pure",
type: "function"
};
const functions = [helloWorld];
const events = [];
const errors = [];
const abi = [...functions, ...events, ...errors];
const bytecode = "0x6080806040523461001657610169908161001c8239f35b600080fdfe6080600436101561000f57600080fd5b600090813560e01c63c605f76c1461002657600080fd5b3461012f57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012f5760409081810181811067ffffffffffffffff821117610102578252600b81526020907f48656c6c6f20576f726c640000000000000000000000000000000000000000006020820152825193849260208452825192836020860152825b8481106100ec57505050828201840152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168101030190f35b81810183015188820188015287955082016100b0565b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b5080fdfea2646970667358221220f776e265f2d56b6988d7e1cf07d371f598da94b6a1a339e6abaf199fa133c81a64736f6c63430008170033";
const deployedBytecode = "0x6080600436101561000f57600080fd5b600090813560e01c63c605f76c1461002657600080fd5b3461012f57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261012f5760409081810181811067ffffffffffffffff821117610102578252600b81526020907f48656c6c6f20576f726c640000000000000000000000000000000000000000006020820152825193849260208452825192836020860152825b8481106100ec57505050828201840152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168101030190f35b81810183015188820188015287955082016100b0565b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b5080fdfea2646970667358221220f776e265f2d56b6988d7e1cf07d371f598da94b6a1a339e6abaf199fa133c81a64736f6c63430008170033";
const implementation = "0x58b5603c7Cb2d7168508d72170c0748E05a058B8";
const MyContract = {
abi,
bytecode,
deployedBytecode,
implementation
};