Blockable
View Source: moc-governance/contracts/Blockability/Blockable.sol
↗ Extends: Initializable
Blockable - version: 0.1.10
Base contract to be able to define a blockable contract. The blocked contract is blocked until a certain date. That date cannot be changed while the contract is blocked so it is guaranteed that you will be blocked until that date
Contract Members
Constants & Variables
string private constant NOT_AUTHORIZED_TO_BLOCK;string private constant BLOCKED;string private constant THRESHOLD_TOO_LOW;uint256[50] private upgradeGap;uint256 public unblockDate;Modifiers
notBlocked
Disables functions that should be disabled when the governor is blocked
Arguments
Functions
isBlocked
Returns true if no change can be executed in the current block
Arguments
initialize
Initialize the contract with the basic settingsThis initialize replaces the constructor but it is not called automatically. It is necessary because of the upgradeability of the contracts
Arguments
_firstUnblockDate
uint256
Timestamp of the first threshold that should be passed before the governor is activeagain
isAuthorizedToBlock
Defines which addresses are authorized to Block and which are notShould be defined by subclasses
Arguments
who
address
Address that is being asked for
blockUntil
Blocks the governor until unblockAtThe new threshold should be big enough to block the governor after the tx and the contract should not be blocked, but that is enforced in the executeChange function which ALWAYS should be called before calling this function because it is the only one authorizing a changer
Arguments
newUnblockDate
uint256
Timestamp of the next threshold that should be passed before the governor is activeagain
Last updated