Versions in this module Expand all Collapse all v0 v0.1.3 Aug 12, 2023 v0.1.2 Aug 5, 2023 v0.1.1 Aug 4, 2023 Changes in this version + const DefaultPeriod + const DefaultStartingProposalID + const OptionAbstain + const OptionEmpty + const OptionNo + const OptionNoWithVeto + const OptionYes + const ParamDeposit + const ParamTallying + const ParamVoting + const QueryDeposit + const QueryDeposits + const QueryParams + const QueryProposal + const QueryProposals + const QueryTally + const QueryVote + const QueryVotes + const StatusDepositPeriod + const StatusFailed + const StatusNil + const StatusPassed + const StatusRejected + const StatusVotingPeriod + var DefaultMinDepositTokens = sdk.NewInt(10000000) + var DefaultQuorum = sdk.NewDecWithPrec(334, 3) + var DefaultThreshold = sdk.NewDecWithPrec(5, 1) + var DefaultVetoThreshold = sdk.NewDecWithPrec(334, 3) + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var ModuleCdc = codec.NewAminoCodec(amino) + var ParamStoreKeyDepositParams = []byte("depositparams") + var ParamStoreKeyTallyParams = []byte("tallyparams") + var ParamStoreKeyVotingParams = []byte("votingparams") + var ProposalStatus_name = map[int32]string + var ProposalStatus_value = map[string]int32 + var VoteOption_name = map[int32]string + var VoteOption_value = map[string]int32 + func LegacyContentFromMessage(msg *MsgExecLegacyContent) (v1beta1.Content, error) + func ParamKeyTable() paramtypes.KeyTable + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + func RegisterMsgServer(s grpc1.Server, srv MsgServer) + func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error + func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error + func RegisterQueryServer(s grpc1.Server, srv QueryServer) + func ValidProposalStatus(status ProposalStatus) bool + func ValidVoteOption(option VoteOption) bool + func ValidWeightedVoteOption(option WeightedVoteOption) bool + func ValidateGenesis(data *GenesisState) error + type Deposit struct + Amount []types.Coin + Depositor string + ProposalId uint64 + func NewDeposit(proposalID uint64, depositor sdk.AccAddress, amount sdk.Coins) Deposit + func (*Deposit) Descriptor() ([]byte, []int) + func (*Deposit) ProtoMessage() + func (m *Deposit) GetAmount() []types.Coin + func (m *Deposit) GetDepositor() string + func (m *Deposit) GetProposalId() uint64 + func (m *Deposit) Marshal() (dAtA []byte, err error) + func (m *Deposit) MarshalTo(dAtA []byte) (int, error) + func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Deposit) Reset() + func (m *Deposit) Size() (n int) + func (m *Deposit) String() string + func (m *Deposit) Unmarshal(dAtA []byte) error + func (m *Deposit) XXX_DiscardUnknown() + func (m *Deposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Deposit) XXX_Merge(src proto.Message) + func (m *Deposit) XXX_Size() int + func (m *Deposit) XXX_Unmarshal(b []byte) error + type DepositParams struct + MaxDepositPeriod *time.Duration + MinDeposit []types.Coin + func DefaultDepositParams() DepositParams + func NewDepositParams(minDeposit sdk.Coins, maxDepositPeriod time.Duration) DepositParams + func (*DepositParams) Descriptor() ([]byte, []int) + func (*DepositParams) ProtoMessage() + func (dp DepositParams) Equal(dp2 DepositParams) bool + func (m *DepositParams) GetMaxDepositPeriod() *time.Duration + func (m *DepositParams) GetMinDeposit() []types.Coin + func (m *DepositParams) Marshal() (dAtA []byte, err error) + func (m *DepositParams) MarshalTo(dAtA []byte) (int, error) + func (m *DepositParams) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *DepositParams) Reset() + func (m *DepositParams) Size() (n int) + func (m *DepositParams) String() string + func (m *DepositParams) Unmarshal(dAtA []byte) error + func (m *DepositParams) XXX_DiscardUnknown() + func (m *DepositParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DepositParams) XXX_Merge(src proto.Message) + func (m *DepositParams) XXX_Size() int + func (m *DepositParams) XXX_Unmarshal(b []byte) error + type Deposits []*Deposit + func (d Deposits) Equal(other Deposits) bool + func (d Deposits) String() string + type GenesisState struct + DepositParams *DepositParams + Deposits []*Deposit + Proposals []*Proposal + StartingProposalId uint64 + TallyParams *TallyParams + Votes []*Vote + VotingParams *VotingParams + func DefaultGenesisState() *GenesisState + func NewGenesisState(startingProposalID uint64, dp DepositParams, vp VotingParams, tp TallyParams) *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (data GenesisState) Empty() bool + func (data GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error + func (m *GenesisState) GetDepositParams() *DepositParams + func (m *GenesisState) GetDeposits() []*Deposit + func (m *GenesisState) GetProposals() []*Proposal + func (m *GenesisState) GetStartingProposalId() uint64 + func (m *GenesisState) GetTallyParams() *TallyParams + func (m *GenesisState) GetVotes() []*Vote + func (m *GenesisState) GetVotingParams() *VotingParams + func (m *GenesisState) Marshal() (dAtA []byte, err error) + func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) + func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) error + func (m *GenesisState) XXX_DiscardUnknown() + func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenesisState) XXX_Merge(src proto.Message) + func (m *GenesisState) XXX_Size() int + func (m *GenesisState) XXX_Unmarshal(b []byte) error + type MsgClient interface + Deposit func(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) + ExecLegacyContent func(ctx context.Context, in *MsgExecLegacyContent, opts ...grpc.CallOption) (*MsgExecLegacyContentResponse, error) + SubmitProposal func(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) + Vote func(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) + VoteWeighted func(ctx context.Context, in *MsgVoteWeighted, opts ...grpc.CallOption) (*MsgVoteWeightedResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgDeposit struct + Amount []types1.Coin + Depositor string + ProposalId uint64 + func NewMsgDeposit(depositor sdk.AccAddress, proposalID uint64, amount sdk.Coins) *MsgDeposit + func (*MsgDeposit) Descriptor() ([]byte, []int) + func (*MsgDeposit) ProtoMessage() + func (m *MsgDeposit) GetAmount() []types1.Coin + func (m *MsgDeposit) GetDepositor() string + func (m *MsgDeposit) GetProposalId() uint64 + func (m *MsgDeposit) Marshal() (dAtA []byte, err error) + func (m *MsgDeposit) MarshalTo(dAtA []byte) (int, error) + func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgDeposit) Reset() + func (m *MsgDeposit) Size() (n int) + func (m *MsgDeposit) String() string + func (m *MsgDeposit) Unmarshal(dAtA []byte) error + func (m *MsgDeposit) XXX_DiscardUnknown() + func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgDeposit) XXX_Merge(src proto.Message) + func (m *MsgDeposit) XXX_Size() int + func (m *MsgDeposit) XXX_Unmarshal(b []byte) error + func (msg MsgDeposit) GetSignBytes() []byte + func (msg MsgDeposit) GetSigners() []sdk.AccAddress + func (msg MsgDeposit) Route() string + func (msg MsgDeposit) Type() string + func (msg MsgDeposit) ValidateBasic() error + type MsgDepositResponse struct + func (*MsgDepositResponse) Descriptor() ([]byte, []int) + func (*MsgDepositResponse) ProtoMessage() + func (m *MsgDepositResponse) Marshal() (dAtA []byte, err error) + func (m *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgDepositResponse) Reset() + func (m *MsgDepositResponse) Size() (n int) + func (m *MsgDepositResponse) String() string + func (m *MsgDepositResponse) Unmarshal(dAtA []byte) error + func (m *MsgDepositResponse) XXX_DiscardUnknown() + func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgDepositResponse) XXX_Merge(src proto.Message) + func (m *MsgDepositResponse) XXX_Size() int + func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error + type MsgExecLegacyContent struct + Authority string + Content *types.Any + func NewLegacyContent(content v1beta1.Content, authority string) (*MsgExecLegacyContent, error) + func NewMsgExecLegacyContent(content *codectypes.Any, authority string) *MsgExecLegacyContent + func (*MsgExecLegacyContent) Descriptor() ([]byte, []int) + func (*MsgExecLegacyContent) ProtoMessage() + func (c MsgExecLegacyContent) GetSigners() []sdk.AccAddress + func (c MsgExecLegacyContent) ValidateBasic() error + func (m *MsgExecLegacyContent) GetAuthority() string + func (m *MsgExecLegacyContent) GetContent() *types.Any + func (m *MsgExecLegacyContent) Marshal() (dAtA []byte, err error) + func (m *MsgExecLegacyContent) MarshalTo(dAtA []byte) (int, error) + func (m *MsgExecLegacyContent) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgExecLegacyContent) Reset() + func (m *MsgExecLegacyContent) Size() (n int) + func (m *MsgExecLegacyContent) String() string + func (m *MsgExecLegacyContent) Unmarshal(dAtA []byte) error + func (m *MsgExecLegacyContent) XXX_DiscardUnknown() + func (m *MsgExecLegacyContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgExecLegacyContent) XXX_Merge(src proto.Message) + func (m *MsgExecLegacyContent) XXX_Size() int + func (m *MsgExecLegacyContent) XXX_Unmarshal(b []byte) error + func (m MsgExecLegacyContent) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + type MsgExecLegacyContentResponse struct + func (*MsgExecLegacyContentResponse) Descriptor() ([]byte, []int) + func (*MsgExecLegacyContentResponse) ProtoMessage() + func (m *MsgExecLegacyContentResponse) Marshal() (dAtA []byte, err error) + func (m *MsgExecLegacyContentResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgExecLegacyContentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgExecLegacyContentResponse) Reset() + func (m *MsgExecLegacyContentResponse) Size() (n int) + func (m *MsgExecLegacyContentResponse) String() string + func (m *MsgExecLegacyContentResponse) Unmarshal(dAtA []byte) error + func (m *MsgExecLegacyContentResponse) XXX_DiscardUnknown() + func (m *MsgExecLegacyContentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgExecLegacyContentResponse) XXX_Merge(src proto.Message) + func (m *MsgExecLegacyContentResponse) XXX_Size() int + func (m *MsgExecLegacyContentResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + Deposit func(context.Context, *MsgDeposit) (*MsgDepositResponse, error) + ExecLegacyContent func(context.Context, *MsgExecLegacyContent) (*MsgExecLegacyContentResponse, error) + SubmitProposal func(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) + Vote func(context.Context, *MsgVote) (*MsgVoteResponse, error) + VoteWeighted func(context.Context, *MsgVoteWeighted) (*MsgVoteWeightedResponse, error) + type MsgSubmitProposal struct + InitialDeposit []types1.Coin + Messages []*types.Any + Metadata string + Proposer string + func NewMsgSubmitProposal(messages []sdk.Msg, initialDeposit sdk.Coins, proposer string, metadata string) (*MsgSubmitProposal, error) + func (*MsgSubmitProposal) Descriptor() ([]byte, []int) + func (*MsgSubmitProposal) ProtoMessage() + func (m *MsgSubmitProposal) GetInitialDeposit() []types1.Coin + func (m *MsgSubmitProposal) GetMessages() []*types.Any + func (m *MsgSubmitProposal) GetMetadata() string + func (m *MsgSubmitProposal) GetMsgs() ([]sdk.Msg, error) + func (m *MsgSubmitProposal) GetProposer() string + func (m *MsgSubmitProposal) Marshal() (dAtA []byte, err error) + func (m *MsgSubmitProposal) MarshalTo(dAtA []byte) (int, error) + func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgSubmitProposal) Reset() + func (m *MsgSubmitProposal) Size() (n int) + func (m *MsgSubmitProposal) String() string + func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error + func (m *MsgSubmitProposal) XXX_DiscardUnknown() + func (m *MsgSubmitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgSubmitProposal) XXX_Merge(src proto.Message) + func (m *MsgSubmitProposal) XXX_Size() int + func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error + func (m MsgSubmitProposal) GetSignBytes() []byte + func (m MsgSubmitProposal) GetSigners() []sdk.AccAddress + func (m MsgSubmitProposal) Route() string + func (m MsgSubmitProposal) Type() string + func (m MsgSubmitProposal) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + func (m MsgSubmitProposal) ValidateBasic() error + type MsgSubmitProposalResponse struct + ProposalId uint64 + func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) + func (*MsgSubmitProposalResponse) ProtoMessage() + func (m *MsgSubmitProposalResponse) GetProposalId() uint64 + func (m *MsgSubmitProposalResponse) Marshal() (dAtA []byte, err error) + func (m *MsgSubmitProposalResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgSubmitProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgSubmitProposalResponse) Reset() + func (m *MsgSubmitProposalResponse) Size() (n int) + func (m *MsgSubmitProposalResponse) String() string + func (m *MsgSubmitProposalResponse) Unmarshal(dAtA []byte) error + func (m *MsgSubmitProposalResponse) XXX_DiscardUnknown() + func (m *MsgSubmitProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgSubmitProposalResponse) XXX_Merge(src proto.Message) + func (m *MsgSubmitProposalResponse) XXX_Size() int + func (m *MsgSubmitProposalResponse) XXX_Unmarshal(b []byte) error + type MsgVote struct + Metadata string + Option VoteOption + ProposalId uint64 + Voter string + func NewMsgVote(voter sdk.AccAddress, proposalID uint64, option VoteOption, metadata string) *MsgVote + func (*MsgVote) Descriptor() ([]byte, []int) + func (*MsgVote) ProtoMessage() + func (m *MsgVote) GetMetadata() string + func (m *MsgVote) GetOption() VoteOption + func (m *MsgVote) GetProposalId() uint64 + func (m *MsgVote) GetVoter() string + func (m *MsgVote) Marshal() (dAtA []byte, err error) + func (m *MsgVote) MarshalTo(dAtA []byte) (int, error) + func (m *MsgVote) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgVote) Reset() + func (m *MsgVote) Size() (n int) + func (m *MsgVote) String() string + func (m *MsgVote) Unmarshal(dAtA []byte) error + func (m *MsgVote) XXX_DiscardUnknown() + func (m *MsgVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgVote) XXX_Merge(src proto.Message) + func (m *MsgVote) XXX_Size() int + func (m *MsgVote) XXX_Unmarshal(b []byte) error + func (msg MsgVote) GetSignBytes() []byte + func (msg MsgVote) GetSigners() []sdk.AccAddress + func (msg MsgVote) Route() string + func (msg MsgVote) Type() string + func (msg MsgVote) ValidateBasic() error + type MsgVoteResponse struct + func (*MsgVoteResponse) Descriptor() ([]byte, []int) + func (*MsgVoteResponse) ProtoMessage() + func (m *MsgVoteResponse) Marshal() (dAtA []byte, err error) + func (m *MsgVoteResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgVoteResponse) Reset() + func (m *MsgVoteResponse) Size() (n int) + func (m *MsgVoteResponse) String() string + func (m *MsgVoteResponse) Unmarshal(dAtA []byte) error + func (m *MsgVoteResponse) XXX_DiscardUnknown() + func (m *MsgVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgVoteResponse) XXX_Merge(src proto.Message) + func (m *MsgVoteResponse) XXX_Size() int + func (m *MsgVoteResponse) XXX_Unmarshal(b []byte) error + type MsgVoteWeighted struct + Metadata string + Options []*WeightedVoteOption + ProposalId uint64 + Voter string + func NewMsgVoteWeighted(voter sdk.AccAddress, proposalID uint64, options WeightedVoteOptions, ...) *MsgVoteWeighted + func (*MsgVoteWeighted) Descriptor() ([]byte, []int) + func (*MsgVoteWeighted) ProtoMessage() + func (m *MsgVoteWeighted) GetMetadata() string + func (m *MsgVoteWeighted) GetOptions() []*WeightedVoteOption + func (m *MsgVoteWeighted) GetProposalId() uint64 + func (m *MsgVoteWeighted) GetVoter() string + func (m *MsgVoteWeighted) Marshal() (dAtA []byte, err error) + func (m *MsgVoteWeighted) MarshalTo(dAtA []byte) (int, error) + func (m *MsgVoteWeighted) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgVoteWeighted) Reset() + func (m *MsgVoteWeighted) Size() (n int) + func (m *MsgVoteWeighted) String() string + func (m *MsgVoteWeighted) Unmarshal(dAtA []byte) error + func (m *MsgVoteWeighted) XXX_DiscardUnknown() + func (m *MsgVoteWeighted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgVoteWeighted) XXX_Merge(src proto.Message) + func (m *MsgVoteWeighted) XXX_Size() int + func (m *MsgVoteWeighted) XXX_Unmarshal(b []byte) error + func (msg MsgVoteWeighted) GetSignBytes() []byte + func (msg MsgVoteWeighted) GetSigners() []sdk.AccAddress + func (msg MsgVoteWeighted) Route() string + func (msg MsgVoteWeighted) Type() string + func (msg MsgVoteWeighted) ValidateBasic() error + type MsgVoteWeightedResponse struct + func (*MsgVoteWeightedResponse) Descriptor() ([]byte, []int) + func (*MsgVoteWeightedResponse) ProtoMessage() + func (m *MsgVoteWeightedResponse) Marshal() (dAtA []byte, err error) + func (m *MsgVoteWeightedResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgVoteWeightedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgVoteWeightedResponse) Reset() + func (m *MsgVoteWeightedResponse) Size() (n int) + func (m *MsgVoteWeightedResponse) String() string + func (m *MsgVoteWeightedResponse) Unmarshal(dAtA []byte) error + func (m *MsgVoteWeightedResponse) XXX_DiscardUnknown() + func (m *MsgVoteWeightedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgVoteWeightedResponse) XXX_Merge(src proto.Message) + func (m *MsgVoteWeightedResponse) XXX_Size() int + func (m *MsgVoteWeightedResponse) XXX_Unmarshal(b []byte) error + type Params struct + DepositParams DepositParams + TallyParams TallyParams + VotingParams VotingParams + func DefaultParams() Params + func NewParams(vp VotingParams, tp TallyParams, dp DepositParams) Params + func (gp Params) String() string + type Proposal struct + DepositEndTime *time.Time + FinalTallyResult *TallyResult + Id uint64 + Messages []*types1.Any + Metadata string + Status ProposalStatus + SubmitTime *time.Time + TotalDeposit []types.Coin + VotingEndTime *time.Time + VotingStartTime *time.Time + func NewProposal(messages []sdk.Msg, id uint64, metadata string, ...) (Proposal, error) + func (*Proposal) Descriptor() ([]byte, []int) + func (*Proposal) ProtoMessage() + func (m *Proposal) GetDepositEndTime() *time.Time + func (m *Proposal) GetFinalTallyResult() *TallyResult + func (m *Proposal) GetId() uint64 + func (m *Proposal) GetMessages() []*types1.Any + func (m *Proposal) GetMetadata() string + func (m *Proposal) GetStatus() ProposalStatus + func (m *Proposal) GetSubmitTime() *time.Time + func (m *Proposal) GetTotalDeposit() []types.Coin + func (m *Proposal) GetVotingEndTime() *time.Time + func (m *Proposal) GetVotingStartTime() *time.Time + func (m *Proposal) Marshal() (dAtA []byte, err error) + func (m *Proposal) MarshalTo(dAtA []byte) (int, error) + func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Proposal) Reset() + func (m *Proposal) Size() (n int) + func (m *Proposal) String() string + func (m *Proposal) Unmarshal(dAtA []byte) error + func (m *Proposal) XXX_DiscardUnknown() + func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Proposal) XXX_Merge(src proto.Message) + func (m *Proposal) XXX_Size() int + func (m *Proposal) XXX_Unmarshal(b []byte) error + func (p Proposal) GetMsgs() ([]sdk.Msg, error) + func (p Proposal) UnpackInterfaces(unpacker types.AnyUnpacker) error + type ProposalQueue []uint64 + type ProposalStatus int32 + const ProposalStatus_PROPOSAL_STATUS_DEPOSIT_PERIOD + const ProposalStatus_PROPOSAL_STATUS_FAILED + const ProposalStatus_PROPOSAL_STATUS_PASSED + const ProposalStatus_PROPOSAL_STATUS_REJECTED + const ProposalStatus_PROPOSAL_STATUS_UNSPECIFIED + const ProposalStatus_PROPOSAL_STATUS_VOTING_PERIOD + func ProposalStatusFromString(str string) (ProposalStatus, error) + func (ProposalStatus) EnumDescriptor() ([]byte, []int) + func (status *ProposalStatus) Unmarshal(data []byte) error + func (status ProposalStatus) Format(s fmt.State, verb rune) + func (status ProposalStatus) Marshal() ([]byte, error) + func (x ProposalStatus) String() string + type Proposals []*Proposal + func (p Proposals) String() string + func (p Proposals) UnpackInterfaces(unpacker types.AnyUnpacker) error + type QueryClient interface + Deposit func(ctx context.Context, in *QueryDepositRequest, opts ...grpc.CallOption) (*QueryDepositResponse, error) + Deposits func(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error) + Params func(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + Proposal func(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) + Proposals func(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) + TallyResult func(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error) + Vote func(ctx context.Context, in *QueryVoteRequest, opts ...grpc.CallOption) (*QueryVoteResponse, error) + Votes func(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryDepositParams struct + Depositor sdk.AccAddress + ProposalID uint64 + func NewQueryDepositParams(proposalID uint64, depositor sdk.AccAddress) QueryDepositParams + type QueryDepositRequest struct + Depositor string + ProposalId uint64 + func (*QueryDepositRequest) Descriptor() ([]byte, []int) + func (*QueryDepositRequest) ProtoMessage() + func (m *QueryDepositRequest) GetDepositor() string + func (m *QueryDepositRequest) GetProposalId() uint64 + func (m *QueryDepositRequest) Marshal() (dAtA []byte, err error) + func (m *QueryDepositRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDepositRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDepositRequest) Reset() + func (m *QueryDepositRequest) Size() (n int) + func (m *QueryDepositRequest) String() string + func (m *QueryDepositRequest) Unmarshal(dAtA []byte) error + func (m *QueryDepositRequest) XXX_DiscardUnknown() + func (m *QueryDepositRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDepositRequest) XXX_Merge(src proto.Message) + func (m *QueryDepositRequest) XXX_Size() int + func (m *QueryDepositRequest) XXX_Unmarshal(b []byte) error + type QueryDepositResponse struct + Deposit *Deposit + func (*QueryDepositResponse) Descriptor() ([]byte, []int) + func (*QueryDepositResponse) ProtoMessage() + func (m *QueryDepositResponse) GetDeposit() *Deposit + func (m *QueryDepositResponse) Marshal() (dAtA []byte, err error) + func (m *QueryDepositResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDepositResponse) Reset() + func (m *QueryDepositResponse) Size() (n int) + func (m *QueryDepositResponse) String() string + func (m *QueryDepositResponse) Unmarshal(dAtA []byte) error + func (m *QueryDepositResponse) XXX_DiscardUnknown() + func (m *QueryDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDepositResponse) XXX_Merge(src proto.Message) + func (m *QueryDepositResponse) XXX_Size() int + func (m *QueryDepositResponse) XXX_Unmarshal(b []byte) error + type QueryDepositsRequest struct + Pagination *query.PageRequest + ProposalId uint64 + func (*QueryDepositsRequest) Descriptor() ([]byte, []int) + func (*QueryDepositsRequest) ProtoMessage() + func (m *QueryDepositsRequest) GetPagination() *query.PageRequest + func (m *QueryDepositsRequest) GetProposalId() uint64 + func (m *QueryDepositsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryDepositsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDepositsRequest) Reset() + func (m *QueryDepositsRequest) Size() (n int) + func (m *QueryDepositsRequest) String() string + func (m *QueryDepositsRequest) Unmarshal(dAtA []byte) error + func (m *QueryDepositsRequest) XXX_DiscardUnknown() + func (m *QueryDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDepositsRequest) XXX_Merge(src proto.Message) + func (m *QueryDepositsRequest) XXX_Size() int + func (m *QueryDepositsRequest) XXX_Unmarshal(b []byte) error + type QueryDepositsResponse struct + Deposits []*Deposit + Pagination *query.PageResponse + func (*QueryDepositsResponse) Descriptor() ([]byte, []int) + func (*QueryDepositsResponse) ProtoMessage() + func (m *QueryDepositsResponse) GetDeposits() []*Deposit + func (m *QueryDepositsResponse) GetPagination() *query.PageResponse + func (m *QueryDepositsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryDepositsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDepositsResponse) Reset() + func (m *QueryDepositsResponse) Size() (n int) + func (m *QueryDepositsResponse) String() string + func (m *QueryDepositsResponse) Unmarshal(dAtA []byte) error + func (m *QueryDepositsResponse) XXX_DiscardUnknown() + func (m *QueryDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDepositsResponse) XXX_Merge(src proto.Message) + func (m *QueryDepositsResponse) XXX_Size() int + func (m *QueryDepositsResponse) XXX_Unmarshal(b []byte) error + type QueryParamsRequest struct + ParamsType string + func (*QueryParamsRequest) Descriptor() ([]byte, []int) + func (*QueryParamsRequest) ProtoMessage() + func (m *QueryParamsRequest) GetParamsType() string + func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryParamsRequest) Reset() + func (m *QueryParamsRequest) Size() (n int) + func (m *QueryParamsRequest) String() string + func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error + func (m *QueryParamsRequest) XXX_DiscardUnknown() + func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryParamsRequest) XXX_Merge(src proto.Message) + func (m *QueryParamsRequest) XXX_Size() int + func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error + type QueryParamsResponse struct + DepositParams *DepositParams + TallyParams *TallyParams + VotingParams *VotingParams + func (*QueryParamsResponse) Descriptor() ([]byte, []int) + func (*QueryParamsResponse) ProtoMessage() + func (m *QueryParamsResponse) GetDepositParams() *DepositParams + func (m *QueryParamsResponse) GetTallyParams() *TallyParams + func (m *QueryParamsResponse) GetVotingParams() *VotingParams + func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryParamsResponse) Reset() + func (m *QueryParamsResponse) Size() (n int) + func (m *QueryParamsResponse) String() string + func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error + func (m *QueryParamsResponse) XXX_DiscardUnknown() + func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryParamsResponse) XXX_Merge(src proto.Message) + func (m *QueryParamsResponse) XXX_Size() int + func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error + type QueryProposalParams struct + ProposalID uint64 + func NewQueryProposalParams(proposalID uint64) QueryProposalParams + type QueryProposalRequest struct + ProposalId uint64 + func (*QueryProposalRequest) Descriptor() ([]byte, []int) + func (*QueryProposalRequest) ProtoMessage() + func (m *QueryProposalRequest) GetProposalId() uint64 + func (m *QueryProposalRequest) Marshal() (dAtA []byte, err error) + func (m *QueryProposalRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryProposalRequest) Reset() + func (m *QueryProposalRequest) Size() (n int) + func (m *QueryProposalRequest) String() string + func (m *QueryProposalRequest) Unmarshal(dAtA []byte) error + func (m *QueryProposalRequest) XXX_DiscardUnknown() + func (m *QueryProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryProposalRequest) XXX_Merge(src proto.Message) + func (m *QueryProposalRequest) XXX_Size() int + func (m *QueryProposalRequest) XXX_Unmarshal(b []byte) error + type QueryProposalResponse struct + Proposal *Proposal + func (*QueryProposalResponse) Descriptor() ([]byte, []int) + func (*QueryProposalResponse) ProtoMessage() + func (m *QueryProposalResponse) GetProposal() *Proposal + func (m *QueryProposalResponse) Marshal() (dAtA []byte, err error) + func (m *QueryProposalResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryProposalResponse) Reset() + func (m *QueryProposalResponse) Size() (n int) + func (m *QueryProposalResponse) String() string + func (m *QueryProposalResponse) Unmarshal(dAtA []byte) error + func (m *QueryProposalResponse) XXX_DiscardUnknown() + func (m *QueryProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryProposalResponse) XXX_Merge(src proto.Message) + func (m *QueryProposalResponse) XXX_Size() int + func (m *QueryProposalResponse) XXX_Unmarshal(b []byte) error + type QueryProposalVotesParams struct + Limit int + Page int + ProposalID uint64 + func NewQueryProposalVotesParams(proposalID uint64, page, limit int) QueryProposalVotesParams + type QueryProposalsParams struct + Depositor sdk.AccAddress + Limit int + Page int + ProposalStatus ProposalStatus + Voter sdk.AccAddress + func NewQueryProposalsParams(page, limit int, status ProposalStatus, voter, depositor sdk.AccAddress) QueryProposalsParams + type QueryProposalsRequest struct + Depositor string + Pagination *query.PageRequest + ProposalStatus ProposalStatus + Voter string + func (*QueryProposalsRequest) Descriptor() ([]byte, []int) + func (*QueryProposalsRequest) ProtoMessage() + func (m *QueryProposalsRequest) GetDepositor() string + func (m *QueryProposalsRequest) GetPagination() *query.PageRequest + func (m *QueryProposalsRequest) GetProposalStatus() ProposalStatus + func (m *QueryProposalsRequest) GetVoter() string + func (m *QueryProposalsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryProposalsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryProposalsRequest) Reset() + func (m *QueryProposalsRequest) Size() (n int) + func (m *QueryProposalsRequest) String() string + func (m *QueryProposalsRequest) Unmarshal(dAtA []byte) error + func (m *QueryProposalsRequest) XXX_DiscardUnknown() + func (m *QueryProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryProposalsRequest) XXX_Merge(src proto.Message) + func (m *QueryProposalsRequest) XXX_Size() int + func (m *QueryProposalsRequest) XXX_Unmarshal(b []byte) error + type QueryProposalsResponse struct + Pagination *query.PageResponse + Proposals []*Proposal + func (*QueryProposalsResponse) Descriptor() ([]byte, []int) + func (*QueryProposalsResponse) ProtoMessage() + func (m *QueryProposalsResponse) GetPagination() *query.PageResponse + func (m *QueryProposalsResponse) GetProposals() []*Proposal + func (m *QueryProposalsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryProposalsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryProposalsResponse) Reset() + func (m *QueryProposalsResponse) Size() (n int) + func (m *QueryProposalsResponse) String() string + func (m *QueryProposalsResponse) Unmarshal(dAtA []byte) error + func (m *QueryProposalsResponse) XXX_DiscardUnknown() + func (m *QueryProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryProposalsResponse) XXX_Merge(src proto.Message) + func (m *QueryProposalsResponse) XXX_Size() int + func (m *QueryProposalsResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + Deposit func(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error) + Deposits func(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error) + Params func(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + Proposal func(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error) + Proposals func(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error) + TallyResult func(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error) + Vote func(context.Context, *QueryVoteRequest) (*QueryVoteResponse, error) + Votes func(context.Context, *QueryVotesRequest) (*QueryVotesResponse, error) + type QueryTallyResultRequest struct + ProposalId uint64 + func (*QueryTallyResultRequest) Descriptor() ([]byte, []int) + func (*QueryTallyResultRequest) ProtoMessage() + func (m *QueryTallyResultRequest) GetProposalId() uint64 + func (m *QueryTallyResultRequest) Marshal() (dAtA []byte, err error) + func (m *QueryTallyResultRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryTallyResultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryTallyResultRequest) Reset() + func (m *QueryTallyResultRequest) Size() (n int) + func (m *QueryTallyResultRequest) String() string + func (m *QueryTallyResultRequest) Unmarshal(dAtA []byte) error + func (m *QueryTallyResultRequest) XXX_DiscardUnknown() + func (m *QueryTallyResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryTallyResultRequest) XXX_Merge(src proto.Message) + func (m *QueryTallyResultRequest) XXX_Size() int + func (m *QueryTallyResultRequest) XXX_Unmarshal(b []byte) error + type QueryTallyResultResponse struct + Tally *TallyResult + func (*QueryTallyResultResponse) Descriptor() ([]byte, []int) + func (*QueryTallyResultResponse) ProtoMessage() + func (m *QueryTallyResultResponse) GetTally() *TallyResult + func (m *QueryTallyResultResponse) Marshal() (dAtA []byte, err error) + func (m *QueryTallyResultResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryTallyResultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryTallyResultResponse) Reset() + func (m *QueryTallyResultResponse) Size() (n int) + func (m *QueryTallyResultResponse) String() string + func (m *QueryTallyResultResponse) Unmarshal(dAtA []byte) error + func (m *QueryTallyResultResponse) XXX_DiscardUnknown() + func (m *QueryTallyResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryTallyResultResponse) XXX_Merge(src proto.Message) + func (m *QueryTallyResultResponse) XXX_Size() int + func (m *QueryTallyResultResponse) XXX_Unmarshal(b []byte) error + type QueryVoteParams struct + ProposalID uint64 + Voter sdk.AccAddress + func NewQueryVoteParams(proposalID uint64, voter sdk.AccAddress) QueryVoteParams + type QueryVoteRequest struct + ProposalId uint64 + Voter string + func (*QueryVoteRequest) Descriptor() ([]byte, []int) + func (*QueryVoteRequest) ProtoMessage() + func (m *QueryVoteRequest) GetProposalId() uint64 + func (m *QueryVoteRequest) GetVoter() string + func (m *QueryVoteRequest) Marshal() (dAtA []byte, err error) + func (m *QueryVoteRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryVoteRequest) Reset() + func (m *QueryVoteRequest) Size() (n int) + func (m *QueryVoteRequest) String() string + func (m *QueryVoteRequest) Unmarshal(dAtA []byte) error + func (m *QueryVoteRequest) XXX_DiscardUnknown() + func (m *QueryVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryVoteRequest) XXX_Merge(src proto.Message) + func (m *QueryVoteRequest) XXX_Size() int + func (m *QueryVoteRequest) XXX_Unmarshal(b []byte) error + type QueryVoteResponse struct + Vote *Vote + func (*QueryVoteResponse) Descriptor() ([]byte, []int) + func (*QueryVoteResponse) ProtoMessage() + func (m *QueryVoteResponse) GetVote() *Vote + func (m *QueryVoteResponse) Marshal() (dAtA []byte, err error) + func (m *QueryVoteResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryVoteResponse) Reset() + func (m *QueryVoteResponse) Size() (n int) + func (m *QueryVoteResponse) String() string + func (m *QueryVoteResponse) Unmarshal(dAtA []byte) error + func (m *QueryVoteResponse) XXX_DiscardUnknown() + func (m *QueryVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryVoteResponse) XXX_Merge(src proto.Message) + func (m *QueryVoteResponse) XXX_Size() int + func (m *QueryVoteResponse) XXX_Unmarshal(b []byte) error + type QueryVotesRequest struct + Pagination *query.PageRequest + ProposalId uint64 + func (*QueryVotesRequest) Descriptor() ([]byte, []int) + func (*QueryVotesRequest) ProtoMessage() + func (m *QueryVotesRequest) GetPagination() *query.PageRequest + func (m *QueryVotesRequest) GetProposalId() uint64 + func (m *QueryVotesRequest) Marshal() (dAtA []byte, err error) + func (m *QueryVotesRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryVotesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryVotesRequest) Reset() + func (m *QueryVotesRequest) Size() (n int) + func (m *QueryVotesRequest) String() string + func (m *QueryVotesRequest) Unmarshal(dAtA []byte) error + func (m *QueryVotesRequest) XXX_DiscardUnknown() + func (m *QueryVotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryVotesRequest) XXX_Merge(src proto.Message) + func (m *QueryVotesRequest) XXX_Size() int + func (m *QueryVotesRequest) XXX_Unmarshal(b []byte) error + type QueryVotesResponse struct + Pagination *query.PageResponse + Votes []*Vote + func (*QueryVotesResponse) Descriptor() ([]byte, []int) + func (*QueryVotesResponse) ProtoMessage() + func (m *QueryVotesResponse) GetPagination() *query.PageResponse + func (m *QueryVotesResponse) GetVotes() []*Vote + func (m *QueryVotesResponse) Marshal() (dAtA []byte, err error) + func (m *QueryVotesResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryVotesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryVotesResponse) Reset() + func (m *QueryVotesResponse) Size() (n int) + func (m *QueryVotesResponse) String() string + func (m *QueryVotesResponse) Unmarshal(dAtA []byte) error + func (m *QueryVotesResponse) XXX_DiscardUnknown() + func (m *QueryVotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryVotesResponse) XXX_Merge(src proto.Message) + func (m *QueryVotesResponse) XXX_Size() int + func (m *QueryVotesResponse) XXX_Unmarshal(b []byte) error + type TallyParams struct + Quorum string + Threshold string + VetoThreshold string + func DefaultTallyParams() TallyParams + func NewTallyParams(quorum, threshold, vetoThreshold sdk.Dec) TallyParams + func (*TallyParams) Descriptor() ([]byte, []int) + func (*TallyParams) ProtoMessage() + func (m *TallyParams) GetQuorum() string + func (m *TallyParams) GetThreshold() string + func (m *TallyParams) GetVetoThreshold() string + func (m *TallyParams) Marshal() (dAtA []byte, err error) + func (m *TallyParams) MarshalTo(dAtA []byte) (int, error) + func (m *TallyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TallyParams) Reset() + func (m *TallyParams) Size() (n int) + func (m *TallyParams) String() string + func (m *TallyParams) Unmarshal(dAtA []byte) error + func (m *TallyParams) XXX_DiscardUnknown() + func (m *TallyParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TallyParams) XXX_Merge(src proto.Message) + func (m *TallyParams) XXX_Size() int + func (m *TallyParams) XXX_Unmarshal(b []byte) error + func (tp TallyParams) Equal(other TallyParams) bool + type TallyResult struct + AbstainCount string + NoCount string + NoWithVetoCount string + YesCount string + func EmptyTallyResult() TallyResult + func NewTallyResult(yes, abstain, no, noWithVeto math.Int) TallyResult + func NewTallyResultFromMap(results map[VoteOption]sdk.Dec) TallyResult + func (*TallyResult) Descriptor() ([]byte, []int) + func (*TallyResult) ProtoMessage() + func (m *TallyResult) GetAbstainCount() string + func (m *TallyResult) GetNoCount() string + func (m *TallyResult) GetNoWithVetoCount() string + func (m *TallyResult) GetYesCount() string + func (m *TallyResult) Marshal() (dAtA []byte, err error) + func (m *TallyResult) MarshalTo(dAtA []byte) (int, error) + func (m *TallyResult) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TallyResult) Reset() + func (m *TallyResult) Size() (n int) + func (m *TallyResult) String() string + func (m *TallyResult) Unmarshal(dAtA []byte) error + func (m *TallyResult) XXX_DiscardUnknown() + func (m *TallyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TallyResult) XXX_Merge(src proto.Message) + func (m *TallyResult) XXX_Size() int + func (m *TallyResult) XXX_Unmarshal(b []byte) error + func (tr TallyResult) Equals(comp TallyResult) bool + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*MsgDepositResponse, error) + func (*UnimplementedMsgServer) ExecLegacyContent(ctx context.Context, req *MsgExecLegacyContent) (*MsgExecLegacyContentResponse, error) + func (*UnimplementedMsgServer) SubmitProposal(ctx context.Context, req *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) + func (*UnimplementedMsgServer) Vote(ctx context.Context, req *MsgVote) (*MsgVoteResponse, error) + func (*UnimplementedMsgServer) VoteWeighted(ctx context.Context, req *MsgVoteWeighted) (*MsgVoteWeightedResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) Deposit(ctx context.Context, req *QueryDepositRequest) (*QueryDepositResponse, error) + func (*UnimplementedQueryServer) Deposits(ctx context.Context, req *QueryDepositsRequest) (*QueryDepositsResponse, error) + func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) + func (*UnimplementedQueryServer) Proposal(ctx context.Context, req *QueryProposalRequest) (*QueryProposalResponse, error) + func (*UnimplementedQueryServer) Proposals(ctx context.Context, req *QueryProposalsRequest) (*QueryProposalsResponse, error) + func (*UnimplementedQueryServer) TallyResult(ctx context.Context, req *QueryTallyResultRequest) (*QueryTallyResultResponse, error) + func (*UnimplementedQueryServer) Vote(ctx context.Context, req *QueryVoteRequest) (*QueryVoteResponse, error) + func (*UnimplementedQueryServer) Votes(ctx context.Context, req *QueryVotesRequest) (*QueryVotesResponse, error) + type ValidatorGovInfo struct + Address sdk.ValAddress + BondedTokens math.Int + DelegatorDeductions sdk.Dec + DelegatorShares sdk.Dec + Vote WeightedVoteOptions + func NewValidatorGovInfo(address sdk.ValAddress, bondedTokens math.Int, ...) ValidatorGovInfo + type Vote struct + Metadata string + Options []*WeightedVoteOption + ProposalId uint64 + Voter string + func NewVote(proposalID uint64, voter sdk.AccAddress, options WeightedVoteOptions, ...) Vote + func (*Vote) Descriptor() ([]byte, []int) + func (*Vote) ProtoMessage() + func (m *Vote) GetMetadata() string + func (m *Vote) GetOptions() []*WeightedVoteOption + func (m *Vote) GetProposalId() uint64 + func (m *Vote) GetVoter() string + func (m *Vote) Marshal() (dAtA []byte, err error) + func (m *Vote) MarshalTo(dAtA []byte) (int, error) + func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Vote) Reset() + func (m *Vote) Size() (n int) + func (m *Vote) String() string + func (m *Vote) Unmarshal(dAtA []byte) error + func (m *Vote) XXX_DiscardUnknown() + func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Vote) XXX_Merge(src proto.Message) + func (m *Vote) XXX_Size() int + func (m *Vote) XXX_Unmarshal(b []byte) error + func (v Vote) Empty() bool + type VoteOption int32 + const VoteOption_VOTE_OPTION_ABSTAIN + const VoteOption_VOTE_OPTION_NO + const VoteOption_VOTE_OPTION_NO_WITH_VETO + const VoteOption_VOTE_OPTION_UNSPECIFIED + const VoteOption_VOTE_OPTION_YES + func VoteOptionFromString(str string) (VoteOption, error) + func (VoteOption) EnumDescriptor() ([]byte, []int) + func (vo *VoteOption) Unmarshal(data []byte) error + func (vo VoteOption) Format(s fmt.State, verb rune) + func (vo VoteOption) Marshal() ([]byte, error) + func (x VoteOption) String() string + type Votes []*Vote + func (v Votes) Equal(other Votes) bool + func (v Votes) String() string + type VotingParams struct + VotingPeriod *time.Duration + func DefaultVotingParams() VotingParams + func NewVotingParams(votingPeriod time.Duration) VotingParams + func (*VotingParams) Descriptor() ([]byte, []int) + func (*VotingParams) ProtoMessage() + func (m *VotingParams) GetVotingPeriod() *time.Duration + func (m *VotingParams) Marshal() (dAtA []byte, err error) + func (m *VotingParams) MarshalTo(dAtA []byte) (int, error) + func (m *VotingParams) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *VotingParams) Reset() + func (m *VotingParams) Size() (n int) + func (m *VotingParams) String() string + func (m *VotingParams) Unmarshal(dAtA []byte) error + func (m *VotingParams) XXX_DiscardUnknown() + func (m *VotingParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *VotingParams) XXX_Merge(src proto.Message) + func (m *VotingParams) XXX_Size() int + func (m *VotingParams) XXX_Unmarshal(b []byte) error + func (vp VotingParams) Equal(other VotingParams) bool + type WeightedVoteOption struct + Option VoteOption + Weight string + func NewWeightedVoteOption(option VoteOption, weight sdk.Dec) *WeightedVoteOption + func (*WeightedVoteOption) Descriptor() ([]byte, []int) + func (*WeightedVoteOption) ProtoMessage() + func (m *WeightedVoteOption) GetOption() VoteOption + func (m *WeightedVoteOption) GetWeight() string + func (m *WeightedVoteOption) Marshal() (dAtA []byte, err error) + func (m *WeightedVoteOption) MarshalTo(dAtA []byte) (int, error) + func (m *WeightedVoteOption) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *WeightedVoteOption) Reset() + func (m *WeightedVoteOption) Size() (n int) + func (m *WeightedVoteOption) String() string + func (m *WeightedVoteOption) Unmarshal(dAtA []byte) error + func (m *WeightedVoteOption) XXX_DiscardUnknown() + func (m *WeightedVoteOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *WeightedVoteOption) XXX_Merge(src proto.Message) + func (m *WeightedVoteOption) XXX_Size() int + func (m *WeightedVoteOption) XXX_Unmarshal(b []byte) error + func (w *WeightedVoteOption) IsValid() bool + type WeightedVoteOptions []*WeightedVoteOption + func NewNonSplitVoteOption(option VoteOption) WeightedVoteOptions + func WeightedVoteOptionsFromString(str string) (WeightedVoteOptions, error) + func (v WeightedVoteOptions) String() (out string)