Last updated
Last updated
Inherits: StateAware, Patchable, IMezzGovernor
Author: Daniel Yamagata
A base contract for governor that defines upgradeability logic and modifiers for access control
All governors are able to execute arbitrary transactions. Therefore, they are able to call the Mezz Migrator to upgrade themselves to a newer version. Specifically, the governor should call the Mezz Migrator's upgradeToNewerVersion() However, resetting to a patched version may not be possible depending on the protocol state. Therefore, a function to execute this callback is provided via 'Patchable'
Reverts if the caller is not 'this'
Intializes the Governor's state
Parameters
Returns the address of the treasury associated with the governor
Returns the name of the governor
Reverts if the caller is not 'this'
Access control for 'resetToPatchedLatestVersion()'
initTreasury
address
The address of the Treasury that the Governor is in charge of
params
bytes
Bespoke abi.encoded parameters