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 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
Click to show internal directories.
Click to hide internal directories.