UNPKG

@q-dev/gdk-sdk

Version:

Typescript Library to interact with GDK Contracts

1,636 lines (1,635 loc) 97.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExtendedDAOVoting__factory = void 0; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ const ethers_1 = require("ethers"); const _abi = [ { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "previousAdmin", type: "address", }, { indexed: false, internalType: "address", name: "newAdmin", type: "address", }, ], name: "AdminChanged", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "proposalId", type: "uint256", }, { indexed: true, internalType: "address", name: "user", type: "address", }, ], name: "AppealedByUser", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "beacon", type: "address", }, ], name: "BeaconUpgraded", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint8", name: "version", type: "uint8", }, ], name: "Initialized", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "id", type: "uint256", }, { indexed: true, internalType: "address", name: "proposer", type: "address", }, { components: [ { internalType: "uint256", name: "id", type: "uint256", }, { internalType: "string", name: "remark", type: "string", }, { internalType: "string", name: "relatedExpertPanel", type: "string", }, { internalType: "string", name: "relatedVotingSituation", type: "string", }, { internalType: "bytes", name: "callData", type: "bytes", }, { internalType: "address", name: "target", type: "address", }, { components: [ { internalType: "enum VotingType", name: "votingType", type: "uint8", }, { internalType: "uint256", name: "votingStartTime", type: "uint256", }, { internalType: "uint256", name: "votingEndTime", type: "uint256", }, { internalType: "uint256", name: "vetoEndTime", type: "uint256", }, { internalType: "uint256", name: "proposalExecutionPeriod", type: "uint256", }, { internalType: "uint256", name: "requiredQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredMajority", type: "uint256", }, { internalType: "uint256", name: "requiredVetoQuorum", type: "uint256", }, ], internalType: "struct IDAOVoting.VotingParams", name: "params", type: "tuple", }, { components: [ { internalType: "uint256", name: "votedFor", type: "uint256", }, { internalType: "uint256", name: "votedAgainst", type: "uint256", }, { internalType: "uint256", name: "vetoesCount", type: "uint256", }, ], internalType: "struct IDAOVoting.VotingCounters", name: "counters", type: "tuple", }, { internalType: "bool", name: "executed", type: "bool", }, ], indexed: false, internalType: "struct IDAOVoting.DAOProposal", name: "proposal", type: "tuple", }, ], name: "ProposalCreated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "id", type: "uint256", }, ], name: "ProposalExecuted", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "implementation", type: "address", }, ], name: "Upgraded", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "id", type: "uint256", }, { indexed: true, internalType: "address", name: "voter", type: "address", }, ], name: "UserVetoed", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "id", type: "uint256", }, { indexed: true, internalType: "address", name: "voter", type: "address", }, { indexed: false, internalType: "uint256", name: "votingPower", type: "uint256", }, { indexed: false, internalType: "uint8", name: "option", type: "uint8", }, ], name: "UserVoted", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "proposalId", type: "uint256", }, { indexed: true, internalType: "address", name: "expert", type: "address", }, { indexed: false, internalType: "enum IDAOVoting.VotingOption", name: "votingOption", type: "uint8", }, ], name: "VotedByExpert", type: "event", }, { inputs: [], name: "DAO_VOTING_RESOURCE", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "votingToken_", type: "address", }, { internalType: "string", name: "panelName_", type: "string", }, { internalType: "string", name: "resource_", type: "string", }, ], name: "__DAOVoting_init", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId_", type: "uint256", }, ], name: "appealByUser", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "member_", type: "address", }, { internalType: "string", name: "permission_", type: "string", }, ], name: "checkPermission", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { components: [ { internalType: "string", name: "votingSituationName", type: "string", }, { components: [ { internalType: "uint256", name: "votingPeriod", type: "uint256", }, { internalType: "uint256", name: "vetoPeriod", type: "uint256", }, { internalType: "uint256", name: "proposalExecutionPeriod", type: "uint256", }, { internalType: "uint256", name: "requiredQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredMajority", type: "uint256", }, { internalType: "uint256", name: "requiredVetoQuorum", type: "uint256", }, { internalType: "uint256", name: "votingType", type: "uint256", }, { internalType: "string", name: "votingTarget", type: "string", }, { internalType: "uint256", name: "votingMinAmount", type: "uint256", }, ], internalType: "struct IDAOVoting.DAOVotingValues", name: "votingValues", type: "tuple", }, ], internalType: "struct IDAOVoting.InitialSituation", name: "conf_", type: "tuple", }, ], name: "createDAOVotingSituation", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { components: [ { internalType: "string", name: "votingSituationName", type: "string", }, { components: [ { internalType: "uint256", name: "votingPeriod", type: "uint256", }, { internalType: "uint256", name: "vetoPeriod", type: "uint256", }, { internalType: "uint256", name: "proposalExecutionPeriod", type: "uint256", }, { internalType: "uint256", name: "requiredQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredMajority", type: "uint256", }, { internalType: "uint256", name: "requiredVetoQuorum", type: "uint256", }, { internalType: "uint256", name: "votingType", type: "uint256", }, { internalType: "string", name: "votingTarget", type: "string", }, { internalType: "uint256", name: "votingMinAmount", type: "uint256", }, ], internalType: "struct IDAOVoting.DAOVotingValues", name: "votingValues", type: "tuple", }, ], internalType: "struct IDAOVoting.InitialSituation", name: "initialSituation", type: "tuple", }, { internalType: "string", name: "externalLink", type: "string", }, ], internalType: "struct IDAOVoting.ExtendedSituation", name: "conf_", type: "tuple", }, ], name: "createDAOVotingSituationWithLink", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string", name: "situation_", type: "string", }, { internalType: "string", name: "remark_", type: "string", }, { internalType: "bytes", name: "callData_", type: "bytes", }, ], name: "createProposal", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "daoMemberStorage", outputs: [ { internalType: "contract DAOMemberStorage", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "daoParameterStorage", outputs: [ { internalType: "contract DAOParameterStorage", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "daoRegistry", outputs: [ { internalType: "contract DAORegistry", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "daoVault", outputs: [ { internalType: "contract DAOVault", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId_", type: "uint256", }, ], name: "executeProposal", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId_", type: "uint256", }, { internalType: "bytes", name: "signature_", type: "bytes", }, ], name: "executeProposalWithSignature", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], name: "extendedProposals", outputs: [ { internalType: "uint256", name: "appealPeriod", type: "uint256", }, { internalType: "uint256", name: "appealEndTime", type: "uint256", }, { internalType: "uint256", name: "voteByExpertPeriod", type: "uint256", }, { internalType: "uint256", name: "voteByExpertEndTime", type: "uint256", }, { internalType: "uint256", name: "requiredExpertsQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredExpertsMajority", type: "uint256", }, { components: [ { internalType: "bool", name: "isAppealed", type: "bool", }, { internalType: "uint256", name: "expertVoteFor", type: "uint256", }, { internalType: "uint256", name: "expertVoteAgainst", type: "uint256", }, ], internalType: "struct ExtendedDAOVotingCounters", name: "counters", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getCurrentExecutingProposalId", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId_", type: "uint256", }, ], name: "getExtendedVotingStats", outputs: [ { components: [ { internalType: "uint256", name: "requiredExpertsQuorum", type: "uint256", }, { internalType: "uint256", name: "currentExpertsQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredExpertsMajority", type: "uint256", }, { internalType: "uint256", name: "currentExpertsMajority", type: "uint256", }, ], internalType: "struct ExtendedVotingStats", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getInjector", outputs: [ { internalType: "address", name: "injector_", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId_", type: "uint256", }, ], name: "getProposal", outputs: [ { components: [ { internalType: "uint256", name: "id", type: "uint256", }, { internalType: "string", name: "remark", type: "string", }, { internalType: "string", name: "relatedExpertPanel", type: "string", }, { internalType: "string", name: "relatedVotingSituation", type: "string", }, { internalType: "bytes", name: "callData", type: "bytes", }, { internalType: "address", name: "target", type: "address", }, { components: [ { internalType: "enum VotingType", name: "votingType", type: "uint8", }, { internalType: "uint256", name: "votingStartTime", type: "uint256", }, { internalType: "uint256", name: "votingEndTime", type: "uint256", }, { internalType: "uint256", name: "vetoEndTime", type: "uint256", }, { internalType: "uint256", name: "proposalExecutionPeriod", type: "uint256", }, { internalType: "uint256", name: "requiredQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredMajority", type: "uint256", }, { internalType: "uint256", name: "requiredVetoQuorum", type: "uint256", }, ], internalType: "struct IDAOVoting.VotingParams", name: "params", type: "tuple", }, { components: [ { internalType: "uint256", name: "votedFor", type: "uint256", }, { internalType: "uint256", name: "votedAgainst", type: "uint256", }, { internalType: "uint256", name: "vetoesCount", type: "uint256", }, ], internalType: "struct IDAOVoting.VotingCounters", name: "counters", type: "tuple", }, { internalType: "bool", name: "executed", type: "bool", }, ], internalType: "struct IDAOVoting.DAOProposal", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "offset_", type: "uint256", }, { internalType: "uint256", name: "limit_", type: "uint256", }, ], name: "getProposalList", outputs: [ { components: [ { internalType: "uint256", name: "id", type: "uint256", }, { internalType: "string", name: "remark", type: "string", }, { internalType: "string", name: "relatedExpertPanel", type: "string", }, { internalType: "string", name: "relatedVotingSituation", type: "string", }, { internalType: "bytes", name: "callData", type: "bytes", }, { internalType: "address", name: "target", type: "address", }, { components: [ { internalType: "enum VotingType", name: "votingType", type: "uint8", }, { internalType: "uint256", name: "votingStartTime", type: "uint256", }, { internalType: "uint256", name: "votingEndTime", type: "uint256", }, { internalType: "uint256", name: "vetoEndTime", type: "uint256", }, { internalType: "uint256", name: "proposalExecutionPeriod", type: "uint256", }, { internalType: "uint256", name: "requiredQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredMajority", type: "uint256", }, { internalType: "uint256", name: "requiredVetoQuorum", type: "uint256", }, ], internalType: "struct IDAOVoting.VotingParams", name: "params", type: "tuple", }, { components: [ { internalType: "uint256", name: "votedFor", type: "uint256", }, { internalType: "uint256", name: "votedAgainst", type: "uint256", }, { internalType: "uint256", name: "vetoesCount", type: "uint256", }, ], internalType: "struct IDAOVoting.VotingCounters", name: "counters", type: "tuple", }, { internalType: "bool", name: "executed", type: "bool", }, ], internalType: "struct IDAOVoting.DAOProposal[]", name: "", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "offset_", type: "uint256", }, { internalType: "uint256", name: "limit_", type: "uint256", }, ], name: "getProposalSituationLinkList", outputs: [ { internalType: "string[]", name: "", type: "string[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId_", type: "uint256", }, ], name: "getProposalStatus", outputs: [ { internalType: "enum IDAOVoting.ProposalStatus", name: "", type: "uint8", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId_", type: "uint256", }, ], name: "getProposalVotingStats", outputs: [ { components: [ { internalType: "uint256", name: "requiredQuorum", type: "uint256", }, { internalType: "uint256", name: "currentQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredMajority", type: "uint256", }, { internalType: "uint256", name: "currentMajority", type: "uint256", }, { internalType: "uint256", name: "currentVetoQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredVetoQuorum", type: "uint256", }, ], internalType: "struct IDAOVoting.VotingStats", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getResource", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "string", name: "situation_", type: "string", }, ], name: "getVotingSituationExternalLink", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "string", name: "situation_", type: "string", }, ], name: "getVotingSituationInfo", outputs: [ { components: [ { internalType: "uint256", name: "votingPeriod", type: "uint256", }, { internalType: "uint256", name: "vetoPeriod", type: "uint256", }, { internalType: "uint256", name: "proposalExecutionPeriod", type: "uint256", }, { internalType: "uint256", name: "requiredQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredMajority", type: "uint256", }, { internalType: "uint256", name: "requiredVetoQuorum", type: "uint256", }, { internalType: "uint256", name: "votingType", type: "uint256", }, { internalType: "string", name: "votingTarget", type: "string", }, { internalType: "uint256", name: "votingMinAmount", type: "uint256", }, ], internalType: "struct IDAOVoting.DAOVotingValues", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "string", name: "situation_", type: "string", }, ], name: "getVotingSituationInfoWithLink", outputs: [ { components: [ { internalType: "uint256", name: "votingPeriod", type: "uint256", }, { internalType: "uint256", name: "vetoPeriod", type: "uint256", }, { internalType: "uint256", name: "proposalExecutionPeriod", type: "uint256", }, { internalType: "uint256", name: "requiredQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredMajority", type: "uint256", }, { internalType: "uint256", name: "requiredVetoQuorum", type: "uint256", }, { internalType: "uint256", name: "votingType", type: "uint256", }, { internalType: "string", name: "votingTarget", type: "string", }, { internalType: "uint256", name: "votingMinAmount", type: "uint256", }, ], internalType: "struct IDAOVoting.DAOVotingValues", name: "", type: "tuple", }, { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getVotingSituations", outputs: [ { internalType: "string[]", name: "", type: "string[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "", type: "uint256", }, { internalType: "address", name: "", type: "address", }, ], name: "hasExpertVoted", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId", type: "uint256", }, { internalType: "address", name: "user", type: "address", }, ], name: "hasUserVetoed", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId", type: "uint256", }, { internalType: "address", name: "user", type: "address", }, ], name: "hasUserVoted", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "implementation", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId_", type: "uint256", }, ], name: "isAppealConfigured", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId_", type: "uint256", }, ], name: "isVoteByExpertConfigured", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "permissionManager", outputs: [ { internalType: "contract PermissionManager", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "proposalCount", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "proposalId_", type: "uint256", }, ], name: "proposalSituationLink", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], name: "proposals", outputs: [ { internalType: "uint256", name: "id", type: "uint256", }, { internalType: "string", name: "remark", type: "string", }, { internalType: "string", name: "relatedExpertPanel", type: "string", }, { internalType: "string", name: "relatedVotingSituation", type: "string", }, { internalType: "bytes", name: "callData", type: "bytes", }, { internalType: "address", name: "target", type: "address", }, { components: [ { internalType: "enum VotingType", name: "votingType", type: "uint8", }, { internalType: "uint256", name: "votingStartTime", type: "uint256", }, { internalType: "uint256", name: "votingEndTime", type: "uint256", }, { internalType: "uint256", name: "vetoEndTime", type: "uint256", }, { internalType: "uint256", name: "proposalExecutionPeriod", type: "uint256", }, { internalType: "uint256", name: "requiredQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredMajority", type: "uint256", }, { internalType: "uint256", name: "requiredVetoQuorum", type: "uint256", }, ], internalType: "struct IDAOVoting.VotingParams", name: "params", type: "tuple", }, { components: [ { internalType: "uint256", name: "votedFor", type: "uint256", }, { internalType: "uint256", name: "votedAgainst", type: "uint256", }, { internalType: "uint256", name: "vetoesCount", type: "uint256", }, ], internalType: "struct IDAOVoting.VotingCounters", name: "counters", type: "tuple", }, { internalType: "bool", name: "executed", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "proxiableUUID", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "string", name: "situation_", type: "string", }, ], name: "removeVotingSituation", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "registryAddress_", type: "address", }, { internalType: "bytes", name: "data_", type: "bytes", }, ], name: "setDependencies",