Interface GovernanceConsensusParameters

ConsensusParameters are the governance consensus parameters.

interface GovernanceConsensusParameters {
    allow_proposal_metadata?: boolean;
    allow_vote_without_entity?: boolean;
    enable_change_parameters_proposal?: boolean;
    gas_costs?: {
        [op: string]: longnum;
    };
    min_proposal_deposit?: Uint8Array;
    stake_threshold?: number;
    upgrade_cancel_min_epoch_diff?: longnum;
    upgrade_min_epoch_diff?: longnum;
    voting_period?: longnum;
}

Properties

allow_proposal_metadata?: boolean

AllowProposalMetadata is true iff proposals are allowed to contain metadata.

allow_vote_without_entity?: boolean

AllowVoteWithoutEntity is true iff casting votes without a registered entity is allowed.

enable_change_parameters_proposal?: boolean

EnableChangeParametersProposal is true iff change parameters proposals are allowed.

gas_costs?: {
    [op: string]: longnum;
}

GasCosts are the governance transaction gas costs.

min_proposal_deposit?: Uint8Array

MinProposalDeposit is the number of base units that are deposited when creating a new proposal.

stake_threshold?: number

StakeThreshold is the minimum percentage of VoteYes votes in terms of total voting power when the proposal expires in order for a proposal to be accepted. This value has a lower bound of 67.

upgrade_cancel_min_epoch_diff?: longnum

UpgradeCancelMinEpochDiff is the minimum number of epochs between the current epoch and the proposed upgrade epoch for the upgrade cancellation proposal to be valid.

upgrade_min_epoch_diff?: longnum

UpgradeMinEpochDiff is the minimum number of epochs between the current epoch and the proposed upgrade epoch for the upgrade proposal to be valid. This is also the minimum number of epochs between two pending upgrades.

voting_period?: longnum

VotingPeriod is the number of epochs after which the voting for a proposal is closed and the votes are tallied.