Documentation
¶
Index ¶
- Constants
- Variables
- func AnalyticsOptOut() bool
- func GetAnalyticsDeviceID() string
- func GetConfig(key string) interface{}
- func InitializeConfig() error
- func IsFirstTimeSetup() bool
- func LoadConfig() error
- func SetAnalyticsOptOut(optOut bool) error
- func SetConfig(key string, value interface{}) error
- func UpdateTomlValue(filePath, key, value string) error
- func WriteConfig() error
- type GasStationKey
Constants ¶
View Source
const DefaultConfigTemplate = `{}`
Variables ¶
View Source
var DevMode string
Functions ¶
func AnalyticsOptOut ¶
func AnalyticsOptOut() bool
func GetAnalyticsDeviceID ¶
func GetAnalyticsDeviceID() string
func InitializeConfig ¶
func InitializeConfig() error
func IsFirstTimeSetup ¶
func IsFirstTimeSetup() bool
func LoadConfig ¶
func LoadConfig() error
func SetAnalyticsOptOut ¶
func UpdateTomlValue ¶
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)
Click to show internal directories.
Click to hide internal directories.