Skip to content

Commit

Permalink
chore: update json tag APY to apy (#1126)
Browse files Browse the repository at this point in the history
* chore: update APY to apy

* specified json tag

* add #1126 to changeloh
  • Loading branch information
RafilxTenfen authored Jul 12, 2022
1 parent 3a77adf commit 2015720
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 111 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ Ref: https://keepachangelog.com/en/1.0.0/
- [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.
- [1122](https://github.com/umee-network/umee/pull/1122) Rename MsgWithdrawAsset, MsgBorrowAsset, MsgRepayAsset, MsgAddCollateral, and MsgRemoveCollateral to MsgWithdraw, MsgBorrow, MsgRepay, MsgCollateralize, MsgDecollateralize.
- [1123](https://github.com/umee-network/umee/pull/1123) Shorten all leverage and oracle query structs by removing the Request suffix
- [1123](https://github.com/umee-network/umee/pull/1123) Shorten all leverage and oracle query structs by removing the Request suffix.
- [1125](https://github.com/umee-network/umee/pull/1125) Refactor: remove proto getters in x/leverage and x/oracle proto types.
- [1126](https://github.com/umee-network/umee/pull/1126) Update proto json tag from `APY` to `apy`.

### Features

Expand Down
6 changes: 4 additions & 2 deletions proto/umee/leverage/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ message QueryBorrowAPY {
message QueryBorrowAPYResponse {
string APY = 1 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
(gogoproto.nullable) = false,
(gogoproto.jsontag) = "apy"
];
}

Expand All @@ -198,7 +199,8 @@ message QuerySupplyAPY {
message QuerySupplyAPYResponse {
string APY = 1 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
(gogoproto.nullable) = false,
(gogoproto.jsontag) = "apy"
];
}

Expand Down
Loading

0 comments on commit 2015720

Please sign in to comment.