Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove marketmap and oracle prices bindings #803

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading