types

package
v8.0.0-...-a9a65cb Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name          = "fxcore"
	AddressPrefix = "fx"
	EnvPrefix     = "FX"

	DefaultDenom = "FX"
	DenomUnit    = 18

	AddrLen = 20
)
View Source
const (
	MainnetChainId = "fxcore"

	MainnetGenesisHash   = "3d6cb5ebc05d42371581cd2f7bc23590e5623c3377424a89b1db982e1938fbad"
	MainnetBlockHeightV2 = 5_713_000
	MainnetBlockHeightV3 = 8_756_000
	MainnetBlockHeightV4 = 10_477_500
	MainnetBlockHeightV5 = 11_601_700
	MainnetBlockHeightV6 = 13_598_000
	MainnetBlockHeightV7 = 16_838_000
)

mainnet

View Source
const (
	TestnetChainId = "dhobyghaut"

	TestnetGenesisHash    = "ec2bf940c025434d1fd17e2338a60b8803900310dc71f71ea55c185b24ddba23"
	TestnetBlockHeightV2  = 3_418_880
	TestnetBlockHeightV3  = 6_578_000
	TestnetBlockHeightV4  = 8_088_000
	TestnetBlockHeightV41 = 8_376_000 // v4.1
	TestnetBlockHeightV42 = 8_481_000 // v4.2
	TestnetBlockHeightV5  = 9_773_000
	TestnetBlockHeightV6  = 11_701_000
	TestnetBlockHeightV7  = 12_961_500
	TestnetBlockHeightV71 = 14_369_500 // v7.1
	TestnetBlockHeightV72 = 14_389_000 // v7.2
	TestnetBlockHeightV73 = 14_551_500 // v7.3
	TestnetBlockHeightV74 = 15_614_000 // v7.4
	TestnetBlockHeightV75 = 15_660_500 // v7.5
)

testnet

Variables

This section is empty.

Functions

func Byte32ToString

func Byte32ToString(bytes [32]byte) string

func ChainIdWithEIP155

func ChainIdWithEIP155(chainId string) string

func EIP155ChainID

func EIP155ChainID(chainId string) *big.Int

func GetDefGasPrice

func GetDefGasPrice() sdk.Coin

func GetDefaultNodeHome

func GetDefaultNodeHome() string

func IsOriginDenom

func IsOriginDenom(denom string) bool

func MustStrToByte32

func MustStrToByte32(str string) [32]byte

func NewFXMetaData

func NewFXMetaData() banktypes.Metadata

func NewMetadata

func NewMetadata(name, symbol string, decimals uint32) banktypes.Metadata

func ParseAddress

func ParseAddress(addr string) (accAddr sdk.AccAddress, isEvmAddr bool, err error)

func SetConfig

func SetConfig(isCosmosCoinType bool)

func StrToByte32

func StrToByte32(s string) ([32]byte, error)

func VerifyAddressFormat

func VerifyAddressFormat(bz []byte) error

VerifyAddressFormat verifies whether the address is compatible with Ethereum

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