types

package
v1.2.7-0...-4cd777e Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryBadRequest

func QueryBadRequest(cdc *codec.Codec, result interface{}) ([]byte, error)

QueryBadRequest creates and marshals a QueryResult instance with HTTP status BadRequest.

func QueryNotFound

func QueryNotFound(cdc *codec.Codec, result interface{}) ([]byte, error)

QueryNotFound creates and marshals a QueryResult instance with HTTP status NotFound.

func QueryOK

func QueryOK(cdc *codec.Codec, result interface{}) ([]byte, error)

QueryOK creates and marshals a QueryResult instance with HTTP status OK.

Types

type Denom

type Denom string

func ParseDenom

func ParseDenom(rawDenom string) (Denom, error)

func (Denom) Base

func (d Denom) Base() string

func (Denom) Equal

func (d Denom) Equal(other Denom) bool

func (Denom) IsEmpty

func (d Denom) IsEmpty() bool

func (Denom) String

func (d Denom) String() string

type QueryResult

type QueryResult struct {
	Status int             `json:"status"`
	Result json.RawMessage `json:"result"`
}

QueryResult wraps querier result with HTTP status to return to application.

Jump to

Keyboard shortcuts

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