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 StakingTxStatusHandlerFn ¶ added in v0.1.5
func StakingTxStatusHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
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 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 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.