Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type Deposit
- func (*Deposit) Descriptor() ([]byte, []int)deprecated
- func (x *Deposit) GetAmount() []*v1beta1.Coin
- func (x *Deposit) GetDepositor() string
- func (x *Deposit) GetProposalId() uint64
- func (*Deposit) ProtoMessage()
- func (x *Deposit) ProtoReflect() protoreflect.Message
- func (x *Deposit) Reset()
- func (x *Deposit) String() string
- type DepositParamsdeprecated
- func (*DepositParams) Descriptor() ([]byte, []int)deprecated
- func (x *DepositParams) GetMaxDepositPeriod() *durationpb.Duration
- func (x *DepositParams) GetMinDeposit() []*v1beta1.Coin
- func (*DepositParams) ProtoMessage()
- func (x *DepositParams) ProtoReflect() protoreflect.Message
- func (x *DepositParams) Reset()
- func (x *DepositParams) String() string
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetConstitution() string
- func (x *GenesisState) GetDepositParams() *DepositParamsdeprecated
- func (x *GenesisState) GetDeposits() []*Deposit
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetProposals() []*Proposal
- func (x *GenesisState) GetStartingProposalId() uint64
- func (x *GenesisState) GetTallyParams() *TallyParamsdeprecated
- func (x *GenesisState) GetVotes() []*Vote
- func (x *GenesisState) GetVotingParams() *VotingParamsdeprecated
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MsgCancelProposal
- func (*MsgCancelProposal) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCancelProposal) GetProposalId() uint64
- func (x *MsgCancelProposal) GetProposer() string
- func (*MsgCancelProposal) ProtoMessage()
- func (x *MsgCancelProposal) ProtoReflect() protoreflect.Message
- func (x *MsgCancelProposal) Reset()
- func (x *MsgCancelProposal) String() string
- type MsgCancelProposalResponse
- func (*MsgCancelProposalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCancelProposalResponse) GetCanceledHeight() uint64
- func (x *MsgCancelProposalResponse) GetCanceledTime() *timestamppb.Timestamp
- func (x *MsgCancelProposalResponse) GetProposalId() uint64
- func (*MsgCancelProposalResponse) ProtoMessage()
- func (x *MsgCancelProposalResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCancelProposalResponse) Reset()
- func (x *MsgCancelProposalResponse) String() string
- type MsgClient
- type MsgDeposit
- func (*MsgDeposit) Descriptor() ([]byte, []int)deprecated
- func (x *MsgDeposit) GetAmount() []*v1beta1.Coin
- func (x *MsgDeposit) GetDepositor() string
- func (x *MsgDeposit) GetProposalId() uint64
- func (*MsgDeposit) ProtoMessage()
- func (x *MsgDeposit) ProtoReflect() protoreflect.Message
- func (x *MsgDeposit) Reset()
- func (x *MsgDeposit) String() string
- type MsgDepositResponse
- type MsgExecLegacyContent
- func (*MsgExecLegacyContent) Descriptor() ([]byte, []int)deprecated
- func (x *MsgExecLegacyContent) GetAuthority() string
- func (x *MsgExecLegacyContent) GetContent() *anypb.Any
- func (*MsgExecLegacyContent) ProtoMessage()
- func (x *MsgExecLegacyContent) ProtoReflect() protoreflect.Message
- func (x *MsgExecLegacyContent) Reset()
- func (x *MsgExecLegacyContent) String() string
- type MsgExecLegacyContentResponse
- func (*MsgExecLegacyContentResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgExecLegacyContentResponse) ProtoMessage()
- func (x *MsgExecLegacyContentResponse) ProtoReflect() protoreflect.Message
- func (x *MsgExecLegacyContentResponse) Reset()
- func (x *MsgExecLegacyContentResponse) String() string
- type MsgServer
- type MsgSubmitProposal
- func (*MsgSubmitProposal) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSubmitProposal) GetExpedited() bool
- func (x *MsgSubmitProposal) GetInitialDeposit() []*v1beta1.Coin
- func (x *MsgSubmitProposal) GetMessages() []*anypb.Any
- func (x *MsgSubmitProposal) GetMetadata() string
- func (x *MsgSubmitProposal) GetProposer() string
- func (x *MsgSubmitProposal) GetSummary() string
- func (x *MsgSubmitProposal) GetTitle() string
- func (*MsgSubmitProposal) ProtoMessage()
- func (x *MsgSubmitProposal) ProtoReflect() protoreflect.Message
- func (x *MsgSubmitProposal) Reset()
- func (x *MsgSubmitProposal) String() string
- type MsgSubmitProposalResponse
- func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSubmitProposalResponse) GetProposalId() uint64
- func (*MsgSubmitProposalResponse) ProtoMessage()
- func (x *MsgSubmitProposalResponse) ProtoReflect() protoreflect.Message
- func (x *MsgSubmitProposalResponse) Reset()
- func (x *MsgSubmitProposalResponse) String() string
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type MsgVote
- func (*MsgVote) Descriptor() ([]byte, []int)deprecated
- func (x *MsgVote) GetMetadata() string
- func (x *MsgVote) GetOption() VoteOption
- func (x *MsgVote) GetProposalId() uint64
- func (x *MsgVote) GetVoter() string
- func (*MsgVote) ProtoMessage()
- func (x *MsgVote) ProtoReflect() protoreflect.Message
- func (x *MsgVote) Reset()
- func (x *MsgVote) String() string
- type MsgVoteResponse
- type MsgVoteWeighted
- func (*MsgVoteWeighted) Descriptor() ([]byte, []int)deprecated
- func (x *MsgVoteWeighted) GetMetadata() string
- func (x *MsgVoteWeighted) GetOptions() []*WeightedVoteOption
- func (x *MsgVoteWeighted) GetProposalId() uint64
- func (x *MsgVoteWeighted) GetVoter() string
- func (*MsgVoteWeighted) ProtoMessage()
- func (x *MsgVoteWeighted) ProtoReflect() protoreflect.Message
- func (x *MsgVoteWeighted) Reset()
- func (x *MsgVoteWeighted) String() string
- type MsgVoteWeightedResponse
- type Params
- func (*Params) Descriptor() ([]byte, []int)deprecated
- func (x *Params) GetBurnProposalDepositPrevote() bool
- func (x *Params) GetBurnVoteQuorum() bool
- func (x *Params) GetBurnVoteVeto() bool
- func (x *Params) GetExpeditedMinDeposit() []*v1beta1.Coin
- func (x *Params) GetExpeditedThreshold() string
- func (x *Params) GetExpeditedVotingPeriod() *durationpb.Duration
- func (x *Params) GetMaxDepositPeriod() *durationpb.Duration
- func (x *Params) GetMinDeposit() []*v1beta1.Coin
- func (x *Params) GetMinInitialDepositRatio() string
- func (x *Params) GetProposalCancelDest() string
- func (x *Params) GetProposalCancelRatio() string
- func (x *Params) GetQuorum() string
- func (x *Params) GetThreshold() string
- func (x *Params) GetVetoThreshold() string
- func (x *Params) GetVotingPeriod() *durationpb.Duration
- func (*Params) ProtoMessage()
- func (x *Params) ProtoReflect() protoreflect.Message
- func (x *Params) Reset()
- func (x *Params) String() string
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)deprecated
- func (x *Proposal) GetDepositEndTime() *timestamppb.Timestamp
- func (x *Proposal) GetExpedited() bool
- func (x *Proposal) GetFailedReason() string
- func (x *Proposal) GetFinalTallyResult() *TallyResult
- func (x *Proposal) GetId() uint64
- func (x *Proposal) GetMessages() []*anypb.Any
- func (x *Proposal) GetMetadata() string
- func (x *Proposal) GetProposer() string
- func (x *Proposal) GetStatus() ProposalStatus
- func (x *Proposal) GetSubmitTime() *timestamppb.Timestamp
- func (x *Proposal) GetSummary() string
- func (x *Proposal) GetTitle() string
- func (x *Proposal) GetTotalDeposit() []*v1beta1.Coin
- func (x *Proposal) GetVotingEndTime() *timestamppb.Timestamp
- func (x *Proposal) GetVotingStartTime() *timestamppb.Timestamp
- func (*Proposal) ProtoMessage()
- func (x *Proposal) ProtoReflect() protoreflect.Message
- func (x *Proposal) Reset()
- func (x *Proposal) String() string
- type ProposalStatus
- func (ProposalStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ProposalStatus) Enum() *ProposalStatus
- func (ProposalStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProposalStatus) Number() protoreflect.EnumNumber
- func (x ProposalStatus) String() string
- func (ProposalStatus) Type() protoreflect.EnumType
- type QueryClient
- type QueryConstitutionRequest
- type QueryConstitutionResponse
- func (*QueryConstitutionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryConstitutionResponse) GetConstitution() string
- func (*QueryConstitutionResponse) ProtoMessage()
- func (x *QueryConstitutionResponse) ProtoReflect() protoreflect.Message
- func (x *QueryConstitutionResponse) Reset()
- func (x *QueryConstitutionResponse) String() string
- type QueryDepositRequest
- func (*QueryDepositRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDepositRequest) GetDepositor() string
- func (x *QueryDepositRequest) GetProposalId() uint64
- func (*QueryDepositRequest) ProtoMessage()
- func (x *QueryDepositRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDepositRequest) Reset()
- func (x *QueryDepositRequest) String() string
- type QueryDepositResponse
- func (*QueryDepositResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDepositResponse) GetDeposit() *Deposit
- func (*QueryDepositResponse) ProtoMessage()
- func (x *QueryDepositResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDepositResponse) Reset()
- func (x *QueryDepositResponse) String() string
- type QueryDepositsRequest
- func (*QueryDepositsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDepositsRequest) GetPagination() *v1beta1.PageRequest
- func (x *QueryDepositsRequest) GetProposalId() uint64
- func (*QueryDepositsRequest) ProtoMessage()
- func (x *QueryDepositsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDepositsRequest) Reset()
- func (x *QueryDepositsRequest) String() string
- type QueryDepositsResponse
- func (*QueryDepositsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDepositsResponse) GetDeposits() []*Deposit
- func (x *QueryDepositsResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryDepositsResponse) ProtoMessage()
- func (x *QueryDepositsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDepositsResponse) Reset()
- func (x *QueryDepositsResponse) String() string
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsRequest) GetParamsType() string
- func (*QueryParamsRequest) ProtoMessage()
- func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryParamsRequest) Reset()
- func (x *QueryParamsRequest) String() string
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetDepositParams() *DepositParamsdeprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (x *QueryParamsResponse) GetTallyParams() *TallyParamsdeprecated
- func (x *QueryParamsResponse) GetVotingParams() *VotingParamsdeprecated
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryProposalRequest
- func (*QueryProposalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryProposalRequest) GetProposalId() uint64
- func (*QueryProposalRequest) ProtoMessage()
- func (x *QueryProposalRequest) ProtoReflect() protoreflect.Message
- func (x *QueryProposalRequest) Reset()
- func (x *QueryProposalRequest) String() string
- type QueryProposalResponse
- func (*QueryProposalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryProposalResponse) GetProposal() *Proposal
- func (*QueryProposalResponse) ProtoMessage()
- func (x *QueryProposalResponse) ProtoReflect() protoreflect.Message
- func (x *QueryProposalResponse) Reset()
- func (x *QueryProposalResponse) String() string
- type QueryProposalsRequest
- func (*QueryProposalsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryProposalsRequest) GetDepositor() string
- func (x *QueryProposalsRequest) GetPagination() *v1beta1.PageRequest
- func (x *QueryProposalsRequest) GetProposalStatus() ProposalStatus
- func (x *QueryProposalsRequest) GetVoter() string
- func (*QueryProposalsRequest) ProtoMessage()
- func (x *QueryProposalsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryProposalsRequest) Reset()
- func (x *QueryProposalsRequest) String() string
- type QueryProposalsResponse
- func (*QueryProposalsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryProposalsResponse) GetPagination() *v1beta1.PageResponse
- func (x *QueryProposalsResponse) GetProposals() []*Proposal
- func (*QueryProposalsResponse) ProtoMessage()
- func (x *QueryProposalsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryProposalsResponse) Reset()
- func (x *QueryProposalsResponse) String() string
- type QueryServer
- type QueryTallyResultRequest
- func (*QueryTallyResultRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTallyResultRequest) GetProposalId() uint64
- func (*QueryTallyResultRequest) ProtoMessage()
- func (x *QueryTallyResultRequest) ProtoReflect() protoreflect.Message
- func (x *QueryTallyResultRequest) Reset()
- func (x *QueryTallyResultRequest) String() string
- type QueryTallyResultResponse
- func (*QueryTallyResultResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTallyResultResponse) GetTally() *TallyResult
- func (*QueryTallyResultResponse) ProtoMessage()
- func (x *QueryTallyResultResponse) ProtoReflect() protoreflect.Message
- func (x *QueryTallyResultResponse) Reset()
- func (x *QueryTallyResultResponse) String() string
- type QueryVoteRequest
- func (*QueryVoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVoteRequest) GetProposalId() uint64
- func (x *QueryVoteRequest) GetVoter() string
- func (*QueryVoteRequest) ProtoMessage()
- func (x *QueryVoteRequest) ProtoReflect() protoreflect.Message
- func (x *QueryVoteRequest) Reset()
- func (x *QueryVoteRequest) String() string
- type QueryVoteResponse
- type QueryVotesRequest
- func (*QueryVotesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVotesRequest) GetPagination() *v1beta1.PageRequest
- func (x *QueryVotesRequest) GetProposalId() uint64
- func (*QueryVotesRequest) ProtoMessage()
- func (x *QueryVotesRequest) ProtoReflect() protoreflect.Message
- func (x *QueryVotesRequest) Reset()
- func (x *QueryVotesRequest) String() string
- type QueryVotesResponse
- func (*QueryVotesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVotesResponse) GetPagination() *v1beta1.PageResponse
- func (x *QueryVotesResponse) GetVotes() []*Vote
- func (*QueryVotesResponse) ProtoMessage()
- func (x *QueryVotesResponse) ProtoReflect() protoreflect.Message
- func (x *QueryVotesResponse) Reset()
- func (x *QueryVotesResponse) String() string
- type TallyParamsdeprecated
- func (*TallyParams) Descriptor() ([]byte, []int)deprecated
- func (x *TallyParams) GetQuorum() string
- func (x *TallyParams) GetThreshold() string
- func (x *TallyParams) GetVetoThreshold() string
- func (*TallyParams) ProtoMessage()
- func (x *TallyParams) ProtoReflect() protoreflect.Message
- func (x *TallyParams) Reset()
- func (x *TallyParams) String() string
- type TallyResult
- func (*TallyResult) Descriptor() ([]byte, []int)deprecated
- func (x *TallyResult) GetAbstainCount() string
- func (x *TallyResult) GetNoCount() string
- func (x *TallyResult) GetNoWithVetoCount() string
- func (x *TallyResult) GetYesCount() string
- func (*TallyResult) ProtoMessage()
- func (x *TallyResult) ProtoReflect() protoreflect.Message
- func (x *TallyResult) Reset()
- func (x *TallyResult) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) CancelProposal(context.Context, *MsgCancelProposal) (*MsgCancelProposalResponse, error)
- func (UnimplementedMsgServer) Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)
- func (UnimplementedMsgServer) ExecLegacyContent(context.Context, *MsgExecLegacyContent) (*MsgExecLegacyContentResponse, error)
- func (UnimplementedMsgServer) SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (UnimplementedMsgServer) Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
- func (UnimplementedMsgServer) VoteWeighted(context.Context, *MsgVoteWeighted) (*MsgVoteWeightedResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Constitution(context.Context, *QueryConstitutionRequest) (*QueryConstitutionResponse, error)
- func (UnimplementedQueryServer) Deposit(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error)
- func (UnimplementedQueryServer) Deposits(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
- func (UnimplementedQueryServer) Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error)
- func (UnimplementedQueryServer) TallyResult(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error)
- func (UnimplementedQueryServer) Vote(context.Context, *QueryVoteRequest) (*QueryVoteResponse, error)
- func (UnimplementedQueryServer) Votes(context.Context, *QueryVotesRequest) (*QueryVotesResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)deprecated
- func (x *Vote) GetMetadata() string
- func (x *Vote) GetOptions() []*WeightedVoteOption
- func (x *Vote) GetProposalId() uint64
- func (x *Vote) GetVoter() string
- func (*Vote) ProtoMessage()
- func (x *Vote) ProtoReflect() protoreflect.Message
- func (x *Vote) Reset()
- func (x *Vote) String() string
- type VoteOption
- type VotingParamsdeprecated
- type WeightedVoteOption
- func (*WeightedVoteOption) Descriptor() ([]byte, []int)deprecated
- func (x *WeightedVoteOption) GetOption() VoteOption
- func (x *WeightedVoteOption) GetWeight() string
- func (*WeightedVoteOption) ProtoMessage()
- func (x *WeightedVoteOption) ProtoReflect() protoreflect.Message
- func (x *WeightedVoteOption) Reset()
- func (x *WeightedVoteOption) String() string
Constants ¶
const ( Query_Constitution_FullMethodName = "/cosmos.gov.v1.Query/Constitution" Query_Proposal_FullMethodName = "/cosmos.gov.v1.Query/Proposal" Query_Proposals_FullMethodName = "/cosmos.gov.v1.Query/Proposals" Query_Vote_FullMethodName = "/cosmos.gov.v1.Query/Vote" Query_Votes_FullMethodName = "/cosmos.gov.v1.Query/Votes" Query_Params_FullMethodName = "/cosmos.gov.v1.Query/Params" Query_Deposit_FullMethodName = "/cosmos.gov.v1.Query/Deposit" Query_Deposits_FullMethodName = "/cosmos.gov.v1.Query/Deposits" Query_TallyResult_FullMethodName = "/cosmos.gov.v1.Query/TallyResult" )
const ( Msg_SubmitProposal_FullMethodName = "/cosmos.gov.v1.Msg/SubmitProposal" Msg_ExecLegacyContent_FullMethodName = "/cosmos.gov.v1.Msg/ExecLegacyContent" Msg_Vote_FullMethodName = "/cosmos.gov.v1.Msg/Vote" Msg_VoteWeighted_FullMethodName = "/cosmos.gov.v1.Msg/VoteWeighted" Msg_Deposit_FullMethodName = "/cosmos.gov.v1.Msg/Deposit" Msg_UpdateParams_FullMethodName = "/cosmos.gov.v1.Msg/UpdateParams" Msg_CancelProposal_FullMethodName = "/cosmos.gov.v1.Msg/CancelProposal" )
Variables ¶
var ( VoteOption_name = map[int32]string{ 0: "VOTE_OPTION_UNSPECIFIED", 1: "VOTE_OPTION_YES", 2: "VOTE_OPTION_ABSTAIN", 3: "VOTE_OPTION_NO", 4: "VOTE_OPTION_NO_WITH_VETO", } VoteOption_value = map[string]int32{ "VOTE_OPTION_UNSPECIFIED": 0, "VOTE_OPTION_YES": 1, "VOTE_OPTION_ABSTAIN": 2, "VOTE_OPTION_NO": 3, "VOTE_OPTION_NO_WITH_VETO": 4, } )
Enum value maps for VoteOption.
var ( ProposalStatus_name = map[int32]string{ 0: "PROPOSAL_STATUS_UNSPECIFIED", 1: "PROPOSAL_STATUS_DEPOSIT_PERIOD", 2: "PROPOSAL_STATUS_VOTING_PERIOD", 3: "PROPOSAL_STATUS_PASSED", 4: "PROPOSAL_STATUS_REJECTED", 5: "PROPOSAL_STATUS_FAILED", } ProposalStatus_value = map[string]int32{ "PROPOSAL_STATUS_UNSPECIFIED": 0, "PROPOSAL_STATUS_DEPOSIT_PERIOD": 1, "PROPOSAL_STATUS_VOTING_PERIOD": 2, "PROPOSAL_STATUS_PASSED": 3, "PROPOSAL_STATUS_REJECTED": 4, "PROPOSAL_STATUS_FAILED": 5, } )
Enum value maps for ProposalStatus.
var File_cosmos_gov_v1_genesis_proto protoreflect.FileDescriptor
var File_cosmos_gov_v1_gov_proto protoreflect.FileDescriptor
var File_cosmos_gov_v1_query_proto protoreflect.FileDescriptor
var File_cosmos_gov_v1_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.gov.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SubmitProposal", Handler: _Msg_SubmitProposal_Handler, }, { MethodName: "ExecLegacyContent", Handler: _Msg_ExecLegacyContent_Handler, }, { MethodName: "Vote", Handler: _Msg_Vote_Handler, }, { MethodName: "VoteWeighted", Handler: _Msg_VoteWeighted_Handler, }, { MethodName: "Deposit", Handler: _Msg_Deposit_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, { MethodName: "CancelProposal", Handler: _Msg_CancelProposal_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/gov/v1/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.gov.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Constitution", Handler: _Query_Constitution_Handler, }, { MethodName: "Proposal", Handler: _Query_Proposal_Handler, }, { MethodName: "Proposals", Handler: _Query_Proposals_Handler, }, { MethodName: "Vote", Handler: _Query_Vote_Handler, }, { MethodName: "Votes", Handler: _Query_Votes_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "Deposit", Handler: _Query_Deposit_Handler, }, { MethodName: "Deposits", Handler: _Query_Deposits_Handler, }, { MethodName: "TallyResult", Handler: _Query_TallyResult_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/gov/v1/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type Deposit ¶
type Deposit struct { // 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"` // depositor defines the deposit addresses from the proposals. Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` // amount to be deposited by depositor. Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
Deposit defines an amount deposited by an account address to an active proposal.
func (*Deposit) ProtoReflect ¶
func (x *Deposit) ProtoReflect() protoreflect.Message
type DepositParams
deprecated
type DepositParams struct { // Minimum deposit for a proposal to enter voting period. MinDeposit []*v1beta1.Coin `protobuf:"bytes,1,rep,name=min_deposit,json=minDeposit,proto3" json:"min_deposit,omitempty"` // Maximum period for Atom holders to deposit on a proposal. Initial value: 2 // months. MaxDepositPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=max_deposit_period,json=maxDepositPeriod,proto3" json:"max_deposit_period,omitempty"` // contains filtered or unexported fields }
DepositParams defines the params for deposits on governance proposals.
Deprecated: Do not use.
func (*DepositParams) Descriptor
deprecated
func (*DepositParams) Descriptor() ([]byte, []int)
Deprecated: Use DepositParams.ProtoReflect.Descriptor instead.
func (*DepositParams) GetMaxDepositPeriod ¶
func (x *DepositParams) GetMaxDepositPeriod() *durationpb.Duration
func (*DepositParams) GetMinDeposit ¶
func (x *DepositParams) GetMinDeposit() []*v1beta1.Coin
func (*DepositParams) ProtoMessage ¶
func (*DepositParams) ProtoMessage()
func (*DepositParams) ProtoReflect ¶
func (x *DepositParams) ProtoReflect() protoreflect.Message
func (*DepositParams) Reset ¶
func (x *DepositParams) Reset()
func (*DepositParams) String ¶
func (x *DepositParams) String() string
type GenesisState ¶
type GenesisState struct { // starting_proposal_id is the ID of the starting proposal. StartingProposalId uint64 `protobuf:"varint,1,opt,name=starting_proposal_id,json=startingProposalId,proto3" json:"starting_proposal_id,omitempty"` // deposits defines all the deposits present at genesis. Deposits []*Deposit `protobuf:"bytes,2,rep,name=deposits,proto3" json:"deposits,omitempty"` // votes defines all the votes present at genesis. 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"` // Deprecated: Prefer to use `params` instead. // deposit_params defines all the paramaters of related to deposit. // // Deprecated: Do not use. DepositParams *DepositParams `protobuf:"bytes,5,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params,omitempty"` // Deprecated: Prefer to use `params` instead. // voting_params defines all the paramaters of related to voting. // // Deprecated: Do not use. VotingParams *VotingParams `protobuf:"bytes,6,opt,name=voting_params,json=votingParams,proto3" json:"voting_params,omitempty"` // Deprecated: Prefer to use `params` instead. // tally_params defines all the paramaters of related to tally. // // Deprecated: Do not use. TallyParams *TallyParams `protobuf:"bytes,7,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params,omitempty"` // params defines all the paramaters of x/gov module. // // Since: cosmos-sdk 0.47 Params *Params `protobuf:"bytes,8,opt,name=params,proto3" json:"params,omitempty"` // The constitution allows builders to lay a foundation and define purpose. // This is an immutable string set in genesis. // There are no amendments, to go outside of scope, just fork. // constitution is an immutable string in genesis for a chain builder to lay out their vision, ideas and ideals. // // Since: cosmos-sdk 0.50 Constitution string `protobuf:"bytes,9,opt,name=constitution,proto3" json:"constitution,omitempty"` // contains filtered or unexported fields }
GenesisState defines the gov module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetConstitution ¶ added in v0.4.0
func (x *GenesisState) GetConstitution() string
func (*GenesisState) GetDepositParams
deprecated
func (x *GenesisState) GetDepositParams() *DepositParams
Deprecated: Do not use.
func (*GenesisState) GetDeposits ¶
func (x *GenesisState) GetDeposits() []*Deposit
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetProposals ¶
func (x *GenesisState) GetProposals() []*Proposal
func (*GenesisState) GetStartingProposalId ¶
func (x *GenesisState) GetStartingProposalId() uint64
func (*GenesisState) GetTallyParams
deprecated
func (x *GenesisState) GetTallyParams() *TallyParams
Deprecated: Do not use.
func (*GenesisState) GetVotes ¶
func (x *GenesisState) GetVotes() []*Vote
func (*GenesisState) GetVotingParams
deprecated
func (x *GenesisState) GetVotingParams() *VotingParams
Deprecated: Do not use.
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type MsgCancelProposal ¶ added in v0.3.0
type MsgCancelProposal struct { // 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 is the account address of the proposer. Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` // contains filtered or unexported fields }
MsgCancelProposal is the Msg/CancelProposal request type.
Since: cosmos-sdk 0.50
func (*MsgCancelProposal) Descriptor
deprecated
added in
v0.3.0
func (*MsgCancelProposal) Descriptor() ([]byte, []int)
Deprecated: Use MsgCancelProposal.ProtoReflect.Descriptor instead.
func (*MsgCancelProposal) GetProposalId ¶ added in v0.3.0
func (x *MsgCancelProposal) GetProposalId() uint64
func (*MsgCancelProposal) GetProposer ¶ added in v0.3.0
func (x *MsgCancelProposal) GetProposer() string
func (*MsgCancelProposal) ProtoMessage ¶ added in v0.3.0
func (*MsgCancelProposal) ProtoMessage()
func (*MsgCancelProposal) ProtoReflect ¶ added in v0.3.0
func (x *MsgCancelProposal) ProtoReflect() protoreflect.Message
func (*MsgCancelProposal) Reset ¶ added in v0.3.0
func (x *MsgCancelProposal) Reset()
func (*MsgCancelProposal) String ¶ added in v0.3.0
func (x *MsgCancelProposal) String() string
type MsgCancelProposalResponse ¶ added in v0.3.0
type MsgCancelProposalResponse struct { // 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"` // canceled_height defines the block height at which the proposal is canceled. CanceledHeight uint64 `protobuf:"varint,3,opt,name=canceled_height,json=canceledHeight,proto3" json:"canceled_height,omitempty"` // contains filtered or unexported fields }
MsgCancelProposalResponse defines the response structure for executing a MsgCancelProposal message.
Since: cosmos-sdk 0.50
func (*MsgCancelProposalResponse) Descriptor
deprecated
added in
v0.3.0
func (*MsgCancelProposalResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCancelProposalResponse.ProtoReflect.Descriptor instead.
func (*MsgCancelProposalResponse) GetCanceledHeight ¶ added in v0.3.0
func (x *MsgCancelProposalResponse) GetCanceledHeight() uint64
func (*MsgCancelProposalResponse) GetCanceledTime ¶ added in v0.3.0
func (x *MsgCancelProposalResponse) GetCanceledTime() *timestamppb.Timestamp
func (*MsgCancelProposalResponse) GetProposalId ¶ added in v0.3.0
func (x *MsgCancelProposalResponse) GetProposalId() uint64
func (*MsgCancelProposalResponse) ProtoMessage ¶ added in v0.3.0
func (*MsgCancelProposalResponse) ProtoMessage()
func (*MsgCancelProposalResponse) ProtoReflect ¶ added in v0.3.0
func (x *MsgCancelProposalResponse) ProtoReflect() protoreflect.Message
func (*MsgCancelProposalResponse) Reset ¶ added in v0.3.0
func (x *MsgCancelProposalResponse) Reset()
func (*MsgCancelProposalResponse) String ¶ added in v0.3.0
func (x *MsgCancelProposalResponse) String() string
type MsgClient ¶
type MsgClient interface { // SubmitProposal defines a method to create new proposal given the messages. SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) // ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal // to execute a legacy content-based proposal. ExecLegacyContent(ctx context.Context, in *MsgExecLegacyContent, opts ...grpc.CallOption) (*MsgExecLegacyContentResponse, error) // 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. 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) // UpdateParams defines a governance operation for updating the x/gov module // parameters. The authority is defined in the keeper. // // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // CancelProposal defines a method to cancel governance proposal // // Since: cosmos-sdk 0.50 CancelProposal(ctx context.Context, in *MsgCancelProposal, opts ...grpc.CallOption) (*MsgCancelProposalResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgDeposit ¶
type MsgDeposit struct { // 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"` // depositor defines the deposit addresses from the proposals. Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` // amount to be deposited by depositor. Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
MsgDeposit defines a message to submit a deposit to an existing proposal.
func (*MsgDeposit) Descriptor
deprecated
func (*MsgDeposit) Descriptor() ([]byte, []int)
Deprecated: Use MsgDeposit.ProtoReflect.Descriptor instead.
func (*MsgDeposit) GetAmount ¶
func (x *MsgDeposit) GetAmount() []*v1beta1.Coin
func (*MsgDeposit) GetDepositor ¶
func (x *MsgDeposit) GetDepositor() string
func (*MsgDeposit) GetProposalId ¶
func (x *MsgDeposit) GetProposalId() uint64
func (*MsgDeposit) ProtoMessage ¶
func (*MsgDeposit) ProtoMessage()
func (*MsgDeposit) ProtoReflect ¶
func (x *MsgDeposit) ProtoReflect() protoreflect.Message
func (*MsgDeposit) Reset ¶
func (x *MsgDeposit) Reset()
func (*MsgDeposit) String ¶
func (x *MsgDeposit) String() string
type MsgDepositResponse ¶
type MsgDepositResponse struct {
// contains filtered or unexported fields
}
MsgDepositResponse defines the Msg/Deposit response type.
func (*MsgDepositResponse) Descriptor
deprecated
func (*MsgDepositResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgDepositResponse.ProtoReflect.Descriptor instead.
func (*MsgDepositResponse) ProtoMessage ¶
func (*MsgDepositResponse) ProtoMessage()
func (*MsgDepositResponse) ProtoReflect ¶
func (x *MsgDepositResponse) ProtoReflect() protoreflect.Message
func (*MsgDepositResponse) Reset ¶
func (x *MsgDepositResponse) Reset()
func (*MsgDepositResponse) String ¶
func (x *MsgDepositResponse) String() string
type MsgExecLegacyContent ¶
type MsgExecLegacyContent struct { // content is the proposal's content. Content *anypb.Any `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // authority must be the gov module address. Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` // contains filtered or unexported fields }
MsgExecLegacyContent is used to wrap the legacy content field into a message. This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
func (*MsgExecLegacyContent) Descriptor
deprecated
func (*MsgExecLegacyContent) Descriptor() ([]byte, []int)
Deprecated: Use MsgExecLegacyContent.ProtoReflect.Descriptor instead.
func (*MsgExecLegacyContent) GetAuthority ¶
func (x *MsgExecLegacyContent) GetAuthority() string
func (*MsgExecLegacyContent) GetContent ¶
func (x *MsgExecLegacyContent) GetContent() *anypb.Any
func (*MsgExecLegacyContent) ProtoMessage ¶
func (*MsgExecLegacyContent) ProtoMessage()
func (*MsgExecLegacyContent) ProtoReflect ¶
func (x *MsgExecLegacyContent) ProtoReflect() protoreflect.Message
func (*MsgExecLegacyContent) Reset ¶
func (x *MsgExecLegacyContent) Reset()
func (*MsgExecLegacyContent) String ¶
func (x *MsgExecLegacyContent) String() string
type MsgExecLegacyContentResponse ¶
type MsgExecLegacyContentResponse struct {
// contains filtered or unexported fields
}
MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type.
func (*MsgExecLegacyContentResponse) Descriptor
deprecated
func (*MsgExecLegacyContentResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgExecLegacyContentResponse.ProtoReflect.Descriptor instead.
func (*MsgExecLegacyContentResponse) ProtoMessage ¶
func (*MsgExecLegacyContentResponse) ProtoMessage()
func (*MsgExecLegacyContentResponse) ProtoReflect ¶
func (x *MsgExecLegacyContentResponse) ProtoReflect() protoreflect.Message
func (*MsgExecLegacyContentResponse) Reset ¶
func (x *MsgExecLegacyContentResponse) Reset()
func (*MsgExecLegacyContentResponse) String ¶
func (x *MsgExecLegacyContentResponse) String() string
type MsgServer ¶
type MsgServer interface { // SubmitProposal defines a method to create new proposal given the messages. SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) // ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal // to execute a legacy content-based proposal. ExecLegacyContent(context.Context, *MsgExecLegacyContent) (*MsgExecLegacyContentResponse, error) // 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. VoteWeighted(context.Context, *MsgVoteWeighted) (*MsgVoteWeightedResponse, error) // Deposit defines a method to add deposit on a specific proposal. Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error) // UpdateParams defines a governance operation for updating the x/gov module // parameters. The authority is defined in the keeper. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // CancelProposal defines a method to cancel governance proposal // // Since: cosmos-sdk 0.50 CancelProposal(context.Context, *MsgCancelProposal) (*MsgCancelProposalResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgSubmitProposal ¶
type MsgSubmitProposal struct { // messages are the arbitrary messages to be executed if proposal passes. Messages []*anypb.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // initial_deposit is the deposit value that must be paid at proposal submission. InitialDeposit []*v1beta1.Coin `protobuf:"bytes,2,rep,name=initial_deposit,json=initialDeposit,proto3" json:"initial_deposit,omitempty"` // proposer is the account address of the proposer. Proposer string `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"` // metadata is any arbitrary metadata attached to the proposal. Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // title is the title of the proposal. // // Since: cosmos-sdk 0.47 Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` // summary is the summary of the proposal // // Since: cosmos-sdk 0.47 Summary string `protobuf:"bytes,6,opt,name=summary,proto3" json:"summary,omitempty"` // 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"` // contains filtered or unexported fields }
MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary proposal Content.
func (*MsgSubmitProposal) Descriptor
deprecated
func (*MsgSubmitProposal) Descriptor() ([]byte, []int)
Deprecated: Use MsgSubmitProposal.ProtoReflect.Descriptor instead.
func (*MsgSubmitProposal) GetExpedited ¶ added in v0.3.0
func (x *MsgSubmitProposal) GetExpedited() bool
func (*MsgSubmitProposal) GetInitialDeposit ¶
func (x *MsgSubmitProposal) GetInitialDeposit() []*v1beta1.Coin
func (*MsgSubmitProposal) GetMessages ¶
func (x *MsgSubmitProposal) GetMessages() []*anypb.Any
func (*MsgSubmitProposal) GetMetadata ¶
func (x *MsgSubmitProposal) GetMetadata() string
func (*MsgSubmitProposal) GetProposer ¶
func (x *MsgSubmitProposal) GetProposer() string
func (*MsgSubmitProposal) GetSummary ¶ added in v0.3.0
func (x *MsgSubmitProposal) GetSummary() string
func (*MsgSubmitProposal) GetTitle ¶ added in v0.3.0
func (x *MsgSubmitProposal) GetTitle() string
func (*MsgSubmitProposal) ProtoMessage ¶
func (*MsgSubmitProposal) ProtoMessage()
func (*MsgSubmitProposal) ProtoReflect ¶
func (x *MsgSubmitProposal) ProtoReflect() protoreflect.Message
func (*MsgSubmitProposal) Reset ¶
func (x *MsgSubmitProposal) Reset()
func (*MsgSubmitProposal) String ¶
func (x *MsgSubmitProposal) String() string
type MsgSubmitProposalResponse ¶
type MsgSubmitProposalResponse struct { // 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"` // contains filtered or unexported fields }
MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
func (*MsgSubmitProposalResponse) Descriptor
deprecated
func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSubmitProposalResponse.ProtoReflect.Descriptor instead.
func (*MsgSubmitProposalResponse) GetProposalId ¶
func (x *MsgSubmitProposalResponse) GetProposalId() uint64
func (*MsgSubmitProposalResponse) ProtoMessage ¶
func (*MsgSubmitProposalResponse) ProtoMessage()
func (*MsgSubmitProposalResponse) ProtoReflect ¶
func (x *MsgSubmitProposalResponse) ProtoReflect() protoreflect.Message
func (*MsgSubmitProposalResponse) Reset ¶
func (x *MsgSubmitProposalResponse) Reset()
func (*MsgSubmitProposalResponse) String ¶
func (x *MsgSubmitProposalResponse) String() string
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/gov parameters to update. // // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams is the Msg/UpdateParams request type.
Since: cosmos-sdk 0.47
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type MsgVote ¶
type MsgVote struct { // 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"` // voter is the voter address for the proposal. Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` // option defines the vote option. Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.v1.VoteOption" json:"option,omitempty"` // metadata is any arbitrary metadata attached to the Vote. Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
MsgVote defines a message to cast a vote.
func (*MsgVote) GetOption ¶
func (x *MsgVote) GetOption() VoteOption
func (*MsgVote) ProtoReflect ¶
func (x *MsgVote) ProtoReflect() protoreflect.Message
type MsgVoteResponse ¶
type MsgVoteResponse struct {
// contains filtered or unexported fields
}
MsgVoteResponse defines the Msg/Vote response type.
func (*MsgVoteResponse) Descriptor
deprecated
func (*MsgVoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgVoteResponse.ProtoReflect.Descriptor instead.
func (*MsgVoteResponse) ProtoMessage ¶
func (*MsgVoteResponse) ProtoMessage()
func (*MsgVoteResponse) ProtoReflect ¶
func (x *MsgVoteResponse) ProtoReflect() protoreflect.Message
func (*MsgVoteResponse) Reset ¶
func (x *MsgVoteResponse) Reset()
func (*MsgVoteResponse) String ¶
func (x *MsgVoteResponse) String() string
type MsgVoteWeighted ¶
type MsgVoteWeighted struct { // 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"` // voter is the voter address for the proposal. Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` // options defines the weighted vote options. Options []*WeightedVoteOption `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` // metadata is any arbitrary metadata attached to the VoteWeighted. Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
MsgVoteWeighted defines a message to cast a vote.
func (*MsgVoteWeighted) Descriptor
deprecated
func (*MsgVoteWeighted) Descriptor() ([]byte, []int)
Deprecated: Use MsgVoteWeighted.ProtoReflect.Descriptor instead.
func (*MsgVoteWeighted) GetMetadata ¶
func (x *MsgVoteWeighted) GetMetadata() string
func (*MsgVoteWeighted) GetOptions ¶
func (x *MsgVoteWeighted) GetOptions() []*WeightedVoteOption
func (*MsgVoteWeighted) GetProposalId ¶
func (x *MsgVoteWeighted) GetProposalId() uint64
func (*MsgVoteWeighted) GetVoter ¶
func (x *MsgVoteWeighted) GetVoter() string
func (*MsgVoteWeighted) ProtoMessage ¶
func (*MsgVoteWeighted) ProtoMessage()
func (*MsgVoteWeighted) ProtoReflect ¶
func (x *MsgVoteWeighted) ProtoReflect() protoreflect.Message
func (*MsgVoteWeighted) Reset ¶
func (x *MsgVoteWeighted) Reset()
func (*MsgVoteWeighted) String ¶
func (x *MsgVoteWeighted) String() string
type MsgVoteWeightedResponse ¶
type MsgVoteWeightedResponse struct {
// contains filtered or unexported fields
}
MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
func (*MsgVoteWeightedResponse) Descriptor
deprecated
func (*MsgVoteWeightedResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgVoteWeightedResponse.ProtoReflect.Descriptor instead.
func (*MsgVoteWeightedResponse) ProtoMessage ¶
func (*MsgVoteWeightedResponse) ProtoMessage()
func (*MsgVoteWeightedResponse) ProtoReflect ¶
func (x *MsgVoteWeightedResponse) ProtoReflect() protoreflect.Message
func (*MsgVoteWeightedResponse) Reset ¶
func (x *MsgVoteWeightedResponse) Reset()
func (*MsgVoteWeightedResponse) String ¶
func (x *MsgVoteWeightedResponse) String() string
type Params ¶
type Params struct { // Minimum deposit for a proposal to enter voting period. MinDeposit []*v1beta1.Coin `protobuf:"bytes,1,rep,name=min_deposit,json=minDeposit,proto3" json:"min_deposit,omitempty"` // Maximum period for Atom holders to deposit on a proposal. Initial value: 2 // months. MaxDepositPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=max_deposit_period,json=maxDepositPeriod,proto3" json:"max_deposit_period,omitempty"` // Duration of the voting period. VotingPeriod *durationpb.Duration `protobuf:"bytes,3,opt,name=voting_period,json=votingPeriod,proto3" json:"voting_period,omitempty"` // Minimum percentage of total stake needed to vote for a result to be // considered valid. Quorum string `protobuf:"bytes,4,opt,name=quorum,proto3" json:"quorum,omitempty"` // Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. Threshold string `protobuf:"bytes,5,opt,name=threshold,proto3" json:"threshold,omitempty"` // Minimum value of Veto votes to Total votes ratio for proposal to be // vetoed. Default value: 1/3. VetoThreshold string `protobuf:"bytes,6,opt,name=veto_threshold,json=vetoThreshold,proto3" json:"veto_threshold,omitempty"` // The ratio representing the proportion of the deposit value that must be paid at proposal submission. MinInitialDepositRatio string `` /* 131-byte string literal not displayed */ // The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. // // Since: cosmos-sdk 0.50 ProposalCancelRatio string `protobuf:"bytes,8,opt,name=proposal_cancel_ratio,json=proposalCancelRatio,proto3" json:"proposal_cancel_ratio,omitempty"` // The address which will receive (proposal_cancel_ratio * deposit) proposal deposits. // If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. // // Since: cosmos-sdk 0.50 ProposalCancelDest string `protobuf:"bytes,9,opt,name=proposal_cancel_dest,json=proposalCancelDest,proto3" json:"proposal_cancel_dest,omitempty"` // Duration of the voting period of an expedited proposal. // // Since: cosmos-sdk 0.50 ExpeditedVotingPeriod *durationpb.Duration `` /* 127-byte string literal not displayed */ // Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. // // Since: cosmos-sdk 0.50 ExpeditedThreshold string `protobuf:"bytes,11,opt,name=expedited_threshold,json=expeditedThreshold,proto3" json:"expedited_threshold,omitempty"` // Minimum expedited deposit for a proposal to enter voting period. ExpeditedMinDeposit []*v1beta1.Coin `protobuf:"bytes,12,rep,name=expedited_min_deposit,json=expeditedMinDeposit,proto3" json:"expedited_min_deposit,omitempty"` // burn deposits if a proposal does not meet quorum BurnVoteQuorum bool `protobuf:"varint,13,opt,name=burn_vote_quorum,json=burnVoteQuorum,proto3" json:"burn_vote_quorum,omitempty"` // burn deposits if the proposal does not enter voting period BurnProposalDepositPrevote bool `` /* 145-byte string literal not displayed */ // burn deposits if quorum with vote type no_veto is met BurnVoteVeto bool `protobuf:"varint,15,opt,name=burn_vote_veto,json=burnVoteVeto,proto3" json:"burn_vote_veto,omitempty"` // contains filtered or unexported fields }
Params defines the parameters for the x/gov module.
Since: cosmos-sdk 0.47
func (*Params) GetBurnProposalDepositPrevote ¶ added in v0.4.0
func (*Params) GetExpeditedMinDeposit ¶ added in v0.3.0
func (*Params) GetExpeditedThreshold ¶ added in v0.3.0
func (*Params) GetExpeditedVotingPeriod ¶ added in v0.3.0
func (x *Params) GetExpeditedVotingPeriod() *durationpb.Duration
func (*Params) GetMaxDepositPeriod ¶
func (x *Params) GetMaxDepositPeriod() *durationpb.Duration
func (*Params) GetProposalCancelDest ¶ added in v0.3.0
func (*Params) GetProposalCancelRatio ¶ added in v0.3.0
func (*Params) GetVotingPeriod ¶
func (x *Params) GetVotingPeriod() *durationpb.Duration
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type Proposal ¶
type Proposal struct { // id defines the unique id of the proposal. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // messages are the arbitrary messages to be executed if the proposal passes. Messages []*anypb.Any `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` // status defines the proposal status. Status ProposalStatus `protobuf:"varint,3,opt,name=status,proto3,enum=cosmos.gov.v1.ProposalStatus" json:"status,omitempty"` // final_tally_result is the final tally result of the proposal. When // querying a proposal via gRPC, this field is not populated until the // proposal's voting period has ended. FinalTallyResult *TallyResult `protobuf:"bytes,4,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result,omitempty"` // submit_time is the time of proposal submission. SubmitTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` // deposit_end_time is the end time for deposition. DepositEndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=deposit_end_time,json=depositEndTime,proto3" json:"deposit_end_time,omitempty"` // total_deposit is the total deposit on the proposal. TotalDeposit []*v1beta1.Coin `protobuf:"bytes,7,rep,name=total_deposit,json=totalDeposit,proto3" json:"total_deposit,omitempty"` // voting_start_time is the starting time to vote on a proposal. VotingStartTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=voting_start_time,json=votingStartTime,proto3" json:"voting_start_time,omitempty"` // voting_end_time is the end time of voting on a proposal. VotingEndTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=voting_end_time,json=votingEndTime,proto3" json:"voting_end_time,omitempty"` // 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 Metadata string `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"` // title is the title of the proposal // // Since: cosmos-sdk 0.47 Title string `protobuf:"bytes,11,opt,name=title,proto3" json:"title,omitempty"` // summary is a short summary of the proposal // // Since: cosmos-sdk 0.47 Summary string `protobuf:"bytes,12,opt,name=summary,proto3" json:"summary,omitempty"` // proposer is the address of the proposal sumbitter // // Since: cosmos-sdk 0.47 Proposer string `protobuf:"bytes,13,opt,name=proposer,proto3" json:"proposer,omitempty"` // expedited defines if the proposal is expedited // // Since: cosmos-sdk 0.50 Expedited bool `protobuf:"varint,14,opt,name=expedited,proto3" json:"expedited,omitempty"` // failed_reason defines the reason why the proposal failed // // Since: cosmos-sdk 0.50 FailedReason string `protobuf:"bytes,15,opt,name=failed_reason,json=failedReason,proto3" json:"failed_reason,omitempty"` // contains filtered or unexported fields }
Proposal defines the core field members of a governance proposal.
func (*Proposal) GetDepositEndTime ¶
func (x *Proposal) GetDepositEndTime() *timestamppb.Timestamp
func (*Proposal) GetFinalTallyResult ¶
func (x *Proposal) GetFinalTallyResult() *TallyResult
func (*Proposal) GetStatus ¶
func (x *Proposal) GetStatus() ProposalStatus
func (*Proposal) GetSubmitTime ¶
func (x *Proposal) GetSubmitTime() *timestamppb.Timestamp
func (*Proposal) GetVotingEndTime ¶
func (x *Proposal) GetVotingEndTime() *timestamppb.Timestamp
func (*Proposal) GetVotingStartTime ¶
func (x *Proposal) GetVotingStartTime() *timestamppb.Timestamp
func (*Proposal) ProtoReflect ¶
func (x *Proposal) ProtoReflect() protoreflect.Message
type ProposalStatus ¶
type ProposalStatus int32
ProposalStatus enumerates the valid statuses of a proposal.
const ( // PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. ProposalStatus_PROPOSAL_STATUS_UNSPECIFIED ProposalStatus = 0 // PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit // period. ProposalStatus_PROPOSAL_STATUS_DEPOSIT_PERIOD ProposalStatus = 1 // PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting // period. ProposalStatus_PROPOSAL_STATUS_VOTING_PERIOD ProposalStatus = 2 // PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has // passed. ProposalStatus_PROPOSAL_STATUS_PASSED ProposalStatus = 3 // PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has // been rejected. ProposalStatus_PROPOSAL_STATUS_REJECTED ProposalStatus = 4 // PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has // failed. ProposalStatus_PROPOSAL_STATUS_FAILED ProposalStatus = 5 )
func (ProposalStatus) Descriptor ¶
func (ProposalStatus) Descriptor() protoreflect.EnumDescriptor
func (ProposalStatus) Enum ¶
func (x ProposalStatus) Enum() *ProposalStatus
func (ProposalStatus) EnumDescriptor
deprecated
func (ProposalStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProposalStatus.Descriptor instead.
func (ProposalStatus) Number ¶
func (x ProposalStatus) Number() protoreflect.EnumNumber
func (ProposalStatus) String ¶
func (x ProposalStatus) String() string
func (ProposalStatus) Type ¶
func (ProposalStatus) Type() protoreflect.EnumType
type QueryClient ¶
type QueryClient interface { // Constitution queries the chain's constitution. Constitution(ctx context.Context, in *QueryConstitutionRequest, opts ...grpc.CallOption) (*QueryConstitutionResponse, error) // Proposal queries proposal details based on ProposalID. Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) // 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. 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) // 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 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) // TallyResult queries the tally of a proposal vote. TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryConstitutionRequest ¶ added in v0.4.0
type QueryConstitutionRequest struct {
// contains filtered or unexported fields
}
QueryConstitutionRequest is the request type for the Query/Constitution RPC method
func (*QueryConstitutionRequest) Descriptor
deprecated
added in
v0.4.0
func (*QueryConstitutionRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryConstitutionRequest.ProtoReflect.Descriptor instead.
func (*QueryConstitutionRequest) ProtoMessage ¶ added in v0.4.0
func (*QueryConstitutionRequest) ProtoMessage()
func (*QueryConstitutionRequest) ProtoReflect ¶ added in v0.4.0
func (x *QueryConstitutionRequest) ProtoReflect() protoreflect.Message
func (*QueryConstitutionRequest) Reset ¶ added in v0.4.0
func (x *QueryConstitutionRequest) Reset()
func (*QueryConstitutionRequest) String ¶ added in v0.4.0
func (x *QueryConstitutionRequest) String() string
type QueryConstitutionResponse ¶ added in v0.4.0
type QueryConstitutionResponse struct { Constitution string `protobuf:"bytes,1,opt,name=constitution,proto3" json:"constitution,omitempty"` // contains filtered or unexported fields }
QueryConstitutionResponse is the response type for the Query/Constitution RPC method
func (*QueryConstitutionResponse) Descriptor
deprecated
added in
v0.4.0
func (*QueryConstitutionResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryConstitutionResponse.ProtoReflect.Descriptor instead.
func (*QueryConstitutionResponse) GetConstitution ¶ added in v0.4.0
func (x *QueryConstitutionResponse) GetConstitution() string
func (*QueryConstitutionResponse) ProtoMessage ¶ added in v0.4.0
func (*QueryConstitutionResponse) ProtoMessage()
func (*QueryConstitutionResponse) ProtoReflect ¶ added in v0.4.0
func (x *QueryConstitutionResponse) ProtoReflect() protoreflect.Message
func (*QueryConstitutionResponse) Reset ¶ added in v0.4.0
func (x *QueryConstitutionResponse) Reset()
func (*QueryConstitutionResponse) String ¶ added in v0.4.0
func (x *QueryConstitutionResponse) String() string
type QueryDepositRequest ¶
type QueryDepositRequest struct { // 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"` // depositor defines the deposit addresses from the proposals. Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` // contains filtered or unexported fields }
QueryDepositRequest is the request type for the Query/Deposit RPC method.
func (*QueryDepositRequest) Descriptor
deprecated
func (*QueryDepositRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDepositRequest.ProtoReflect.Descriptor instead.
func (*QueryDepositRequest) GetDepositor ¶
func (x *QueryDepositRequest) GetDepositor() string
func (*QueryDepositRequest) GetProposalId ¶
func (x *QueryDepositRequest) GetProposalId() uint64
func (*QueryDepositRequest) ProtoMessage ¶
func (*QueryDepositRequest) ProtoMessage()
func (*QueryDepositRequest) ProtoReflect ¶
func (x *QueryDepositRequest) ProtoReflect() protoreflect.Message
func (*QueryDepositRequest) Reset ¶
func (x *QueryDepositRequest) Reset()
func (*QueryDepositRequest) String ¶
func (x *QueryDepositRequest) String() string
type QueryDepositResponse ¶
type QueryDepositResponse struct { // deposit defines the requested deposit. Deposit *Deposit `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit,omitempty"` // contains filtered or unexported fields }
QueryDepositResponse is the response type for the Query/Deposit RPC method.
func (*QueryDepositResponse) Descriptor
deprecated
func (*QueryDepositResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDepositResponse.ProtoReflect.Descriptor instead.
func (*QueryDepositResponse) GetDeposit ¶
func (x *QueryDepositResponse) GetDeposit() *Deposit
func (*QueryDepositResponse) ProtoMessage ¶
func (*QueryDepositResponse) ProtoMessage()
func (*QueryDepositResponse) ProtoReflect ¶
func (x *QueryDepositResponse) ProtoReflect() protoreflect.Message
func (*QueryDepositResponse) Reset ¶
func (x *QueryDepositResponse) Reset()
func (*QueryDepositResponse) String ¶
func (x *QueryDepositResponse) String() string
type QueryDepositsRequest ¶
type QueryDepositsRequest struct { // 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"` // pagination defines an optional pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryDepositsRequest is the request type for the Query/Deposits RPC method.
func (*QueryDepositsRequest) Descriptor
deprecated
func (*QueryDepositsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDepositsRequest.ProtoReflect.Descriptor instead.
func (*QueryDepositsRequest) GetPagination ¶
func (x *QueryDepositsRequest) GetPagination() *v1beta1.PageRequest
func (*QueryDepositsRequest) GetProposalId ¶
func (x *QueryDepositsRequest) GetProposalId() uint64
func (*QueryDepositsRequest) ProtoMessage ¶
func (*QueryDepositsRequest) ProtoMessage()
func (*QueryDepositsRequest) ProtoReflect ¶
func (x *QueryDepositsRequest) ProtoReflect() protoreflect.Message
func (*QueryDepositsRequest) Reset ¶
func (x *QueryDepositsRequest) Reset()
func (*QueryDepositsRequest) String ¶
func (x *QueryDepositsRequest) String() string
type QueryDepositsResponse ¶
type QueryDepositsResponse struct { // deposits defines the requested deposits. Deposits []*Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits,omitempty"` // pagination defines the pagination in the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryDepositsResponse is the response type for the Query/Deposits RPC method.
func (*QueryDepositsResponse) Descriptor
deprecated
func (*QueryDepositsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDepositsResponse.ProtoReflect.Descriptor instead.
func (*QueryDepositsResponse) GetDeposits ¶
func (x *QueryDepositsResponse) GetDeposits() []*Deposit
func (*QueryDepositsResponse) GetPagination ¶
func (x *QueryDepositsResponse) GetPagination() *v1beta1.PageResponse
func (*QueryDepositsResponse) ProtoMessage ¶
func (*QueryDepositsResponse) ProtoMessage()
func (*QueryDepositsResponse) ProtoReflect ¶
func (x *QueryDepositsResponse) ProtoReflect() protoreflect.Message
func (*QueryDepositsResponse) Reset ¶
func (x *QueryDepositsResponse) Reset()
func (*QueryDepositsResponse) String ¶
func (x *QueryDepositsResponse) String() string
type QueryParamsRequest ¶
type QueryParamsRequest struct { // params_type defines which parameters to query for, can be one of "voting", // "tallying" or "deposit". ParamsType string `protobuf:"bytes,1,opt,name=params_type,json=paramsType,proto3" json:"params_type,omitempty"` // contains filtered or unexported fields }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) GetParamsType ¶
func (x *QueryParamsRequest) GetParamsType() string
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { // Deprecated: Prefer to use `params` instead. // voting_params defines the parameters related to voting. // // Deprecated: Do not use. VotingParams *VotingParams `protobuf:"bytes,1,opt,name=voting_params,json=votingParams,proto3" json:"voting_params,omitempty"` // Deprecated: Prefer to use `params` instead. // deposit_params defines the parameters related to deposit. // // Deprecated: Do not use. DepositParams *DepositParams `protobuf:"bytes,2,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params,omitempty"` // Deprecated: Prefer to use `params` instead. // tally_params defines the parameters related to tally. // // Deprecated: Do not use. TallyParams *TallyParams `protobuf:"bytes,3,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params,omitempty"` // params defines all the paramaters of x/gov module. // // Since: cosmos-sdk 0.47 Params *Params `protobuf:"bytes,4,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetDepositParams
deprecated
func (x *QueryParamsResponse) GetDepositParams() *DepositParams
Deprecated: Do not use.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) GetTallyParams
deprecated
func (x *QueryParamsResponse) GetTallyParams() *TallyParams
Deprecated: Do not use.
func (*QueryParamsResponse) GetVotingParams
deprecated
func (x *QueryParamsResponse) GetVotingParams() *VotingParams
Deprecated: Do not use.
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryProposalRequest ¶
type QueryProposalRequest struct { // 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"` // contains filtered or unexported fields }
QueryProposalRequest is the request type for the Query/Proposal RPC method.
func (*QueryProposalRequest) Descriptor
deprecated
func (*QueryProposalRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryProposalRequest.ProtoReflect.Descriptor instead.
func (*QueryProposalRequest) GetProposalId ¶
func (x *QueryProposalRequest) GetProposalId() uint64
func (*QueryProposalRequest) ProtoMessage ¶
func (*QueryProposalRequest) ProtoMessage()
func (*QueryProposalRequest) ProtoReflect ¶
func (x *QueryProposalRequest) ProtoReflect() protoreflect.Message
func (*QueryProposalRequest) Reset ¶
func (x *QueryProposalRequest) Reset()
func (*QueryProposalRequest) String ¶
func (x *QueryProposalRequest) String() string
type QueryProposalResponse ¶
type QueryProposalResponse struct { // proposal is the requested governance proposal. Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // contains filtered or unexported fields }
QueryProposalResponse is the response type for the Query/Proposal RPC method.
func (*QueryProposalResponse) Descriptor
deprecated
func (*QueryProposalResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryProposalResponse.ProtoReflect.Descriptor instead.
func (*QueryProposalResponse) GetProposal ¶
func (x *QueryProposalResponse) GetProposal() *Proposal
func (*QueryProposalResponse) ProtoMessage ¶
func (*QueryProposalResponse) ProtoMessage()
func (*QueryProposalResponse) ProtoReflect ¶
func (x *QueryProposalResponse) ProtoReflect() protoreflect.Message
func (*QueryProposalResponse) Reset ¶
func (x *QueryProposalResponse) Reset()
func (*QueryProposalResponse) String ¶
func (x *QueryProposalResponse) String() string
type QueryProposalsRequest ¶
type QueryProposalsRequest struct { // proposal_status defines the status of the proposals. ProposalStatus ProposalStatus `` /* 138-byte string literal not displayed */ // voter defines the voter address for the proposals. Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` // depositor defines the deposit addresses from the proposals. Depositor string `protobuf:"bytes,3,opt,name=depositor,proto3" json:"depositor,omitempty"` // pagination defines an optional pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryProposalsRequest is the request type for the Query/Proposals RPC method.
func (*QueryProposalsRequest) Descriptor
deprecated
func (*QueryProposalsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryProposalsRequest.ProtoReflect.Descriptor instead.
func (*QueryProposalsRequest) GetDepositor ¶
func (x *QueryProposalsRequest) GetDepositor() string
func (*QueryProposalsRequest) GetPagination ¶
func (x *QueryProposalsRequest) GetPagination() *v1beta1.PageRequest
func (*QueryProposalsRequest) GetProposalStatus ¶
func (x *QueryProposalsRequest) GetProposalStatus() ProposalStatus
func (*QueryProposalsRequest) GetVoter ¶
func (x *QueryProposalsRequest) GetVoter() string
func (*QueryProposalsRequest) ProtoMessage ¶
func (*QueryProposalsRequest) ProtoMessage()
func (*QueryProposalsRequest) ProtoReflect ¶
func (x *QueryProposalsRequest) ProtoReflect() protoreflect.Message
func (*QueryProposalsRequest) Reset ¶
func (x *QueryProposalsRequest) Reset()
func (*QueryProposalsRequest) String ¶
func (x *QueryProposalsRequest) String() string
type QueryProposalsResponse ¶
type QueryProposalsResponse struct { // proposals defines all the requested governance proposals. Proposals []*Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"` // pagination defines the pagination in the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryProposalsResponse is the response type for the Query/Proposals RPC method.
func (*QueryProposalsResponse) Descriptor
deprecated
func (*QueryProposalsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryProposalsResponse.ProtoReflect.Descriptor instead.
func (*QueryProposalsResponse) GetPagination ¶
func (x *QueryProposalsResponse) GetPagination() *v1beta1.PageResponse
func (*QueryProposalsResponse) GetProposals ¶
func (x *QueryProposalsResponse) GetProposals() []*Proposal
func (*QueryProposalsResponse) ProtoMessage ¶
func (*QueryProposalsResponse) ProtoMessage()
func (*QueryProposalsResponse) ProtoReflect ¶
func (x *QueryProposalsResponse) ProtoReflect() protoreflect.Message
func (*QueryProposalsResponse) Reset ¶
func (x *QueryProposalsResponse) Reset()
func (*QueryProposalsResponse) String ¶
func (x *QueryProposalsResponse) String() string
type QueryServer ¶
type QueryServer interface { // Constitution queries the chain's constitution. Constitution(context.Context, *QueryConstitutionRequest) (*QueryConstitutionResponse, error) // Proposal queries proposal details based on ProposalID. Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error) // Proposals queries all proposals based on given status. Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error) // Vote queries voted information based on proposalID, voterAddr. Vote(context.Context, *QueryVoteRequest) (*QueryVoteResponse, error) // Votes queries votes of a given proposal. 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 on proposalID, depositAddr. Deposit(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error) // Deposits queries all deposits of a single proposal. Deposits(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error) // TallyResult queries the tally of a proposal vote. TallyResult(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type QueryTallyResultRequest ¶
type QueryTallyResultRequest struct { // 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"` // contains filtered or unexported fields }
QueryTallyResultRequest is the request type for the Query/Tally RPC method.
func (*QueryTallyResultRequest) Descriptor
deprecated
func (*QueryTallyResultRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryTallyResultRequest.ProtoReflect.Descriptor instead.
func (*QueryTallyResultRequest) GetProposalId ¶
func (x *QueryTallyResultRequest) GetProposalId() uint64
func (*QueryTallyResultRequest) ProtoMessage ¶
func (*QueryTallyResultRequest) ProtoMessage()
func (*QueryTallyResultRequest) ProtoReflect ¶
func (x *QueryTallyResultRequest) ProtoReflect() protoreflect.Message
func (*QueryTallyResultRequest) Reset ¶
func (x *QueryTallyResultRequest) Reset()
func (*QueryTallyResultRequest) String ¶
func (x *QueryTallyResultRequest) String() string
type QueryTallyResultResponse ¶
type QueryTallyResultResponse struct { // tally defines the requested tally. Tally *TallyResult `protobuf:"bytes,1,opt,name=tally,proto3" json:"tally,omitempty"` // contains filtered or unexported fields }
QueryTallyResultResponse is the response type for the Query/Tally RPC method.
func (*QueryTallyResultResponse) Descriptor
deprecated
func (*QueryTallyResultResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryTallyResultResponse.ProtoReflect.Descriptor instead.
func (*QueryTallyResultResponse) GetTally ¶
func (x *QueryTallyResultResponse) GetTally() *TallyResult
func (*QueryTallyResultResponse) ProtoMessage ¶
func (*QueryTallyResultResponse) ProtoMessage()
func (*QueryTallyResultResponse) ProtoReflect ¶
func (x *QueryTallyResultResponse) ProtoReflect() protoreflect.Message
func (*QueryTallyResultResponse) Reset ¶
func (x *QueryTallyResultResponse) Reset()
func (*QueryTallyResultResponse) String ¶
func (x *QueryTallyResultResponse) String() string
type QueryVoteRequest ¶
type QueryVoteRequest struct { // 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"` // voter defines the voter address for the proposals. Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` // contains filtered or unexported fields }
QueryVoteRequest is the request type for the Query/Vote RPC method.
func (*QueryVoteRequest) Descriptor
deprecated
func (*QueryVoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryVoteRequest.ProtoReflect.Descriptor instead.
func (*QueryVoteRequest) GetProposalId ¶
func (x *QueryVoteRequest) GetProposalId() uint64
func (*QueryVoteRequest) GetVoter ¶
func (x *QueryVoteRequest) GetVoter() string
func (*QueryVoteRequest) ProtoMessage ¶
func (*QueryVoteRequest) ProtoMessage()
func (*QueryVoteRequest) ProtoReflect ¶
func (x *QueryVoteRequest) ProtoReflect() protoreflect.Message
func (*QueryVoteRequest) Reset ¶
func (x *QueryVoteRequest) Reset()
func (*QueryVoteRequest) String ¶
func (x *QueryVoteRequest) String() string
type QueryVoteResponse ¶
type QueryVoteResponse struct { // vote defines the queried vote. Vote *Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"` // contains filtered or unexported fields }
QueryVoteResponse is the response type for the Query/Vote RPC method.
func (*QueryVoteResponse) Descriptor
deprecated
func (*QueryVoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryVoteResponse.ProtoReflect.Descriptor instead.
func (*QueryVoteResponse) GetVote ¶
func (x *QueryVoteResponse) GetVote() *Vote
func (*QueryVoteResponse) ProtoMessage ¶
func (*QueryVoteResponse) ProtoMessage()
func (*QueryVoteResponse) ProtoReflect ¶
func (x *QueryVoteResponse) ProtoReflect() protoreflect.Message
func (*QueryVoteResponse) Reset ¶
func (x *QueryVoteResponse) Reset()
func (*QueryVoteResponse) String ¶
func (x *QueryVoteResponse) String() string
type QueryVotesRequest ¶
type QueryVotesRequest struct { // 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"` // pagination defines an optional pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryVotesRequest is the request type for the Query/Votes RPC method.
func (*QueryVotesRequest) Descriptor
deprecated
func (*QueryVotesRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryVotesRequest.ProtoReflect.Descriptor instead.
func (*QueryVotesRequest) GetPagination ¶
func (x *QueryVotesRequest) GetPagination() *v1beta1.PageRequest
func (*QueryVotesRequest) GetProposalId ¶
func (x *QueryVotesRequest) GetProposalId() uint64
func (*QueryVotesRequest) ProtoMessage ¶
func (*QueryVotesRequest) ProtoMessage()
func (*QueryVotesRequest) ProtoReflect ¶
func (x *QueryVotesRequest) ProtoReflect() protoreflect.Message
func (*QueryVotesRequest) Reset ¶
func (x *QueryVotesRequest) Reset()
func (*QueryVotesRequest) String ¶
func (x *QueryVotesRequest) String() string
type QueryVotesResponse ¶
type QueryVotesResponse struct { // votes defines the queried votes. Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"` // pagination defines the pagination in the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryVotesResponse is the response type for the Query/Votes RPC method.
func (*QueryVotesResponse) Descriptor
deprecated
func (*QueryVotesResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryVotesResponse.ProtoReflect.Descriptor instead.
func (*QueryVotesResponse) GetPagination ¶
func (x *QueryVotesResponse) GetPagination() *v1beta1.PageResponse
func (*QueryVotesResponse) GetVotes ¶
func (x *QueryVotesResponse) GetVotes() []*Vote
func (*QueryVotesResponse) ProtoMessage ¶
func (*QueryVotesResponse) ProtoMessage()
func (*QueryVotesResponse) ProtoReflect ¶
func (x *QueryVotesResponse) ProtoReflect() protoreflect.Message
func (*QueryVotesResponse) Reset ¶
func (x *QueryVotesResponse) Reset()
func (*QueryVotesResponse) String ¶
func (x *QueryVotesResponse) String() string
type TallyParams
deprecated
type TallyParams struct { // Minimum percentage of total stake needed to vote for a result to be // considered valid. Quorum string `protobuf:"bytes,1,opt,name=quorum,proto3" json:"quorum,omitempty"` // Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. Threshold string `protobuf:"bytes,2,opt,name=threshold,proto3" json:"threshold,omitempty"` // Minimum value of Veto votes to Total votes ratio for proposal to be // vetoed. Default value: 1/3. VetoThreshold string `protobuf:"bytes,3,opt,name=veto_threshold,json=vetoThreshold,proto3" json:"veto_threshold,omitempty"` // contains filtered or unexported fields }
TallyParams defines the params for tallying votes on governance proposals.
Deprecated: Do not use.
func (*TallyParams) Descriptor
deprecated
func (*TallyParams) Descriptor() ([]byte, []int)
Deprecated: Use TallyParams.ProtoReflect.Descriptor instead.
func (*TallyParams) GetQuorum ¶
func (x *TallyParams) GetQuorum() string
func (*TallyParams) GetThreshold ¶
func (x *TallyParams) GetThreshold() string
func (*TallyParams) GetVetoThreshold ¶
func (x *TallyParams) GetVetoThreshold() string
func (*TallyParams) ProtoMessage ¶
func (*TallyParams) ProtoMessage()
func (*TallyParams) ProtoReflect ¶
func (x *TallyParams) ProtoReflect() protoreflect.Message
func (*TallyParams) Reset ¶
func (x *TallyParams) Reset()
func (*TallyParams) String ¶
func (x *TallyParams) String() string
type TallyResult ¶
type TallyResult struct { // yes_count is the number of yes votes on a proposal. YesCount string `protobuf:"bytes,1,opt,name=yes_count,json=yesCount,proto3" json:"yes_count,omitempty"` // abstain_count is the number of abstain votes on a proposal. AbstainCount string `protobuf:"bytes,2,opt,name=abstain_count,json=abstainCount,proto3" json:"abstain_count,omitempty"` // no_count is the number of no votes on a proposal. NoCount string `protobuf:"bytes,3,opt,name=no_count,json=noCount,proto3" json:"no_count,omitempty"` // no_with_veto_count is the number of no with veto votes on a proposal. NoWithVetoCount string `protobuf:"bytes,4,opt,name=no_with_veto_count,json=noWithVetoCount,proto3" json:"no_with_veto_count,omitempty"` // contains filtered or unexported fields }
TallyResult defines a standard tally for a governance proposal.
func (*TallyResult) Descriptor
deprecated
func (*TallyResult) Descriptor() ([]byte, []int)
Deprecated: Use TallyResult.ProtoReflect.Descriptor instead.
func (*TallyResult) GetAbstainCount ¶
func (x *TallyResult) GetAbstainCount() string
func (*TallyResult) GetNoCount ¶
func (x *TallyResult) GetNoCount() string
func (*TallyResult) GetNoWithVetoCount ¶
func (x *TallyResult) GetNoWithVetoCount() string
func (*TallyResult) GetYesCount ¶
func (x *TallyResult) GetYesCount() string
func (*TallyResult) ProtoMessage ¶
func (*TallyResult) ProtoMessage()
func (*TallyResult) ProtoReflect ¶
func (x *TallyResult) ProtoReflect() protoreflect.Message
func (*TallyResult) Reset ¶
func (x *TallyResult) Reset()
func (*TallyResult) String ¶
func (x *TallyResult) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) CancelProposal ¶ added in v0.3.0
func (UnimplementedMsgServer) CancelProposal(context.Context, *MsgCancelProposal) (*MsgCancelProposalResponse, error)
func (UnimplementedMsgServer) Deposit ¶
func (UnimplementedMsgServer) Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)
func (UnimplementedMsgServer) ExecLegacyContent ¶
func (UnimplementedMsgServer) ExecLegacyContent(context.Context, *MsgExecLegacyContent) (*MsgExecLegacyContentResponse, error)
func (UnimplementedMsgServer) SubmitProposal ¶
func (UnimplementedMsgServer) SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (UnimplementedMsgServer) Vote ¶
func (UnimplementedMsgServer) Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
func (UnimplementedMsgServer) VoteWeighted ¶
func (UnimplementedMsgServer) VoteWeighted(context.Context, *MsgVoteWeighted) (*MsgVoteWeightedResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Constitution ¶ added in v0.4.0
func (UnimplementedQueryServer) Constitution(context.Context, *QueryConstitutionRequest) (*QueryConstitutionResponse, error)
func (UnimplementedQueryServer) Deposit ¶
func (UnimplementedQueryServer) Deposit(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error)
func (UnimplementedQueryServer) Deposits ¶
func (UnimplementedQueryServer) Deposits(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) Proposal ¶
func (UnimplementedQueryServer) Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
func (UnimplementedQueryServer) Proposals ¶
func (UnimplementedQueryServer) Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error)
func (UnimplementedQueryServer) TallyResult ¶
func (UnimplementedQueryServer) TallyResult(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error)
func (UnimplementedQueryServer) Vote ¶
func (UnimplementedQueryServer) Vote(context.Context, *QueryVoteRequest) (*QueryVoteResponse, error)
func (UnimplementedQueryServer) Votes ¶
func (UnimplementedQueryServer) Votes(context.Context, *QueryVotesRequest) (*QueryVotesResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.
type Vote ¶
type Vote struct { // 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"` // voter is the voter address of the proposal. 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 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"` // contains filtered or unexported fields }
Vote defines a vote on a governance proposal. A Vote consists of a proposal ID, the voter, and the vote option.
func (*Vote) GetOptions ¶
func (x *Vote) GetOptions() []*WeightedVoteOption
func (*Vote) ProtoReflect ¶
func (x *Vote) ProtoReflect() protoreflect.Message
type VoteOption ¶
type VoteOption int32
VoteOption enumerates the valid vote options for a given governance proposal.
const ( // VOTE_OPTION_UNSPECIFIED defines a no-op vote option. VoteOption_VOTE_OPTION_UNSPECIFIED VoteOption = 0 // VOTE_OPTION_YES defines a yes vote option. VoteOption_VOTE_OPTION_YES VoteOption = 1 // VOTE_OPTION_ABSTAIN defines an abstain vote option. VoteOption_VOTE_OPTION_ABSTAIN VoteOption = 2 // VOTE_OPTION_NO defines a no vote option. VoteOption_VOTE_OPTION_NO VoteOption = 3 // VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. VoteOption_VOTE_OPTION_NO_WITH_VETO VoteOption = 4 )
func (VoteOption) Descriptor ¶
func (VoteOption) Descriptor() protoreflect.EnumDescriptor
func (VoteOption) Enum ¶
func (x VoteOption) Enum() *VoteOption
func (VoteOption) EnumDescriptor
deprecated
func (VoteOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use VoteOption.Descriptor instead.
func (VoteOption) Number ¶
func (x VoteOption) Number() protoreflect.EnumNumber
func (VoteOption) String ¶
func (x VoteOption) String() string
func (VoteOption) Type ¶
func (VoteOption) Type() protoreflect.EnumType
type VotingParams
deprecated
type VotingParams struct { // Duration of the voting period. VotingPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=voting_period,json=votingPeriod,proto3" json:"voting_period,omitempty"` // contains filtered or unexported fields }
VotingParams defines the params for voting on governance proposals.
Deprecated: Do not use.
func (*VotingParams) Descriptor
deprecated
func (*VotingParams) Descriptor() ([]byte, []int)
Deprecated: Use VotingParams.ProtoReflect.Descriptor instead.
func (*VotingParams) GetVotingPeriod ¶
func (x *VotingParams) GetVotingPeriod() *durationpb.Duration
func (*VotingParams) ProtoMessage ¶
func (*VotingParams) ProtoMessage()
func (*VotingParams) ProtoReflect ¶
func (x *VotingParams) ProtoReflect() protoreflect.Message
func (*VotingParams) Reset ¶
func (x *VotingParams) Reset()
func (*VotingParams) String ¶
func (x *VotingParams) String() string
type WeightedVoteOption ¶
type WeightedVoteOption struct { // option defines the valid vote options, it must not contain duplicate vote options. Option VoteOption `protobuf:"varint,1,opt,name=option,proto3,enum=cosmos.gov.v1.VoteOption" json:"option,omitempty"` // weight is the vote weight associated with the vote option. Weight string `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"` // contains filtered or unexported fields }
WeightedVoteOption defines a unit of vote for vote split.
func (*WeightedVoteOption) Descriptor
deprecated
func (*WeightedVoteOption) Descriptor() ([]byte, []int)
Deprecated: Use WeightedVoteOption.ProtoReflect.Descriptor instead.
func (*WeightedVoteOption) GetOption ¶
func (x *WeightedVoteOption) GetOption() VoteOption
func (*WeightedVoteOption) GetWeight ¶
func (x *WeightedVoteOption) GetWeight() string
func (*WeightedVoteOption) ProtoMessage ¶
func (*WeightedVoteOption) ProtoMessage()
func (*WeightedVoteOption) ProtoReflect ¶
func (x *WeightedVoteOption) ProtoReflect() protoreflect.Message
func (*WeightedVoteOption) Reset ¶
func (x *WeightedVoteOption) Reset()
func (*WeightedVoteOption) String ¶
func (x *WeightedVoteOption) String() string