From ec9ac06d0d9c7455a0a855a4a3d76d76ddbf0049 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Tue, 14 Jan 2025 04:28:14 +0200 Subject: [PATCH] remove marketmap and oracle prices bindings --- wasmbinding/bindings/query.go | 2 -- wasmbinding/queries.go | 4 ---- 2 files changed, 6 deletions(-) diff --git a/wasmbinding/bindings/query.go b/wasmbinding/bindings/query.go index 884f0d273..93f19bc93 100644 --- a/wasmbinding/bindings/query.go +++ b/wasmbinding/bindings/query.go @@ -63,11 +63,9 @@ type QueryRegisteredQueryResultRequest struct { type OracleQuery struct { GetAllCurrencyPairs *oracletypes.GetAllCurrencyPairsRequest `json:"get_all_currency_pairs,omitempty"` GetPrice *oracletypes.GetPriceRequest `json:"get_price,omitempty"` - GetPrices *oracletypes.GetPricesRequest `json:"get_prices,omitempty"` } type MarketMapQuery struct { - MarketMap *marketmaptypes.MarketMapRequest `json:"market_map,omitempty"` LastUpdated *marketmaptypes.LastUpdatedRequest `json:"last_updated,omitempty"` Params *marketmaptypes.ParamsRequest `json:"params,omitempty"` Market *marketmaptypes.MarketRequest `json:"market,omitempty"` diff --git a/wasmbinding/queries.go b/wasmbinding/queries.go index 9dcee9b2e..3fcec1985 100644 --- a/wasmbinding/queries.go +++ b/wasmbinding/queries.go @@ -216,8 +216,6 @@ func (qp *QueryPlugin) OracleQuery(ctx sdk.Context, query bindings.OracleQuery) return processResponse(oracleQueryServer.GetAllCurrencyPairs(ctx, query.GetAllCurrencyPairs)) case query.GetPrice != nil: return processResponse(oracleQueryServer.GetPrice(ctx, query.GetPrice)) - case query.GetPrices != nil: - return processResponse(oracleQueryServer.GetPrices(ctx, query.GetPrices)) default: return nil, wasmvmtypes.UnsupportedRequest{Kind: "unknown neutron.oracle query type"} } @@ -231,8 +229,6 @@ func (qp *QueryPlugin) MarketMapQuery(ctx sdk.Context, query bindings.MarketMapQ return processResponse(marketMapQueryServer.Params(ctx, query.Params)) case query.LastUpdated != nil: return processResponse(marketMapQueryServer.LastUpdated(ctx, query.LastUpdated)) - case query.MarketMap != nil: - return processResponse(marketMapQueryServer.MarketMap(ctx, query.MarketMap)) case query.Market != nil: return processResponse(marketMapQueryServer.Market(ctx, query.Market)) default: