Documentation
¶
Index ¶
- type QueryPlugin
- func (qp *QueryPlugin) HandleExchangeRate(ctx sdk.Context, query oraclebindingtypes.ExchangeRateQuery) (*oracletypes.QueryExchangeRateResponse, error)
- func (qp *QueryPlugin) HandleExchangeRates(ctx sdk.Context) (*oracletypes.QueryExchangeRatesResponse, error)
- func (qp *QueryPlugin) HandleOracleQuery(ctx sdk.Context, oracleQuery oraclebindingtypes.Query) ([]byte, error)
- func (qp *QueryPlugin) HandleTwaps(ctx sdk.Context, query oraclebindingtypes.TwapsQuery) (*oracletypes.QueryTwapsResponse, error)
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 ¶
func (qp *QueryPlugin) HandleExchangeRate(ctx sdk.Context, query oraclebindingtypes.ExchangeRateQuery) (*oracletypes.QueryExchangeRateResponse, error)
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 ¶
func (qp *QueryPlugin) HandleTwaps(ctx sdk.Context, query oraclebindingtypes.TwapsQuery) (*oracletypes.QueryTwapsResponse, error)
HandleTwaps handles the twaps query
Click to show internal directories.
Click to hide internal directories.