UNPKG

@etherspot/prime-sdk

Version:

Etherspot Prime (Account Abstraction) SDK

372 lines (371 loc) 8.83 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AccessController__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "newGuardian", type: "address", }, ], name: "GuardianAdded", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "removedGuardian", type: "address", }, ], name: "GuardianRemoved", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "newOwner", type: "address", }, ], name: "OwnerAdded", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "removedOwner", type: "address", }, ], name: "OwnerRemoved", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "proposalId", type: "uint256", }, { indexed: false, internalType: "address", name: "discardedBy", type: "address", }, ], name: "ProposalDiscarded", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "proposalId", type: "uint256", }, { indexed: false, internalType: "address", name: "newOwnerProposed", type: "address", }, { indexed: false, internalType: "address", name: "proposer", type: "address", }, ], name: "ProposalSubmitted", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "newTimelock", type: "uint256", }, ], name: "ProposalTimelockChanged", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "proposalId", type: "uint256", }, { indexed: false, internalType: "address", name: "newOwnerProposed", type: "address", }, { indexed: false, internalType: "uint256", name: "approvalCount", type: "uint256", }, ], name: "QuorumNotReached", type: "event", }, { inputs: [ { internalType: "address", name: "_newGuardian", type: "address", }, ], name: "addGuardian", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_newOwner", type: "address", }, ], name: "addOwner", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_newTimelock", type: "uint256", }, ], name: "changeProposalTimelock", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "discardCurrentProposal", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_proposalId", type: "uint256", }, ], name: "getProposal", outputs: [ { internalType: "address", name: "ownerProposed_", type: "address", }, { internalType: "uint256", name: "approvalCount_", type: "uint256", }, { internalType: "address[]", name: "guardiansApproved_", type: "address[]", }, { internalType: "bool", name: "resolved_", type: "bool", }, { internalType: "uint256", name: "proposedAt_", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "guardianCosign", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "guardianCount", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_newOwner", type: "address", }, ], name: "guardianPropose", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_address", type: "address", }, ], name: "isGuardian", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_address", type: "address", }, ], name: "isOwner", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "ownerCount", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "proposalId", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "proposalTimelock", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_guardian", type: "address", }, ], name: "removeGuardian", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_owner", type: "address", }, ], name: "removeOwner", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; class AccessController__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.AccessController__factory = AccessController__factory; AccessController__factory.abi = _abi;