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
Click to show internal directories.
Click to hide internal directories.