From ecdedf5db45c1cf5af6ce3463be5e64fcc022bc5 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 9 Jan 2023 09:18:13 +0100 Subject: [PATCH] docs: improve documentation about authority in protos (#14531) --- CHANGELOG.md | 2 +- UPGRADING.md | 2 +- api/cosmos/auth/v1beta1/tx.pulsar.go | 2 +- api/cosmos/auth/v1beta1/tx_grpc.pb.go | 8 ++++---- api/cosmos/bank/v1beta1/tx.pulsar.go | 2 +- api/cosmos/consensus/v1/tx.pulsar.go | 2 +- api/cosmos/crisis/v1beta1/tx.pulsar.go | 2 +- api/cosmos/distribution/v1beta1/tx.pulsar.go | 4 ++-- api/cosmos/gov/v1/tx.pulsar.go | 2 +- api/cosmos/mint/v1beta1/tx.pulsar.go | 2 +- api/cosmos/mint/v1beta1/tx_grpc.pb.go | 4 ++-- api/cosmos/slashing/v1beta1/tx.pulsar.go | 2 +- api/cosmos/slashing/v1beta1/tx_grpc.pb.go | 4 ++-- api/cosmos/staking/v1beta1/tx.pulsar.go | 2 +- api/cosmos/upgrade/v1beta1/tx.pulsar.go | 4 ++-- proto/cosmos/auth/v1beta1/tx.proto | 6 +++--- proto/cosmos/bank/v1beta1/tx.proto | 2 +- proto/cosmos/consensus/v1/tx.proto | 2 +- proto/cosmos/crisis/v1beta1/tx.proto | 2 +- proto/cosmos/distribution/v1beta1/tx.proto | 4 ++-- proto/cosmos/gov/v1/tx.proto | 2 +- proto/cosmos/mint/v1beta1/tx.proto | 4 ++-- proto/cosmos/slashing/v1beta1/tx.proto | 4 ++-- proto/cosmos/staking/v1beta1/tx.proto | 2 +- proto/cosmos/upgrade/v1beta1/tx.proto | 4 ++-- x/auth/types/tx.pb.go | 10 +++++----- x/bank/types/tx.pb.go | 2 +- x/consensus/types/tx.pb.go | 2 +- x/crisis/types/tx.pb.go | 2 +- x/distribution/types/tx.pb.go | 4 ++-- x/gov/types/v1/tx.pb.go | 2 +- x/mint/types/tx.pb.go | 6 +++--- x/slashing/types/tx.pb.go | 6 +++--- x/staking/types/tx.pb.go | 2 +- x/upgrade/types/tx.pb.go | 4 ++-- 35 files changed, 58 insertions(+), 58 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e44d9111f9a9..738bd3fd9070 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -218,7 +218,7 @@ extension interfaces. `module.Manager.Modules` is now of type `map[string]interf ### Bug Fixes * (baseapp) [#14505](https://github.com/cosmos/cosmos-sdk/pull/14505) PrepareProposal and ProcessProposal now use deliverState for the first block in order to access changes made in InitChain. -* (x/group) (x/group) [#14526](https://github.com/cosmos/cosmos-sdk/pull/14526) Fix wrong address set in `EventUpdateGroupPolicy`. +* (x/group) [#14526](https://github.com/cosmos/cosmos-sdk/pull/14526) Fix wrong address set in `EventUpdateGroupPolicy`. * (server) [#14441](https://github.com/cosmos/cosmos-sdk/pull/14441) Fix `--log_format` flag not working. * (x/upgrade) [#13936](https://github.com/cosmos/cosmos-sdk/pull/13936) Make downgrade verification work again * (x/group) [#13742](https://github.com/cosmos/cosmos-sdk/pull/13742) Fix `validate-genesis` when group policy accounts exist. diff --git a/UPGRADING.md b/UPGRADING.md index c302bc1b9865..a1cc19ba5234 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -303,7 +303,7 @@ mistakes. #### `x/params` -* The `x/param` module has been depreacted in favour of each module housing and providing way to modify their parameters. Each module that has parameters that are changable during runtime have an authority, the authority can be a module or user account. The Cosmos-SDK team recommends migrating modules away from using the param module. An example of how this could look like can be found [here](https://github.com/cosmos/cosmos-sdk/pull/12363). +* The `x/params` module has been depreacted in favour of each module housing and providing way to modify their parameters. Each module that has parameters that are changable during runtime have an authority, the authority can be a module or user account. The Cosmos-SDK team recommends migrating modules away from using the param module. An example of how this could look like can be found [here](https://github.com/cosmos/cosmos-sdk/pull/12363). * The Param module will be maintained until April 18, 2023. At this point the module will reach end of life and be removed from the Cosmos SDK. #### `x/gov` diff --git a/api/cosmos/auth/v1beta1/tx.pulsar.go b/api/cosmos/auth/v1beta1/tx.pulsar.go index cff25a1f6244..4a364ba532ff 100644 --- a/api/cosmos/auth/v1beta1/tx.pulsar.go +++ b/api/cosmos/auth/v1beta1/tx.pulsar.go @@ -892,7 +892,7 @@ type MsgUpdateParams struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/auth parameters to update. // diff --git a/api/cosmos/auth/v1beta1/tx_grpc.pb.go b/api/cosmos/auth/v1beta1/tx_grpc.pb.go index 61a59ec669a6..3a1ce135f1a8 100644 --- a/api/cosmos/auth/v1beta1/tx_grpc.pb.go +++ b/api/cosmos/auth/v1beta1/tx_grpc.pb.go @@ -22,8 +22,8 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type MsgClient interface { - // UpdateParams defines a governance operation for updating the x/auth module - // parameters. The authority is hard-coded to the x/gov module account. + // UpdateParams defines a (governance) operation for updating the x/auth module + // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) @@ -50,8 +50,8 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts // All implementations must embed UnimplementedMsgServer // for forward compatibility type MsgServer interface { - // UpdateParams defines a governance operation for updating the x/auth module - // parameters. The authority is hard-coded to the x/gov module account. + // UpdateParams defines a (governance) operation for updating the x/auth module + // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) diff --git a/api/cosmos/bank/v1beta1/tx.pulsar.go b/api/cosmos/bank/v1beta1/tx.pulsar.go index 96bdddda3037..10048243e590 100644 --- a/api/cosmos/bank/v1beta1/tx.pulsar.go +++ b/api/cosmos/bank/v1beta1/tx.pulsar.go @@ -4049,7 +4049,7 @@ type MsgUpdateParams struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/bank parameters to update. // diff --git a/api/cosmos/consensus/v1/tx.pulsar.go b/api/cosmos/consensus/v1/tx.pulsar.go index 9fe12cdd84df..c85cc532c31f 100644 --- a/api/cosmos/consensus/v1/tx.pulsar.go +++ b/api/cosmos/consensus/v1/tx.pulsar.go @@ -1049,7 +1049,7 @@ type MsgUpdateParams struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/consensus parameters to update. // VersionsParams is not included in this Msg because it is tracked diff --git a/api/cosmos/crisis/v1beta1/tx.pulsar.go b/api/cosmos/crisis/v1beta1/tx.pulsar.go index 78ff02fce005..70aaea359834 100644 --- a/api/cosmos/crisis/v1beta1/tx.pulsar.go +++ b/api/cosmos/crisis/v1beta1/tx.pulsar.go @@ -1879,7 +1879,7 @@ type MsgUpdateParams struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // constant_fee defines the x/crisis parameter. ConstantFee *v1beta1.Coin `protobuf:"bytes,2,opt,name=constant_fee,json=constantFee,proto3" json:"constant_fee,omitempty"` diff --git a/api/cosmos/distribution/v1beta1/tx.pulsar.go b/api/cosmos/distribution/v1beta1/tx.pulsar.go index dbc63618b715..c485dd91cabf 100644 --- a/api/cosmos/distribution/v1beta1/tx.pulsar.go +++ b/api/cosmos/distribution/v1beta1/tx.pulsar.go @@ -6798,7 +6798,7 @@ type MsgUpdateParams struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/distribution parameters to update. // @@ -6880,7 +6880,7 @@ type MsgCommunityPoolSpend struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` diff --git a/api/cosmos/gov/v1/tx.pulsar.go b/api/cosmos/gov/v1/tx.pulsar.go index d691bda1c2ca..e2062e7017eb 100644 --- a/api/cosmos/gov/v1/tx.pulsar.go +++ b/api/cosmos/gov/v1/tx.pulsar.go @@ -6429,7 +6429,7 @@ type MsgUpdateParams struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/gov parameters to update. // diff --git a/api/cosmos/mint/v1beta1/tx.pulsar.go b/api/cosmos/mint/v1beta1/tx.pulsar.go index 0bc2c3de0589..4eb5fe45628e 100644 --- a/api/cosmos/mint/v1beta1/tx.pulsar.go +++ b/api/cosmos/mint/v1beta1/tx.pulsar.go @@ -892,7 +892,7 @@ type MsgUpdateParams struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/mint parameters to update. // diff --git a/api/cosmos/mint/v1beta1/tx_grpc.pb.go b/api/cosmos/mint/v1beta1/tx_grpc.pb.go index 4e5c2528b28a..890c751db361 100644 --- a/api/cosmos/mint/v1beta1/tx_grpc.pb.go +++ b/api/cosmos/mint/v1beta1/tx_grpc.pb.go @@ -23,7 +23,7 @@ const _ = grpc.SupportPackageIsVersion7 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type MsgClient interface { // UpdateParams defines a governance operation for updating the x/mint module - // parameters. The authority is hard-coded to the x/gov module account. + // parameters. The authority is defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) @@ -51,7 +51,7 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts // for forward compatibility type MsgServer interface { // UpdateParams defines a governance operation for updating the x/mint module - // parameters. The authority is hard-coded to the x/gov module account. + // parameters. The authority is defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) diff --git a/api/cosmos/slashing/v1beta1/tx.pulsar.go b/api/cosmos/slashing/v1beta1/tx.pulsar.go index dac88465864f..ad99c3d42c0d 100644 --- a/api/cosmos/slashing/v1beta1/tx.pulsar.go +++ b/api/cosmos/slashing/v1beta1/tx.pulsar.go @@ -1731,7 +1731,7 @@ type MsgUpdateParams struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/slashing parameters to update. // diff --git a/api/cosmos/slashing/v1beta1/tx_grpc.pb.go b/api/cosmos/slashing/v1beta1/tx_grpc.pb.go index ec287ea88ede..6eab0dc3f14c 100644 --- a/api/cosmos/slashing/v1beta1/tx_grpc.pb.go +++ b/api/cosmos/slashing/v1beta1/tx_grpc.pb.go @@ -27,7 +27,7 @@ type MsgClient interface { // and rewards again. Unjail(ctx context.Context, in *MsgUnjail, opts ...grpc.CallOption) (*MsgUnjailResponse, error) // UpdateParams defines a governance operation for updating the x/slashing module - // parameters. The authority is hard-coded to the x/gov module account. + // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) @@ -68,7 +68,7 @@ type MsgServer interface { // and rewards again. Unjail(context.Context, *MsgUnjail) (*MsgUnjailResponse, error) // UpdateParams defines a governance operation for updating the x/slashing module - // parameters. The authority is hard-coded to the x/gov module account. + // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) diff --git a/api/cosmos/staking/v1beta1/tx.pulsar.go b/api/cosmos/staking/v1beta1/tx.pulsar.go index 1dbf7a8d49e2..9511e64faea4 100644 --- a/api/cosmos/staking/v1beta1/tx.pulsar.go +++ b/api/cosmos/staking/v1beta1/tx.pulsar.go @@ -7605,7 +7605,7 @@ type MsgUpdateParams struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/staking parameters to update. // diff --git a/api/cosmos/upgrade/v1beta1/tx.pulsar.go b/api/cosmos/upgrade/v1beta1/tx.pulsar.go index ce507b9b6feb..4fa29cbee58d 100644 --- a/api/cosmos/upgrade/v1beta1/tx.pulsar.go +++ b/api/cosmos/upgrade/v1beta1/tx.pulsar.go @@ -1670,7 +1670,7 @@ type MsgSoftwareUpgrade struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // plan is the upgrade plan. Plan *Plan `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan,omitempty"` @@ -1747,7 +1747,7 @@ type MsgCancelUpgrade struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` } diff --git a/proto/cosmos/auth/v1beta1/tx.proto b/proto/cosmos/auth/v1beta1/tx.proto index 413010d9a48c..1edee037092b 100644 --- a/proto/cosmos/auth/v1beta1/tx.proto +++ b/proto/cosmos/auth/v1beta1/tx.proto @@ -13,8 +13,8 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types"; service Msg { option (cosmos.msg.v1.service) = true; - // UpdateParams defines a governance operation for updating the x/auth module - // parameters. The authority is hard-coded to the x/gov module account. + // UpdateParams defines a (governance) operation for updating the x/auth module + // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); @@ -27,7 +27,7 @@ message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; option (amino.name) = "cosmos-sdk/x/auth/MsgUpdateParams"; - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // params defines the x/auth parameters to update. diff --git a/proto/cosmos/bank/v1beta1/tx.proto b/proto/cosmos/bank/v1beta1/tx.proto index b7844b270996..5d6926ef6de2 100644 --- a/proto/cosmos/bank/v1beta1/tx.proto +++ b/proto/cosmos/bank/v1beta1/tx.proto @@ -77,7 +77,7 @@ message MsgMultiSendResponse {} message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; option (amino.name) = "cosmos-sdk/x/bank/MsgUpdateParams"; diff --git a/proto/cosmos/consensus/v1/tx.proto b/proto/cosmos/consensus/v1/tx.proto index 9fff87be7685..0a7a3de022cf 100644 --- a/proto/cosmos/consensus/v1/tx.proto +++ b/proto/cosmos/consensus/v1/tx.proto @@ -21,7 +21,7 @@ service Msg { message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // params defines the x/consensus parameters to update. diff --git a/proto/cosmos/crisis/v1beta1/tx.proto b/proto/cosmos/crisis/v1beta1/tx.proto index 80663e35a57c..4fcf5bf65989 100644 --- a/proto/cosmos/crisis/v1beta1/tx.proto +++ b/proto/cosmos/crisis/v1beta1/tx.proto @@ -51,7 +51,7 @@ message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; option (amino.name) = "cosmos-sdk/x/crisis/MsgUpdateParams"; - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // constant_fee defines the x/crisis parameter. diff --git a/proto/cosmos/distribution/v1beta1/tx.proto b/proto/cosmos/distribution/v1beta1/tx.proto index af0cd6f8e67f..3625cac380c0 100644 --- a/proto/cosmos/distribution/v1beta1/tx.proto +++ b/proto/cosmos/distribution/v1beta1/tx.proto @@ -149,7 +149,7 @@ message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; option (amino.name) = "cosmos-sdk/distribution/MsgUpdateParams"; - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // params defines the x/distribution parameters to update. @@ -174,7 +174,7 @@ message MsgCommunityPoolSpend { option (cosmos.msg.v1.signer) = "authority"; option (amino.name) = "cosmos-sdk/distr/MsgCommunityPoolSpend"; - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string recipient = 2; repeated cosmos.base.v1beta1.Coin amount = 3 [ diff --git a/proto/cosmos/gov/v1/tx.proto b/proto/cosmos/gov/v1/tx.proto index 3722034c57ff..969eeff69f05 100644 --- a/proto/cosmos/gov/v1/tx.proto +++ b/proto/cosmos/gov/v1/tx.proto @@ -156,7 +156,7 @@ message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; option (amino.name) = "cosmos-sdk/x/gov/v1/MsgUpdateParams"; - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // params defines the x/gov parameters to update. diff --git a/proto/cosmos/mint/v1beta1/tx.proto b/proto/cosmos/mint/v1beta1/tx.proto index b7f76991363a..ec71fb73aa73 100644 --- a/proto/cosmos/mint/v1beta1/tx.proto +++ b/proto/cosmos/mint/v1beta1/tx.proto @@ -14,7 +14,7 @@ service Msg { option (cosmos.msg.v1.service) = true; // UpdateParams defines a governance operation for updating the x/mint module - // parameters. The authority is hard-coded to the x/gov module account. + // parameters. The authority is defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); @@ -27,7 +27,7 @@ message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; option (amino.name) = "cosmos-sdk/x/mint/MsgUpdateParams"; - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // params defines the x/mint parameters to update. diff --git a/proto/cosmos/slashing/v1beta1/tx.proto b/proto/cosmos/slashing/v1beta1/tx.proto index 61fa83b2c138..8fd423a2ce8c 100644 --- a/proto/cosmos/slashing/v1beta1/tx.proto +++ b/proto/cosmos/slashing/v1beta1/tx.proto @@ -20,7 +20,7 @@ service Msg { rpc Unjail(MsgUnjail) returns (MsgUnjailResponse); // UpdateParams defines a governance operation for updating the x/slashing module - // parameters. The authority is hard-coded to the x/gov module account. + // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); @@ -51,7 +51,7 @@ message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; option (amino.name) = "cosmos-sdk/x/slashing/MsgUpdateParams"; - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // params defines the x/slashing parameters to update. diff --git a/proto/cosmos/staking/v1beta1/tx.proto b/proto/cosmos/staking/v1beta1/tx.proto index f8f0f33c90a9..42e2218eaf33 100644 --- a/proto/cosmos/staking/v1beta1/tx.proto +++ b/proto/cosmos/staking/v1beta1/tx.proto @@ -186,7 +186,7 @@ message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; option (amino.name) = "cosmos-sdk/x/staking/MsgUpdateParams"; - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // params defines the x/staking parameters to update. // diff --git a/proto/cosmos/upgrade/v1beta1/tx.proto b/proto/cosmos/upgrade/v1beta1/tx.proto index 2f3ff221bf59..293bea0216b4 100644 --- a/proto/cosmos/upgrade/v1beta1/tx.proto +++ b/proto/cosmos/upgrade/v1beta1/tx.proto @@ -33,7 +33,7 @@ message MsgSoftwareUpgrade { option (cosmos.msg.v1.signer) = "authority"; option (amino.name) = "cosmos-sdk/MsgSoftwareUpgrade"; - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // plan is the upgrade plan. @@ -52,7 +52,7 @@ message MsgCancelUpgrade { option (cosmos.msg.v1.signer) = "authority"; option (amino.name) = "cosmos-sdk/MsgCancelUpgrade"; - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } diff --git a/x/auth/types/tx.pb.go b/x/auth/types/tx.pb.go index d5f5bb5256aa..7214842181cc 100644 --- a/x/auth/types/tx.pb.go +++ b/x/auth/types/tx.pb.go @@ -35,7 +35,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // // Since: cosmos-sdk 0.47 type MsgUpdateParams struct { - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/auth parameters to update. // @@ -175,8 +175,8 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { - // UpdateParams defines a governance operation for updating the x/auth module - // parameters. The authority is hard-coded to the x/gov module account. + // UpdateParams defines a (governance) operation for updating the x/auth module + // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) @@ -201,8 +201,8 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts // MsgServer is the server API for Msg service. type MsgServer interface { - // UpdateParams defines a governance operation for updating the x/auth module - // parameters. The authority is hard-coded to the x/gov module account. + // UpdateParams defines a (governance) operation for updating the x/auth module + // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) diff --git a/x/bank/types/tx.pb.go b/x/bank/types/tx.pb.go index 27e14ac0edd0..b3fd1ea3d863 100644 --- a/x/bank/types/tx.pb.go +++ b/x/bank/types/tx.pb.go @@ -206,7 +206,7 @@ var xxx_messageInfo_MsgMultiSendResponse proto.InternalMessageInfo // // Since: cosmos-sdk 0.47 type MsgUpdateParams struct { - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/bank parameters to update. // diff --git a/x/consensus/types/tx.pb.go b/x/consensus/types/tx.pb.go index 6244d2ef8564..cd8ecb8fa9cd 100644 --- a/x/consensus/types/tx.pb.go +++ b/x/consensus/types/tx.pb.go @@ -32,7 +32,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // MsgUpdateParams is the Msg/UpdateParams request type. type MsgUpdateParams struct { - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/consensus parameters to update. // VersionsParams is not included in this Msg because it is tracked diff --git a/x/crisis/types/tx.pb.go b/x/crisis/types/tx.pb.go index e80c5b4ca013..96458da2529e 100644 --- a/x/crisis/types/tx.pb.go +++ b/x/crisis/types/tx.pb.go @@ -116,7 +116,7 @@ var xxx_messageInfo_MsgVerifyInvariantResponse proto.InternalMessageInfo // // Since: cosmos-sdk 0.47 type MsgUpdateParams struct { - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // constant_fee defines the x/crisis parameter. ConstantFee types.Coin `protobuf:"bytes,2,opt,name=constant_fee,json=constantFee,proto3" json:"constant_fee"` diff --git a/x/distribution/types/tx.pb.go b/x/distribution/types/tx.pb.go index 1405c2b9f1f4..c38dacf1f474 100644 --- a/x/distribution/types/tx.pb.go +++ b/x/distribution/types/tx.pb.go @@ -367,7 +367,7 @@ var xxx_messageInfo_MsgFundCommunityPoolResponse proto.InternalMessageInfo // // Since: cosmos-sdk 0.47 type MsgUpdateParams struct { - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/distribution parameters to update. // @@ -468,7 +468,7 @@ var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo // // Since: cosmos-sdk 0.47 type MsgCommunityPoolSpend struct { - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` diff --git a/x/gov/types/v1/tx.pb.go b/x/gov/types/v1/tx.pb.go index d4ca56317a13..4a27b2077ef6 100644 --- a/x/gov/types/v1/tx.pb.go +++ b/x/gov/types/v1/tx.pb.go @@ -593,7 +593,7 @@ var xxx_messageInfo_MsgDepositResponse proto.InternalMessageInfo // // Since: cosmos-sdk 0.47 type MsgUpdateParams struct { - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/gov parameters to update. // diff --git a/x/mint/types/tx.pb.go b/x/mint/types/tx.pb.go index 2473a13b7247..e4a8f909dbfc 100644 --- a/x/mint/types/tx.pb.go +++ b/x/mint/types/tx.pb.go @@ -35,7 +35,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // // Since: cosmos-sdk 0.47 type MsgUpdateParams struct { - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/mint parameters to update. // @@ -176,7 +176,7 @@ const _ = grpc.SupportPackageIsVersion4 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { // UpdateParams defines a governance operation for updating the x/mint module - // parameters. The authority is hard-coded to the x/gov module account. + // parameters. The authority is defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) @@ -202,7 +202,7 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts // MsgServer is the server API for Msg service. type MsgServer interface { // UpdateParams defines a governance operation for updating the x/mint module - // parameters. The authority is hard-coded to the x/gov module account. + // parameters. The authority is defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) diff --git a/x/slashing/types/tx.pb.go b/x/slashing/types/tx.pb.go index 41794f746d52..f04f931812f9 100644 --- a/x/slashing/types/tx.pb.go +++ b/x/slashing/types/tx.pb.go @@ -110,7 +110,7 @@ var xxx_messageInfo_MsgUnjailResponse proto.InternalMessageInfo // // Since: cosmos-sdk 0.47 type MsgUpdateParams struct { - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/slashing parameters to update. // @@ -358,7 +358,7 @@ type MsgClient interface { // and rewards again. Unjail(ctx context.Context, in *MsgUnjail, opts ...grpc.CallOption) (*MsgUnjailResponse, error) // UpdateParams defines a governance operation for updating the x/slashing module - // parameters. The authority is hard-coded to the x/gov module account. + // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) @@ -397,7 +397,7 @@ type MsgServer interface { // and rewards again. Unjail(context.Context, *MsgUnjail) (*MsgUnjailResponse, error) // UpdateParams defines a governance operation for updating the x/slashing module - // parameters. The authority is hard-coded to the x/gov module account. + // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) diff --git a/x/staking/types/tx.pb.go b/x/staking/types/tx.pb.go index c80212586d73..50a9e8f9fcf7 100644 --- a/x/staking/types/tx.pb.go +++ b/x/staking/types/tx.pb.go @@ -540,7 +540,7 @@ var xxx_messageInfo_MsgCancelUnbondingDelegationResponse proto.InternalMessageIn // // Since: cosmos-sdk 0.47 type MsgUpdateParams struct { - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/staking parameters to update. // diff --git a/x/upgrade/types/tx.pb.go b/x/upgrade/types/tx.pb.go index 51771b56509e..5065649d7646 100644 --- a/x/upgrade/types/tx.pb.go +++ b/x/upgrade/types/tx.pb.go @@ -35,7 +35,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // // Since: cosmos-sdk 0.46 type MsgSoftwareUpgrade struct { - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // plan is the upgrade plan. Plan Plan `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan"` @@ -131,7 +131,7 @@ var xxx_messageInfo_MsgSoftwareUpgradeResponse proto.InternalMessageInfo // // Since: cosmos-sdk 0.46 type MsgCancelUpgrade struct { - // authority is the address of the governance account. + // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` }