docs: Improve docs for vote query (#17501)

This commit is contained in:
Matt, Park
2023-08-22 10:43:30 +00:00
committed by GitHub
parent 222d28e179
commit 27210f0e62
7 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -576,8 +576,8 @@ type Module struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving funds.
// If left empty it defaults to the list of account names supplied in the auth module configuration as
// blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving
// funds. If left empty it defaults to the list of account names supplied in the auth module configuration as
// module_account_permissions
BlockedModuleAccountsOverride []string `protobuf:"bytes,1,rep,name=blocked_module_accounts_override,json=blockedModuleAccountsOverride,proto3" json:"blocked_module_accounts_override,omitempty"`
// authority defines the custom module authority. If not set, defaults to the governance module.
+2
View File
@@ -38,6 +38,7 @@ type QueryClient interface {
// Proposals queries all proposals based on given status.
Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error)
// Vote queries voted information based on proposalID, voterAddr.
// Due to how we handle state, this query would error for proposals that has already been finished.
Vote(ctx context.Context, in *QueryVoteRequest, opts ...grpc.CallOption) (*QueryVoteResponse, error)
// Votes queries votes of a given proposal.
Votes(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error)
@@ -140,6 +141,7 @@ type QueryServer interface {
// Proposals queries all proposals based on given status.
Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error)
// Vote queries voted information based on proposalID, voterAddr.
// Due to how we handle state, this query would error for proposals that has already been finished.
Vote(context.Context, *QueryVoteRequest) (*QueryVoteResponse, error)
// Votes queries votes of a given proposal.
Votes(context.Context, *QueryVotesRequest) (*QueryVotesResponse, error)