cmd

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const EnvPrefix = "CRONOS"

Variables

View Source
var ChainID string
View Source
var DefaultVersionDBTemplate = `
[versiondb]
# Enable defines if the versiondb should be enabled.
enable = {{ .VersionDB.Enable }}
`

Functions

func ChangeSetCmd added in v1.0.4

func ChangeSetCmd() *cobra.Command

func DatabaseCmd added in v1.7.0

func DatabaseCmd() *cobra.Command

DatabaseCmd returns the database command with subcommands

func MigrateCmd added in v1.7.0

func MigrateCmd() *cobra.Command

MigrateCmd returns the migrate subcommand (for database command group)

func MigrateDBCmd added in v1.7.0

func MigrateDBCmd() *cobra.Command

MigrateDBCmd returns the migrate command

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates a new root command for simd. It is called once in the main function.

func PatchCmd added in v1.7.0

func PatchCmd() *cobra.Command

PatchCmd returns the patch subcommand (for database command group)

func PatchDBCmd added in v1.7.0

func PatchDBCmd() *cobra.Command

PatchDBCmd returns the patch command

Types

type BackendType added in v1.7.0

type BackendType string
const (
	GoLevelDB BackendType = "goleveldb"
	LevelDB   BackendType = "leveldb" // Alias for goleveldb
	RocksDB   BackendType = "rocksdb"
)

Backend type constants

type DatabaseName added in v1.7.0

type DatabaseName string
const (
	Application DatabaseName = "application"
	Blockstore  DatabaseName = "blockstore"
	State       DatabaseName = "state"
	TxIndex     DatabaseName = "tx_index"
	Evidence    DatabaseName = "evidence"
)

Database name constants

type DbType added in v1.7.0

type DbType string
const (
	App      DbType = "app"
	CometBFT DbType = "cometbft"
	All      DbType = "all"
)

Database type constants

type VersionDBConfig added in v1.7.0

type VersionDBConfig struct {
	// Enable defines if the versiondb should be enabled.
	Enable bool `mapstructure:"enable"`
}

func DefaultVersionDBConfig added in v1.7.0

func DefaultVersionDBConfig() VersionDBConfig

Jump to

Keyboard shortcuts

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