Documentation ¶
Index ¶
- Variables
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
- func TopupHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func TopupTxStatusHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func VerifyAccountProofHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func WithdrawFeeHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- type TopupReq
- type WithdrawFeeReq
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 TopupHandlerFn ¶
func TopupHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
TopupHandlerFn - http request handler to topup coins to a address.
func TopupTxStatusHandlerFn ¶ added in v0.1.5
func TopupTxStatusHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
Returns topup tx status information
func VerifyAccountProofHandlerFn ¶ added in v0.1.7
func VerifyAccountProofHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
VerifyAccountProofHandlerFn - Returns true if given Merkle path for dividendAccountID is valid
func WithdrawFeeHandlerFn ¶
func WithdrawFeeHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
WithdrawFeeHandlerFn - http request handler to withdraw fee coins from a address.
Types ¶
type TopupReq ¶
type TopupReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` TxHash string `json:"tx_hash" yaml:"tx_hash"` LogIndex uint64 `json:"log_index" yaml:"log_index"` User string `json:"user" yaml:"user"` Fee string `json:"fee" yaml:"fee"` BlockNumber uint64 `json:"block_number" yaml:"block_number"` }
TopupReq defines the properties of a topup request's body.
type WithdrawFeeReq ¶
type WithdrawFeeReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Amount string `json:"amount" yaml:"amount"` }
WithdrawFeeReq defines the properties of a withdraw fee request's body.
Click to show internal directories.
Click to hide internal directories.