config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BaseDenom is the native staking token used by the chain and MUST MATCH the mint module's MintDenom parameter
	// This value is used by the lockup module to set the default locked token denom
	BaseDenom = "aalthea"
	// The whole token denom, aka 1 * 10^18 aalthea tokens
	DisplayDenom = "althea"

	// Chain ID configuration
	// 7357 = TEST, 417834 = ALTHEA mainnet
	ChainIdPrefix  = "althea_7357-"
	ChainIdVersion = "1"
)
View Source
const (
	// Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
	Bech32PrefixAccAddr = "althea"
	// Bech32PrefixAccPub defines the Bech32 prefix of an account's public key
	Bech32PrefixAccPub = "altheapub"
	// Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address
	Bech32PrefixValAddr = "altheavaloper"
	// Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key
	Bech32PrefixValPub = "altheavaloperpub"
	// Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address
	Bech32PrefixConsAddr = "altheavalcons"
	// Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key
	Bech32PrefixConsPub = "altheavalconspub"
)

Variables

View Source
var (
	DefaultChainID     = func() string { return ChainIdPrefix + ChainIdVersion }
	DefaultMinGasPrice = func() int64 { return 1 }
)

Functions

func RegisterDenoms

func RegisterDenoms()

RegisterDenoms registers the base and display denominations to the SDK.

func SetBech32Prefixes

func SetBech32Prefixes(config *sdk.Config)

func SetBip44CoinType

func SetBip44CoinType(config *sdk.Config)

SetBip44CoinType sets the global coin type to be used in hierarchical deterministic wallets. Sets up the default HD path to be m/44'/60'/0'/0/0 (m/purpose/coin_type/account/change/address_index)

Types

This section is empty.

Jump to

Keyboard shortcuts

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