mukan-core/app/config.go
2026-05-11 03:46:11 +03:00

24 lines
803 B
Go

package app
import sdk "git.cw.tr/mukan-network/mukan-sdk/types"
func init() {
// Set bond denom
sdk.DefaultBondDenom = "stake"
// Set address prefixes
accountPubKeyPrefix := AccountAddressPrefix + "pub"
validatorAddressPrefix := AccountAddressPrefix + "valoper"
validatorPubKeyPrefix := AccountAddressPrefix + "valoperpub"
consNodeAddressPrefix := AccountAddressPrefix + "valcons"
consNodePubKeyPrefix := AccountAddressPrefix + "valconspub"
// Set and seal config
config := sdk.GetConfig()
config.SetCoinType(ChainCoinType)
config.SetBech32PrefixForAccount(AccountAddressPrefix, accountPubKeyPrefix)
config.SetBech32PrefixForValidator(validatorAddressPrefix, validatorPubKeyPrefix)
config.SetBech32PrefixForConsensusNode(consNodeAddressPrefix, consNodePubKeyPrefix)
config.Seal()
}