Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove proto getters #1125

Merged
merged 2 commits into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
- [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
- [1125](https://github.com/umee-network/umee/pull/1125) Refactor: remove proto getters in x/leverage and x/oracle proto types.

### Features

Expand Down
6 changes: 4 additions & 2 deletions proto/umee/leverage/v1/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
syntax = "proto3";
package umee.leverage.v1;

option go_package = "github.com/umee-network/umee/v2/x/leverage/types";

import "cosmos/base/v1beta1/coin.proto";
import "umee/leverage/v1/leverage.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/umee-network/umee/v2/x/leverage/types";

option (gogoproto.goproto_getters_all) = false;

// GenesisState defines the x/leverage module's genesis state.
message GenesisState {
Params params = 1 [(gogoproto.nullable) = false];
Expand Down
2 changes: 2 additions & 0 deletions proto/umee/leverage/v1/gov.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import "umee/leverage/v1/leverage.proto";

option go_package = "github.com/umee-network/umee/v2/x/leverage/types";

option (gogoproto.goproto_getters_all) = false;

// UpdateRegistryProposal defines a governance proposal type where the token
// registry can be updated in the Umee capital facility. Note, the registry
// defined in the proposal replaces the current registry in its entirety.
Expand Down
2 changes: 2 additions & 0 deletions proto/umee/leverage/v1/leverage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import "gogoproto/gogo.proto";

option go_package = "github.com/umee-network/umee/v2/x/leverage/types";

option (gogoproto.goproto_getters_all) = false;

// Params defines the parameters for the leverage module.
message Params {
option (gogoproto.goproto_stringer) = false;
Expand Down
4 changes: 3 additions & 1 deletion proto/umee/leverage/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import "cosmos/base/v1beta1/coin.proto";

option go_package = "github.com/umee-network/umee/v2/x/leverage/types";

option (gogoproto.goproto_getters_all) = false;

// Query defines the gRPC querier service.
service Query {
// RegisteredTokens queries for all the registered tokens.
Expand Down Expand Up @@ -489,4 +491,4 @@ message QueryTotalBorrowedResponse {
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false
];
}
}
2 changes: 2 additions & 0 deletions proto/umee/leverage/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import "gogoproto/gogo.proto";

option go_package = "github.com/umee-network/umee/v2/x/leverage/types";

option (gogoproto.goproto_getters_all) = false;

// Msg defines the x/leverage module's Msg service.
service Msg {
// Supply moves tokens from user balance to the module for lending or collateral.
Expand Down
2 changes: 2 additions & 0 deletions proto/umee/oracle/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import "umee/oracle/v1/oracle.proto";

option go_package = "github.com/umee-network/umee/v2/x/oracle/types";

option (gogoproto.goproto_getters_all) = false;

// GenesisState defines the oracle module's genesis state.
message GenesisState {
Params params = 1 [(gogoproto.nullable) = false];
Expand Down
2 changes: 2 additions & 0 deletions proto/umee/oracle/v1/oracle.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import "gogoproto/gogo.proto";

option go_package = "github.com/umee-network/umee/v2/x/oracle/types";

option (gogoproto.goproto_getters_all) = false;

// Params defines the parameters for the oracle module.
message Params {
option (gogoproto.equal) = true;
Expand Down
2 changes: 2 additions & 0 deletions proto/umee/oracle/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import "cosmos/base/v1beta1/coin.proto";

option go_package = "github.com/umee-network/umee/v2/x/oracle/types";

option (gogoproto.goproto_getters_all) = false;

// Query defines the gRPC querier service.
service Query {
// ExchangeRates returns exchange rates of all denoms,
Expand Down
2 changes: 2 additions & 0 deletions proto/umee/oracle/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import "gogoproto/gogo.proto";

option go_package = "github.com/umee-network/umee/v2/x/oracle/types";

option (gogoproto.goproto_getters_all) = false;

// Msg defines the oracle Msg service.
service Msg {
// AggregateExchangeRatePrevote defines a method for submitting an aggregate
Expand Down
190 changes: 39 additions & 151 deletions x/leverage/types/genesis.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions x/leverage/types/gov.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading