cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0, Apache-2.0 Imports: 54 Imported by: 0

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

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

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

func SetBip44CoinType(config *sdk.Config)

SetBip44CoinType sets the global coin type to be used in hierarchical deterministic wallets.

func VerifyAddressFormat

func VerifyAddressFormat(bz []byte) error

VerifyAddressFormat verifies whether the address is compatible with Ethereum

func WrapInitCmd

func WrapInitCmd(home string) *cobra.Command

WrapInitCmd extends `genutilcli.InitCmd`.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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