Documentation
¶
Overview ¶
nolint
nolint
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.IrisAddress `json:"from"`
HeaderBlock uint64 `json:"header_block"`
StartBlock uint64 `json:"start_block"`
EndBlock uint64 `json:"end_block"`
Proposer hmTypes.IrisAddress `json:"proposer"`
RootHash hmTypes.IrisHash `json:"root_Hash"`
TxHash hmTypes.IrisHash `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.IrisAddress `json:"proposer"`
RootHash hmTypes.IrisHash `json:"root_Hash"`
AccountRootHash hmTypes.IrisHash `json:"account_root_hash"`
StartBlock uint64 `json:"start_block"`
EndBlock uint64 `json:"end_block"`
ZenaChainID string `json:"zena_chain_id"`
}
HeaderBlockReq struct for incoming checkpoint
type HeaderBlockResult ¶
type HeaderBlockResult struct {
Proposer hmTypes.IrisAddress `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.IrisAddress `json:"proposer"`
}
HeaderNoACKReq struct for sending no-ack for a new headers
Click to show internal directories.
Click to hide internal directories.