cosmos-sdk: github.com/cosmos/cosmos-sdk/client Index | Files | Directories

package client

import "github.com/cosmos/cosmos-sdk/client"

Index

Package Files

cmd.go config.go routes.go utils.go

func ConfigCmd Uses

func ConfigCmd(defaultCLIHome string) *cobra.Command

ConfigCmd returns a CLI command to interactively create an application CLI config file.

func Paginate Uses

func Paginate(numObjs, page, limit, defLimit int) (start, end int)

Paginate returns the correct starting and ending index for a paginated query, given that client provides a desired page and limit of objects and the handler provides the total number of objects. If the start page is invalid, non-positive values are returned signaling the request is invalid.

NOTE: The start page is assumed to be 1-indexed.

func RegisterRoutes Uses

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)

Register routes

func ValidateCmd Uses

func ValidateCmd(cmd *cobra.Command, args []string) error

ValidateCmd returns unknown command error or Help display if help flag set

Directories

PathSynopsis
context
debug
flags
input
keys
lcd
lcd/statikPackage statik contains static assets.
rpc

Package client imports 14 packages (graph) and is imported by 169 packages. Updated 2020-01-18. Refresh now. Tools for package owners.