UNPKG

@etherspot/prime-sdk

Version:

Etherspot Prime (Account Abstraction) SDK

384 lines (383 loc) 8.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.KernelFactoryAbi = void 0; exports.KernelFactoryAbi = [ { inputs: [ { internalType: "address", name: "_owner", type: "address", }, { internalType: "contract IEntryPoint", name: "_entryPoint", type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { inputs: [], name: "DeploymentFailed", type: "error", }, { inputs: [], name: "NewOwnerIsZeroAddress", type: "error", }, { inputs: [], name: "NoHandoverRequest", type: "error", }, { inputs: [], name: "SaltDoesNotStartWithCaller", type: "error", }, { inputs: [], name: "Unauthorized", type: "error", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "proxy", type: "address", }, { indexed: true, internalType: "address", name: "implementation", type: "address", }, ], name: "Deployed", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "pendingOwner", type: "address", }, ], name: "OwnershipHandoverCanceled", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "pendingOwner", type: "address", }, ], name: "OwnershipHandoverRequested", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "oldOwner", type: "address", }, { indexed: true, internalType: "address", name: "newOwner", type: "address", }, ], name: "OwnershipTransferred", type: "event", }, { inputs: [ { internalType: "uint32", name: "unstakeDelaySec", type: "uint32", }, ], name: "addStake", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [], name: "cancelOwnershipHandover", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "pendingOwner", type: "address", }, ], name: "completeOwnershipHandover", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "_implementation", type: "address", }, { internalType: "bytes", name: "_data", type: "bytes", }, { internalType: "uint256", name: "_index", type: "uint256", }, ], name: "createAccount", outputs: [ { internalType: "address", name: "proxy", type: "address", }, ], stateMutability: "payable", type: "function", }, { inputs: [], name: "entryPoint", outputs: [ { internalType: "contract IEntryPoint", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes", name: "_data", type: "bytes", }, { internalType: "uint256", name: "_index", type: "uint256", }, ], name: "getAccountAddress", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "initCodeHash", outputs: [ { internalType: "bytes32", name: "result", type: "bytes32", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "isAllowedImplementation", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "owner", outputs: [ { internalType: "address", name: "result", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "pendingOwner", type: "address", }, ], name: "ownershipHandoverExpiresAt", outputs: [ { internalType: "uint256", name: "result", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "ownershipHandoverValidFor", outputs: [ { internalType: "uint64", name: "", type: "uint64", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes32", name: "salt", type: "bytes32", }, ], name: "predictDeterministicAddress", outputs: [ { internalType: "address", name: "predicted", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [], name: "requestOwnershipHandover", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "contract IEntryPoint", name: "_entryPoint", type: "address", }, ], name: "setEntryPoint", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_implementation", type: "address", }, { internalType: "bool", name: "_allow", type: "bool", }, ], name: "setImplementation", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newOwner", type: "address", }, ], name: "transferOwnership", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [], name: "unlockStake", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address payable", name: "withdrawAddress", type: "address", }, ], name: "withdrawStake", outputs: [], stateMutability: "nonpayable", type: "function", }, ];