Governed

View Source: moc-governance/contracts/Governance/Governed.sol

↗ Extends: Initializable ↘ Derived Contracts: CommissionSplitter, MoCBucketContainer, MoCEMACalculator, MoCInrate, MoCInrateEvents, MoCInrateStructs, MoCSettlement, MoCSettlementEvents, MoCVendors, MoCVendorsEvents, Stoppable, UpgradeDelegator

Governed - version: 0.1.12

Base contract to be inherited by governed contractsThis contract is not usable on its own since it does not have any productive useful behaviour The only purpose of this contract is to define some useful modifiers and functions to be used on the governance aspect of the child contract

Contract Members

Constants & Variables

contract IGovernor public governor;

string private constant NOT_AUTHORIZED_CHANGER;

uint256[50] private upgradeGap;

Modifiers

onlyAuthorizedChanger

Modifier that protects the functionYou should use this modifier in any function that should be called through the governance system

modifier onlyAuthorizedChanger() internal

Arguments

Functions

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

function initialize(IGovernor _governor) public nonpayable initializer 

Arguments

Name
Type
Description

_governor

IGovernor

Governor address

changeIGovernor

Change the contract's governor. Should be called through the old governance system

function changeIGovernor(IGovernor newIGovernor) public nonpayable onlyAuthorizedChanger 

Arguments

Name
Type
Description

newIGovernor

IGovernor

New governor address

Last updated