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 ( // application's version string Version = "" // commit Commit = "" // sdk version SDKVersion = "" // tendermint version TMVersion = "" )
Functions ¶
func CreateCosignerSharesCmd ¶
CreateCosignerSharesCmd is a cobra command for creating cosigner shares from a priv validator
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 StartCosignerCmd ¶
Types ¶
type ChainNode ¶
type ChainNode struct {
PrivValAddr string `json:"priv-val-addr" yaml:"priv-val-addr"`
}
type Config ¶
type Config struct { HomeDir string `json:"home-dir" yaml:"home-dir"` ChainID string `json:"chain-id" yaml:"chain-id"` CosignerConfig *CosignerConfig `json:"cosigner,omitempty" yaml:"cosigner,omitempty"` ChainNodes []ChainNode `json:"chain-nodes,omitempty" yaml:"chain-nodes,omitempty"` }
func (*Config) CosignerPeers ¶
func (c *Config) CosignerPeers() (out []signer.CosignerConfig)
func (*Config) MustMarshalYaml ¶
func (*Config) Nodes ¶
func (c *Config) Nodes() (out []signer.NodeConfig)
type CosignerConfig ¶
type CosignerConfig struct { Threshold int `json:"threshold" yaml:"threshold"` P2PListen string `json:"p2p-listen" yaml:"p2p-listen"` Peers []CosignerPeer `json:"peers" yaml:"peers"` }
type CosignerPeer ¶
type CosignerPeer struct { P2PAddr string `json:"p2p-addr" yaml:"p2p-addr"` }
type Info ¶
type Info struct { Version string `json:"version" yaml:"version"` GitCommit string `json:"commit" yaml:"commit"` GoVersion string `json:"go_version" yaml:"go_version"` CosmosSdkVersion string `json:"cosmos_sdk_version" yaml:"cosmos_sdk_version"` TendermintVersion string `json:"tendermint_version" yaml:"tendermint_version"` }
Info defines the application version information.