UNPKG

@q-dev/gdk-sdk

Version:

Typescript Library to interact with GDK Contracts

1,792 lines 130 kB
{ "_format": "hh-sol-artifact-1", "contractName": "ExtendedDAOVoting", "sourceName": "contracts/prototypes/governance/ExtendedDAOVoting.sol", "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", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "injector_", "type": "address" } ], "name": "setInjector", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "targetPanel", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newImplementation", "type": "address" } ], "name": "upgradeTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "proposalId_", "type": "uint256" } ], "name": "veto", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "proposalId_", "type": "uint256" } ], "name": "voteAgainst", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "proposalId_", "type": "uint256" } ], "name": "voteByExpertAgainst", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "proposalId_", "type": "uint256" } ], "name": "voteByExpertFor", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "proposalId_", "type": "uint256" } ], "name": "voteFor", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "votingToken", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x60a08060405234610031573060805261512f90816100378239608051818181611e7001528181611f34015261273b0152f35b600080fdfe608060408181526004908136101561001657600080fd5b60009283803560e01c918262707322146132235750508063013cf08b146130d357806301ffc9a71461306357806304f2eafd14612fbf57806307325a3014612ea957806309914cba14612dd45780630d61b51914612da957806311911cae14612d705780631d28dec714612b065780632a2b6ba014612add5780632b52b07e14612ab45780633605f307146129e25780633659cfe614612715578381633885bfeb1461268e575080633e3b5b19146126585780633e64c47f14612306578063401853b7146122c15780634e68c99b14610a965780634f1ef28614611f1d57806352d1902d14611e5b5780635903bd6c14611e325780635c60da1b14611dfc5780635d9fbb7114611b9c57806369130451146119ca5780636d8510261461192b5783816371834626146118595750806373708b1b146117e3578063750e443a146116ac57806375706ff21461161c57806377f8e93b146115335780637f9fd1ef146115135780638428958f1461113f57806386a5053514610f1c5780638cb941cc14610ee75780639c34d43614610ea1578063ab663d0f14610e63578063af9728fb14610e3a578063b034012314610e11578063b66bfb5f14610abb578063bb65dc8314610a96578063c4c99b1514610a6d578063c7f758a814610977578063cc7a20491461094e578063d047d87714610866578063d12a79211461083a578063d8ad4e1c14610777578063da35c66414610759578063dc296ae114610713578063e83d5873146106a3578063eb741a241461065d5763f5fcd0841461025a57600080fd5b3461065957606036600319011261065957610273613885565b6001600160401b03602435818111610655576102929036908601613448565b604435828111610651576102a99036908701613448565b9086549560ff8760081c161594858096610644575b801561062d575b156105d357600197868960ff198316178b556105c2575b5083518581116105af57806102f18a5461355f565b95601f96878111610554575b506020908783116001146104e9578c926104de575b5050600019600383901b1c191690891b1788555b60018060a01b03166bffffffffffffffffffffffff60a01b600354161760035581519384116104cb575090829161035e60025461355f565b82811161046d575b5060209183116001146104005787926103f5575b5050600019600383901b1c191690841b176002555b6000197f69ff26ae7567e3e590df6e0174c58cf39f6d291d404355c047056a744cc2c457556103bc578280f35b825461ff0019168355519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a138808280f35b01519050388061037a565b600288528693506000805160206150838339815191529190601f198416895b8181106104555750841161043c575b505050811b0160025561038f565b015160001960f88460031b161c1916905538808061042e565b8284015185558996909401936020938401930161041f565b90919250600288526000805160206150838339815191528380860160051c820192602087106104c2575b9186958a929594930160051c01915b8281106104b4575050610366565b8a81558695508991016104a6565b92508192610497565b634e487b7160e01b885260419052602487fd5b015190503880610312565b8b8d528b93506000805160206150e38339815191529190601f1984168e5b81811061053c57508411610523575b505050811b018855610326565b015160001960f88460031b161c19169055388080610516565b8284015185558e969094019360209384019301610507565b9091508a8c526000805160206150e38339815191528780850160051c820192602086106105a6575b918d91869594930160051c01915b8281106105985750506102fd565b8e81558594508d910161058a565b9250819261057c565b634e487b7160e01b8a526041835260248afd5b61ffff1916610101178955386102dc565b865162461bcd60e51b8152602081840152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b1580156102c55750600160ff8916146102c5565b50600160ff8916106102be565b8680fd5b8580fd5b8280fd5b5090346106595781600319360112610659578160209361067b61389b565b92358152600d8552209060018060a01b0316600052825260ff81600020541690519015158152f35b50903461065957602036600319011261065957906106fd8161070f946106f6943581527f69ff26ae7567e3e590df6e0174c58cf39f6d291d404355c047056a744cc2c4566020522082519384809261363c565b038361340c565b519182916020835260208301906137a3565b0390f35b5090346106595781600319360112610659578160209361073161389b565b92358152600c8552209060018060a01b0316600052825260ff81600020541690519015158152f35b50903461065957826003193601126106595760209250549051908152f35b5034610659578060031936011261065957610790613885565b602435906001600160401b038211610836576107e0936107b560209336908301613448565b6007548551633ca8e36d60e11b81529687946001600160a01b039092169385938493909184016143ec565b03915afa91821561082c57602093926107fd575b50519015158152f35b61081e919250833d8511610825575b610816818361340c565b8101906143d4565b90386107f4565b503d61080c565b81513d85823e3d90fd5b8480fd5b8382346108625761070f90610857610851366138f3565b906142a6565b9051918291826139be565b5080fd5b5034610659576020366003190112610659576001600160401b038383358281116108625761089960209136908701613448565b946108a2613abf565b506108c48551968793849363d047d87760e01b855284015260248301906137a3565b038173__$c79b64498c17dd34c719581fd9a6e3e96c$__5af4928315610944578493610900575b82516020808252819061070f9082018761381c565b909192503d8085833e610913818361340c565b8101936020828603126109415781519283116109415750926109399161070f9401613b47565b9038806108eb565b80fd5b82513d86823e3d90fd5b83823461086257816003193601126108625760075490516001600160a01b039091168152602090f35b50346106595760203660031901126106595760ff60118261070f9561099a613eb5565b5085358152600b602052206109ce610a168551966109b7886133b9565b8354885286516109d5816109ce816001890161363c565b038261340c565b602089015286516109ed816109ce816002890161363c565b878901528651610a04816109ce816003890161363c565b6060890152865192838092860161363c565b608086015260058101546001600160a01b031660a0860152610a3a600682016136f2565b60c0860152610a4b600e8201613758565b60e0860152015416151561010083015251918291602083526020830190613909565b5082346109415760203660031901126109415750610a8d602092356141e3565b90519015158152f35b838234610862578160031936011261086257805161070f916106fd826106f681613599565b50346106595760031992606036850112610941576001600160401b0392803584811161065957610aee9036908301613448565b94602435858111610e0d57610b069036908401613448565b94604435908111610e0d57610b5896610b9b610b28610b7c9336908701613448565b93875194610b3586613324565b600d865260209a866c4352454154455f564f54494e4760981b8d809901526144c5565b610b8c89519a8b96879663a864fa5160e01b885260608b89015260648801906137a3565b90848783030160248801526137a3565b918483030160448501526137a3565b038173__$4d8892694447b0a4da3b0c8b08fb6300