@vechain/vebetterdao-contracts
Version:
Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.
1,839 lines • 119 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "XAllocationVotingV6",
"sourceName": "contracts/deprecated/V6/XAllocationVotingV6.sol",
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "AccessControlBadConfirmation",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "bytes32",
"name": "neededRole",
"type": "bytes32"
}
],
"name": "AccessControlUnauthorizedAccount",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
}
],
"name": "AddressEmptyCode",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "B3TRGovernorOnlyExecutor",
"type": "error"
},
{
"inputs": [],
"name": "CheckpointUnorderedInsertion",
"type": "error"
},
{
"inputs": [],
"name": "DuplicateAppVote",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "ERC1967InvalidImplementation",
"type": "error"
},
{
"inputs": [],
"name": "ERC1967NonPayable",
"type": "error"
},
{
"inputs": [],
"name": "FailedInnerCall",
"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": "quorumNumerator",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "quorumDenominator",
"type": "uint256"
}
],
"name": "GovernorInvalidQuorumFraction",
"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 IXAllocationVotingGovernorV6.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": [],
"name": "InvalidInitialization",
"type": "error"
},
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "bits",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "SafeCastOverflowedUintDowncast",
"type": "error"
},
{
"inputs": [],
"name": "UUPSUnauthorizedCallContext",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "slot",
"type": "bytes32"
}
],
"name": "UUPSUnsupportedProxiableUUID",
"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": "AllocationVoteCast",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "oldContractAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newContractAddress",
"type": "address"
}
],
"name": "EmissionsSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "version",
"type": "uint64"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldQuorumNumerator",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newQuorumNumerator",
"type": "uint256"
}
],
"name": "QuorumNumeratorUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "previousAdminRole",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "newAdminRole",
"type": "bytes32"
}
],
"name": "RoleAdminChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleRevoked",
"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"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "Upgraded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "oldContractAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newContractAddress",
"type": "address"
}
],
"name": "VeBetterPassportSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "oldContractAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newContractAddress",
"type": "address"
}
],
"name": "VoterRewardsSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldVotingPeriod",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newVotingPeriod",
"type": "uint256"
}
],
"name": "VotingPeriodSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldVotingThreshold",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newVotingThreshold",
"type": "uint256"
}
],
"name": "VotingThresholdSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "oldContractAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newContractAddress",
"type": "address"
}
],
"name": "X2EarnAppsSet",
"type": "event"
},
{
"inputs": [],
"name": "CLOCK_MODE",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "CONTRACTS_ADDRESS_MANAGER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "COUNTING_MODE",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "GOVERNANCE_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ROUND_STARTER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "UPGRADER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "UPGRADE_INTERFACE_VERSION",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "appSharesCap",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "baseAllocationPercentage",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "roundId",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "appIds",
"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": [],
"name": "emissions",
"outputs": [
{
"internalType": "contract IEmissions",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "roundId",
"type": "uint256"
}
],
"name": "finalizeRound",
"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": "app",
"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": "getAppsOfRound",
"outputs": [
{
"components": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"internalType": "address",
"name": "teamWalletAddress",
"type": "address"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "string",
"name": "metadataURI",
"type": "string"
},
{
"internalType": "uint256",
"name": "createdAtTimestamp",
"type": "uint256"
},
{
"internalType": "bool",
"name": "appAvailableForAllocationVoting",
"type": "bool"
}
],
"internalType": "struct X2EarnAppsDataTypes.AppWithDetailsReturnType[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleAdmin",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "roundId",
"type": "uint256"
}
],
"name": "getRound",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "proposer",
"type": "address"
},
{
"internalType": "uint48",
"name": "voteStart",
"type": "uint48"
},
{
"internalType": "uint32",
"name": "voteDuration",
"type": "uint32"
}
],
"internalType": "struct RoundsStorageUpgradeableV6.RoundCore",
"name": "",
"type": "tuple"
}
],
"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": [
{
"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": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "hasRole",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "roundId",
"type": "uint256"
},
{
"internalType": "address",
"name": "user",
"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": [
{
"components": [
{
"internalType": "contract IVotes",
"name": "vot3Token",
"type": "address"
},
{
"internalType": "uint256",
"name": "quorumPercentage",
"type": "uint256"
},
{
"internalType": "uint32",
"name": "initialVotingPeriod",
"type": "uint32"
},
{
"internalType": "address",
"name": "timeLock",
"type": "address"
},
{
"internalType": "contract IVoterRewards",
"name": "voterRewards",
"type": "address"
},
{
"internalType": "contract IEmissions",
"name": "emissions",
"type": "address"
},
{
"internalType": "address[]",
"name": "admins",
"type": "address[]"
},
{
"internalType": "address",
"name": "upgrader",
"type": "address"
},
{
"internalType": "address",
"name": "contractsAddressManager",
"type": "address"
},
{
"internalType": "contract IX2EarnApps",
"name": "x2EarnAppsAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "baseAllocationPercentage",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "appSharesCap",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votingThreshold",
"type": "uint256"
}
],
"internalType": "struct XAllocationVotingV6.InitializationData",
"name": "data",
"type": "tuple"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IVeBetterPassport",
"name": "_veBetterPassport",
"type": "address"
}
],
"name": "initializeV2",
"outputs": [],
"stateMutability": "nonpayable",
"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": "uint256",
"name": "roundId",
"type": "uint256"
}
],
"name": "isFinalized",
"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": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "proxiableUUID",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
}
],
"name": "quorum",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "quorumDenominator",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "timepoint",
"type": "uint256"
}
],
"name": "quorumNumerator",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "quorumNumerator",
"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": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "callerConfirmation",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"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": "roundProposer",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"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": [
{
"internalType": "uint256",
"name": "appSharesCap_",
"type": "uint256"
}
],
"name": "setAppSharesCap",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "baseAllocationPercentage_",
"type": "uint256"
}
],
"name": "setBaseAllocationPercentage",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IEmissions",
"name": "newEmissions",
"type": "address"
}
],
"name": "setEmissionsAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IVeBetterPassport",
"name": "newVeBetterPassport",
"type": "address"
}
],
"name": "setVeBetterPassport",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IVoterRewards",
"name": "newVoterRewards",
"type": "address"
}
],
"name": "setVoterRewardsAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "newVotingPeriod",
"type": "uint32"
}
],
"name": "setVotingPeriod",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newVotingThreshold",
"type": "uint256"
}
],
"name": "setVotingThreshold",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IX2EarnApps",
"name": "newX2EarnApps",
"type": "address"
}
],
"name": "setX2EarnAppsAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "startNewRound",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "roundId",
"type": "uint256"
}
],
"name": "state",
"outputs": [
{
"internalType": "enum IXAllocationVotingGovernorV6.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": [],
"name": "token",
"outputs": [
{
"internalType": "contract IERC5805",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"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": "uint256",
"name": "newQuorumNumerator",
"type": "uint256"
}
],
"name": "updateQuorumNumerator",
"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": [],
"name": "veBetterPassport",
"outputs": [
{
"internalType": "contract IVeBetterPassport",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "voterRewards",
"outputs": [
{
"internalType": "contract IVoterRewards",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "votingPeriod",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "votingThreshold",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "x2EarnApps",
"outputs": [
{
"internalType": "contract IX2EarnApps",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x60a0604052306080523480156200001557600080fd5b506200002062000026565b620000da565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000775760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d75780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051614da56200010460003960008181612385015281816123ae01526124f80152614da56000f3fe60806040526004361061032a5760003560e01c806250ea6f1461032f57806301ffc9a71461035a57806302a251a31461038a57806306f3f9e6146103ad57806306fdde03146103cf5780630a0e74ef146103f15780630eca87fb1461041157806319e6e158146104315780632267716c14610451578063248a9ca314610466578063291605f71461048657806329b6eca9146104b35780632f2ff15d146104d357806330097377146104f357806333653f5d1461051357806333727c4d146105285780633469f6e21461054857806336568abe146105685780633e4f49e61461058857806343859632146105b5578063498d91bf146105d55780634bb5181a146105f55780634bf5d7e9146106155780634f1ef2861461062a57806352d1902d1461063d5780635320a1471461065257806353ed63991461067257806354fd4d5014610692578063561b64ef146106bc57806357181609146106d157806359372812146106f157806359529edd1461070657806360c4247f146107265780636282773314610746578063740389351461075b5780637ace24851461077b57806382afd23b146107a8578063836761e0146107c85780638ab52d4b146107e85780638f1327c0146107fd57806391d148541461085657806391ddadf414610876578063952f2133146108a257806397c3d334146108c45780639aeb962b146108d85780639cbe5efd146108f8578063a217fddf1461090d578063a3844e1114610922578063a7713a7014610937578063ad3cb1cc1461094c578063b25d6f621461097d578063b3c93dab1461099d578063bb7de6d4146109bd578063bd85948c146109d2578063bed73010146109e7578063c048f6c914610a07578063cd669a7214610a27578063d06efeda14610a49578063d3a368bd14610a69578063d4a8dd9814610a89578063d547741f14610aa9578063d68b4c3614610ac9578063dd4e2ba514610ae9578063e540d01d14610afe578063e7ad2bed14610b1e578063eb9019d414610b3e578063f36c8f5c14610b5e578063f5fae13614610b80578063f72c0d8b14610ba0578063f8ce560a14610bc2578063fb03ec6f14610be2578063fc0c546a14610c02575b600080fd5b34801561033b57600080fd5b50610344610c17565b6040516103519190613f60565b60405180910390f35b34801561036657600080fd5b5061037a610375366004613f74565b610c35565b6040519015158152602001610351565b34801561039657600080fd5b5061039f610c46565b604051908152602001610351565b3480156103b957600080fd5b506103cd6103c8366004613f9e565b610c55565b005b3480156103db57600080fd5b506103e4610c7a565b6040516103519190614007565b3480156103fd57600080fd5b5061039f61040c366004613f9e565b610d1b565b34801561041d57600080fd5b5061039f61042c366004613f9e565b610d3b565b34801561043d57600080fd5b5061039f61044c366004613f9e565b610d5b565b34801561045d57600080fd5b50610344610d7e565b34801561047257600080fd5b5061039f610481366004613f9e565b610d9c565b34801561049257600080fd5b506104a66104a1366004613f9e565b610dbc565b604051610351919061401a565b3480156104bf57600080fd5b506103cd6104ce3660046140ec565b610f9d565b3480156104df57600080fd5b506103cd6104ee366004614114565b61104c565b3480156104ff57600080fd5b5061039f61050e366004613f9e565b61106e565b34801561051f57600080fd5b5061034461108b565b34801561053457600080fd5b5061037a610543366004613f9e565b6110a6565b34801561055457600080fd5b506103cd610563366004613f9e565b6110c9565b34801561057457600080fd5b506103cd610583366004614114565b611232565b34801561059457600080fd5b506105a86105a3366004613f9e565b61126a565b604051610351919061417c565b3480156105c157600080fd5b5061037a6105d0366004614114565b6112f2565b3480156105e157600080fd5b5061039f6105f0366004613f9e565b61132f565b34801561060157600080fd5b5061039f61061036600461418a565b611352565b34801561062157600080fd5b506103e461137d565b6103cd610638366004614264565b611426565b34801561064957600080fd5b5061039f611441565b34801561065e57600080fd5b5061034461066d366004613f9e565b61145e565b34801561067e57600080fd5b506103cd61068d36600461437f565b611487565b34801561069e57600080fd5b506040805180820190915260018152601b60f91b60208201526103e4565b3480156106c857600080fd5b5061039f61165c565b3480156106dd57600080fd5b506103cd6106ec3660046140ec565b611669565b3480156106fd57600080fd5b5061039f61168a565b34801561071257600080fd5b5061039f610721366004613f9e565b611697565b34801561073257600080fd5b5061039f610741366004613f9e565b6116a5565b34801561075257600080fd5b5061039f61173e565b34801561076757600080fd5b506103cd610776366004613f9e565b611753565b34801561078757600080fd5b5061079b610796366004613f9e565b611774565b604051610351919061447d565b3480156107b457600080fd5b5061037a6107c3366004613f9e565b6117e7565b3480156107d457600080fd5b506103cd6107e3366004613f9e565b61180b565b3480156107f457600080fd5b5061039f61182c565b34801561080957600080fd5b5061081d610818366004613f9e565b61183e565b6040805182516001600160a01b0316815260208084015165ffffffffffff16908201529181015163ffffffff1690820152606001610351565b34801561086257600080fd5b5061037a610871366004614114565b6118be565b34801561088257600080fd5b5061088b6118f4565b60405165ffffffffffff9091168152602001610351565b3480156108ae57600080fd5b5061039f600080516020614d5083398151915281565b3480156108d057600080fd5b50606461039f565b3480156108e457600080fd5b5061037a6108f33660046140ec565b611963565b34801561090457600080fd5b5061039f611991565b34801561091957600080fd5b5061039f600081565b34801561092e57600080fd5b5061034461199c565b34801561094357600080fd5b5061039f6119ba565b34801561095857600080fd5b506103e4604051806040016040528060058152602001640352e302e360dc1b81525081565b34801561098957600080fd5b506103cd6109983660046140ec565b6119df565b3480156109a957600080fd5b506103cd6109b83660046140ec565b611a00565b3480156109c957600080fd5b5061039f611a21565b3480156109de57600080fd5b5061039f611a36565b3480156109f357600080fd5b5061039f610a0236600461418a565b611a5f565b348015610a1357600080fd5b506103cd610a223660046140ec565b611a8f565b348015610a3357600080fd5b5061039f600080516020614d3083398151915281565b348015610a5557600080fd5b5061039f610a64366004613f9e565b611ab0565b348015610a7557600080fd5b5061039f610a84366004613f9e565b611adf565b348015610a9557600080fd5b5061037a610aa4366004613f9e565b611b33565b348015610ab557600080fd5b506103cd610ac4366004614114565b611b3e565b348015610ad557600080fd5b5061037a610ae436600461418a565b611b5a565b348015610af557600080fd5b506103e4611be1565b348015610b0a57600080fd5b506103cd610b193660046144a4565b611c01565b348015610b2a57600080fd5b506103cd610b39366004614523565b611c22565b348015610b4a57600080fd5b5061039f610b5936600461464d565b61203a565b348015610b6a57600080fd5b5061039f600080516020614c6f83398151915281565b348015610b8c57600080fd5b506103cd610b9b366004613f9e565b612056565b348015610bac57600080fd5b5061039f600080516020614cd083398151915281565b348015610bce57600080fd5b5061039f610bdd366004613f9e565b612077565b348015610bee57600080fd5b5061039f610bfd366004613f9e565b612082565b348015610c0e57600080fd5b506103446120a5565b600080610c226120b0565b600301546001600160a01b031692915050565b6000610c40826120d4565b92915050565b6000610c506120f9565b905090565b600080516020614c6f833981519152610c6d81612111565b610c768261211e565b5050565b60606000610c86612127565b9050806000018054610c9790614679565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc390614679565b8015610d105780601f10610ce557610100808354040283529160200191610d10565b820191906000526020600020905b815481529060010190602001808311610cf357829003601f168201915b505050505091505090565b600080610d2661214b565b60009384526003016020525050604090205490565b600080610d4661214b565b60009384526002016020525050604090205490565b600080610d6661216f565b60009384526001016020525050604090206002015490565b600080610d896120b0565b600101546001600160a01b031692915050565b600080610da7612193565b60009384526020525050604090206001015490565b60606000610dc86121b7565b6000848152600282016020908152604080832080548251818502810185019093528083529495509293909291830182828015610e2357602002820191906000526020600020905b815481526020019060010190808311610e0f575b505050505090506000815190506000816001600160401b03811115610e4a57610e4a6141ac565b604051908082528060200260200182016040528015610ec257816020015b610eaf6040518060c001604052806000801916815260200160006001600160a01b031681526020016060815260200160608152602001600081526020016000151581525090565b815260200190600190039081610e685790505b50905060005b82811015610f9357610ed861108b565b6001600160a01b031663785d6e18858381518110610ef857610ef86146b3565b60200260200101516040518263ffffffff1660e01b8152600401610f1e91815260200190565b600060405180830381865afa158015610f3b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f639190810190614729565b828281518110610f7557610f756146b3565b60200260200101819052508080610f8b90614805565b915050610ec8565b5095945050505050565b60026000610fa96121db565b8054909150600160401b900460ff1680610fd0575080546001600160401b03808416911610155b15610fee5760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160481b0319166001600160401b03831617600160401b178155611016836121ff565b805460ff60401b19168155604051600080516020614c8f8339815191529061103f90849061481e565b60405180910390a1505050565b61105582610d9c565b61105e81612111565b6110688383612236565b50505050565b6000806110796122de565b60009384526020525050604090205490565b6000806110966120b0565b546001600160a01b031692915050565b6000806110b16122de565b60009384526001016020525050604090205460ff1690565b6110d2816117e7565b156111405760405162461bcd60e51b815260206004820152603360248201527f58416c6c6f636174696f6e566f74696e67476f7665726e6f7256363a20726f756044820152721b99081a5cc81b9bdd08195b991959081e595d606a1b60648201526084015b60405180910390fd5b600061114a6122de565b90508160010361117f57600091825260208181526040808420600190819055928301909152909120805460ff19169091179055565b600261118a8361126a565b600281111561119b5761119b614144565b036111cb57600082815260208281526040808320949094556001928301905291909120805460ff19169091179055565b60016111d68361126a565b60028111156111e7576111e7614144565b03610c76578060006111fa600185614832565b8152602080820192909252604090810160009081205485825284845282822055600180850190935220805460ff191690911790555050565b6001600160a01b038116331461125b5760405163334bd91960e11b815260040160405180910390fd5b6112658282612302565b505050565b60008061127683611ab0565b90508060000361129c576040516333b4e31b60e21b815260048101849052602401611137565b60006112a66118f4565b65ffffffffffff16905060006112bb85611adf565b90508181106112cf57506000949350505050565b6112d885611b33565b6112e757506001949350505050565b506002949350505050565b6000806112fd61216f565b6000948552600101602090815260408086206001600160a01b0395909516865260049094019052505090205460ff1690565b60008061133a61216f565b60009384526001016020525050604090206005015490565b60008061135d61216f565b600094855260010160209081526040808620948652939052505090205490565b60606113876120a5565b6001600160a01b0316634bf5d7e96040518163ffffffff1660e01b8152600401600060405180830381865afa9250505080156113e557506040513d6000823e601f3d908101601f191682016040526113e29190810190614845565b60015b611421575060408051808201909152601d81527f6d6f64653d626c6f636b6e756d6265722666726f6d3d64656661756c7400000060