TokenholderGovernance

Git Source

Inherits: Diamond

Handles shareholder voting, lot-based voting, and major corporate decisions

Governance diamond for tokenholder/shareholder decisions using unified OCF-based storage

Functions

constructor

constructor(string memory _name, uint256 _votingPeriod, uint256 _quorumThreshold)
    Diamond(_createInitParams(_name, _votingPeriod, _quorumThreshold));

_createInitParams

Create initialization parameters for the diamond

function _createInitParams(string memory _name, uint256 _votingPeriod, uint256 _quorumThreshold)
    private
    returns (Diamond.InitParams memory);

_getDiamondCutSelectors

function _getDiamondCutSelectors() private pure returns (bytes4[] memory);

_getDiamondLoupeSelectors

function _getDiamondLoupeSelectors() private pure returns (bytes4[] memory);

_getAccessControlSelectors

function _getAccessControlSelectors() private pure returns (bytes4[] memory);

_getTokenholderVotingSelectors

function _getTokenholderVotingSelectors() private pure returns (bytes4[] memory);

_getGovernanceTimelockSelectors

function _getGovernanceTimelockSelectors() private pure returns (bytes4[] memory);

receive

receive() external payable;

Events

TokenholderGovernanceCreated

event TokenholderGovernanceCreated(address indexed governance, string name);

Last updated

Was this helpful?