Skip to content

Commit

Permalink
feat(proto): add messagename_all option to all messages (#2474)
Browse files Browse the repository at this point in the history
* feat(proto): add messagename_all option to all messages

* changelog

* lint
  • Loading branch information
robert-zaremba authored Mar 26, 2024
1 parent 41a826e commit 684344e
Show file tree
Hide file tree
Showing 13 changed files with 342 additions and 190 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

### Features

### Improvements

- [2474](https://github.com/umee-network/umee/pull/2464) (proto) add `gogo.messagename_all` option to all messages.

### Bug Fixes

- [2473](https://github.com/umee-network/umee/pull/2462) Correct x/ugov Amino registration for x/ugov messages (they don't have MessageName option).
Expand Down
1 change: 1 addition & 0 deletions proto/umee/auction/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import "umee/auction/v1/auction.proto";

option go_package = "github.com/umee-network/umee/v6/x/auction";
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.messagename_all) = true;

// Msg defines the x/auction module's Msg service.
service Msg {
Expand Down
3 changes: 2 additions & 1 deletion proto/umee/incentive/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import "cosmos/msg/v1/msg.proto";
import "gogoproto/gogo.proto";
import "umee/incentive/v1/incentive.proto";

option go_package = "github.com/umee-network/umee/v6/x/incentive";
option go_package = "github.com/umee-network/umee/v6/x/incentive";
option (gogoproto.messagename_all) = true;

// Msg defines the x/incentive module's Msg service.
service Msg {
Expand Down
3 changes: 1 addition & 2 deletions proto/umee/leverage/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
import "umee/leverage/v1/leverage.proto";

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

option go_package = "github.com/umee-network/umee/v6/x/leverage/types";
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.messagename_all) = true;

Expand Down
1 change: 1 addition & 0 deletions proto/umee/metoken/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import "umee/metoken/v1/metoken.proto";

option go_package = "github.com/umee-network/umee/v6/x/metoken";
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.messagename_all) = true;

// Msg defines the x/metoken module's Msg service.
service Msg {
Expand Down
4 changes: 2 additions & 2 deletions proto/umee/oracle/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package umee.oracle.v1;

import "gogoproto/gogo.proto";

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

option go_package = "github.com/umee-network/umee/v6/x/oracle/types";
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.messagename_all) = true;

// Msg defines the oracle Msg service.
service Msg {
Expand Down
4 changes: 2 additions & 2 deletions proto/umee/ugov/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
import "umee/ugov/v1/ugov.proto";

option go_package = "github.com/umee-network/umee/v6/x/ugov";

option go_package = "github.com/umee-network/umee/v6/x/ugov";
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.messagename_all) = true;

// Msg defines the x/ugov module's Msg service.
service Msg {
Expand Down
3 changes: 1 addition & 2 deletions proto/umee/uibc/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
import "umee/uibc/v1/quota.proto";

option go_package = "github.com/umee-network/umee/v6/x/uibc";

option go_package = "github.com/umee-network/umee/v6/x/uibc";
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.messagename_all) = true;

Expand Down
71 changes: 43 additions & 28 deletions x/auction/tx.pb.go

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

Loading

0 comments on commit 684344e

Please sign in to comment.