UNPKG

@augmentedfinance/protocol-v1

Version:

Augmented Protocol smart contracts

200 lines 4.91 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.IGovernanceFactory = void 0; const ethers_1 = require("ethers"); class IGovernanceFactory { static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.IGovernanceFactory = IGovernanceFactory; const _abi = [ { inputs: [ { internalType: "uint256", name: "proposalId", type: "uint256", }, ], name: "cancel", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "executor", type: "address", }, { internalType: "address[]", name: "targets", type: "address[]", }, { internalType: "uint256[]", name: "values", type: "uint256[]", }, { internalType: "string[]", name: "signatures", type: "string[]", }, { internalType: "bytes[]", name: "calldatas", type: "bytes[]", }, { internalType: "bool[]", name: "withDelegatecalls", type: "bool[]", }, { internalType: "bytes32", name: "ipfsHash", type: "bytes32", }, ], name: "create", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId", type: "uint256", }, ], name: "execute", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [], name: "getGuardian", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId", type: "uint256", }, ], name: "getProposalState", outputs: [ { internalType: "enum IGovernance.ProposalState", name: "", type: "uint8", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getProposalsCount", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId", type: "uint256", }, ], name: "queue", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId", type: "uint256", }, { internalType: "bool", name: "support", type: "bool", }, ], name: "submitVote", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId", type: "uint256", }, { internalType: "bool", name: "support", type: "bool", }, { internalType: "uint8", name: "v", type: "uint8", }, { internalType: "bytes32", name: "r", type: "bytes32", }, { internalType: "bytes32", name: "s", type: "bytes32", }, ], name: "submitVoteBySignature", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; //# sourceMappingURL=IGovernanceFactory.js.map