types

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

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

	// BaseDenomUnit defines the base denomination unit for RealioNetwork.
	// 1 rio = 1x10^{BaseDenomUnit} ario
	BaseDenomUnit = 18

	// DefaultGasPrice is default gas price for evm transactions
	DefaultGasPrice = 20
)
View Source
const (
	// MainnetChainID defines the RealioNetwork EIP155 chain ID for mainnet
	MainnetChainID = "realionetwork_3301"
	// TestnetChainID defines the RealioNetwork EIP155 chain ID for testnet
	TestnetChainID = "realionetwork_3300"
	// BaseDenom defines the base denomination
	BaseDenom = "ario"
)

Variables

PowerReduction defines the default power reduction value for staking

Functions

func IsMainnet

func IsMainnet(chainID string) bool

IsMainnet returns true if the chain-id has the RealioNetwork mainnet EIP155 chain prefix.

func IsTestnet

func IsTestnet(chainID string) bool

IsTestnet returns true if the chain-id has the RealioNetwork testnet EIP155 chain prefix.

func NewRioCoin added in v0.8.0

func NewRioCoin(amount sdkmath.Int) sdk.Coin

NewRioCoin is a utility function that returns an "ario" coin with the given sdkmath.Int amount. The function will panic if the provided amount is negative.

func NewRioCoinInt64 added in v0.8.0

func NewRioCoinInt64(amount int64) sdk.Coin

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

func NewRioDecCoin added in v0.8.0

func NewRioDecCoin(amount sdkmath.Int) sdk.DecCoin

NewRioDecCoin is a utility function that returns an "ario" decimal coin with the given sdkmath.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