Documentation ¶
Index ¶
- Constants
- Variables
- func GetBlockchainInfo() types.BlockchainInfo
- func GetCurrencyUnits() types.CurrencyUnits
- func GetDevnetBootstrapPeers() []modules.NetAddress
- func GetDevnetGenesis() types.ChainConstants
- func GetDevnetGenesisAuthCoinCondition() types.UnlockConditionProxy
- func GetStandardnetBootstrapPeers() []modules.NetAddress
- func GetStandardnetGenesis() types.ChainConstants
- func GetStandardnetGenesisAuthCoinCondition() types.UnlockConditionProxy
- func GetTestnetBootstrapPeers() []modules.NetAddress
- func GetTestnetGenesis() types.ChainConstants
- func GetTestnetGenesisAuthCoinCondition() types.UnlockConditionProxy
- type DaemonNetworkConfig
Constants ¶
const ( // ThreeFoldTokenUnit defines the unit of one ThreeFold Token. ThreeFoldTokenUnit = "TFT" // ThreeFoldTokenChainName defines the name of the ThreeFoldToken chain. ThreeFoldTokenChainName = "tfchain" )
const ( NetworkNameStandard = "standard" NetworkNameTest = "testnet" NetworkNameDev = "devnet" )
chain names
const ( StandardNetworkBlockFrequency types.BlockHeight = 120 // 1 block per 2 minutes on average TestNetworkBlockFrequency types.BlockHeight = 120 // 1 block per 2 minutes on average )
global network config constants
Variables ¶
var ( // Version of the tfchain 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 tfchain.
func GetCurrencyUnits ¶
func GetCurrencyUnits() types.CurrencyUnits
GetCurrencyUnits returns the currency units used for all ThreeFold networks.
func GetDevnetBootstrapPeers ¶ added in v1.2.0
func GetDevnetBootstrapPeers() []modules.NetAddress
GetDevnetBootstrapPeers sets the default devnet bootstrap node addresses
func GetDevnetGenesis ¶
func GetDevnetGenesis() types.ChainConstants
GetDevnetGenesis explicitly sets all the required constants for the genesis block of the devnet
func GetDevnetGenesisAuthCoinCondition ¶ added in v1.3.0
func GetDevnetGenesisAuthCoinCondition() types.UnlockConditionProxy
func GetStandardnetBootstrapPeers ¶
func GetStandardnetBootstrapPeers() []modules.NetAddress
GetStandardnetBootstrapPeers sets the standard bootstrap node addresses
func GetStandardnetGenesis ¶
func GetStandardnetGenesis() types.ChainConstants
GetStandardnetGenesis explicitly sets all the required constants for the genesis block of the standard (prod) net
func GetStandardnetGenesisAuthCoinCondition ¶ added in v1.3.0
func GetStandardnetGenesisAuthCoinCondition() types.UnlockConditionProxy
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
func GetTestnetGenesisAuthCoinCondition ¶ added in v1.3.0
func GetTestnetGenesisAuthCoinCondition() types.UnlockConditionProxy
Types ¶
type DaemonNetworkConfig ¶ added in v1.2.0
type DaemonNetworkConfig struct { GenesisMintingCondition types.UnlockConditionProxy // used for minting FoundationPoolAddress types.UnlockHash // used for 3Bot ERC20FeePoolAddress types.UnlockHash // used for ERC20 }
DaemonNetworkConfig defines network-specific tfchain constants.
func GetDevnetDaemonNetworkConfig ¶ added in v1.2.0
func GetDevnetDaemonNetworkConfig() DaemonNetworkConfig
GetDevnetDaemonNetworkConfig returns the devnet network config for the daemon
func GetStandardDaemonNetworkConfig ¶ added in v1.2.0
func GetStandardDaemonNetworkConfig() DaemonNetworkConfig
GetStandardDaemonNetworkConfig returns the standard network config for the daemon
func GetTestnetDaemonNetworkConfig ¶ added in v1.2.0
func GetTestnetDaemonNetworkConfig() DaemonNetworkConfig
GetTestnetDaemonNetworkConfig returns the testnet network config for the daemon