Documentation ¶
Index ¶
- Constants
- func InitCommand(config *Config, configDir string) *cobra.Command
- func RemoteCommand(config *Config, configDir string) ([]*cobra.Command, error)
- func RemoteErrorCommand(config *Config, configDir string, chain string, chainConfig *ChainConfig, ...) *cobra.Command
- func RootCommand() (*cobra.Command, error)
- func SaveConfig(configDir string, config *Config) error
- func SelectGRPCEndpoints(chain string) (string, error)
- type APIEntry
- type ChainConfig
- type ChainInfo
- type ChainRegistryAPIs
- type ChainRegistryEntry
- type Config
- type GRPCEndpoint
Constants ¶
View Source
const DefaultConfigDirName = ".hubl"
Variables ¶
This section is empty.
Functions ¶
func RemoteErrorCommand ¶
func RootCommand ¶
func SaveConfig ¶
func SelectGRPCEndpoints ¶
Types ¶
type ChainConfig ¶
type ChainConfig struct {
GRPCEndpoints []GRPCEndpoint `toml:"trusted-grpc-endpoints"`
}
type ChainInfo ¶
type ChainInfo struct { ConfigDir string Chain string ModuleOptions map[string]*autocliv1.ModuleOptions ProtoFiles *protoregistry.Files Context context.Context Config *ChainConfig // contains filtered or unexported fields }
func NewChainInfo ¶
func NewChainInfo(configDir string, chain string, config *ChainConfig) *ChainInfo
func (*ChainInfo) OpenClient ¶
func (c *ChainInfo) OpenClient() (*grpc.ClientConn, error)
type ChainRegistryAPIs ¶
type ChainRegistryAPIs struct {
GRPC []*APIEntry `json:"grpc"`
}
type ChainRegistryEntry ¶
type ChainRegistryEntry struct {
APIs ChainRegistryAPIs `json:"apis"`
}
func GetChainRegistryEntry ¶
func GetChainRegistryEntry(chain string) (*ChainRegistryEntry, error)
type Config ¶
type Config struct {
Chains map[string]*ChainConfig `toml:"chains"`
}
func LoadConfig ¶
type GRPCEndpoint ¶
Click to show internal directories.
Click to hide internal directories.