rest

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RestLogger tmLog.Logger

RestLogger for staking module logger

Functions

func RegisterRoutes

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

RegisterRoutes registers staking-related REST handlers to a router

Types

type HeaderACKReq

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

	Proposer    hmTypes.HeimdallAddress `json:"proposer"`
	HeaderBlock uint64                  `json:"headerBlock"`
	TxHash      hmTypes.HeimdallHash    `json:"tx_hash"`
	LogIndex    uint64                  `json:"log_index"`
}

HeaderACKReq struct for sending ACK for a new headers by providing the header index assigned my mainchain contract

type HeaderBlockReq

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

	Proposer        hmTypes.HeimdallAddress `json:"proposer"`
	RootHash        hmTypes.HeimdallHash    `json:"rootHash"`
	AccountRootHash hmTypes.HeimdallHash    `json:"accountRootHash"`
	StartBlock      uint64                  `json:"startBlock"`
	EndBlock        uint64                  `json:"endBlock"`
}

HeaderBlockReq struct for incoming checkpoint

type HeaderBlockResult

type HeaderBlockResult struct {
	Proposer   hmTypes.HeimdallAddress `json:"proposer"`
	RootHash   common.Hash             `json:"rootHash"`
	StartBlock uint64                  `json:"startBlock"`
	EndBlock   uint64                  `json:"endBlock"`
}

HeaderBlockResult represents header block result

type HeaderNoACKReq

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

	Proposer hmTypes.HeimdallAddress `json:"proposer"`
}

HeaderNoACKReq struct for sending no-ack for a new headers

Jump to

Keyboard shortcuts

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