wasm

package
v12.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(keeper keeper.Keeper, ctx sdk.Context, q *OracleQuery) (any, error)

QueryCustom implements custom query interface

Types

type ExchangeRateQueryParams

type ExchangeRateQueryParams struct {
	Denom string `json:"denom"`
}

ExchangeRateQueryParams query request params for exchange rates

type ExchangeRateQueryResponse

type ExchangeRateQueryResponse struct {
	Rate string `json:"rate"`
}

ExchangeRateQueryResponse - exchange rates query response item

type OracleQuery

type OracleQuery struct {
	ExchangeRate *ExchangeRateQueryParams `json:"exchange_rate,omitempty"`
}

OracleQuery custom query interface for oracle querier

Jump to

Keyboard shortcuts

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