cmd

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: BlueOak-1.0.0 Imports: 22 Imported by: 1

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

View Source
var (
	// application's version string
	Version = ""
	// commit
	Commit = ""
	// sdk version
	SDKVersion = ""
	// tendermint version
	TMVersion = ""
)

Functions

func CreateCosignerSharesCmd

func CreateCosignerSharesCmd() *cobra.Command

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

func StartCosignerCmd() *cobra.Command

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 (c *Config) MustMarshalYaml() []byte

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 {
	ShareID int    `json:"share-id" yaml:"share-id"`
	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.

func NewInfo

func NewInfo() Info

Jump to

Keyboard shortcuts

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