Blockable
Last updated
Last updated
View Source:
↗ Extends:
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
Constants & Variables
Disables functions that should be disabled when the governor is blocked
Arguments
Returns true if no change can be executed in the current block
Arguments
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
Defines which addresses are authorized to Block and which are notShould be defined by subclasses
Arguments
who
address
Address that is being asked for
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