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 ¶
View Source
var PowerReduction = sdk.NewIntFromBigInt(new(big.Int).Exp(big.NewInt(10), big.NewInt(BaseDenomUnit), nil))
PowerReduction defines the default power reduction value for staking
Functions ¶
func NewMaraCoin ¶ added in v0.2.0
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
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.