cmd

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

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
	CBFTVersion = ""
)

Functions

func AddPrometheusMetrics

func AddPrometheusMetrics(mux *http.ServeMux, out io.Writer)

func EnableDebugAndMetrics

func EnableDebugAndMetrics(ctx context.Context, out io.Writer)

EnableDebugAndMetrics - Initialization errors are not fatal, only logged

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 NewSingleSignerValidator

func NewSingleSignerValidator(
	out io.Writer,
	acceptRisk bool,
) (*signer.SingleSignerValidator, error)

func NewThresholdValidator

func NewThresholdValidator(
	ctx context.Context,
	logger cometlog.Logger,
) ([]cometservice.Service, *signer.ThresholdValidator, error)

Types

type AddressCmdOutput

type AddressCmdOutput struct {
	HexAddress        string
	PubKey            string
	ValConsAddress    string
	ValConsPubAddress string
}

type FilePVLastSignState

type FilePVLastSignState struct {
	Height int64 `json:"height"`
	Round  int32 `json:"round"`
	Step   int8  `json:"step"`
}

Snippet Taken from https://raw.githubusercontent.com/cometbft/cometbft/main/privval/file.go FilePVLastSignState stores the mutable part of PrivValidator.

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"`
	CometBFTVersion  string `json:"cometbft_version" yaml:"cometbft_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