types

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BaseNativeDenom defines the default coin denomination used in Ethermint in:
	//
	// - Staking parameters: denomination used as stake in the PoS 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.
	BaseNativeDenom string = "uplugcn"

	//DisplayNativeDenom defines the denomination displayed to users in client applications.
	DisplayNativeDenom string = "plugcn"

	// BaseDenomUnit defines the base denomination unit for plugcns.
	// 1 plugcn = 1x10^{BaseDenomUnit} uplugcn
	BaseDenomUnit = 6

	// DefaultGasPrice is default gas price for evm transactions
	DefaultGasPrice = 20
)

Variables

This section is empty.

Functions

func NewSocketCoin

func NewSocketCoin(amount sdk.Int) sdk.Coin

NewSocketCoin is a utility function that returns an "uplugcn" coin with the given sdk.Int amount. The function will panic if the provided amount is negative.

func NewSocketCoinInt64

func NewSocketCoinInt64(amount int64) sdk.Coin

NewSocketCoinInt64 is a utility function that returns an "uplugcn" coin with the given int64 amount. The function will panic if the provided amount is negative.

func NewSocketDecCoin

func NewSocketDecCoin(amount sdk.Int) sdk.DecCoin

NewSocketDecCoin is a utility function that returns an "uplugcn" decimal coin with the given sdk.Int amount. The function will panic if the provided amount is negative.

Types

This section is empty.

Jump to

Keyboard shortcuts

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