UNPKG

@vechain/vebetterdao-contracts

Version:

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

50 lines (49 loc) 4.35 kB
{ "_format": "hh-sol-artifact-1", "contractName": "RoundFinalizationUtils", "sourceName": "contracts/x-allocation-voting-governance/libraries/RoundFinalizationUtils.sol", "abi": [ { "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" } ], "bytecode": "0x61031c61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061004b5760003560e01c806309d3c59b14610050578063300973771461007257806333727c4d14610098575b600080fd5b81801561005c57600080fd5b5061007061006b366004610259565b6100bb565b005b6100856100803660046102a6565b6101f5565b6040519081526020015b60405180910390f35b6100ab6100a63660046102a6565b610212565b604051901515815260200161008f565b80156101275760405162461bcd60e51b815260206004820152603160248201527f58416c6c6f636174696f6e566f74696e67476f7665726e6f723a20726f756e64604482015270081a5cc81b9bdd08195b991959081e595d607a1b606482015260840160405180910390fd5b6000610131610235565b90508360010361016957600093845260208181526040808620600190819055928301909152909320805460ff19169093179092555050565b8260ff166002036101a1576000848152602082815260408083208790556001808501909252909120805460ff191690911790556101ef565b8260ff166001036101ef578060006101ba6001876102bf565b8152602080820192909252604090810160009081205487825284845282822055600180850190935220805460ff191690911790555b50505050565b600080610200610235565b60009384526020525050604090205490565b60008061021d610235565b60009384526001016020525050604090205460ff1690565b7f7dd3251b9882a8b07dc283a0b43197aa2be3a6af1a7f0284070fe5d86e50250090565b60008060006060848603121561026e57600080fd5b83359250602084013560ff8116811461028657600080fd5b91506040840135801515811461029b57600080fd5b809150509250925092565b6000602082840312156102b857600080fd5b5035919050565b818103818111156102e057634e487b7160e01b600052601160045260246000fd5b9291505056fea2646970667358221220d6a644724898ee83a7eb19bd092df64c6d5fcd3509bca78a8627f863c291159164736f6c63430008140033", "deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061004b5760003560e01c806309d3c59b14610050578063300973771461007257806333727c4d14610098575b600080fd5b81801561005c57600080fd5b5061007061006b366004610259565b6100bb565b005b6100856100803660046102a6565b6101f5565b6040519081526020015b60405180910390f35b6100ab6100a63660046102a6565b610212565b604051901515815260200161008f565b80156101275760405162461bcd60e51b815260206004820152603160248201527f58416c6c6f636174696f6e566f74696e67476f7665726e6f723a20726f756e64604482015270081a5cc81b9bdd08195b991959081e595d607a1b606482015260840160405180910390fd5b6000610131610235565b90508360010361016957600093845260208181526040808620600190819055928301909152909320805460ff19169093179092555050565b8260ff166002036101a1576000848152602082815260408083208790556001808501909252909120805460ff191690911790556101ef565b8260ff166001036101ef578060006101ba6001876102bf565b8152602080820192909252604090810160009081205487825284845282822055600180850190935220805460ff191690911790555b50505050565b600080610200610235565b60009384526020525050604090205490565b60008061021d610235565b60009384526001016020525050604090205460ff1690565b7f7dd3251b9882a8b07dc283a0b43197aa2be3a6af1a7f0284070fe5d86e50250090565b60008060006060848603121561026e57600080fd5b83359250602084013560ff8116811461028657600080fd5b91506040840135801515811461029b57600080fd5b809150509250925092565b6000602082840312156102b857600080fd5b5035919050565b818103818111156102e057634e487b7160e01b600052601160045260246000fd5b9291505056fea2646970667358221220d6a644724898ee83a7eb19bd092df64c6d5fcd3509bca78a8627f863c291159164736f6c63430008140033", "linkReferences": {}, "deployedLinkReferences": {} }