appconst

package
v2.0.0-rc.14 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright (c) 2023-2024 Nibi, Inc.

Index

Constants

View Source
const (
	BinaryName = "nibiru"
	BondDenom  = "unibi"
	// AccountAddressPrefix: Bech32 prefix for Nibiru accounts.
	AccountAddressPrefix = "nibi"
)
View Source
const (
	ETH_CHAIN_ID_MAINNET int64 = 7200

	ETH_CHAIN_ID_TESTNET_1 int64 = 7210
	ETH_CHAIN_ID_TESTNET_2 int64 = 7211
	ETH_CHAIN_ID_TESTNET_3 int64 = 7212

	ETH_CHAIN_ID_DEVNET_1 int64 = 7220
	ETH_CHAIN_ID_DEVNET_2 int64 = 7221
	ETH_CHAIN_ID_DEVNET_3 int64 = 7222

	ETH_CHAIN_ID_LOCALNET_0 int64 = 7230
	ETH_CHAIN_ID_LOCALNET_1 int64 = 7231
	ETH_CHAIN_ID_LOCALNET_2 int64 = 7232
	ETH_CHAIN_ID_LOCALNET_3 int64 = 7233

	ETH_CHAIN_ID_DEFAULT int64 = 7230
)

EIP 155 Chain IDs exported for tests.

Variables

View Source
var (
	DefaultDBBackend     db.BackendType = db.PebbleDBBackend
	HavePebbleDBBuildTag bool
)
View Source
var (
	AppVersion = ""
	GitCommit  = ""
	BuildDate  = ""

	GoVersion = ""
	GoArch    = ""
)

Runtime version vars

Functions

func GetEthChainID

func GetEthChainID(ctxChainID string) (ethChainID *big.Int)

GetEthChainID: Maps the given chain ID from the block's `sdk.Context` to an EVM Chain ID (`*big.Int`).

func NewDefaultTendermintConfig

func NewDefaultTendermintConfig() *tmcfg.Config

NewDefaultTendermintConfig returns a consensus "Config" (CometBFT) with new default values for the "consensus" and "db_backend" fields to be enforced upon node initialization. See the "nibiru/cmd/nibid/cmd/InitCmd" function for more information.

func RuntimeVersion

func RuntimeVersion() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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