rest

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

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 checkpoint-related REST handlers to a router

func VerifyAccountProofHandlerFn

func VerifyAccountProofHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

VerifyAccountProofHandlerFn - Returns true if given Merkle path for dividendAccountID is valid

Types

type AddValidatorReq

type AddValidatorReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	ID           uint64         `json:"ID"`
	SignerPubKey hmTypes.PubKey `json:"pubKey"`
	TxHash       string         `json:"tx_hash"`
	LogIndex     uint64         `json:"log_index"`
}

AddValidatorReq add validator request object

type RemoveValidatorReq

type RemoveValidatorReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	ID       uint64 `json:"ID"`
	TxHash   string `json:"tx_hash"`
	LogIndex uint64 `json:"log_index"`
}

RemoveValidatorReq remove validator request object

type UpdateSignerReq

type UpdateSignerReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	ID              uint64         `json:"ID"`
	NewSignerPubKey hmTypes.PubKey `json:"pubKey"`
	TxHash          string         `json:"tx_hash"`
	LogIndex        uint64         `json:"log_index"`
}

UpdateSignerReq update validator signer request object

type UpdateValidatorStakeReq

type UpdateValidatorStakeReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	ID       uint64 `json:"ID"`
	TxHash   string `json:"tx_hash"`
	LogIndex uint64 `json:"log_index"`
}

UpdateValidatorStakeReq update validator stake request object

Jump to

Keyboard shortcuts

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