Versions in this module Expand all Collapse all v0 v0.0.5 Jul 24, 2021 v0.0.4 Jul 4, 2021 v0.0.3 Jul 3, 2021 v0.0.2 Jul 3, 2021 v0.0.1 Jul 3, 2021 Changes in this version + const DefaultLimit + const DefaultPage + var ParseFloat64OrReturnBadRequest = rest.ParseFloat64OrReturnBadRequest + var ParseInt64OrReturnBadRequest = rest.ParseInt64OrReturnBadRequest + var ParseQueryHeightOrReturnBadRequest = rest.ParseQueryHeightOrReturnBadRequest + var ParseUint64OrReturnBadRequest = rest.ParseUint64OrReturnBadRequest + 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 PostProcessResponse(w http.ResponseWriter, cliCtx context.CLIContext, resp interface{}) + func ReadRESTReq(w http.ResponseWriter, r *http.Request, cdc *codec.Codec, req interface{}) bool + func ReturnNotFoundIfNoContent(w http.ResponseWriter, data []byte, message string) 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 CommitTxProof struct + Proof string + Sigs string + Tx string + Vote string + 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 + type SideTxProof struct + Data string + Sigs [][3]*big.Int + Tx string