Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HumanEnergyTokenUnit defines the unit of one Human Energy Token. HumanEnergyTokenUnit = "HET" // HumanEnergyTokenChainName defines the name of the Human Energy chain. HumanEnergyTokenChainName = "hechain" )
View Source
const ( NetworkNameTest = "testnet" NetworkNameDev = "devnet" )
chain names
View Source
const (
TestNetworkBlockFrequency types.BlockHeight = 120 // 1 block per 2 minutes on average
)
global network config constants
Variables ¶
View Source
var ( // Version of the hechain binaries. // // Value is defined by a private build flag, // or hardcoded to the latest released tag as fallback. Version build.ProtocolVersion )
Functions ¶
func GetBlockchainInfo ¶
func GetBlockchainInfo() types.BlockchainInfo
GetBlockchainInfo returns the naming and versioning of hechain.
func GetCurrencyUnits ¶
func GetCurrencyUnits() types.CurrencyUnits
GetCurrencyUnits returns the currency units used for all Human Energy networks.
func GetDevnetGenesis ¶
func GetDevnetGenesis() types.ChainConstants
GetDevnetGenesis explicitly sets all the required constants for the genesis block of the devnet
func GetTestnetBootstrapPeers ¶
func GetTestnetBootstrapPeers() []modules.NetAddress
GetTestnetBootstrapPeers sets the testnet bootstrap node addresses
func GetTestnetGenesis ¶
func GetTestnetGenesis() types.ChainConstants
GetTestnetGenesis explicitly sets all the required constants for the genesis block of the testnet
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.