Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit fe4bf2c

Browse files
authored
Merge pull request #1044 from persistenceOne/puneet/refactor-proto
refactor: add proto service annotation
2 parents a8106a9 + 3b6559e commit fe4bf2c

File tree

8 files changed

+247
-241
lines changed

8 files changed

+247
-241
lines changed

proto/pstake/liquidstake/v1beta1/tx.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ option go_package = "github.com/persistenceOne/pstake-native/v6/x/liquidstake/ty
1313

1414
// Msg defines the liquid staking Msg service.
1515
service Msg {
16+
option (cosmos.msg.v1.service) = true;
1617
// LiquidStake defines a method for performing a delegation of coins
1718
// from a delegator to whitelisted validators.
1819
rpc LiquidStake(MsgLiquidStake) returns (MsgLiquidStakeResponse);

proto/pstake/liquidstakeibc/v1beta1/msgs.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ option go_package = "github.com/persistenceOne/pstake-native/v6/x/liquidstakeibc
1515

1616
// Msg defines the liquidstakeibc services.
1717
service Msg {
18+
option (cosmos.msg.v1.service) = true;
19+
1820
rpc RegisterHostChain(MsgRegisterHostChain)
1921
returns (MsgRegisterHostChainResponse);
2022
rpc UpdateHostChain(MsgUpdateHostChain) returns (MsgUpdateHostChainResponse);

proto/pstake/lscosmos/v1beta1/msgs.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ option go_package = "github.com/persistenceOne/pstake-native/v6/x/lscosmos/types
1414
// Msg defines the lsCosmos services.
1515
service Msg {
1616
option deprecated = true;
17+
option (cosmos.msg.v1.service) = true;
1718

1819
rpc LiquidStake(MsgLiquidStake) returns (MsgLiquidStakeResponse) {
1920
option (google.api.http).post = "/pstake/lscosmos/v1beta1/LiquidStake";

proto/pstake/ratesync/v1beta1/tx.proto

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ option go_package = "github.com/persistenceOne/pstake-native/v6/x/ratesync/types
1313

1414
// Msg defines the Msg service.
1515
service Msg {
16+
option (cosmos.msg.v1.service) = true;
17+
1618
rpc CreateHostChain(MsgCreateHostChain) returns (MsgCreateHostChainResponse);
1719
rpc UpdateHostChain(MsgUpdateHostChain) returns (MsgUpdateHostChainResponse);
1820
rpc DeleteHostChain(MsgDeleteHostChain) returns (MsgDeleteHostChainResponse);
@@ -23,20 +25,20 @@ message MsgCreateHostChain {
2325
option (cosmos.msg.v1.signer) = "authority";
2426
option (amino.name) = "pstake/ratesync/MsgCreateHostChain";
2527

26-
string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
28+
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
2729
HostChain host_chain = 2
28-
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
30+
[(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
2931
}
3032

31-
message MsgCreateHostChainResponse { uint64 i_d = 1; }
33+
message MsgCreateHostChainResponse {uint64 i_d = 1;}
3234

3335
message MsgUpdateHostChain {
3436
option (cosmos.msg.v1.signer) = "authority";
3537
option (amino.name) = "pstake/ratesync/MsgUpdateHostChain";
3638

37-
string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
39+
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
3840
HostChain host_chain = 2
39-
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
41+
[(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
4042
}
4143

4244
message MsgUpdateHostChainResponse {}
@@ -45,7 +47,7 @@ message MsgDeleteHostChain {
4547
option (cosmos.msg.v1.signer) = "authority";
4648
option (amino.name) = "pstake/ratesync/MsgDeleteHostChain";
4749

48-
string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
50+
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
4951
uint64 i_d = 2;
5052
}
5153

@@ -55,9 +57,9 @@ message MsgUpdateParams {
5557
option (cosmos.msg.v1.signer) = "authority";
5658
option (amino.name) = "pstake/ratesync/MsgUpdateParams";
5759

58-
string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
60+
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
5961
Params params = 2
60-
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
62+
[(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
6163
}
6264

6365
message MsgUpdateParamsResponse {}

x/liquidstake/types/tx.pb.go

Lines changed: 54 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)