Versions in this module Expand all Collapse all v0 v0.45.17 Apr 8, 2022 v0.45.12 Apr 8, 2022 v0.45.11 Apr 8, 2022 v0.45.10 Apr 8, 2022 Changes in this version + const AttributeKeyOption + const AttributeKeyProposalID + const AttributeKeyProposalResult + const AttributeKeyProposalType + const AttributeKeyVotingPeriodStart + const AttributeValueCategory + const AttributeValueProposalDropped + const AttributeValueProposalFailed + const AttributeValueProposalPassed + const AttributeValueProposalRejected + const DefaultPeriod + const DefaultStartingProposalID + const EventTypeActiveProposal + const EventTypeInactiveProposal + const EventTypeProposalDeposit + const EventTypeProposalVote + const EventTypeSubmitProposal + const MaxDescriptionLength + const MaxTitleLength + const ModuleName + const ParamDeposit + const ParamTallying + const ParamVoting + const ProposalTypeText + const QuerierRoute + const QueryDeposit + const QueryDeposits + const QueryParams + const QueryProposal + const QueryProposals + const QueryTally + const QueryVote + const QueryVotes + const RouterKey + const StoreKey + const TypeMsgDeposit + const TypeMsgSubmitProposal + const TypeMsgVote + const TypeMsgVoteWeighted + var ActiveProposalQueuePrefix = []byte + var DefaultMinDepositTokens = sdk.NewInt(10000000) + var DefaultQuorum = sdk.NewDecWithPrec(334, 3) + var DefaultThreshold = sdk.NewDecWithPrec(5, 1) + var DefaultVetoThreshold = sdk.NewDecWithPrec(334, 3) + var DepositsKeyPrefix = []byte + var ErrAlreadyActiveProposal = sdkerrors.Register(ModuleName, 4, "proposal already active") + var ErrInactiveProposal = sdkerrors.Register(ModuleName, 3, "inactive proposal") + 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 ErrInvalidGenesis = sdkerrors.Register(ModuleName, 8, "invalid genesis state") + 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 ErrInvalidProposalContent = sdkerrors.Register(ModuleName, 5, "invalid proposal content") + var ErrInvalidProposalType = sdkerrors.Register(ModuleName, 6, "invalid proposal type") + var ErrInvalidVote = sdkerrors.Register(ModuleName, 7, "invalid vote option") + var ErrNoProposalHandlerExists = sdkerrors.Register(ModuleName, 9, "no handler exists for proposal type") + 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 ErrUnknownProposal = sdkerrors.Register(ModuleName, 2, "unknown proposal") + var InactiveProposalQueuePrefix = []byte + var ModuleCdc = codec.NewAminoCodec(amino) + var ParamStoreKeyDepositParams = []byte("depositparams") + var ParamStoreKeyTallyParams = []byte("tallyparams") + var ParamStoreKeyVotingParams = []byte("votingparams") + var ProposalIDKey = []byte + var ProposalStatus_name = map[int32]string + var ProposalStatus_value = map[string]int32 + var ProposalsKeyPrefix = []byte + var VoteOption_name = map[int32]string + var VoteOption_value = map[string]int32 + var VotesKeyPrefix = []byte + func ActiveProposalByTimeKey(endTime time.Time) []byte + func ActiveProposalQueueKey(proposalID uint64, endTime time.Time) []byte + func DepositKey(proposalID uint64, depositorAddr sdk.AccAddress) []byte + func DepositsKey(proposalID uint64) []byte + func GetProposalIDBytes(proposalID uint64) (proposalIDBz []byte) + func GetProposalIDFromBytes(bz []byte) (proposalID uint64) + func InactiveProposalByTimeKey(endTime time.Time) []byte + func InactiveProposalQueueKey(proposalID uint64, endTime time.Time) []byte + func IsValidProposalType(ty string) bool + func ParamKeyTable() paramtypes.KeyTable + func ProposalHandler(_ sdk.Context, c Content) error + func ProposalKey(proposalID uint64) []byte + func RegisterInterfaces(registry types.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + func RegisterMsgServer(s grpc1.Server, srv MsgServer) + func RegisterProposalType(ty string) + func RegisterProposalTypeCodec(o interface{}, name string) + 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 SplitActiveProposalQueueKey(key []byte) (proposalID uint64, endTime time.Time) + func SplitInactiveProposalQueueKey(key []byte) (proposalID uint64, endTime time.Time) + func SplitKeyDeposit(key []byte) (proposalID uint64, depositorAddr sdk.AccAddress) + func SplitKeyVote(key []byte) (proposalID uint64, voterAddr sdk.AccAddress) + func SplitProposalKey(key []byte) (proposalID uint64) + func ValidProposalStatus(status ProposalStatus) bool + func ValidVoteOption(option VoteOption) bool + func ValidWeightedVoteOption(option WeightedVoteOption) bool + func ValidateAbstract(c Content) error + func ValidateGenesis(data *GenesisState) error + func VoteKey(proposalID uint64, voterAddr sdk.AccAddress) []byte + func VotesKey(proposalID uint64) []byte + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) types.AccountI + GetModuleAccount func(ctx sdk.Context, name string) types.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + SetModuleAccount func(sdk.Context, types.ModuleAccountI) + type BankKeeper interface + BurnCoins func(ctx sdk.Context, name string, amt sdk.Coins) error + GetAllBalances func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + GetBalance func(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin + LockedCoins func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + SendCoinsFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error + SendCoinsFromModuleToAccount func(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error + SpendableCoins func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + type Content interface + GetDescription func() string + GetTitle func() string + ProposalRoute func() string + ProposalType func() string + String func() string + ValidateBasic func() error + func ContentFromProposalType(title, desc, ty string) Content + func NewTextProposal(title, description string) Content + type Deposit struct + Amount github_com_cosmos_cosmos_sdk_types.Coins + Depositor string + ProposalId uint64 + func NewDeposit(proposalID uint64, depositor sdk.AccAddress, amount sdk.Coins) Deposit + func (*Deposit) Descriptor() ([]byte, []int) + func (*Deposit) ProtoMessage() + func (d Deposit) Empty() bool + func (d Deposit) String() string + 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) 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 github_com_cosmos_cosmos_sdk_types.Coins + 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 (dp DepositParams) String() string + 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) 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 Deposits + Proposals Proposals + StartingProposalId uint64 + TallyParams TallyParams + Votes Votes + 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) Equal(other GenesisState) bool + func (data GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error + func (m *GenesisState) GetDepositParams() DepositParams + func (m *GenesisState) GetDeposits() Deposits + func (m *GenesisState) GetProposals() Proposals + func (m *GenesisState) GetStartingProposalId() uint64 + func (m *GenesisState) GetTallyParams() TallyParams + func (m *GenesisState) GetVotes() Votes + 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 GovHooks interface + AfterProposalDeposit func(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress) + AfterProposalFailedMinDeposit func(ctx sdk.Context, proposalID uint64) + AfterProposalSubmission func(ctx sdk.Context, proposalID uint64) + AfterProposalVote func(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress) + AfterProposalVotingPeriodEnded func(ctx sdk.Context, proposalID uint64) + type Handler func(ctx sdk.Context, content Content) error + type MsgClient interface + Deposit func(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, 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 github_com_cosmos_cosmos_sdk_types.Coins + 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) 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) 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) String() 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 MsgServer interface + Deposit func(context.Context, *MsgDeposit) (*MsgDepositResponse, 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 + Content *types.Any + InitialDeposit github_com_cosmos_cosmos_sdk_types.Coins + Proposer string + func NewMsgSubmitProposal(content Content, initialDeposit sdk.Coins, proposer sdk.AccAddress) (*MsgSubmitProposal, error) + func (*MsgSubmitProposal) Descriptor() ([]byte, []int) + func (*MsgSubmitProposal) ProtoMessage() + func (m *MsgSubmitProposal) GetContent() Content + func (m *MsgSubmitProposal) GetInitialDeposit() sdk.Coins + func (m *MsgSubmitProposal) GetProposer() sdk.AccAddress + 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) SetContent(content Content) error + func (m *MsgSubmitProposal) SetInitialDeposit(coins sdk.Coins) + func (m *MsgSubmitProposal) SetProposer(address fmt.Stringer) + func (m *MsgSubmitProposal) Size() (n int) + 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) String() string + func (m MsgSubmitProposal) Type() string + func (m MsgSubmitProposal) UnpackInterfaces(unpacker types.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 + Option VoteOption + ProposalId uint64 + Voter string + func NewMsgVote(voter sdk.AccAddress, proposalID uint64, option VoteOption) *MsgVote + func (*MsgVote) Descriptor() ([]byte, []int) + func (*MsgVote) ProtoMessage() + 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) 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) String() 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 + 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) 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) 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) String() 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 MultiGovHooks []GovHooks + func NewMultiGovHooks(hooks ...GovHooks) MultiGovHooks + func (h MultiGovHooks) AfterProposalDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress) + func (h MultiGovHooks) AfterProposalFailedMinDeposit(ctx sdk.Context, proposalID uint64) + func (h MultiGovHooks) AfterProposalSubmission(ctx sdk.Context, proposalID uint64) + func (h MultiGovHooks) AfterProposalVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress) + func (h MultiGovHooks) AfterProposalVotingPeriodEnded(ctx sdk.Context, proposalID uint64) + type ParamSubspace interface + Get func(ctx sdk.Context, key []byte, ptr interface{}) + Set func(ctx sdk.Context, key []byte, param interface{}) + 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 + Content *types1.Any + DepositEndTime time.Time + FinalTallyResult TallyResult + ProposalId uint64 + Status ProposalStatus + SubmitTime time.Time + TotalDeposit github_com_cosmos_cosmos_sdk_types.Coins + VotingEndTime time.Time + VotingStartTime time.Time + func NewProposal(content Content, id uint64, submitTime, depositEndTime time.Time) (Proposal, error) + func (*Proposal) Descriptor() ([]byte, []int) + func (*Proposal) ProtoMessage() + 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) 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) GetContent() Content + func (p Proposal) GetTitle() string + func (p Proposal) ProposalRoute() string + func (p Proposal) ProposalType() string + func (p Proposal) String() string + func (p Proposal) UnpackInterfaces(unpacker types.AnyUnpacker) error + func (this *Proposal) Equal(that interface{}) bool + type ProposalQueue []uint64 + type ProposalStatus int32 + const StatusDepositPeriod + const StatusFailed + const StatusNil + const StatusPassed + const StatusRejected + const StatusVotingPeriod + 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) Equal(other Proposals) bool + 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) 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) 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) 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 Router interface + AddRoute func(r string, h Handler) (rtr Router) + GetRoute func(path string) (h Handler) + HasRoute func(r string) bool + Seal func() + func NewRouter() Router + type StakingKeeper interface + IterateBondedValidatorsByPower func(sdk.Context, func(index int64, validator stakingtypes.ValidatorI) (stop bool)) + IterateDelegations func(ctx sdk.Context, delegator sdk.AccAddress, ...) + TotalBondedTokens func(sdk.Context) sdk.Int + type TallyParams struct + Quorum github_com_cosmos_cosmos_sdk_types.Dec + Threshold github_com_cosmos_cosmos_sdk_types.Dec + VetoThreshold github_com_cosmos_cosmos_sdk_types.Dec + func DefaultTallyParams() TallyParams + func NewTallyParams(quorum, threshold, vetoThreshold sdk.Dec) TallyParams + func (*TallyParams) Descriptor() ([]byte, []int) + func (*TallyParams) ProtoMessage() + 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) 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 + func (tp TallyParams) String() string + type TallyResult struct + Abstain github_com_cosmos_cosmos_sdk_types.Int + No github_com_cosmos_cosmos_sdk_types.Int + NoWithVeto github_com_cosmos_cosmos_sdk_types.Int + Yes github_com_cosmos_cosmos_sdk_types.Int + func EmptyTallyResult() TallyResult + func NewTallyResult(yes, abstain, no, noWithVeto sdk.Int) TallyResult + func NewTallyResultFromMap(results map[VoteOption]sdk.Dec) TallyResult + func (*TallyResult) Descriptor() ([]byte, []int) + func (*TallyResult) ProtoMessage() + 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) 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 (this *TallyResult) Equal(that interface{}) bool + func (tr TallyResult) Equals(comp TallyResult) bool + func (tr TallyResult) String() string + type TextProposal struct + Description string + Title string + func (*TextProposal) Descriptor() ([]byte, []int) + func (*TextProposal) ProtoMessage() + func (m *TextProposal) Marshal() (dAtA []byte, err error) + func (m *TextProposal) MarshalTo(dAtA []byte) (int, error) + func (m *TextProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TextProposal) Reset() + func (m *TextProposal) Size() (n int) + func (m *TextProposal) Unmarshal(dAtA []byte) error + func (m *TextProposal) XXX_DiscardUnknown() + func (m *TextProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TextProposal) XXX_Merge(src proto.Message) + func (m *TextProposal) XXX_Size() int + func (m *TextProposal) XXX_Unmarshal(b []byte) error + func (this *TextProposal) Equal(that interface{}) bool + func (tp *TextProposal) GetDescription() string + func (tp *TextProposal) GetTitle() string + func (tp *TextProposal) ProposalRoute() string + func (tp *TextProposal) ProposalType() string + func (tp *TextProposal) ValidateBasic() error + func (tp TextProposal) String() string + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*MsgDepositResponse, 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 sdk.Int + DelegatorDeductions sdk.Dec + DelegatorShares sdk.Dec + Vote WeightedVoteOptions + func NewValidatorGovInfo(address sdk.ValAddress, bondedTokens sdk.Int, ...) ValidatorGovInfo + type Vote struct + Option VoteOption + 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) 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) 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 + func (v Vote) String() string + type VoteOption int32 + const OptionAbstain + const OptionEmpty + const OptionNo + const OptionNoWithVeto + const OptionYes + 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) 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) 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 + func (vp VotingParams) String() string + type WeightedVoteOption struct + Option VoteOption + Weight github_com_cosmos_cosmos_sdk_types.Dec + func (*WeightedVoteOption) Descriptor() ([]byte, []int) + func (*WeightedVoteOption) ProtoMessage() + 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) 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 (v WeightedVoteOption) String() string + type WeightedVoteOptions []WeightedVoteOption + func NewNonSplitVoteOption(option VoteOption) WeightedVoteOptions + func WeightedVoteOptionsFromString(str string) (WeightedVoteOptions, error) + func (v WeightedVoteOptions) String() (out string)