Versions in this module Expand all Collapse all v0 v0.0.4 Nov 25, 2021 v0.0.3 Nov 25, 2021 v0.0.2 Nov 25, 2021 v0.0.1 Nov 24, 2021 Changes in this version + const DefaultLimit + const DefaultPage + const TxMaxHeightKey + const TxMinHeightKey + func ParseFloat64OrReturnBadRequest(w http.ResponseWriter, s string, defaultIfEmpty float64) (n float64, ok bool) + func ParseHTTPArgs(r *http.Request) (tags []string, page, limit int, err error) + func ParseHTTPArgsWithLimit(r *http.Request, defaultLimit int) (tags []string, page, limit int, err error) + func ParseInt64OrReturnBadRequest(w http.ResponseWriter, s string) (n int64, ok bool) + func ParseQueryHeightOrReturnBadRequest(w http.ResponseWriter, cliCtx context.CLIContext, r *http.Request) (context.CLIContext, bool) + func ParseUint64OrReturnBadRequest(w http.ResponseWriter, s string) (n uint64, ok bool) + func PostProcessResponse(w http.ResponseWriter, cliCtx context.CLIContext, resp interface{}) + func PostProcessResponseBare(w http.ResponseWriter, cliCtx context.CLIContext, body interface{}) + func ReadRESTReq(w http.ResponseWriter, r *http.Request, cdc *codec.Codec, req interface{}) bool + func WriteErrorResponse(w http.ResponseWriter, status int, err string) + func WriteSimulationResponse(w http.ResponseWriter, cdc *codec.Codec, gas uint64) + type BaseReq struct + AccountNumber uint64 + ChainID string + Fees sdk.Coins + From string + Gas string + GasAdjustment string + GasPrices sdk.DecCoins + Memo string + Sequence uint64 + Simulate bool + func NewBaseReq(from, memo, chainID string, gas, gasAdjustment string, accNumber, seq uint64, ...) BaseReq + func (br BaseReq) Sanitize() BaseReq + func (br BaseReq) ValidateBasic(w http.ResponseWriter) bool + type ErrorResponse struct + Code int + Error string + func NewErrorResponse(code int, err string) ErrorResponse + type GasEstimateResponse struct + GasEstimate uint64 + type ResponseWithHeight struct + Height int64 + Result json.RawMessage + func NewResponseWithHeight(height int64, result json.RawMessage) ResponseWithHeight