Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name defines the application name of the Ojo network. Name = "ojo" // BondDenom defines the native staking token denomination. BondDenom = "uojo" // DisplayDenom defines the name, symbol, and display value of the ojo token. DisplayDenom = "OJO" // 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 = "ojo"
AccountAddressPrefix defines the Ojo network's Bech32 address prefix.
Variables ¶
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, math.LegacyMustNewDecFromStr("0.00")) // DefaultGovPeriod is 3 days. This should be long enough for validators to react, // and short enough for the team to list new assets competitively. DefaultGovPeriod = time.Hour * 24 * 3 )
View Source
var ( AccountPubKeyPrefix = AccountAddressPrefix + "pub" ValidatorAddressPrefix = AccountAddressPrefix + "valoper" ValidatorPubKeyPrefix = AccountAddressPrefix + "valoperpub" ConsNodeAddressPrefix = AccountAddressPrefix + "valcons" ConsNodePubKeyPrefix = AccountAddressPrefix + "valconspub" )
Account specific Bech32 prefixes.
Functions ¶
func MakeEncodingConfig ¶
func MakeEncodingConfig(modules ...module.AppModuleBasic) testutil.TestEncodingConfig
MakeEncodingConfig creates an EncodingConfig for Amino-based tests.
func SetAddressPrefixes ¶
func SetAddressPrefixes()
SetAddressPrefixes call this in init to set sdk config's bech32 address prefix
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 Ojo. This is provided for compatibility between Protobuf and Amino implementations.
Click to show internal directories.
Click to hide internal directories.