types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MainnetChainID defines the Evmos EIP155 chain ID for mainnet
	MainnetChainID = "qom_766"
	// TestnetChainID defines the Evmos EIP155 chain ID for testnet
	TestnetChainID = "qom_7668378"
	// BaseDenom defines the Evmos mainnet denomination
	BaseDenom = "aqom"
)
View Source
const RootCodespace = "qom"

RootCodespace is the codespace for all errors defined in this package

Variables

View Source
var (
	ErrKeyTypeNotSupported = errorsmod.Register(RootCodespace, codeKeyTypeNotSupported, "key type 'secp256k1' not supported")
)

errors

Functions

func GetQomAddressFromBech32

func GetQomAddressFromBech32(address string) (sdk.AccAddress, error)

GetQomAddressFromBech32 returns the sdk.Account address of given address, while also changing bech32 human readable prefix (HRP) to the value set on the global sdk.Config (eg: `evmos`). The function fails if the provided bech32 address is invalid.

func IsMainnet

func IsMainnet(chainID string) bool

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

func IsSupportedKey

func IsSupportedKey(pubkey cryptotypes.PubKey) bool

IsSupportedKey returns true if the pubkey type is supported by the chain (i.e eth_secp256k1, amino multisig, ed25519). NOTE: Nested multisigs are not supported.

func IsTestnet

func IsTestnet(chainID string) bool

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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