Skip to content

Commit

Permalink
chore(proto): change future extracted modules version from v1.0.0 to …
Browse files Browse the repository at this point in the history
…v0.2.0 (#20600)
  • Loading branch information
julienrbrt authored Jun 10, 2024
1 parent d7105af commit 7fb2668
Show file tree
Hide file tree
Showing 12 changed files with 312 additions and 312 deletions.
4 changes: 2 additions & 2 deletions api/cosmos/authz/v1beta1/tx.pulsar.go

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

18 changes: 9 additions & 9 deletions api/cosmos/gov/v1/gov.pulsar.go

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

4 changes: 2 additions & 2 deletions api/cosmos/gov/v1/query.pulsar.go

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

2 changes: 1 addition & 1 deletion api/cosmos/gov/v1/tx.pulsar.go

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

4 changes: 2 additions & 2 deletions x/authz/proto/cosmos/authz/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ message MsgRevokeAllResponse {

// MsgPruneExpiredGrants prunes the expired grants.
message MsgPruneExpiredGrants {
option (cosmos_proto.message_added_in) = "x/authz v1.0.0";
option (cosmos_proto.message_added_in) = "x/authz v0.2.0";
option (cosmos.msg.v1.signer) = "pruner";

string pruner = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
}

// MsgPruneExpiredGrantsResponse defines the Msg/MsgPruneExpiredGrantsResponse response type.
message MsgPruneExpiredGrantsResponse {
option (cosmos_proto.message_added_in) = "x/authz v1.0.0";
option (cosmos_proto.message_added_in) = "x/authz v0.2.0";
}
4 changes: 2 additions & 2 deletions x/authz/tx.pb.go

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

16 changes: 8 additions & 8 deletions x/gov/proto/cosmos/gov/v1/gov.proto
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ message Proposal {
string failed_reason = 15 [(cosmos_proto.field_added_in) = "cosmos-sdk 0.50"];

// proposal_type defines the type of the proposal
ProposalType proposal_type = 16 [(cosmos_proto.field_added_in) = "x/gov v1.0.0"];
ProposalType proposal_type = 16 [(cosmos_proto.field_added_in) = "x/gov v0.2.0"];
}

// ProposalStatus enumerates the valid statuses of a proposal.
Expand All @@ -157,7 +157,7 @@ enum ProposalStatus {
// ProposalVoteOptions defines the stringified vote options for proposals.
// This allows to support multiple choice options for a given proposal.
message ProposalVoteOptions {
option (cosmos_proto.message_added_in) = "x/gov v1.0.0";
option (cosmos_proto.message_added_in) = "x/gov v0.2.0";
// option_one is the first option of the proposal
string option_one = 1;

Expand Down Expand Up @@ -324,32 +324,32 @@ message Params {
// depositors, according to the proposal_cancel_ratio and proposal_cancel_dest parameters.
// After the max cancel period, the proposal cannot be cancelled anymore.
string proposal_cancel_max_period = 17
[(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.field_added_in) = "x/gov v1.0.0"];
[(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.field_added_in) = "x/gov v0.2.0"];

// optimistic_authorized_addresses is an optional governance parameter that limits the authorized accounts than can
// submit optimistic proposals
repeated string optimistic_authorized_addresses = 18
[(cosmos_proto.scalar) = "cosmos.AddressString", (cosmos_proto.field_added_in) = "x/gov v1.0.0"];
[(cosmos_proto.scalar) = "cosmos.AddressString", (cosmos_proto.field_added_in) = "x/gov v0.2.0"];

// optimistic rejected threshold defines at which percentage of NO votes, the optimistic proposal should fail and be
// converted to a standard proposal. The threshold is expressed as a percentage of the total bonded tokens.
string optimistic_rejected_threshold = 19
[(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.field_added_in) = "x/gov v1.0.0"];
[(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.field_added_in) = "x/gov v0.2.0"];

// yes_quorum defines the minimum percentage of Yes votes in quorum for proposal to pass.
// Default value: 0 (disabled).
string yes_quorum = 20 [(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.field_added_in) = "x/gov v1.0.0"];
string yes_quorum = 20 [(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.field_added_in) = "x/gov v0.2.0"];

// Minimum percentage of total stake needed to vote for a result to be
// considered valid for an expedited proposal.
string expedited_quorum = 21 [(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.field_added_in) = "x/gov v1.0.0"];
string expedited_quorum = 21 [(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.field_added_in) = "x/gov v0.2.0"];
}

// MessageBasedParams defines the parameters of specific messages in a proposal.
// It is used to define the parameters of a proposal that is based on a specific message.
// Once a message has message based params, it only supports a standard proposal type.
message MessageBasedParams {
option (cosmos_proto.message_added_in) = "x/gov v1.0.0";
option (cosmos_proto.message_added_in) = "x/gov v0.2.0";
// Duration of the voting period.
google.protobuf.Duration voting_period = 1 [(gogoproto.stdduration) = true];

Expand Down
4 changes: 2 additions & 2 deletions x/gov/proto/cosmos/gov/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ service Query {
// ProposalVoteOptions queries the valid voting options for a proposal.
rpc ProposalVoteOptions(QueryProposalVoteOptionsRequest) returns (QueryProposalVoteOptionsResponse) {
option (google.api.http).get = "/cosmos/gov/v1/proposals/{proposal_id}/vote_options";
option (cosmos_proto.method_added_in) = "x/gov v1.0.0";
option (cosmos_proto.method_added_in) = "x/gov v0.2.0";
}

// MessageBasedParams queries the message specific governance params based on a msg url.
rpc MessageBasedParams(QueryMessageBasedParamsRequest) returns (QueryMessageBasedParamsResponse) {
option (google.api.http).get = "/cosmos/gov/v1/params/{msg_url}";
option (cosmos_proto.method_added_in) = "x/gov v1.0.0";
option (cosmos_proto.method_added_in) = "x/gov v0.2.0";
}
}

Expand Down
2 changes: 1 addition & 1 deletion x/gov/proto/cosmos/gov/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ message MsgSubmitProposal {

// proposal_type defines the type of proposal
// When not set defaults to PROPOSAL_TYPE_STANDARD
ProposalType proposal_type = 8 [(cosmos_proto.field_added_in) = "x/gov v1.0.0"];
ProposalType proposal_type = 8 [(cosmos_proto.field_added_in) = "x/gov v0.2.0"];
}

// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
Expand Down
Loading

0 comments on commit 7fb2668

Please sign in to comment.