Skip to content

Latest commit

 

History

History
257 lines (229 loc) · 7.93 KB

Governance.md

File metadata and controls

257 lines (229 loc) · 7.93 KB

Governance Contract (Governance.sol)

View Source: contracts/core/governance/Governance.sol

↗ Extends: IGovernance, Reporter

Governance

The governance contract permits any NPM tokenholder to submit a report by staking a minimum number of NPM tokens as set in the cover pool.

The reporting procedure begins when an incident report is received and often takes seven days or longer, depending on the configuration of a cover. It also allows subsequent reporters to submit their stakes in support of the initial report or to add stakes to dispute it.

Warning:

Please carefully check the cover rules, cover exclusions, and standard exclusion in detail before you interact with the Governace contract(s). You entire stake will be forfeited if resolution does not go in your favor. You will be able to unstake and receive back your NPM only if:

  • incident resolution is in your favor
  • after reporting period ends

    By using this contract directly via a smart contract call, through an explorer service such as Etherscan, using an SDK and/or API, or in any other way, you are completely aware, fully understand, and accept the risk that you may lose all of your stake.

Functions

function (IStore store) public nonpayable Recoverable 

Arguments

Name Type Description
store IStore
Source Code
constructor(IStore store) Recoverable(store) {}

version

Version number of this contract

function version() external pure
returns(bytes32)

Arguments

Name Type Description
Source Code
function version() external pure override returns (bytes32) {
    return "v0.1";
  }

getName

Name of this contract

function getName() external pure
returns(bytes32)

Arguments

Name Type Description
Source Code
function getName() external pure override returns (bytes32) {
    return ProtoUtilV1.CNAME_GOVERNANCE;
  }

Contracts