@vechain/vebetterdao-contracts
Version:
Vebetter DAO smart contracts, including their addresses, ABIs, and interfaces.
1,834 lines • 119 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "XAllocationVotingV2",
"sourceName": "contracts/deprecated/V2/XAllocationVotingV2.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": [
{
"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 IXAllocationVotingGovernorV2.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 RoundsStorageUpgradeable.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 IVoterRewardsV2",
"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 IX2EarnAppsV1",
"name": "x2EarnAppsAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "baseAllocationPercentage",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "appSharesCap",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votingThreshold",
"type": "uint256"
}
],
"internalType": "struct XAllocationVotingV2.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 IVoterRewardsV2",
"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 IX2EarnAppsV1",
"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 IXAllocationVotingGovernorV2.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 IVoterRewardsV2",
"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 IX2EarnAppsV1",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x60a0604052306080523480156200001557600080fd5b506200002062000026565b620000da565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000775760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d75780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051614d42620001046000396000818161238d015281816123b601526125000152614d426000f3fe60806040526004361061032a5760003560e01c806250ea6f1461032f57806301ffc9a71461035a57806302a251a31461038a57806306f3f9e6146103ad57806306fdde03146103cf5780630a0e74ef146103f15780630eca87fb1461041157806319e6e158146104315780632267716c14610451578063248a9ca314610466578063291605f71461048657806329b6eca9146104b35780632f2ff15d146104d357806330097377146104f357806333653f5d1461051357806333727c4d146105285780633469f6e21461054857806336568abe146105685780633e4f49e61461058857806343859632146105b5578063498d91bf146105d55780634bb5181a146105f55780634bf5d7e9146106155780634f1ef2861461062a57806352d1902d1461063d5780635320a1471461065257806353ed63991461067257806354fd4d5014610692578063561b64ef146106bc57806357181609146106d157806359372812146106f157806359529edd1461070657806360c4247f146107265780636282773314610746578063740389351461075b5780637ace24851461077b57806382afd23b146107a8578063836761e0146107c85780638ab52d4b146107e85780638f1327c0146107fd57806391d148541461085657806391ddadf414610876578063952f2133146108a257806397c3d334146108c45780639aeb962b146108d85780639cbe5efd146108f8578063a217fddf1461090d578063a3844e1114610922578063a7713a7014610937578063ad3cb1cc1461094c578063b25d6f621461097d578063b3c93dab1461099d578063bb7de6d4146109bd578063bd85948c146109d2578063bed73010146109e7578063c048f6c914610a07578063cd669a7214610a27578063d06efeda14610a49578063d3a368bd14610a69578063d4a8dd9814610a89578063d547741f14610aa9578063d68b4c3614610ac9578063dd4e2ba514610ae9578063e540d01d14610afe578063e7ad2bed14610b1e578063eb9019d414610b3e578063f36c8f5c14610b5e578063f5fae13614610b80578063f72c0d8b14610ba0578063f8ce560a14610bc2578063fb03ec6f14610be2578063fc0c546a14610c02575b600080fd5b34801561033b57600080fd5b50610344610c17565b6040516103519190613f1d565b60405180910390f35b34801561036657600080fd5b5061037a610375366004613f31565b610c35565b6040519015158152602001610351565b34801561039657600080fd5b5061039f610c46565b604051908152602001610351565b3480156103b957600080fd5b506103cd6103c8366004613f5b565b610c55565b005b3480156103db57600080fd5b506103e4610c7a565b6040516103519190613fc4565b3480156103fd57600080fd5b5061039f61040c366004613f5b565b610d1b565b34801561041d57600080fd5b5061039f61042c366004613f5b565b610d3b565b34801561043d57600080fd5b5061039f61044c366004613f5b565b610d5b565b34801561045d57600080fd5b50610344610d7e565b34801561047257600080fd5b5061039f610481366004613f5b565b610d9c565b34801561049257600080fd5b506104a66104a1366004613f5b565b610dbc565b6040516103519190613fd7565b3480156104bf57600080fd5b506103cd6104ce3660046140a9565b610f9d565b3480156104df57600080fd5b506103cd6104ee3660046140d1565b61104c565b3480156104ff57600080fd5b5061039f61050e366004613f5b565b61106e565b34801561051f57600080fd5b5061034461108b565b34801561053457600080fd5b5061037a610543366004613f5b565b6110a6565b34801561055457600080fd5b506103cd610563366004613f5b565b6110c9565b34801561057457600080fd5b506103cd6105833660046140d1565b611230565b34801561059457600080fd5b506105a86105a3366004613f5b565b611268565b6040516103519190614139565b3480156105c157600080fd5b5061037a6105d03660046140d1565b6112f0565b3480156105e157600080fd5b5061039f6105f0366004613f5b565b61132d565b34801561060157600080fd5b5061039f610610366004614147565b611350565b34801561062157600080fd5b506103e461137b565b6103cd610638366004614221565b611424565b34801561064957600080fd5b5061039f61143f565b34801561065e57600080fd5b5061034461066d366004613f5b565b61145c565b34801561067e57600080fd5b506103cd61068d36600461433c565b611485565b34801561069e57600080fd5b506040805180820190915260018152601960f91b60208201526103e4565b3480156106c857600080fd5b5061039f61165a565b3480156106dd57600080fd5b506103cd6106ec3660046140a9565b611667565b3480156106fd57600080fd5b5061039f611688565b34801561071257600080fd5b5061039f610721366004613f5b565b611695565b34801561073257600080fd5b5061039f610741366004613f5b565b6116a3565b34801561075257600080fd5b5061039f61173c565b34801561076757600080fd5b506103cd610776366004613f5b565b611751565b34801561078757600080fd5b5061079b610796366004613f5b565b611772565b604051610351919061443a565b3480156107b457600080fd5b5061037a6107c3366004613f5b565b6117e5565b3480156107d457600080fd5b506103cd6107e3366004613f5b565b611809565b3480156107f457600080fd5b5061039f61182a565b34801561080957600080fd5b5061081d610818366004613f5b565b61183c565b6040805182516001600160a01b0316815260208084015165ffffffffffff16908201529181015163ffffffff1690820152606001610351565b34801561086257600080fd5b5061037a6108713660046140d1565b6118bc565b34801561088257600080fd5b5061088b6118f2565b60405165ffffffffffff9091168152602001610351565b3480156108ae57600080fd5b5061039f600080516020614ced83398151915281565b3480156108d057600080fd5b50606461039f565b3480156108e457600080fd5b5061037a6108f33660046140a9565b611961565b34801561090457600080fd5b5061039f61198f565b34801561091957600080fd5b5061039f600081565b34801561092e57600080fd5b5061034461199a565b34801561094357600080fd5b5061039f6119b8565b34801561095857600080fd5b506103e4604051806040016040528060058152602001640352e302e360dc1b81525081565b34801561098957600080fd5b506103cd6109983660046140a9565b6119dd565b3480156109a957600080fd5b506103cd6109b83660046140a9565b6119fe565b3480156109c957600080fd5b5061039f611a1f565b3480156109de57600080fd5b5061039f611a34565b3480156109f357600080fd5b5061039f610a02366004614147565b611a5d565b348015610a1357600080fd5b506103cd610a223660046140a9565b611a8d565b348015610a3357600080fd5b5061039f600080516020614ccd83398151915281565b348015610a5557600080fd5b5061039f610a64366004613f5b565b611aae565b348015610a7557600080fd5b5061039f610a84366004613f5b565b611add565b348015610a9557600080fd5b5061037a610aa4366004613f5b565b611b31565b348015610ab557600080fd5b506103cd610ac43660046140d1565b611b3c565b348015610ad557600080fd5b5061037a610ae4366004614147565b611b58565b348015610af557600080fd5b506103e4611bdf565b348015610b0a57600080fd5b506103cd610b19366004614461565b611bff565b348015610b2a57600080fd5b506103cd610b393660046144e0565b611c20565b348015610b4a57600080fd5b5061039f610b5936600461460a565b612042565b348015610b6a57600080fd5b5061039f600080516020614c2c83398151915281565b348015610b8c57600080fd5b506103cd610b9b366004613f5b565b61205e565b348015610bac57600080fd5b5061039f600080516020614c8d83398151915281565b348015610bce57600080fd5b5061039f610bdd366004613f5b565b61207f565b348015610bee57600080fd5b5061039f610bfd366004613f5b565b61208a565b348015610c0e57600080fd5b506103446120ad565b600080610c226120b8565b600301546001600160a01b031692915050565b6000610c40826120dc565b92915050565b6000610c50612101565b905090565b600080516020614c2c833981519152610c6d81612119565b610c7682612126565b5050565b60606000610c8661212f565b9050806000018054610c9790614636565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc390614636565b8015610d105780601f10610ce557610100808354040283529160200191610d10565b820191906000526020600020905b815481529060010190602001808311610cf357829003601f168201915b505050505091505090565b600080610d26612153565b60009384526003016020525050604090205490565b600080610d46612153565b60009384526002016020525050604090205490565b600080610d66612177565b60009384526001016020525050604090206002015490565b600080610d896120b8565b600101546001600160a01b031692915050565b600080610da761219b565b60009384526020525050604090206001015490565b60606000610dc86121bf565b6000848152600282016020908152604080832080548251818502810185019093528083529495509293909291830182828015610e2357602002820191906000526020600020905b815481526020019060010190808311610e0f575b505050505090506000815190506000816001600160401b03811115610e4a57610e4a614169565b604051908082528060200260200182016040528015610ec257816020015b610eaf6040518060c001604052806000801916815260200160006001600160a01b031681526020016060815260200160608152602001600081526020016000151581525090565b815260200190600190039081610e685790505b50905060005b82811015610f9357610ed861108b565b6001600160a01b031663785d6e18858381518110610ef857610ef8614670565b60200260200101516040518263ffffffff1660e01b8152600401610f1e91815260200190565b600060405180830381865afa158015610f3b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f6391908101906146e6565b828281518110610f7557610f75614670565b60200260200101819052508080610f8b906147c2565b915050610ec8565b5095945050505050565b60026000610fa96121e3565b8054909150600160401b900460ff1680610fd0575080546001600160401b03808416911610155b15610fee5760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160481b0319166001600160401b03831617600160401b17815561101683612207565b805460ff60401b19168155604051600080516020614c4c8339815191529061103f9084906147db565b60405180910390a1505050565b61105582610d9c565b61105e81612119565b611068838361223e565b50505050565b6000806110796122e6565b60009384526020525050604090205490565b6000806110966120b8565b546001600160a01b031692915050565b6000806110b16122e6565b60009384526001016020525050604090205460ff1690565b6110d2816117e5565b1561113e5760405162461bcd60e51b815260206004820152603160248201527f58416c6c6f636174696f6e566f74696e67476f7665726e6f723a20726f756e64604482015270081a5cc81b9bdd08195b991959081e595d607a1b60648201526084015b60405180910390fd5b60006111486122e6565b90508160010361117d57600091825260208181526040808420600190819055928301909152909120805460ff19169091179055565b600261118883611268565b600281111561119957611199614101565b036111c957600082815260208281526040808320949094556001928301905291909120805460ff19169091179055565b60016111d483611268565b60028111156111e5576111e5614101565b03610c76578060006111f86001856147ef565b8152602080820192909252604090810160009081205485825284845282822055600180850190935220805460ff191690911790555050565b6001600160a01b03811633146112595760405163334bd91960e11b815260040160405180910390fd5b611263828261230a565b505050565b60008061127483611aae565b90508060000361129a576040516333b4e31b60e21b815260048101849052602401611135565b60006112a46118f2565b65ffffffffffff16905060006112b985611add565b90508181106112cd57506000949350505050565b6112d685611b31565b6112e557506001949350505050565b506002949350505050565b6000806112fb612177565b6000948552600101602090815260408086206001600160a01b0395909516865260049094019052505090205460ff1690565b600080611338612177565b60009384526001016020525050604090206005015490565b60008061135b612177565b600094855260010160209081526040808620948652939052505090205490565b60606113856120ad565b6001600160a01b0316634bf5d7e96040518163ffffffff1660e01b8152600401600060405180830381865afa9250505080156113e357506040513d6000823e601f3d908101601f191682016040526113e09190810190614802565b60015b61141f575060408051808201909152601d81527f6d6f64653d626c6f636b6e756d6265722666726f6d3d64656661756c74000000602082015290565b919050565b61142c612382565b61143582612429565b610c768282612441565b60006