rest

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RestLogger tmLog.Logger

RestLogger for staking module logger

Functions

func DepositTxStatusHandlerFn added in v0.1.5

func DepositTxStatusHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

Returns deposit tx status information

func RegisterRoutes

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

RegisterRoutes registers checkpoint-related REST handlers to a router

Types

type AddRecordReq

type AddRecordReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	TxHash     types.HeimdallHash `json:"tx_hash"`
	LogIndex   uint64             `json:"log_index"`
	ID         uint64             `json:"id"`
	BorChainID string             `json:"bor_chain_id"`
}

AddRecordReq add validator request object

Jump to

Keyboard shortcuts

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