UNPKG

@vechain/vebetterdao-contracts

Version:

Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.

1,253 lines (1,252 loc) 26.1 kB
{ "_format": "hh-sol-artifact-1", "contractName": "IXAllocationVotingGovernor", "sourceName": "contracts/interfaces/IXAllocationVotingGovernor.sol", "abi": [ { "inputs": [ { "internalType": "address", "name": "voter", "type": "address" } ], "name": "AutoVotingEnabled", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "voter", "type": "address" } ], "name": "AutoVotingNotEnabled", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "B3TRGovernorOnlyExecutor", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "citizen", "type": "address" } ], "name": "DelegatedToNavigator", "type": "error" }, { "inputs": [], "name": "DuplicateAppVote", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "voter", "type": "address" } ], "name": "GovernorAlreadyCastVote", "type": "error" }, { "inputs": [ { "internalType": "bytes32", "name": "appId", "type": "bytes32" } ], "name": "GovernorAppNotAvailableForVoting", "type": "error" }, { "inputs": [], "name": "GovernorInsufficientVotingPower", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "votingPeriod", "type": "uint256" } ], "name": "GovernorInvalidVotingPeriod", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "GovernorNonexistentRound", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "person", "type": "address" }, { "internalType": "string", "name": "reason", "type": "string" } ], "name": "GovernorPersonhoodVerificationFailed", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" }, { "internalType": "enum IXAllocationVotingGovernor.RoundState", "name": "current", "type": "uint8" }, { "internalType": "bytes32", "name": "expectedStates", "type": "bytes32" } ], "name": "GovernorUnexpectedRoundState", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "threshold", "type": "uint256" }, { "internalType": "uint256", "name": "votes", "type": "uint256" } ], "name": "GovernorVotingThresholdNotMet", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "caller", "type": "address" } ], "name": "InvalidCaller", "type": "error" }, { "inputs": [ { "internalType": "string", "name": "contractName", "type": "string" } ], "name": "InvalidContractAddress", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "navigator", "type": "address" } ], "name": "NavigatorCannotEnableAutoVoting", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "navigator", "type": "address" }, { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "NavigatorPreferencesNotSet", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "citizen", "type": "address" } ], "name": "NotDelegatedToNavigator", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "SkipWindowNotReached", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "voter", "type": "address" }, { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "VoteAlreadyProcessed", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "person", "type": "address" } ], "name": "XAllocationVotingPersonhoodVerificationFailed", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "voter", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "roundId", "type": "uint256" }, { "indexed": false, "internalType": "bytes32[]", "name": "appsIds", "type": "bytes32[]" }, { "indexed": false, "internalType": "uint256[]", "name": "voteWeights", "type": "uint256[]" } ], "name": "AllocationAutoVoteCast", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "voter", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "roundId", "type": "uint256" }, { "indexed": false, "internalType": "bytes32[]", "name": "appsIds", "type": "bytes32[]" }, { "indexed": false, "internalType": "uint256[]", "name": "voteWeights", "type": "uint256[]" } ], "name": "AllocationVoteCast", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "voter", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "roundId", "type": "uint256" }, { "indexed": false, "internalType": "bool", "name": "isPerson", "type": "bool" }, { "indexed": false, "internalType": "uint256", "name": "appCount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "votingPower", "type": "uint256" } ], "name": "AutoVoteSkipped", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "enabled", "type": "bool" } ], "name": "AutoVotingToggled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "voter", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "roundId", "type": "uint256" }, { "indexed": false, "internalType": "bytes32", "name": "fingerprint", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "lastChangedRound", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "multiplier", "type": "uint256" } ], "name": "FreshnessMultiplierApplied", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "citizen", "type": "address" }, { "indexed": true, "internalType": "address", "name": "navigator", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "roundId", "type": "uint256" }, { "indexed": false, "internalType": "bytes32[]", "name": "appsIds", "type": "bytes32[]" }, { "indexed": false, "internalType": "uint256[]", "name": "voteWeights", "type": "uint256[]" } ], "name": "NavigatorVoteCast", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "citizen", "type": "address" }, { "indexed": true, "internalType": "address", "name": "navigator", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "NavigatorVoteSkipped", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": false, "internalType": "bytes32[]", "name": "apps", "type": "bytes32[]" } ], "name": "PreferredAppsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "roundId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "proposer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "voteStart", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "voteEnd", "type": "uint256" }, { "indexed": false, "internalType": "bytes32[]", "name": "appsIds", "type": "bytes32[]" } ], "name": "RoundCreated", "type": "event" }, { "inputs": [], "name": "CLOCK_MODE", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" }, { "internalType": "bytes32[]", "name": "appsIds", "type": "bytes32[]" }, { "internalType": "uint256[]", "name": "voteWeights", "type": "uint256[]" } ], "name": "castVote", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "clock", "outputs": [ { "internalType": "uint48", "name": "", "type": "uint48" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "currentRoundDeadline", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "currentRoundId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "currentRoundSnapshot", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "user", "type": "address" } ], "name": "disableAutoVotingFor", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "getAppIdsOfRound", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" }, { "internalType": "bytes32", "name": "appId", "type": "bytes32" } ], "name": "getAppVotes", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" }, { "internalType": "bytes32", "name": "app", "type": "bytes32" } ], "name": "getAppVotesQF", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "getRoundAppSharesCap", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "getRoundBaseAllocationPercentage", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTotalAutoVotingUsersAtRoundStart", "outputs": [ { "internalType": "uint208", "name": "", "type": "uint208" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "voter", "type": "address" }, { "internalType": "uint256", "name": "roundStart", "type": "uint256" } ], "name": "getTotalVotingPower", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "timepoint", "type": "uint256" } ], "name": "getVotes", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "hasVoted", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "user", "type": "address" } ], "name": "hasVotedOnce", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "isActive", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "isEligibleForVote", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "user", "type": "address" } ], "name": "isUserAutoVotingEnabled", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint48", "name": "timepoint", "type": "uint48" } ], "name": "isUserAutoVotingEnabledAtTimepoint", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "isUserAutoVotingEnabledForRound", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "isUserAutoVotingEnabledInCurrentRound", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "latestSucceededRoundId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "timepoint", "type": "uint256" } ], "name": "quorum", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "quorumReached", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "roundDeadline", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "roundQuorum", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "roundSnapshot", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "startNewRound", "outputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "state", "outputs": [ { "internalType": "enum IXAllocationVotingGovernor.RoundState", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "user", "type": "address" } ], "name": "toggleAutoVoting", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "totalVoters", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "totalVotes", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "roundId", "type": "uint256" } ], "name": "totalVotesQF", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "validatePersonhoodForCurrentRound", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "version", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "votingPeriod", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }