Main Contract
  • Introduction
  • Money on Chain platform
    • Main concepts
    • System states
    • Public actions
      • User actions
      • Process actions
    • Contracts architecture
      • MoC
      • CommissionSplitter
      • MoCState
      • MoCBucketContainer
      • MoCSettlement
      • MoCHelperLib
      • MoCLibConnection
      • MoCConverter
      • MoCExchange
      • MoCConnector
      • MoCBProxManager
      • MoCInrate
      • MoCVendors
      • MoCWhitelist
      • MoCBase
      • OwnerBurnableToken
      • BProToken
      • DocToken
      • MoCToken
      • PriceProvider
    • Contract mocks
    • Relevant patterns and choices
    • Data dictionary
    • Getting started
  • Integration with MoC platform
    • Introduction to MoC
      • The MoC Contract
      • MoC Precisions
      • MoC State Contracts
    • Getting BPros
      • Minting BitPros
      • Redeeming BitPros
    • Getting DoCs
      • Minting DoCs
      • Redeeming DoCs
        • On Settlement: redeemDocRequest
        • On Settlement: alterRedeemRequestAmount
        • Outside Settlement: redeemFreeDocVendors
        • On Liquidation State: redeemAllDoc
        • How-to
    • Commission fees values
    • Vendors
    • Fees calculation
    • From outside the blockchain
      • Using RSK nodes
      • Using web3
      • Official Money on Chain ABIs
      • Events
      • Example code minting BPros
      • Example code minting BPros without Truffle
      • Example code redeeming BPros
      • Example code redeeming BPros without Truffle
      • Example code minting DOC
      • Example code redeeming free DOC
      • Example code redeeming DOC Request
      • Example code redeeming all DOC
  • Smart contracts
    • Contracts verification
    • ABIs documentation
      • BProToken
      • BtcPriceProviderMock
      • DocToken
      • ERC20Mintable
      • Governed
      • Initializable
      • MakeStoppable
      • MakeUnstoppable
      • MoC
      • MoCBProxManager
      • MoCBucketContainer
      • MoCConnector
      • MoCConverter
      • MoCEMACalculator
      • MoCExchange
      • MoCHelperLib
      • MoCHelperLibMock
      • MoCInrate
      • MoCLibConnection
      • MoCPriceProviderMock
      • MoCSettlement
      • MoCSettlementMock
      • MoCState
      • MoCStateMock
      • MoCToken
      • MoCVendors
      • MoCWhitelist
      • MockMakeStoppable
      • MockMakeUnstoppable
      • MockStopper
      • MockUpgradeDelegator
      • MockUpgraderTemplate
      • OwnerBurnableToken
      • Pausable
      • PriceFeed
      • PriceFeederAdder
      • PriceFeederRemover
      • PriceProvider
      • RevertingOnSend
      • Stoppable
      • Stopper
      • UpgradeDelegator
      • UpgraderTemplate
Powered by GitBook
On this page
  • Contract Members
  • Modifiers
  • onlyAuthorizedChanger
  • Functions
  • initialize
  • changeIGovernor
  1. Smart contracts
  2. ABIs documentation

Governed

PreviousERC20MintableNextInitializable

Last updated 3 years ago

View Source:

↗ Extends: ↘ Derived Contracts: , , , , , , , , , , ,

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

moc-governance/contracts/Governance/Governed.sol
Initializable
CommissionSplitter
MoCBucketContainer
MoCEMACalculator
MoCInrate
MoCInrateEvents
MoCInrateStructs
MoCSettlement
MoCSettlementEvents
MoCVendors
MoCVendorsEvents
Stoppable
UpgradeDelegator
onlyAuthorizedChanger
initialize(IGovernor _governor)
changeIGovernor(IGovernor newIGovernor)