Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustGetSupportChainPath ¶
GetSupportChain WorkingDirectory in anywhere
Types ¶
type ChainConfig ¶
type ChainConfig struct { DisplayName string `yaml:"display_name"` ChainID string `yaml:"chain_id"` TrackingAddresses []string `yaml:"tracking_addresses,omitempty"` Nodes []NodeEndPoint `yaml:"nodes"` ProviderNodes []NodeEndPoint `yaml:"provider_nodes"` }
each chain
type ChainDetail ¶
type MonitoringConfig ¶
type MonitoringConfig struct { Monikers []string `yaml:"monikers"` ChainConfigs []ChainConfig `yaml:"chains"` }
root config
type NodeEndPoint ¶
type NodeEndPoint struct { RPC string `yaml:"rpc"` API string `yaml:"api"` GRPC string `yaml:"grpc"` }
each chain's available node list
type SupportChains ¶
type SupportChains struct {
Chains map[string]ChainDetail `yaml:",inline"`
}
func GetSupportChainConfig ¶
func GetSupportChainConfig() (*SupportChains, error)
Click to show internal directories.
Click to hide internal directories.