chore: remove & add `since:` (#11094)

* remove & add since

* add since to gov

* add since
This commit is contained in:
Marko 2022-02-02 20:36:47 +01:00 committed by GitHub
parent 0efe4c7deb
commit 894969bace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 68 additions and 45 deletions

View File

@ -4498,12 +4498,12 @@ type Metadata struct {
Symbol string `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"`
// URI to a document (on or off-chain) that contains additional information. Optional.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
Uri string `protobuf:"bytes,7,opt,name=uri,proto3" json:"uri,omitempty"`
// URIHash is a sha256 hash of a document pointed by URI. It's used to verify that
// the document didn't change. Optional.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
UriHash string `protobuf:"bytes,8,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"`
}

View File

@ -6907,7 +6907,7 @@ type Result struct {
Events []*abci.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"`
// msg_responses contains the Msg handler responses type packed in Anys.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
MsgResponses []*anypb.Any `protobuf:"bytes,4,rep,name=msg_responses,json=msgResponses,proto3" json:"msg_responses,omitempty"`
}
@ -7065,7 +7065,7 @@ type TxMsgData struct {
Data []*MsgData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
// msg_responses contains the Msg handler responses packed into Anys.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
MsgResponses []*anypb.Any `protobuf:"bytes,2,rep,name=msg_responses,json=msgResponses,proto3" json:"msg_responses,omitempty"`
}

View File

@ -1067,6 +1067,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
}
}
// Since: cosmos-sdk 0.46
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0

View File

@ -5055,6 +5055,8 @@ func (x *fastReflection_TallyParams) ProtoMethods() *protoiface.Methods {
}
}
// Since: cosmos-sdk 0.46
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0

View File

@ -7808,6 +7808,8 @@ func (x *fastReflection_QueryTallyResultResponse) ProtoMethods() *protoiface.Met
}
}
// Since: cosmos-sdk 0.46
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0

View File

@ -4834,6 +4834,8 @@ func (x *fastReflection_MsgDepositResponse) ProtoMethods() *protoiface.Methods {
}
}
// Since: cosmos-sdk 0.46
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
@ -5099,8 +5101,6 @@ func (*MsgVoteResponse) Descriptor() ([]byte, []int) {
}
// MsgVoteWeighted defines a message to cast a vote.
//
// Since: cosmos-sdk 0.43
type MsgVoteWeighted struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -5153,8 +5153,6 @@ func (x *MsgVoteWeighted) GetOptions() []*WeightedVoteOption {
}
// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
//
// Since: cosmos-sdk 0.43
type MsgVoteWeightedResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache

View File

@ -30,8 +30,6 @@ type MsgClient interface {
// Vote defines a method to add a vote on a specific proposal.
Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error)
// VoteWeighted defines a method to add a weighted vote on a specific proposal.
//
// Since: cosmos-sdk 0.43
VoteWeighted(ctx context.Context, in *MsgVoteWeighted, opts ...grpc.CallOption) (*MsgVoteWeightedResponse, error)
// Deposit defines a method to add deposit on a specific proposal.
Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error)
@ -102,8 +100,6 @@ type MsgServer interface {
// Vote defines a method to add a vote on a specific proposal.
Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
// VoteWeighted defines a method to add a weighted vote on a specific proposal.
//
// Since: cosmos-sdk 0.43
VoteWeighted(context.Context, *MsgVoteWeighted) (*MsgVoteWeightedResponse, error)
// Deposit defines a method to add deposit on a specific proposal.
Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)

View File

@ -2705,6 +2705,13 @@ const (
)
// SignMode represents a signing mode with its own security guarantees.
//
// This enum should be considered a registry of all known sign modes
// in the Cosmos ecosystem. Apps are not expected to support all known
// sign modes. Apps that would like to support custom sign modes are
// encouraged to open a small PR against this file to add a new case
// to this SignMode enum describing their sign mode so that different
// apps have a consistent version of this enum.
type SignMode int32
const (
@ -2722,6 +2729,8 @@ const (
// SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not
// require signers signing over other signers' `signer_info`. It also allows
// for adding Tips in transactions.
//
// Since: cosmos-sdk 0.46
SignMode_SIGN_MODE_DIRECT_AUX SignMode = 3
// SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
// Amino JSON and will be removed in the future.

View File

@ -8308,6 +8308,8 @@ func (x *SignDoc) GetAccountNumber() uint64 {
// SignDocDirectAux is the type used for generating sign bytes for
// SIGN_MODE_DIRECT_AUX.
//
// Since: cosmos-sdk 0.46
type SignDocDirectAux struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -8498,7 +8500,7 @@ type AuthInfo struct {
Fee *Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"`
// Tip is the optional tip used for meta-transactions.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
Tip *Tip `protobuf:"bytes,3,opt,name=tip,proto3" json:"tip,omitempty"`
}
@ -8750,6 +8752,8 @@ func (x *Fee) GetGranter() string {
}
// Tip is the tip used for meta-transactions.
//
// Since: cosmos-sdk 0.46
type Tip struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -8800,7 +8804,7 @@ func (x *Tip) GetTipper() string {
// actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
// by the node if sent directly as-is.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
type AuxSignerData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache

View File

@ -98,11 +98,11 @@ message Metadata {
string symbol = 6;
// URI to a document (on or off-chain) that contains additional information. Optional.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
string uri = 7 [(gogoproto.customname) = "URI"];
// URIHash is a sha256 hash of a document pointed by URI. It's used to verify that
// the document didn't change. Optional.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
string uri_hash = 8 [(gogoproto.customname) = "URIHash"];
}

View File

@ -104,7 +104,7 @@ message Result {
// msg_responses contains the Msg handler responses type packed in Anys.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
repeated google.protobuf.Any msg_responses = 4;
}
@ -135,7 +135,7 @@ message TxMsgData {
// msg_responses contains the Msg handler responses packed into Anys.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
repeated google.protobuf.Any msg_responses = 2;
}

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.46
syntax = "proto3";
package cosmos.gov.v1beta2;

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.46
syntax = "proto3";
package cosmos.gov.v1beta2;
@ -95,11 +96,11 @@ message Vote {
// DepositParams defines the params for deposits on governance proposals.
message DepositParams {
// Minimum deposit for a proposal to enter voting period.
repeated cosmos.base.v1beta1.Coin min_deposit = 1 [(gogoproto.nullable) = false,(gogoproto.jsontag) = "min_deposit,omitempty"];
repeated cosmos.base.v1beta1.Coin min_deposit = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "min_deposit,omitempty"];
// Maximum period for Atom holders to deposit on a proposal. Initial value: 2
// months.
google.protobuf.Duration max_deposit_period = 2 [(gogoproto.stdduration) = true,(gogoproto.jsontag) = "max_deposit_period,omitempty"];
google.protobuf.Duration max_deposit_period = 2 [(gogoproto.stdduration) = true, (gogoproto.jsontag) = "max_deposit_period,omitempty"];
}
// VotingParams defines the params for voting on governance proposals.

View File

@ -1,3 +1,5 @@
// Since: cosmos-sdk 0.46
syntax = "proto3";
package cosmos.gov.v1beta2;

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.46
syntax = "proto3";
package cosmos.gov.v1beta2;
@ -23,8 +24,6 @@ service Msg {
rpc Vote(MsgVote) returns (MsgVoteResponse);
// VoteWeighted defines a method to add a weighted vote on a specific proposal.
//
// Since: cosmos-sdk 0.43
rpc VoteWeighted(MsgVoteWeighted) returns (MsgVoteWeightedResponse);
// Deposit defines a method to add deposit on a specific proposal.
@ -75,8 +74,6 @@ message MsgVote {
message MsgVoteResponse {}
// MsgVoteWeighted defines a message to cast a vote.
//
// Since: cosmos-sdk 0.43
message MsgVoteWeighted {
option (cosmos.msg.v1.signer) = "voter";
@ -86,8 +83,6 @@ message MsgVoteWeighted {
}
// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
//
// Since: cosmos-sdk 0.43
message MsgVoteWeightedResponse {}
// MsgDeposit defines a message to submit a deposit to an existing proposal.

View File

@ -32,6 +32,8 @@ enum SignMode {
// SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not
// require signers signing over other signers' `signer_info`. It also allows
// for adding Tips in transactions.
//
// Since: cosmos-sdk 0.46
SIGN_MODE_DIRECT_AUX = 3;
// SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses

View File

@ -66,6 +66,8 @@ message SignDoc {
// SignDocDirectAux is the type used for generating sign bytes for
// SIGN_MODE_DIRECT_AUX.
//
// Since: cosmos-sdk 0.46
message SignDocDirectAux {
// body_bytes is protobuf serialization of a TxBody that matches the
// representation in TxRaw.
@ -138,7 +140,7 @@ message AuthInfo {
// Tip is the optional tip used for meta-transactions.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
Tip tip = 3;
}
@ -215,6 +217,8 @@ message Fee {
}
// Tip is the tip used for meta-transactions.
//
// Since: cosmos-sdk 0.46
message Tip {
// amount is the amount of the tip
repeated cosmos.base.v1beta1.Coin amount = 1
@ -228,7 +232,7 @@ message Tip {
// actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
// by the node if sent directly as-is.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
message AuxSignerData {
// address is the bech32-encoded address of the auxiliary signer. If using
// AuxSignerData across different chains, the bech32 prefix of the target

View File

@ -334,7 +334,7 @@ type Result struct {
Events []types1.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events"`
// msg_responses contains the Msg handler responses type packed in Anys.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
MsgResponses []*types.Any `protobuf:"bytes,4,rep,name=msg_responses,json=msgResponses,proto3" json:"msg_responses,omitempty"`
}
@ -478,7 +478,7 @@ type TxMsgData struct {
Data []*MsgData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // Deprecated: Do not use.
// msg_responses contains the Msg handler responses packed into Anys.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
MsgResponses []*types.Any `protobuf:"bytes,2,rep,name=msg_responses,json=msgResponses,proto3" json:"msg_responses,omitempty"`
}

View File

@ -25,6 +25,13 @@ var _ = math.Inf
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// SignMode represents a signing mode with its own security guarantees.
//
// This enum should be considered a registry of all known sign modes
// in the Cosmos ecosystem. Apps are not expected to support all known
// sign modes. Apps that would like to support custom sign modes are
// encouraged to open a small PR against this file to add a new case
// to this SignMode enum describing their sign mode so that different
// apps have a consistent version of this enum.
type SignMode int32
const (
@ -42,6 +49,8 @@ const (
// SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not
// require signers signing over other signers' `signer_info`. It also allows
// for adding Tips in transactions.
//
// Since: cosmos-sdk 0.46
SignMode_SIGN_MODE_DIRECT_AUX SignMode = 3
// SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
// Amino JSON and will be removed in the future.

View File

@ -247,6 +247,8 @@ func (m *SignDoc) GetAccountNumber() uint64 {
// SignDocDirectAux is the type used for generating sign bytes for
// SIGN_MODE_DIRECT_AUX.
//
// Since: cosmos-sdk 0.46
type SignDocDirectAux struct {
// body_bytes is protobuf serialization of a TxBody that matches the
// representation in TxRaw.
@ -451,7 +453,7 @@ type AuthInfo struct {
Fee *Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"`
// Tip is the optional tip used for meta-transactions.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
Tip *Tip `protobuf:"bytes,3,opt,name=tip,proto3" json:"tip,omitempty"`
}
@ -853,6 +855,8 @@ func (m *Fee) GetGranter() string {
}
// Tip is the tip used for meta-transactions.
//
// Since: cosmos-sdk 0.46
type Tip struct {
// amount is the amount of the tip
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
@ -912,7 +916,7 @@ func (m *Tip) GetTipper() string {
// actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
// by the node if sent directly as-is.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
type AuxSignerData struct {
// address is the bech32-encoded address of the auxiliary signer. If using
// AuxSignerData across different chains, the bech32 prefix of the target

View File

@ -343,12 +343,12 @@ type Metadata struct {
Symbol string `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"`
// URI to a document (on or off-chain) that contains additional information. Optional.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
URI string `protobuf:"bytes,7,opt,name=uri,proto3" json:"uri,omitempty"`
// URIHash is a sha256 hash of a document pointed by URI. It's used to verify that
// the document didn't change. Optional.
//
// Since: cosmos-sdk 0.45
// Since: cosmos-sdk 0.46
URIHash string `protobuf:"bytes,8,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"`
}

View File

@ -340,8 +340,6 @@ func (m *MsgVoteResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_MsgVoteResponse proto.InternalMessageInfo
// MsgVoteWeighted defines a message to cast a vote.
//
// Since: cosmos-sdk 0.43
type MsgVoteWeighted struct {
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id"`
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
@ -403,8 +401,6 @@ func (m *MsgVoteWeighted) GetOptions() []*WeightedVoteOption {
}
// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
//
// Since: cosmos-sdk 0.43
type MsgVoteWeightedResponse struct {
}
@ -625,8 +621,6 @@ type MsgClient interface {
// Vote defines a method to add a vote on a specific proposal.
Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error)
// VoteWeighted defines a method to add a weighted vote on a specific proposal.
//
// Since: cosmos-sdk 0.43
VoteWeighted(ctx context.Context, in *MsgVoteWeighted, opts ...grpc.CallOption) (*MsgVoteWeightedResponse, error)
// Deposit defines a method to add deposit on a specific proposal.
Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error)
@ -695,8 +689,6 @@ type MsgServer interface {
// Vote defines a method to add a vote on a specific proposal.
Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
// VoteWeighted defines a method to add a weighted vote on a specific proposal.
//
// Since: cosmos-sdk 0.43
VoteWeighted(context.Context, *MsgVoteWeighted) (*MsgVoteWeightedResponse, error)
// Deposit defines a method to add deposit on a specific proposal.
Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)