Skip to content

Commit

Permalink
add missing stargate query support
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Oct 14, 2024
1 parent 8414620 commit 17b9365
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,18 @@ func NewAppKeeper(
Request: &stakingtypes.QueryRedelegationsRequest{},
Response: &stakingtypes.QueryRedelegationsResponse{},
}
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,
Expand Down

0 comments on commit 17b9365

Please sign in to comment.