UNPKG

@vechain/vebetterdao-contracts

Version:

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

87 lines (86 loc) 5.14 kB
{ "_format": "hh-sol-artifact-1", "contractName": "VotingSettingsUtils", "sourceName": "contracts/x-allocation-voting-governance/libraries/VotingSettingsUtils.sol", "abi": [ { "inputs": [ { "internalType": "uint256", "name": "votingPeriod", "type": "uint256" } ], "name": "GovernorInvalidVotingPeriod", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "oldValue", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newValue", "type": "uint256" } ], "name": "CitizenSkipWindowBlocksSet", "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" }, { "inputs": [], "name": "citizenSkipWindowBlocks", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "votingPeriod", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x61031161003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100565760003560e01c806302a251a31461005b5780630ff235a9146100755780639382c81814610097578063abc517fd146100b7575b600080fd5b6100636100bf565b60405190815260200160405180910390f35b81801561008157600080fd5b5061009561009036600461028d565b6100d7565b005b8180156100a357600080fd5b506100956100b23660046102c2565b6101a0565b610063610256565b6000806100ca610269565b5463ffffffff1692915050565b8163ffffffff166000036101065760405163f1cfbf0560e01b8152600060048201526024015b60405180910390fd5b808263ffffffff16106101345760405163f1cfbf0560e01b815263ffffffff831660048201526024016100fd565b600061013e610269565b80546040805163ffffffff928316815291861660208301529192507f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1805463ffffffff191663ffffffff939093169290921790915550565b600081116102055760405162461bcd60e51b815260206004820152602c60248201527f566f74696e6753657474696e67735574696c733a20736b69702077696e646f7760448201526b0206d757374206265203e20360a41b60648201526084016100fd565b600061020f610269565b600181015460408051918252602082018590529192507f75e6b9204b5cdeef455a644570d4efa3117566d11758242b7d55138eafa63af2910160405180910390a160010155565b6000610260610269565b60010154905090565b7fd69d068053671881d25a4d751dcad1e692749d9b24184f608cb1d01af3a9990090565b600080604083850312156102a057600080fd5b823563ffffffff811681146102b457600080fd5b946020939093013593505050565b6000602082840312156102d457600080fd5b503591905056fea26469706673582212200b82554bd0552641e3d27428724ac83a058a77c9f899fc03b0b9525461f2a76764736f6c63430008140033", "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100565760003560e01c806302a251a31461005b5780630ff235a9146100755780639382c81814610097578063abc517fd146100b7575b600080fd5b6100636100bf565b60405190815260200160405180910390f35b81801561008157600080fd5b5061009561009036600461028d565b6100d7565b005b8180156100a357600080fd5b506100956100b23660046102c2565b6101a0565b610063610256565b6000806100ca610269565b5463ffffffff1692915050565b8163ffffffff166000036101065760405163f1cfbf0560e01b8152600060048201526024015b60405180910390fd5b808263ffffffff16106101345760405163f1cfbf0560e01b815263ffffffff831660048201526024016100fd565b600061013e610269565b80546040805163ffffffff928316815291861660208301529192507f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1805463ffffffff191663ffffffff939093169290921790915550565b600081116102055760405162461bcd60e51b815260206004820152602c60248201527f566f74696e6753657474696e67735574696c733a20736b69702077696e646f7760448201526b0206d757374206265203e20360a41b60648201526084016100fd565b600061020f610269565b600181015460408051918252602082018590529192507f75e6b9204b5cdeef455a644570d4efa3117566d11758242b7d55138eafa63af2910160405180910390a160010155565b6000610260610269565b60010154905090565b7fd69d068053671881d25a4d751dcad1e692749d9b24184f608cb1d01af3a9990090565b600080604083850312156102a057600080fd5b823563ffffffff811681146102b457600080fd5b946020939093013593505050565b6000602082840312156102d457600080fd5b503591905056fea26469706673582212200b82554bd0552641e3d27428724ac83a058a77c9f899fc03b0b9525461f2a76764736f6c63430008140033", "linkReferences": {}, "deployedLinkReferences": {} }