@q-dev/gdk-sdk
Version:
Typescript Library to interact with GDK Contracts
1,540 lines • 108 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "ExpertsDAOVoting",
"sourceName": "contracts/governance/ExpertsDAOVoting.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": "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"
},
{
"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": "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": [],
"name": "getCurrentExecutingProposalId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"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": "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": [],
"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": "voteFor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "votingToken",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x60a080604052346100315730608052614145908161003782396080518181816116c90152818161178d0152611c420152f35b600080fdfe608060408181526004908136101561001657600080fd5b60009283803560e01c918262707322146125dc5750508063013cf08b1461248c57806301ffc9a71461241c57806307325a301461231257806309914cba146122ed5780630d61b519146122c257806311911cae146122895780631d28dec7146120115780632a2b6ba014611fe85780632b52b07e14611fbf5780633605f30714611eed5780633659cfe614611c1c578381633885bfeb14611b95575080633e3b5b1914611b5f578063401853b714611b1a5780634e68c99b14610a5d5780634f1ef2861461177657806352d1902d146116b45780635903bd6c1461168b5780635c60da1b1461165557806369130451146114835783816371834626146113b15750806373708b1b1461133b578063750e443a1461120457806375706ff21461117457806377f8e93b1461108b57806386a5053514610e645780638cb941cc14610e2f578063ab663d0f14610df1578063af9728fb14610dc8578063b034012314610d9f578063b66bfb5f14610a82578063bb65dc8314610a5d578063c7f758a814610967578063cc7a20491461093e578063d047d87714610856578063d12a79211461082a578063d8ad4e1c14610767578063da35c66414610749578063dc296ae114610703578063e83d587314610693578063eb741a241461064d5763f5fcd0841461020257600080fd5b346106495760603660031901126106495761021b612cc3565b6001600160401b036024358181116106455761023a90369086016127e6565b6044358281116106415761025190369087016127e6565b9086549560ff8760081c161594858096610634575b801561061d575b156105c357600197868960ff198316178b556105b2575b50835185811161059f57806102998a546128fd565b95601f96878111610532575b506020908783116001146104b5578c926104aa575b5050600019600383901b1c191690891b1788555b60018060a01b03166bffffffffffffffffffffffff60a01b6003541617600355815193841161049757509082916103066002546128fd565b828111610427575b5060209183116001146103a857879261039d575b5050600019600383901b1c191690841b176002555b6000197f69ff26ae7567e3e590df6e0174c58cf39f6d291d404355c047056a744cc2c45755610364578280f35b825461ff0019168355519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a138808280f35b015190503880610322565b600288528693507f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace9190601f198416895b81811061040f575084116103f6575b505050811b01600255610337565b015160001960f88460031b161c191690553880806103e8565b828401518555899690940193602093840193016103d9565b90919250600288527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace8380860160051c8201926020871061048e575b9186958a929594930160051c01915b82811061048057505061030e565b8a8155869550899101610472565b92508192610463565b634e487b7160e01b885260419052602487fd5b0151905038806102ba565b8b8d528b93507fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf69190601f1984168e5b81811061051a57508411610501575b505050811b0188556102ce565b015160001960f88460031b161c191690553880806104f4565b8284015185558e9690940193602093840193016104e5565b9091508a8c527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf68780850160051c82019260208610610596575b918d91869594930160051c01915b8281106105885750506102a5565b8e81558594508d910161057a565b9250819261056c565b634e487b7160e01b8a526041835260248afd5b61ffff191661010117895538610284565b865162461bcd60e51b8152602081840152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b15801561026d5750600160ff89161461026d565b50600160ff891610610266565b8680fd5b8580fd5b8280fd5b5090346106495781600319360112610649578160209361066b612cd9565b92358152600d8552209060018060a01b0316600052825260ff81600020541690519015158152f35b50903461064957602036600319011261064957906106ed816106ff946106e6943581527f69ff26ae7567e3e590df6e0174c58cf39f6d291d404355c047056a744cc2c45660205220825193848092612a7a565b03836127aa565b51918291602083526020830190612be1565b0390f35b50903461064957816003193601126106495781602093610721612cd9565b92358152600c8552209060018060a01b0316600052825260ff81600020541690519015158152f35b50903461064957826003193601126106495760209250549051908152f35b5034610649578060031936011261064957610780612cc3565b602435906001600160401b038211610826576107d0936107a5602093369083016127e6565b6007548551633ca8e36d60e11b81529687946001600160a01b0390921693859384939091840161360f565b03915afa91821561081c57602093926107ed575b50519015158152f35b61080e919250833d8511610815575b61080681836127aa565b8101906135f7565b90386107e4565b503d6107fc565b81513d85823e3d90fd5b8480fd5b838234610852576106ff9061084761084136612d31565b906134c9565b905191829182612dfc565b5080fd5b5034610649576020366003190112610649576001600160401b0383833582811161085257610889602091369087016127e6565b94610892612efd565b506108b48551968793849363d047d87760e01b85528401526024830190612be1565b038173__$c79b64498c17dd34c719581fd9a6e3e96c$__5af49283156109345784936108f0575b8251602080825281906106ff90820187612c5a565b909192503d8085833e61090381836127aa565b810193602082860312610931578151928311610931575092610929916106ff9401612f85565b9038806108db565b80fd5b82513d86823e3d90fd5b83823461085257816003193601126108525760075490516001600160a01b039091168152602090f35b50346106495760203660031901126106495760ff6011826106ff9561098a613244565b5085358152600b602052206109be610a068551966109a78861273c565b8354885286516109c5816109be8160018901612a7a565b03826127aa565b602089015286516109dd816109be8160028901612a7a565b8789015286516109f4816109be8160038901612a7a565b60608901528651928380928601612a7a565b608086015260058101546001600160a01b031660a0860152610a2a60068201612b30565b60c0860152610a3b600e8201612b96565b60e0860152015416151561010083015251918291602083526020830190612d47565b83823461085257816003193601126108525780516106ff916106ed826106e6816129eb565b508290346108525760031992606036850112610649576001600160401b0392813584811161085257610ab790369084016127e6565b9460243585811161064957610acf90369085016127e6565b9460443590811161064957610b2196610b64610af1610b4593369088016127e6565b93875194610afe866126dd565b600d865260209a866c4352454154455f564f54494e4760981b8d80990152613643565b610b5589519a8b96879663a864fa5160e01b885260608c8901526064880190612be1565b9084878303016024880152612be1565b91848303016044850152612be1565b038173__$4d8892694447b0a4da3b0c8b08fb630088$__5af4938415610d93578194610d5f575b50838152600b85528281209073__$c79b64498c17dd34c719581fd9a6e3e96c$__803b156108525781602491865192838092630accbf1760e31b825287898301525af48015610d55579086939291610d3b575b50508060ff60067f1c9828afe76db05bdceea92afda76c15aa3022db889ea29f3ca1b1905ed3e50a9301541693610c1485612b10565b84610d2e575b60ff60118751938a855280548b860152610c8961024094858b880152610c47610260880160018501612a7a565b90610c78610c65601f1993848b82030160608c015260028701612a7a565b838a82030160808b015260038601612a7a565b918883030160a08901528301612a7a565b60058201546001600160a01b031660c087015297610ca681612b10565b60e0860152600781015461010086015260088101546101208601526009810154610140860152600a810154610160860152600b810154610180860152600c8101546101a0860152600d8101546101c0860152600e8101546101e0860152600f81015461020086015260108101546102208601520154161515908201528033940390a351908152f35b610d36613ba4565b610c1a565b81929350610d489061270e565b6109315790818592610bde565b85513d84823e3d90fd5b9093508481813d8311610d8c575b610d7781836127aa565b81010312610d8757519285610b8b565b600080fd5b503d610d6d565b508251903d90823e3d90fd5b83823461085257816003193601126108525760035490516001600160a01b039091168152602090f35b838234610852578160031936011261085257600e5490516001600160a01b039091168152602090f35b8382346108525781600319360112610852576020907f69ff26ae7567e3e590df6e0174c58cf39f6d291d404355c047056a744cc2c457549051908152f35b833461093157602036600319011261093157610e49612cc3565b610e51613d1e565b6000805160206140f98339815191525580f35b5034610649576020908160031936011261108757823591610e8483613a61565b828552600b8152600160ff6006848820015416610ea081612b10565b1461107a575b610eaf836130f7565b600a81101561106557600103610ffd5782600052600c81528160002033600052815260ff826000205416610fa95782600052600c81528160002033600052815281600020600160ff19825416179055610f0783613f30565b9373__$4d8892694447b0a4da3b0c8b08fb630088$__90813b15610d87578460646000928651948593849263bbb2eab960e01b8452830152896024830152600160448301525af48015610f9e57916001917fff18b10a639bdb3188534561961f4bc58baec877ac42e92260a369ae1ba7bb3c9493610f8f575b5082519586528501523393a380f35b610f989061270e565b38610f80565b83513d6000823e3d90fd5b8390608492519162461bcd60e51b8352820152602960248201527f5b5147444b2d3031383031305d2d54686520757365722068617320616c726561604482015268323c903b37ba32b21760b91b6064820152fd5b8390608492519162461bcd60e51b8352820152603760248201527f5b5147444b2d3031383030395d2d5468652070726f706f73616c206d7573742060448201527f62652070656e64696e6720746f20626520766f7465642e0000000000000000006064820152fd5b602185634e487b7160e01b6000525260246000fd5b611082613ba4565b610ea6565b8380fd5b5090346106495760209081600319360112611087579260c09335908060a085516110b481612721565b828152828682015282878201528260608201528260808201520152818152600b8352838120936110e8600b86015495613937565b93838352600b815281832090600d83611105600c85015494613a02565b95878152600b8452611118828220613c97565b978152600b84522001549560a0845161113081612721565b8981528381019283528581019485526060810196875260808101978852019687528351978852519087015251908501525160608401525160808301525160a0820152f35b5082346109315780600319360112610931576009546111928161322d565b9161119f845193846127aa565b8183526009815260207f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af8185015b8484106111e1578651806106ff8882612dfc565b600183819289516111f6816109be8189612a7a565b8152019201930192906111cd565b503461064957602090816003193601126110875782359161122483613a61565b828552600b8152600160ff600684882001541661124081612b10565b1461132e575b61124f836130f7565b600a81101561106557600103610ffd5782600052600c81528160002033600052815260ff826000205416610fa95782600052600c81528160002033600052815281600020600160ff198254161790556112a783613f30565b9373__$4d8892694447b0a4da3b0c8b08fb630088$__90813b15610d87578460646000928651948593849263bbb2eab960e01b8452830152896024830152600260448301525af48015610f9e57916002917fff18b10a639bdb3188534561961f4bc58baec877ac42e92260a369ae1ba7bb3c9493610f8f575082519586528501523393a380f35b611336613ba4565b611246565b5082346109315761135461134e36612d31565b9061330f565b8251916020808401906020855283518092526020868601968360051b870101940192955b8287106113855785850386f35b9091929382806113a1600193603f198a82030186528851612d47565b9601920196019592919092611378565b8084843461147f57602036600319011261147f5781356001600160401b03811161147a576113e290369084016127e6565b9161140982516113f1816126dd565b600681526544454c45544560d01b6020820152613643565b73__$c79b64498c17dd34c719581fd9a6e3e96c$__92833b156108265761144e93602086938551968794859384936338c1a31360e11b85528401526024830190612be1565b03915af490811561147157506114615750f35b61146a9061270e565b6109315780f35b513d84823e3d90fd5b505050fd5b5050fd5b50346106495761149236612cef565b509061149c613d1e565b600680546001600160a01b03198082166001600160a01b0395861690811790935583516309a06df560e41b8152909560209390928816179083818481855afa908115611611579086918991611638575b5016866007541617600755835163065ab60960e41b8152838382015283818061151760248201612937565b0381855afa90811561161157908691899161161b575b501686600854161760085583516306bdb01960e21b815283818481855afa90811561161157918685949285948b916115f4575b5016886005541617600555336000805160206140f98339815191525585519485926301d1290960e01b8452830152818061159c60248201612937565b03915afa9283156115eb575085926115be575b50501690600e541617600e5580f35b6115dd9250803d106115e4575b6115d581836127aa565b81019061320e565b38806115af565b503d6115cb565b513d87823e3d90fd5b61160b9150853d87116115e4576115d581836127aa565b38611560565b85513d8a823e3d90fd5b6116329150853d87116115e4576115d581836127aa565b3861152d565b61164f9150853d87116115e4576115d581836127aa565b386114ec565b8382346108525781600319360112610852576000805160206141198339815191525490516001600160a01b039091168152602090f35b83823461085257816003193601126108525760055490516001600160a01b039091168152602090f35b509134610931578060031936011261093157507f0000000000000000000000000000000000000