package chaincfg import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" ) const ( // DisplayDenom defines the denomination displayed to users in client applications. DisplayDenom = "a0gi" // BaseDenom defines to the default denomination used in 0g-chain BaseDenom = "neuron" BaseDenomUnit = 18 ConversionMultiplier = 1e18 ) // RegisterDenoms registers the base and display denominations to the SDK. func RegisterDenoms() { if err := sdk.RegisterDenom(DisplayDenom, math.LegacyOneDec()); err != nil { panic(err) } if err := sdk.RegisterDenom(BaseDenom, math.LegacyNewDecWithPrec(1, BaseDenomUnit)); err != nil { panic(err) } }