chore: x/gov Audit changes (#16822)
This commit is contained in:
@@ -7333,7 +7333,7 @@ type Vote struct {
|
||||
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
|
||||
// options is the weighted vote options.
|
||||
Options []*WeightedVoteOption `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"`
|
||||
// metadata is any arbitrary metadata to attached to the vote.
|
||||
// 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/gov#vote-5
|
||||
Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ type QueryClient interface {
|
||||
Votes(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error)
|
||||
// Params queries all parameters of the gov module.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
// Deposit queries single deposit information based proposalID, depositAddr.
|
||||
// Deposit queries single deposit information based on proposalID, depositAddr.
|
||||
Deposit(ctx context.Context, in *QueryDepositRequest, opts ...grpc.CallOption) (*QueryDepositResponse, error)
|
||||
// Deposits queries all deposits of a single proposal.
|
||||
Deposits(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error)
|
||||
@@ -161,7 +161,7 @@ type QueryServer interface {
|
||||
Votes(context.Context, *QueryVotesRequest) (*QueryVotesResponse, error)
|
||||
// Params queries all parameters of the gov module.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
// Deposit queries single deposit information based proposalID, depositAddr.
|
||||
// Deposit queries single deposit information based on proposalID, depositAddr.
|
||||
Deposit(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error)
|
||||
// Deposits queries all deposits of a single proposal.
|
||||
Deposits(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error)
|
||||
|
||||
@@ -7036,7 +7036,7 @@ type MsgSubmitProposal struct {
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
Summary string `protobuf:"bytes,6,opt,name=summary,proto3" json:"summary,omitempty"`
|
||||
// expedided defines if the proposal is expedited or not
|
||||
// expedited defines if the proposal is expedited or not
|
||||
//
|
||||
// Since: cosmos-sdk 0.50
|
||||
Expedited bool `protobuf:"varint,7,opt,name=expedited,proto3" json:"expedited,omitempty"`
|
||||
@@ -7574,8 +7574,10 @@ type MsgCancelProposal struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||||
Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
|
||||
// proposer is the account address of the proposer.
|
||||
Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
|
||||
}
|
||||
|
||||
func (x *MsgCancelProposal) Reset() {
|
||||
@@ -7621,6 +7623,7 @@ type MsgCancelProposalResponse struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||||
// canceled_time is the time when proposal is canceled.
|
||||
CanceledTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=canceled_time,json=canceledTime,proto3" json:"canceled_time,omitempty"`
|
||||
|
||||
@@ -1096,11 +1096,11 @@ type GenesisState struct {
|
||||
Votes []*Vote `protobuf:"bytes,3,rep,name=votes,proto3" json:"votes,omitempty"`
|
||||
// proposals defines all the proposals present at genesis.
|
||||
Proposals []*Proposal `protobuf:"bytes,4,rep,name=proposals,proto3" json:"proposals,omitempty"`
|
||||
// params defines all the parameters of related to deposit.
|
||||
// deposit_params defines all the parameters related to deposit.
|
||||
DepositParams *DepositParams `protobuf:"bytes,5,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params,omitempty"`
|
||||
// params defines all the parameters of related to voting.
|
||||
// voting_params defines all the parameters related to voting.
|
||||
VotingParams *VotingParams `protobuf:"bytes,6,opt,name=voting_params,json=votingParams,proto3" json:"voting_params,omitempty"`
|
||||
// params defines all the parameters of related to tally.
|
||||
// tally_params defines all the parameters related to tally.
|
||||
TallyParams *TallyParams `protobuf:"bytes,7,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ type QueryClient interface {
|
||||
Votes(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error)
|
||||
// Params queries all parameters of the gov module.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
// Deposit queries single deposit information based proposalID, depositAddr.
|
||||
// Deposit queries single deposit information based on proposalID, depositor address.
|
||||
Deposit(ctx context.Context, in *QueryDepositRequest, opts ...grpc.CallOption) (*QueryDepositResponse, error)
|
||||
// Deposits queries all deposits of a single proposal.
|
||||
Deposits(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error)
|
||||
@@ -145,7 +145,7 @@ type QueryServer interface {
|
||||
Votes(context.Context, *QueryVotesRequest) (*QueryVotesResponse, error)
|
||||
// Params queries all parameters of the gov module.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
// Deposit queries single deposit information based proposalID, depositAddr.
|
||||
// Deposit queries single deposit information based on proposalID, depositor address.
|
||||
Deposit(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error)
|
||||
// Deposits queries all deposits of a single proposal.
|
||||
Deposits(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error)
|
||||
|
||||
Reference in New Issue
Block a user