Documentation ¶
Overview ¶
nolint
nolint
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RestLogger tmLog.Logger
RestLogger for slashing module logger
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes registers slashing-related REST handlers to a router
func SlashingTxStatusHandlerFn ¶
func SlashingTxStatusHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
swagger:route GET /slashing/isoldtx slashing slashingIsOldTx It returns whether the transaction is old responses:
200: slashingIsOldTxResponse
Returns slashing tx status information
Types ¶
type Height ¶ added in v0.3.2
type Height struct { //Block Height //in:query Height string `json:"height"` }
type ID ¶ added in v0.3.2
type ID struct { //ID of the validator //required:true //in:path Id int64 `json:"id"` }
type TickAckReq ¶
type UnjailReq ¶
type UnjailReq struct { BaseReq rest.BaseReq `json:"base_req"` ID uint64 `json:"ID"` TxHash string `json:"tx_hash"` LogIndex uint64 `json:"log_index"` BlockNumber uint64 `json:"block_number" yaml:"block_number"` }
Unjail TX body
type ValidatorSlashingInfo ¶ added in v0.3.2
Click to show internal directories.
Click to hide internal directories.