config

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigTemplate = `{}`

Variables

View Source
var DevMode string

Functions

func AnalyticsOptOut

func AnalyticsOptOut() bool

func GetAnalyticsDeviceID

func GetAnalyticsDeviceID() string

func GetConfig

func GetConfig(key string) interface{}

func InitializeConfig

func InitializeConfig() error

func IsFirstTimeSetup

func IsFirstTimeSetup() bool

func LoadConfig

func LoadConfig() error

func SetAnalyticsOptOut

func SetAnalyticsOptOut(optOut bool) error

func SetConfig

func SetConfig(key string, value interface{}) error

func UpdateTomlValue

func UpdateTomlValue(filePath, key, value string) error

UpdateTomlValue updates a TOML file based on the provided key and value. The key can be a field in a section (e.g., "api.enable") or a top-level field (e.g., "minimum-gas-prices").

func WriteConfig

func WriteConfig() error

Types

type GasStationKey added in v0.1.3

type GasStationKey struct {
	InitiaAddress   string `json:"initia_address"`
	CelestiaAddress string `json:"celestia_address"`
	Mnemonic        string `json:"mnemonic"`
	CoinType        *int   `json:"coin_type,omitempty"`
}

func GetGasStationKey added in v0.1.3

func GetGasStationKey() (*GasStationKey, error)

func RecoverGasStationKey added in v0.1.3

func RecoverGasStationKey(mnemonic string) (*GasStationKey, error)

Jump to

Keyboard shortcuts

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