types

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AttoMara defines the default coin denomination used in Mara 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.
	AttoMara string = "amara"

	// BaseDenomUnit defines the base denomination unit for maras.
	// 1 mara = 1x10^{BaseDenomUnit} amara
	BaseDenomUnit = 18

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

Variables

PowerReduction defines the default power reduction value for staking

Functions

func NewMaraCoin added in v0.2.0

func NewMaraCoin(amount sdk.Int) sdk.Coin

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

func NewMaraCoinInt64 added in v0.2.0

func NewMaraCoinInt64(amount int64) sdk.Coin

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

func NewMaraDecCoin added in v0.2.0

func NewMaraDecCoin(amount sdk.Int) sdk.DecCoin

NewMaraDecCoin is a utility function that returns an "amara" 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