rest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 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"`

	From        hmTypes.HeimdallAddress `json:"proposer"`
	HeaderBlock uint64                  `json:"header_block"`
	StartBlock  uint64                  `json:"start_block"`
	EndBlock    uint64                  `json:"end_block"`
	Proposer    hmTypes.HeimdallAddress `json:"proposer"`
	RootHash    hmTypes.HeimdallHash    `json:"root_Hash"`
	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:"root_Hash"`
	AccountRootHash hmTypes.HeimdallHash    `json:"account_root_hash"`
	StartBlock      uint64                  `json:"start_block"`
	EndBlock        uint64                  `json:"end_block"`
	BorChainID      string                  `json:"bor_chain_id"`
}

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