Documentation ¶
Overview ¶
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( FlagCommission = "commission" FlagAll = "all" )
var ( Version string Commit string )
var (
// FlagAccountPrefix allows the user to override the prefix for a given account
FlagAccountPrefix = ""
)
var (
FlagFrom = "from"
)
var ModuleBasics = []module.AppModuleBasic{ auth.AppModuleBasic{}, authz.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, gov.NewAppModuleBasic( paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler, ), crisis.AppModuleBasic{}, distribution.AppModuleBasic{}, feegrant.AppModuleBasic{}, mint.AppModuleBasic{}, params.AppModuleBasic{}, slashing.AppModuleBasic{}, staking.AppModuleBasic{}, upgrade.AppModuleBasic{}, transfer.AppModuleBasic{}, ibc.AppModuleBasic{}, }
Functions ¶
func AddTxFlagsToCmd ¶
AddTxFlagsToCmd defines common flags to be reused across cmds
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ReadPageRequest ¶
func ReadPageRequest(flagSet *pflag.FlagSet) (*query.PageRequest, error)
ReadPageRequest reads and builds the necessary page request flags for pagination.
Types ¶
type AssetList ¶
type AssetList struct { Schema string `json:"$schema"` ChainID string `json:"chain_id"` Assets []struct { Description string `json:"description"` DenomUnits []struct { Denom string `json:"denom"` Exponent int `json:"exponent"` } `json:"denom_units"` Base string `json:"base"` Name string `json:"name"` Display string `json:"display"` Symbol string `json:"symbol"` LogoURIs struct { Png string `json:"png"` Svg string `json:"svg"` } `json:"logo_URIs"` CoingeckoID string `json:"coingecko_id"` } `json:"assets"` }
type Config ¶
type Config struct { DefaultChain string `yaml:"default_chain" json:"default_chain"` Chains map[string]*client.ChainClientConfig `yaml:"chains" json:"chains"` // contains filtered or unexported fields }
Config represents the config file for the relayer
func (*Config) GetDefaultClient ¶
func (c *Config) GetDefaultClient() *client.ChainClient
type KeyEnumeration ¶
type RegistryChain ¶
type RegistryChain struct { Schema string `json:"$schema"` ChainName string `json:"chain_name"` Status string `json:"status"` NetworkType string `json:"network_type"` PrettyName string `json:"pretty_name"` ChainID string `json:"chain_id"` Bech32Prefix string `json:"bech32_prefix"` DaemonName string `json:"daemon_name"` NodeHome string `json:"node_home"` Genesis struct { GenesisURL string `json:"genesis_url"` } `json:"genesis"` Slip44 int `json:"slip44"` Codebase struct { GitRepo string `json:"git_repo"` RecommendedVersion string `json:"recommended_version"` CompatibleVersions []string `json:"compatible_versions"` } `json:"codebase"` Peers struct { Seeds []struct { ID string `json:"id"` Address string `json:"address"` Provider string `json:"provider,omitempty"` } `json:"seeds"` PersistentPeers []struct { ID string `json:"id"` Address string `json:"address"` } `json:"persistent_peers"` } `json:"peers"` Apis struct { RPC []struct { Address string `json:"address"` Provider string `json:"provider"` } `json:"rpc"` Rest []struct { Address string `json:"address"` Provider string `json:"provider"` } `json:"rest"` } `json:"apis"` }
func (RegistryChain) GetRPC ¶
func (rc RegistryChain) GetRPC() (string, error)
func (RegistryChain) GetRPCs ¶
func (rc RegistryChain) GetRPCs() (out []string, err error)
func (RegistryChain) WorkingRPCs ¶
func (rc RegistryChain) WorkingRPCs() ([]string, error)