Skip to content

Commit

Permalink
add missing connect query stargate interface
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Oct 14, 2024
1 parent e324233 commit c3868ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,19 @@ func NewAppKeeper(
queryWhitelist.Custom["chain_id"] = func(ctx context.Context, _ []byte) ([]byte, error) {
return []byte(sdk.UnwrapSDKContext(ctx).ChainID()), nil
}
queryWhitelist.Stargate["/connect.oracle.v2.Query/GetAllCurrencyPairs"] = movetypes.ProtoSet{
Request: &oracletypes.GetAllCurrencyPairsResponse{},
Response: &oracletypes.GetAllCurrencyPairsResponse{},
}
queryWhitelist.Stargate["/connect.oracle.v2.Query/GetPrice"] = movetypes.ProtoSet{
Request: &oracletypes.GetPriceRequest{},
Response: &oracletypes.GetPriceResponse{},
}
queryWhitelist.Stargate["/connect.oracle.v2.Query/GetPrices"] = movetypes.ProtoSet{
Request: &oracletypes.GetPricesRequest{},
Response: &oracletypes.GetPricesResponse{},
}

*appKeepers.MoveKeeper = movekeeper.NewKeeper(
appCodec,
runtime.NewKVStoreService(appKeepers.keys[movetypes.StoreKey]),
Expand Down

0 comments on commit c3868ba

Please sign in to comment.