Documentation
¶
Overview ¶
Package classification HiemdallRest API
Schemes: http
BasePath: /
Version: 0.0.1
title: Heimdall APIs
Consumes:
- application/json
Host:localhost:1317
- application/json
nolint
nolint
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RestLogger tmLog.Logger
RestLogger for bor module logger
View Source
var SPAN_OVERRIDES = map[string][]byte{
"heimdall-137": mainnetSpanJSON,
}
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes registers bor-related REST handlers to a router
Types ¶
type Height ¶ added in v0.3.2
type Height struct {
//Block Height
//in:query
Height string `json:"height"`
}
type HeimdallSpanResultWithHeight ¶ added in v0.2.7
type ProposeSpanReq ¶
type ProposeSpanReq struct {
BaseReq rest.BaseReq `json:"base_req"`
ID uint64 `json:"span_id"`
StartBlock uint64 `json:"start_block"`
BorChainID string `json:"bor_chain_id"`
}
ProposeSpanReq struct for proposing new span
type ResponseWithHeight ¶ added in v1.0.1
type ResponseWithHeight struct {
Height string `json:"height"`
Result jsoniter.RawMessage `json:"result"`
}
ResponseWithHeight defines a response object type that wraps an original response with a height. TODO:Link it with bor
type SendReqInput ¶ added in v0.3.2
Click to show internal directories.
Click to hide internal directories.