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 ¶
View Source
var PowerReduction = sdkmath.NewIntFromBigInt(new(big.Int).Exp(big.NewInt(10), big.NewInt(BaseDenomUnit), nil))
PowerReduction defines the default power reduction value for staking
Functions ¶
func IsMainnet ¶
IsMainnet returns true if the chain-id has the RealioNetwork mainnet EIP155 chain prefix.
func IsTestnet ¶
IsTestnet returns true if the chain-id has the RealioNetwork testnet EIP155 chain prefix.
func NewRioCoin ¶ added in v0.8.0
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
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.