oracle

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 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 QueryPlugin

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

QueryPlugin is the query plugin object for the oracle queries

func NewQueryPlugin

func NewQueryPlugin(oracleKeeper oraclekeeper.Keeper) *QueryPlugin

NewQueryPlugin returns a new query plugin

func (*QueryPlugin) HandleExchangeRate

HandleExchangeRate handles the exchange rate query

func (*QueryPlugin) HandleExchangeRates

func (qp *QueryPlugin) HandleExchangeRates(ctx sdk.Context) (*oracletypes.QueryExchangeRatesResponse, error)

HandleExchangeRates handles the exchange rates query

func (*QueryPlugin) HandleOracleQuery

func (qp *QueryPlugin) HandleOracleQuery(ctx sdk.Context, oracleQuery oraclebindingtypes.Query) ([]byte, error)

HandleOracleQuery is a custom querier for the oracle module

func (*QueryPlugin) HandleTwaps

HandleTwaps handles the twaps query

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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