wasm

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CosmosQuery

type CosmosQuery struct {
	ExchangeRates ExchangeRateQueryParams `json:"exchange_rates"`
}

CosmosQuery custom query interface for oracle querier

type ExchangeRateQueryParams

type ExchangeRateQueryParams struct {
	BaseDenom   string   `json:"base_denom"`
	QuoteDenoms []string `json:"quote_denoms"`
}

ExchangeRateQueryParams query request params for exchange rates

type ExchangeRatesQueryResponse

type ExchangeRatesQueryResponse struct {
	ExchangeRates []exchangeRateItem `json:"exchange_rates"`
	BaseDenom     string             `json:"base_denom"`
}

ExchangeRatesQueryResponse - exchange rates query response for wasm module

type WasmQuerier

type WasmQuerier struct {
	// contains filtered or unexported fields
}

WasmQuerier - staking query interface for wasm contract

func NewWasmQuerier

func NewWasmQuerier(keeper keeper.Keeper) WasmQuerier

NewWasmQuerier return bank wasm query interface

func (WasmQuerier) Query

Query - implement query function

func (WasmQuerier) QueryCustom

func (querier WasmQuerier) QueryCustom(ctx sdk.Context, data json.RawMessage) ([]byte, error)

QueryCustom implements custom query interface

Jump to

Keyboard shortcuts

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