cmd

package
v0.0.0-...-a749886 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 54 Imported by: 0

Documentation

Overview

Sourced from https://github.com/dubito-labs/tm-db/blob/main/cmd/ethermintd/genaccounts.go

Index

Constants

View Source
const EnvPrefix = "COGITO"

EnvPrefix is the prefix environment variables must have to configure the app.

Variables

This section is empty.

Functions

func AddGenesisAccountCmd

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates a new root command for the cogito blockchain.

func NodeInfoRequestHandlerFn

func NodeInfoRequestHandlerFn(clientCtx client.Context) http.HandlerFunc

REST handler for node info

func NodeSyncingRequestHandlerFn

func NodeSyncingRequestHandlerFn(clientCtx client.Context) http.HandlerFunc

REST handler for node syncing

func StatusCommand

func StatusCommand() *cobra.Command

StatusCommand returns the command to return the status of the network.

Types

type NodeInfoResponse

type NodeInfoResponse struct {
	p2p.DefaultNodeInfo `json:"node_info"`

	ApplicationVersion version.Info `json:"application_version"`
}

NodeInfoResponse defines a response type that contains node status and version information.

type SyncingResponse

type SyncingResponse struct {
	Syncing bool `json:"syncing"`
}

SyncingResponse defines a response type that contains node syncing information.

Jump to

Keyboard shortcuts

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