Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrGitHubClient = errors.New("GitHub client not provided") ErrMissingRPCConfigMsg = "missing RPC config for chain: %s" )
Functions ¶
This section is empty.
Types ¶
type Account ¶ added in v0.7.1
type Channel ¶ added in v0.13.0
type Channel struct { Chain1 struct { ChannelID string `json:"channel_id"` PortID string `json:"port_id"` } `json:"chain_1"` Chain2 struct { ChannelID string `json:"channel_id"` PortID string `json:"port_id"` } `json:"chain_2"` Ordering string `json:"ordering"` Version string `json:"version"` Tags struct { Status string `json:"status"` Preferred bool `json:"preferred"` Dex string `json:"dex"` Properties string `json:"properties"` } `json:"tags,omitempty"` }
type Config ¶
type Config struct { Accounts []Account `yaml:"accounts"` GlobalRPCTimeout string `env:"GLOBAL_RPC_TIMEOUT" envDefault:"5s"` RPCs []RPC `yaml:"rpc"` GitHub struct { Org string `yaml:"org" validate:"required"` Repo string `yaml:"repo" validate:"required"` IBCDir string `yaml:"dir" validate:"required"` TestnetsIBCDir string `yaml:"testnetsDir"` Token string `env:"GITHUB_TOKEN"` } `yaml:"github" validate:"required"` }
func (*Config) GetRPCsMap ¶
GetRPCsMap uses the provided config file to return a map of chain chain_names to RPCs. It uses IBCData already extracted from github IBC registry to validate config for missing RPCs and raises an error if any are missing.
type IBCChainMeta ¶ added in v0.13.0
type IBCData ¶ added in v0.11.0
type IBCData struct { Schema string `json:"$schema"` Chain1 IBCChainMeta `json:"chain_1"` Chain2 IBCChainMeta `json:"chain_2"` Channels []Channel `json:"channels"` Operators []Operator `json:"operators"` }
Click to show internal directories.
Click to hide internal directories.