Skip to content

Commit

Permalink
add missing stargate query support (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 authored Oct 16, 2024
1 parent 8414620 commit d7baefc
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 d7baefc

Please sign in to comment.