Documentation ¶
Overview ¶
Package genesis implements the genesis sub-commands.
Index ¶
- Constants
- func AppendKeyManagerState(doc *genesis.Document, statuses []string, l *logging.Logger) error
- func AppendRegistryState(doc *genesis.Document, entities, runtimes, nodes []string, l *logging.Logger) error
- func AppendRootHashState(doc *genesis.Document, exports []string, l *logging.Logger) error
- func Register(parentCmd *cobra.Command)
Constants ¶
View Source
const ( CfgChainID = "chain.id" CfgInitialHeight = "initial_height" // Registry config flags. CfgRegistryMaxNodeExpiration = "registry.max_node_expiration" CfgRegistryDisableRuntimeRegistration = "registry.disable_runtime_registration" CfgRegistryDebugAllowUnroutableAddresses = "registry.debug.allow_unroutable_addresses" CfgRegistryDebugAllowTestRuntimes = "registry.debug.allow_test_runtimes" CfgRegistryEnableRuntimeGovernanceModels = "registry.enable_runtime_governance_models" CfgRegistryTEEFeaturesSGXPCS = "registry.tee_features.sgx.pcs" CfgRegistryTEEFeaturesSGXSignedAttestations = "registry.tee_features.sgx.signed_attestations" CfgRegistryTEEFeaturesSGXDefaultMaxAttestationAge = "registry.tee_features.sgx.default_max_attestation_age" CfgRegistryTEEFeaturesFreshnessProofs = "registry.tee_features.freshness_proofs" CfgSchedulerMaxValidatorsPerEntity = "scheduler.max_validators_per_entity" CfgSchedulerDebugForceElect = "scheduler.debug.force_elect" CfgSchedulerDebugAllowWeakAlpha = "scheduler.debug.allow_weak_alpha" // Governance config flags. CfgGovernanceMinProposalDeposit = "governance.min_proposal_deposit" CfgGovernanceStakeThreshold = "governance.stake_threshold" CfgGovernanceUpgradeCancelMinEpochDiff = "governance.upgrade_cancel_min_epoch_diff" CfgGovernanceUpgradeMinEpochDiff = "governance.upgrade_min_epoch_diff" CfgGovernanceVotingPeriod = "governance.voting_period" CfgGovernanceEnableChangeParametersProposal = "governance.enable_change_parameters_proposal" // Beacon config flags. CfgBeaconBackend = "beacon.backend" CfgBeaconDebugMockBackend = "beacon.debug.mock_backend" CfgBeaconInsecureCometBFTInterval = "beacon.insecure.cometbft.interval" CfgBeaconVRFAlphaThreshold = "beacon.vrf.alpha_threshold" CfgBeaconVRFInterval = "beacon.vrf.interval" CfgBeaconVRFProofSubmissionDelay = "beacon.vrf.submission_delay" CfgRoothashMaxRuntimeMessages = "roothash.max_runtime_messages" CfgRoothashMaxInRuntimeMessages = "roothash.max_in_runtime_messages" CfgRoothashMaxPastRootsStored = "roothash.max_past_roots_stored" // Staking config flags. CfgStakingTokenSymbol = "staking.token_symbol" CfgStakingTokenValueExponent = "staking.token_value_exponent" // CometBFT config flags. CfgConsensusTimeoutCommit = "consensus.cometbft.timeout_commit" CfgConsensusStateCheckpointInterval = "consensus.state_checkpoint.interval" CfgConsensusStateCheckpointNumKept = "consensus.state_checkpoint.num_kept" CfgConsensusStateCheckpointChunkSize = "consensus.state_checkpoint.chunk_size" CfgConsensusGasCostsTxByte = "consensus.gas_costs.tx_byte" CfgConsensusFeatureVersion = "consensus.feature_version" // Consensus backend config flag. CfgConsensusBackend = "consensus.backend" )
nolint: revive
View Source
const (
// CfgNewGenesisFile is the flag used to specify a new genesis file.
CfgNewGenesisFile = "genesis.new_file"
)
Variables ¶
This section is empty.
Functions ¶
func AppendKeyManagerState ¶
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 ¶
AppendRootHashState appends the roothash genesis state given files with exported runtime states.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.