Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DisplayDenom defines the denomination displayed to users in client applications. DisplayDenom = "gnet" // AddrLen is the allowed length (in bytes) for an address. // // NOTE: In the SDK, the default value is 255. AddrLen = 20 // AttoGnet defines the default coin denomination used in Galactica in: // // - Staking parameters: denomination used as stake in the dPoS chain // - Mint parameters: denomination minted due to fee distribution rewards // - Governance parameters: denomination used for spam prevention in proposal deposits // - Crisis parameters: constant fee denomination used for spam prevention to check broken invariant // - EVM parameters: denomination used for running EVM state transitions in Ethermint. AttoGnet string = "agnet" // BaseDenomUnit defines the base denomination unit for Photons. // 1 photon = 1x10^{BaseDenomUnit} agnet BaseDenomUnit = 18 MicroGnet string = "ugnet" MicroDenomUnit = 6 // DefaultGasPrice is default gas price for evm transactions DefaultGasPrice = 20 )
Variables ¶
This section is empty.
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func NewRootCmd ¶
func NewRootCmd() (*cobra.Command, appparams.EncodingConfig)
NewRootCmd creates a new root command for a Cosmos SDK application
func RegisterDenoms ¶
func RegisterDenoms()
RegisterDenoms registers the base and display denominations to the SDK.
func SetBip44CoinType ¶
SetBip44CoinType sets the global coin type to be used in hierarchical deterministic wallets.
func VerifyAddressFormat ¶
VerifyAddressFormat verifies whether the address is compatible with Ethereum
func WrapInitCmd ¶
WrapInitCmd extends `genutilcli.InitCmd`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.