internal

package
v0.0.0-...-a923e13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCmd

func InitCmd(config *config.Config, configDir string) *cobra.Command

func KeyringCmd

func KeyringCmd(chainName string) *cobra.Command

func RemoteCommand

func RemoteCommand(config *config.Config, configDir string) ([]*cobra.Command, error)

func RemoteErrorCommand

func RemoteErrorCommand(cfg *config.Config, configDir, chain string, chainConfig *config.ChainConfig, err error) *cobra.Command

func RootCommand

func RootCommand() (*cobra.Command, error)

func SelectGRPCEndpoints

func SelectGRPCEndpoints(chain string) (string, error)

func VersionCmd

func VersionCmd() *cobra.Command

Types

type APIEntry

type APIEntry struct {
	Address  string
	Provider string
}

type ChainInfo

type ChainInfo struct {
	Context   context.Context
	ConfigDir string
	Chain     string
	Config    *config.ChainConfig

	ProtoFiles    *protoregistry.Files
	ModuleOptions map[string]*autocliv1.ModuleOptions
	// contains filtered or unexported fields
}

func NewChainInfo

func NewChainInfo(configDir, chain string, config *config.ChainConfig) *ChainInfo

func (*ChainInfo) Load

func (c *ChainInfo) Load(reload bool) error

func (*ChainInfo) OpenClient

func (c *ChainInfo) OpenClient() (*grpc.ClientConn, error)

type ChainRegistryEntry

type ChainRegistryEntry struct {
	APIs struct {
		GRPC []*APIEntry `json:"grpc"`
	} `json:"apis"`
}

func GetChainRegistryEntry

func GetChainRegistryEntry(chain string) (*ChainRegistryEntry, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL