rest

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

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

Returns slashing tx status information

Types

type TickAckReq

type TickAckReq struct {
	BaseReq     rest.BaseReq `json:"base_req"`
	ID          uint64       `json:"ID"`
	Amount      uint64       `json:"amount"`
	TxHash      string       `json:"tx_hash"`
	LogIndex    uint64       `json:"log_index"`
	BlockNumber uint64       `json:"block_number" yaml:"block_number"`
}

type TickReq

type TickReq struct {
	BaseReq           rest.BaseReq `json:"base_req"`
	ID                uint64       `json:"ID"`
	Proposer          string       `json:"proposer"`
	SlashingInfoBytes string       `json:"slashing_info_bytes"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL