Skip to content

Commit

Permalink
chore!: remove request suffix from leverage and oracle queries (#1123)
Browse files Browse the repository at this point in the history
* remove request suffix from leverage queries

* changelog

* add oracle queries
  • Loading branch information
toteki authored Jul 11, 2022
1 parent 218ffba commit c1a31c0
Show file tree
Hide file tree
Showing 14 changed files with 1,254 additions and 1,256 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
- [1023](https://github.com/umee-network/umee/pull/1023) Restrict MsgWithdraw to only uToken input (no base token auto-convert)
- [1106](https://github.com/umee-network/umee/pull/1106) Rename Lend to Supply, including MsgLendAsset, Token EnableLend, docs, and internal functions. Also QueryLoaned similar queries to QuerySupplied.
- [1113](https://github.com/umee-network/umee/pull/1113) Rename Amount field to Asset when sdk.Coin type in Msg proto.
- [1123](https://github.com/umee-network/umee/pull/1123) Shorten all leverage and oracle query structs by removing the Request suffix

### Features

Expand Down
2 changes: 1 addition & 1 deletion price-feeder/oracle/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func (o *Oracle) GetParams() (oracletypes.Params, error) {
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
defer cancel()

queryResponse, err := queryClient.Params(ctx, &oracletypes.QueryParamsRequest{})
queryResponse, err := queryClient.Params(ctx, &oracletypes.QueryParams{})
if err != nil {
return oracletypes.Params{}, fmt.Errorf("failed to get x/oracle params: %w", err)
}
Expand Down
Loading

0 comments on commit c1a31c0

Please # to comment.