Skip to content

Commit

Permalink
Merge pull request #803 from neutron-org/chore/stargate
Browse files Browse the repository at this point in the history
Remove marketmap and oracle prices bindings
  • Loading branch information
zavgorodnii authored Jan 14, 2025
2 parents edba317 + ec9ac06 commit c0d07d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions wasmbinding/bindings/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 0 additions & 4 deletions wasmbinding/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
}
Expand All @@ -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:
Expand Down

0 comments on commit c0d07d7

Please sign in to comment.