Documentation
¶
Overview ¶
Package classification HiemdallRest API
Schemes: http
BasePath: /
Version: 0.0.1
title: Iris 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 zena module logger
View Source
var SPAN_OVERRIDES = map[string][]byte{
"iris-137": mainnetSpanJSON,
}
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes registers zena-related REST handlers to a router
Types ¶
type ProposeSpanReq ¶
type ProposeSpanReq struct {
BaseReq rest.BaseReq `json:"base_req"`
ID uint64 `json:"span_id"`
StartBlock uint64 `json:"start_block"`
ZenaChainID string `json:"zena_chain_id"`
}
ProposeSpanReq struct for proposing new span
type ResponseWithHeight ¶
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 zena
Click to show internal directories.
Click to hide internal directories.