appconst

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 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 = 6900

	ETH_CHAIN_ID_TESTNET_1 int64 = 7210
	ETH_CHAIN_ID_TESTNET_2 int64 = 6911
	ETH_CHAIN_ID_TESTNET_3 int64 = 6912

	ETH_CHAIN_ID_DEVNET_1 int64 = 6920
	ETH_CHAIN_ID_DEVNET_2 int64 = 6921
	ETH_CHAIN_ID_DEVNET_3 int64 = 6922

	ETH_CHAIN_ID_LOCALNET_0 int64 = 6930
	ETH_CHAIN_ID_LOCALNET_1 int64 = 6931
	ETH_CHAIN_ID_LOCALNET_2 int64 = 6932
	ETH_CHAIN_ID_LOCALNET_3 int64 = 6933

	ETH_CHAIN_ID_DEFAULT int64 = 6930
)

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