Modifiable
Inherits: Authorizable, IModifiable
Allows inheriting contracts to modify parameters values
Requires inheriting contracts to override _modifyParameters
virtual methods
State Variables
_GLOBAL_PARAM
Used to emit a global parameter modification event
bytes32 internal constant _GLOBAL_PARAM = bytes32(0);
Functions
modifyParameters
Set a new value for a global specific parameter
function modifyParameters(bytes32 _param, bytes memory _data) external isAuthorized validParams;
Parameters
Name | Type | Description |
---|---|---|
_param | bytes32 | String identifier of the parameter to modify |
_data | bytes | Encoded data to modify the parameter |
_modifyParameters
Internal function to be overriden with custom logic to modify parameters
This function is set to revert if not overriden
function _modifyParameters(bytes32 _param, bytes memory _data) internal virtual;
_validateParameters
Internal function to be overriden with custom logic to validate parameters
function _validateParameters() internal view virtual;
validParams
Triggers a routine to validate parameters after a modification
modifier validParams();