Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ChainAliasPrefix denotes a prefix for an alias that belongs to a blockchain ID. ChainAliasPrefix string = "bc" // VMAliasPrefix denotes a prefix for an alias that belongs to a VM ID. VMAliasPrefix string = "vm" )
View Source
const ( // PlatformName exports the name of the platform PlatformName = "axia" // AppName exports the name of the axia application AppName = "axia" )
Const variables to be exported
View Source
const ( MainnetID uint32 = 1 CascadeID uint32 = 2 DenaliID uint32 = 3 EverestID uint32 = 4 TestID uint32 = 5 TestnetID uint32 = TestID UnitTestID uint32 = 10 LocalID uint32 = 12345 MainnetName = "mainnet" CascadeName = "cascade" DenaliName = "denali" EverestName = "everest" TestName = "test" TestnetName = "testnet" UnitTestName = "testing" LocalName = "local" MainnetHRP = "axc" CascadeHRP = "cascade" DenaliHRP = "denali" EverestHRP = "everest" TestHRP = "test" UnitTestHRP = "testing" LocalHRP = "local" FallbackHRP = "custom" )
Const variables to be exported
View Source
const ( // Request ID used when sending a Put message to gossip an accepted container // (ie not sent in response to a Get) GossipMsgRequestID uint32 = math.MaxUint32 // The network must be "tcp", "tcp4", "tcp6", "unix" or "unixpacket". NetworkType = "tcp" DefaultMaxMessageSize = 2 * units.MiB DefaultPingPongTimeout = 30 * time.Second DefaultPingFrequency = 3 * DefaultPingPongTimeout / 4 DefaultByteSliceCap = 128 MaxContainersLen = int(4 * DefaultMaxMessageSize / 5) )
Const variables to be exported
Variables ¶
View Source
var ( PrimaryNetworkID = ids.Empty CoreChainID = ids.Empty NetworkIDToNetworkName = map[uint32]string{ MainnetID: MainnetName, CascadeID: CascadeName, DenaliID: DenaliName, EverestID: EverestName, TestID: TestName, UnitTestID: UnitTestName, LocalID: LocalName, } NetworkNameToNetworkID = map[string]uint32{ MainnetName: MainnetID, CascadeName: CascadeID, DenaliName: DenaliID, EverestName: EverestID, TestName: TestID, TestnetName: TestnetID, UnitTestName: UnitTestID, LocalName: LocalID, } NetworkIDToHRP = map[uint32]string{ MainnetID: MainnetHRP, CascadeID: CascadeHRP, DenaliID: DenaliHRP, EverestID: EverestHRP, TestID: TestHRP, UnitTestID: UnitTestHRP, LocalID: LocalHRP, } NetworkHRPToNetworkID = map[string]uint32{ MainnetHRP: MainnetID, CascadeHRP: CascadeID, DenaliHRP: DenaliID, EverestHRP: EverestID, TestHRP: TestID, UnitTestHRP: UnitTestID, LocalHRP: LocalID, } ValidNetworkPrefix = "network-" )
Variables to be exported
Functions ¶
func NetworkName ¶
NetworkName returns a human readable name for the network with ID [networkID]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.