UNPKG

@owlprotocol/contracts-account-abstraction

Version:

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

32 lines (31 loc) 2.13 kB
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 }; export { MyContract, abi, bytecode, deployedBytecode, errors, events, functions, helloWorld, implementation };