rest

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

nolint

nolint

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 StakingTxStatusHandlerFn added in v0.1.5

func StakingTxStatusHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

swagger:route GET /staking/isoldtx staking stakingIsOldTx It returns status of the transaction responses:

200: stakingIsOldTxResponse

Returns staking tx status information

Types

type AddValidatorReq

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

	ID              uint64         `json:"ID"`
	ActivationEpoch uint64         `json:"activationEpoch"`
	Amount          string         `json:"amount"`
	SignerPubKey    hmTypes.PubKey `json:"pubKey"`
	TxHash          string         `json:"tx_hash"`
	LogIndex        uint64         `json:"log_index"`
	BlockNumber     uint64         `json:"block_number" yaml:"block_number"`
	Nonce           uint64         `json:"nonce"`
}

AddValidatorReq add validator request object

type BaseReq added in v0.3.2

type BaseReq struct {

	//Address of the sender
	//required:true
	//in:body
	From string `json:"address"`

	//Chain ID of Heimdall
	//required:true
	//in:body
	ChainID string `json:"chain_id"`
}

type Height added in v0.3.2

type Height struct {

	//Block Height
	//in:query
	Height string `json:"height"`
}

type RemoveValidatorReq

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

	ID                uint64 `json:"ID"`
	DeactivationEpoch uint64 `json:"deactivationEpoch"`
	TxHash            string `json:"tx_hash"`
	LogIndex          uint64 `json:"log_index"`
	BlockNumber       uint64 `json:"block_number" yaml:"block_number"`
	Nonce             uint64 `json:"nonce"`
}

RemoveValidatorReq remove validator request object

type Times added in v0.3.2

type Times struct {

	//time
	//required:true
	//in:path
	Times int64 `json:"times"`
}

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"`
	BlockNumber     uint64         `json:"block_number" yaml:"block_number"`
	Nonce           uint64         `json:"nonce"`
}

UpdateSignerReq update validator signer request object

type UpdateValidatorStakeReq

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

	ID          uint64 `json:"ID"`
	Amount      string `json:"amount"`
	TxHash      string `json:"tx_hash"`
	LogIndex    uint64 `json:"log_index"`
	BlockNumber uint64 `json:"block_number" yaml:"block_number"`
	Nonce       uint64 `json:"nonce"`
}

UpdateValidatorStakeReq update validator stake request object

Jump to

Keyboard shortcuts

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