FreezableImplementationDirectory
contract FreezableImplementationDirectory
Implementation directory which can be made irreversibly immutable by the owner.
Reference
Modifiers
whenNotFrozen
modifier whenNotFrozen()
Modifier that allows functions to be called only before the contract is frozen.
Functions
freeze
function freeze() public
Makes the directory irreversibly immutable. It can only be called once, by the owner.
- Modifiers:
- onlyOwner whenNotFrozen
setImplementation
function setImplementation(string contractName, address implementation) public
Sets the address of the implementation of a contract. It overrides the parent function to prevent it from running if the directory is frozen.
- Modifiers:
- whenNotFrozen
- Parameters:
contractName
- Name of the contract.implementation
- Address where the contract is implemented.