rest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: GPL-3.0 Imports: 14 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 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.

Jump to

Keyboard shortcuts

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