constants

package
v0.1.47 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainnetChainID = 43114
	MainnetAssetID = "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z"
	MainnetNetwork = constants.MainnetName

	FujiChainID = 43113
	FujiAssetID = "U8iRqJoiJm8xZHAacmvYyZVwqQx6uDNtQeP3CQ6fcgQk3JqnK"
	FujiNetwork = constants.FujiName
)

Variables

View Source
var (
	MainnetAP5Activation = uint64(mainnetUpgrades.ApricotPhase5Time.Unix())
	FujiAP5Activation    = uint64(fujiUpgrades.ApricotPhase5Time.Unix())
)
View Source
var ErrUnknownChainIDAlias = errors.New("unknown chain ID alias")

Functions

This section is empty.

Types

type ChainIDAlias

type ChainIDAlias uint16
const (
	// values are ASCII values because why not?
	AnyChain ChainIDAlias = 0  // default value, with some usage in some P-Chain APIs
	PChain   ChainIDAlias = 80 // "P"
	CChain   ChainIDAlias = 67 // "C"
	XChain   ChainIDAlias = 88 // "X"
)

func FromString

func FromString(s string) (ChainIDAlias, error)

func (ChainIDAlias) String

func (ni ChainIDAlias) String() string

Jump to

Keyboard shortcuts

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