rest

package
v0.0.0-...-8551cdf Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LatestDecodeBlockRequestHandlerFn

func LatestDecodeBlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func QueryDecodeBlockRequestHandlerFn

func QueryDecodeBlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func RegisterBlockRoutes

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

Types

type DecodeBlock

type DecodeBlock struct {
	sdk.Header `json:"header"`
	DecodeData `json:"data"`
	Evidence   sdk.EvidenceData `json:"evidence"`
	LastCommit *sdk.Commit      `json:"last_commit"`
	// contains filtered or unexported fields
}

type DecodeData

type DecodeData struct {
	//Txs []string `json:"txs"`
	Txs []types.StdTx `json:"txs"`
	// contains filtered or unexported fields
}

type DecodeResultBlock

type DecodeResultBlock struct {
	BlockID     sdk.BlockID  `json:"block_id"`
	DecodeBlock *DecodeBlock `json:"block"`
}

Jump to

Keyboard shortcuts

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