feat(gov,group): improve metadata checks and add docs (#16235)

This commit is contained in:
Julien Robert
2023-05-22 11:54:42 +00:00
committed by GitHub
parent 38f27e3d1a
commit 2c702e6563
11 changed files with 127 additions and 16 deletions
+3 -1
View File
@@ -80,6 +80,7 @@ message Proposal {
google.protobuf.Timestamp voting_end_time = 9 [(gogoproto.stdtime) = true];
// metadata is any arbitrary metadata attached to the proposal.
// the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/gov#proposal-3
string metadata = 10;
// title is the title of the proposal
@@ -150,7 +151,8 @@ message Vote {
// options is the weighted vote options.
repeated WeightedVoteOption options = 4;
// metadata is any arbitrary metadata to attached to the vote.
// metadata is any arbitrary metadata to attached to the vote.
// the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/gov#vote-5
string metadata = 5;
}
+5 -1
View File
@@ -131,6 +131,7 @@ message GroupInfo {
string admin = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// metadata is any arbitrary metadata to attached to the group.
// the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#group-1
string metadata = 3;
// version is used to track changes to a group's membership structure that
@@ -171,6 +172,7 @@ message GroupPolicyInfo {
string admin = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// metadata is any arbitrary metadata attached to the group policy.
// the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#decision-policy-1
string metadata = 4;
// version is used to track changes to a group's GroupPolicyInfo structure that
@@ -199,6 +201,7 @@ message Proposal {
string group_policy_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// metadata is any arbitrary metadata attached to the proposal.
// the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#proposal-4
string metadata = 3;
// proposers are the account addresses of the proposers.
@@ -313,7 +316,7 @@ message TallyResult {
string no_with_veto_count = 4;
}
// Vote represents a vote for a proposal.
// Vote represents a vote for a proposal.string metadata
message Vote {
// proposal is the unique ID of the proposal.
uint64 proposal_id = 1;
@@ -325,6 +328,7 @@ message Vote {
VoteOption option = 3;
// metadata is any arbitrary metadata attached to the vote.
// the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#vote-2
string metadata = 4;
// submit_time is the timestamp when the vote was submitted.