rest

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: GPL-3.0 Imports: 14 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

func DepositTxStatusHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

DepositTxStatusHandlerFn 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"`
	BlockNumber     uint64             `json:"block_number" yaml:"block_number"`
	ID              uint64             `json:"id"`
	ContractAddress string             `json:"contract_address" yaml:"contract_address"`
	BorChainID      string             `json:"bor_chain_id"`
	Data            string             `json:"data"`
}

AddRecordReq add validator request object

Jump to

Keyboard shortcuts

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