genesis

package
v0.2103.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package genesis implements the genesis sub-commands.

Index

Constants

View Source
const (

	// Registry config flags.
	CfgRegistryMaxNodeExpiration          = "registry.max_node_expiration"
	CfgRegistryDisableRuntimeRegistration = "registry.disable_runtime_registration"

	CfgRegistryDebugAllowTestRuntimes = "registry.debug.allow_test_runtimes"

	// Governance config flags.
	CfgGovernanceMinProposalDeposit        = "governance.min_proposal_deposit"
	CfgGovernanceQuorum                    = "governance.quorum"
	CfgGovernanceThreshold                 = "governance.threshold"
	CfgGovernanceUpgradeCancelMinEpochDiff = "governance.upgrade_cancel_min_epoch_diff"
	CfgGovernanceUpgradeMinEpochDiff       = "governance.upgrade_min_epoch_diff"
	CfgGovernanceVotingPeriod              = "governance.voting_period"

	// Beacon config flags.
	CfgBeaconBackend                    = "beacon.backend"
	CfgBeaconDebugDeterministic         = "beacon.debug.deterministic"
	CfgBeaconDebugMockBackend           = "beacon.debug.mock_backend"
	CfgBeaconInsecureTendermintInterval = "beacon.insecure.tendermint.interval"
	CfgBeaconPVSSParticipants           = "beacon.pvss.participants"
	CfgBeaconPVSSThreshold              = "beacon.pvss.threshold"
	CfgBeaconPVSSCommitInterval         = "beacon.pvss.commit_interval"
	CfgBeaconPVSSRevealInterval         = "beacon.pvss.reveal_interval"
	CfgBeaconPVSSTransitionDelay        = "beacon.pvss.transition_delay"
	CfgBeaconPVSSDebugForcedParticipant = "beacon.pvss.debug.forced_participant"

	// Staking config flags.
	CfgStakingTokenSymbol        = "staking.token_symbol"
	CfgStakingTokenValueExponent = "staking.token_value_exponent"

	CfgConsensusStateCheckpointInterval  = "consensus.state_checkpoint.interval"
	CfgConsensusStateCheckpointNumKept   = "consensus.state_checkpoint.num_kept"
	CfgConsensusStateCheckpointChunkSize = "consensus.state_checkpoint.chunk_size"
	CfgConsensusGasCostsTxByte           = "consensus.gas_costs.tx_byte"
)

Variables

This section is empty.

Functions

func AppendKeyManagerState

func AppendKeyManagerState(doc *genesis.Document, statuses []string, l *logging.Logger) error

AppendKeyManagerState appends the key manager genesis state given a vector of key manager statuses.

func AppendRegistryState

func AppendRegistryState(doc *genesis.Document, entities, runtimes, nodes []string, l *logging.Logger) error

AppendRegistryState appends the registry genesis state given a vector of entity registrations and runtime registrations.

func AppendRootHashState

func AppendRootHashState(doc *genesis.Document, exports []string, l *logging.Logger) error

AppendRootHashState appends the roothash genesis state given files with exported runtime states.

func Register

func Register(parentCmd *cobra.Command)

Register registers the genesis sub-command and all of it's children.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL