rest

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NozPriceHandlerFn added in v0.9.0

func NozPriceHandlerFn(clientCtx client.Context) http.HandlerFunc

NozPriceHandlerFn HTTP request handler to query ongoing noz price

func NozSupplyHandlerFn added in v0.9.0

func NozSupplyHandlerFn(clientCtx client.Context) http.HandlerFunc

NozSupplyHandlerFn HTTP request handler to query noz supply details

func RegisterHandlers added in v0.8.0

func RegisterHandlers(clientCtx client.Context, rtr *mux.Router)

RegisterHandlers registers register-related REST handlers to a router

func SimulatePrepayHandlerFn added in v0.4.0

func SimulatePrepayHandlerFn(clientCtx client.Context) http.HandlerFunc

SimulatePrepayHandlerFn HTTP request handler to query the simulated purchased amt of prepay

Types

type FileUploadReq

type FileUploadReq struct {
	BaseReq  sdktrest.BaseReq `json:"base_req" yaml:"base_req"`
	Reporter string           `json:"reporter" yaml:"reporter"`
	FileHash string           `json:"file_hash" yaml:"file_hash"`
	Uploader string           `json:"uploader" yaml:"uploader"`
}

FileUploadReq defines the properties of a file upload request's body.

type PrepayReq added in v0.4.0

type PrepayReq struct {
	BaseReq     sdktrest.BaseReq `json:"base_req" yaml:"base_req"`
	Beneficiary string           `json:"beneficiary" yaml:"beneficiary"`
	Amount      sdk.Coins        `json:"amount" yaml:"amount"`
}

PrepayReq defines the properties of a prepay request's body.

Jump to

Keyboard shortcuts

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