params

package
v3.0.0-...-244b59d Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name defines the application name of the Nebula network.
	Name = "nebula"

	// BondDenom defines the native staking token denomination.
	BondDenom = "unebula"

	// DisplayDenom defines the name, symbol, and display value of the nebula token.
	DisplayDenom = "NEBULA"

	// DefaultGasLimit - set to the same value as cosmos-sdk flags.DefaultGasLimit
	// this value is currently only used in tests.
	DefaultGasLimit = 200000
)
View Source
const AccountAddressPrefix = "nebula"

AccountAddressPrefix defines the Nebula network's Bech32 address prefix.

Variables

View Source
var (
	AccountPubKeyPrefix    = AccountAddressPrefix + "pub"
	ValidatorAddressPrefix = AccountAddressPrefix + "valoper"
	ValidatorPubKeyPrefix  = AccountAddressPrefix + "valoperpub"
	ConsNodeAddressPrefix  = AccountAddressPrefix + "valcons"
	ConsNodePubKeyPrefix   = AccountAddressPrefix + "valconspub"
)

Account specific Bech32 prefixes.

View Source
var (
	// ProtocolMinGasPrice is a consensus controlled gas price. Each validator must set his
	// `minimum-gas-prices` in app.toml config to value above ProtocolMinGasPrice.
	// Transactions with gas-price smaller than ProtocolMinGasPrice will fail during DeliverTx.
	ProtocolMinGasPrice = sdk.NewDecCoinFromDec(BondDenom, sdk.MustNewDecFromStr("0.00"))
)

Functions

func SetAddressConfig

func SetAddressConfig()

SetAddressConfig sets Nebula's address configuration.

Types

type EncodingConfig

type EncodingConfig struct {
	InterfaceRegistry types.InterfaceRegistry
	Codec             codec.Codec
	TxConfig          client.TxConfig
	Amino             *codec.LegacyAmino
}

EncodingConfig specifies the concrete encoding types to use for Nebula. This is provided for compatibility between Protobuf and Amino implementations.

func MakeEncodingConfig

func MakeEncodingConfig() EncodingConfig

MakeEncodingConfig creates an EncodingConfig for Amino-based tests.

Jump to

Keyboard shortcuts

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