Versions in this module Expand all Collapse all v0 v0.50.9 Jul 10, 2024 Changes in this version + const AttributeKeyDepositor + const AttributeKeyOption + const AttributeKeyProposalID + const AttributeKeyProposalLog + const AttributeKeyProposalMessages + const AttributeKeyProposalProposer + const AttributeKeyProposalResult + const AttributeKeyProposalType + const AttributeKeyVoter + const AttributeKeyVotingPeriodStart + const AttributeSignalDescription + const AttributeSignalTitle + const AttributeValueExpeditedProposalRejected + const AttributeValueProposalCanceled + const AttributeValueProposalDropped + const AttributeValueProposalFailed + const AttributeValueProposalPassed + const AttributeValueProposalRejected + const EventTypeActiveProposal + const EventTypeCancelProposal + const EventTypeInactiveProposal + const EventTypeProposalDeposit + const EventTypeProposalVote + const EventTypeSubmitProposal + const ModuleName + const RouterKey + const StoreKey + var ActiveProposalQueuePrefix = collections.NewPrefix(1) + var ConstitutionKey = collections.NewPrefix(49) + var DepositsKeyPrefix = collections.NewPrefix(16) + var ErrAlreadyActiveProposal = errors.Register(ModuleName, 4, "proposal already active") + var ErrInactiveProposal = errors.Register(ModuleName, 3, "inactive proposal") + var ErrInvalidDepositDenom = errors.Register(ModuleName, 23, "invalid deposit denom") + var ErrInvalidGenesis = errors.Register(ModuleName, 8, "invalid genesis state") + var ErrInvalidProposal = errors.Register(ModuleName, 21, "invalid proposal") + var ErrInvalidProposalContent = errors.Register(ModuleName, 5, "invalid proposal content") + var ErrInvalidProposalMsg = errors.Register(ModuleName, 12, "invalid proposal message") + var ErrInvalidProposalType = errors.Register(ModuleName, 6, "invalid proposal type") + var ErrInvalidProposer = errors.Register(ModuleName, 18, "invalid proposer") + var ErrInvalidSigner = errors.Register(ModuleName, 13, "expected gov account as only signer for proposal message") + var ErrInvalidVote = errors.Register(ModuleName, 7, "invalid vote option") + var ErrMetadataTooLong = errors.Register(ModuleName, 15, "metadata too long") + var ErrMinDepositTooSmall = errors.Register(ModuleName, 16, "minimum deposit is too small") + var ErrNoProposalHandlerExists = errors.Register(ModuleName, 9, "no handler exists for proposal type") + var ErrNoProposalMsgs = errors.Register(ModuleName, 11, "no messages proposed") + var ErrSummaryTooLong = errors.Register(ModuleName, 22, "summary too long") + var ErrUnroutableProposalMsg = errors.Register(ModuleName, 10, "proposal message not recognized by router") + var ErrVotingPeriodEnded = errors.Register(ModuleName, 20, "voting period already ended") + var InactiveProposalQueuePrefix = collections.NewPrefix(2) + var ParamsKey = collections.NewPrefix(48) + var ProposalIDKey = collections.NewPrefix(3) + var ProposalsKeyPrefix = collections.NewPrefix(0) + var VotesKeyPrefix = collections.NewPrefix(32) + var VotingPeriodProposalKeyPrefix = collections.NewPrefix(4) + type AccountKeeper interface + AddressCodec func() addresscodec.Codec + GetAccount func(ctx context.Context, addr sdk.AccAddress) sdk.AccountI + GetModuleAccount func(ctx context.Context, name string) sdk.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + SetModuleAccount func(context.Context, sdk.ModuleAccountI) + type BankKeeper interface + BurnCoins func(ctx context.Context, name string, amt sdk.Coins) error + GetAllBalances func(ctx context.Context, addr sdk.AccAddress) sdk.Coins + GetBalance func(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin + LockedCoins func(ctx context.Context, addr sdk.AccAddress) sdk.Coins + SendCoinsFromAccountToModule func(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error + SendCoinsFromModuleToAccount func(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error + SpendableCoins func(ctx context.Context, addr sdk.AccAddress) sdk.Coins + type Config struct + MaxMetadataLen uint64 + func DefaultConfig() Config + type DistributionKeeper interface + FundCommunityPool func(ctx context.Context, amount sdk.Coins, sender sdk.AccAddress) error + type GovHooks interface + AfterProposalDeposit func(ctx context.Context, proposalID uint64, depositorAddr sdk.AccAddress) error + AfterProposalFailedMinDeposit func(ctx context.Context, proposalID uint64) error + AfterProposalSubmission func(ctx context.Context, proposalID uint64) error + AfterProposalVote func(ctx context.Context, proposalID uint64, voterAddr sdk.AccAddress) error + AfterProposalVotingPeriodEnded func(ctx context.Context, proposalID uint64) error + type GovHooksWrapper struct + func (GovHooksWrapper) IsOnePerModuleType() + type MultiGovHooks []GovHooks + func NewMultiGovHooks(hooks ...GovHooks) MultiGovHooks + func (h MultiGovHooks) AfterProposalDeposit(ctx context.Context, proposalID uint64, depositorAddr sdk.AccAddress) error + func (h MultiGovHooks) AfterProposalFailedMinDeposit(ctx context.Context, proposalID uint64) error + func (h MultiGovHooks) AfterProposalSubmission(ctx context.Context, proposalID uint64) error + func (h MultiGovHooks) AfterProposalVote(ctx context.Context, proposalID uint64, voterAddr sdk.AccAddress) error + func (h MultiGovHooks) AfterProposalVotingPeriodEnded(ctx context.Context, proposalID uint64) error + type ParamSubspace interface + Get func(ctx sdk.Context, key []byte, ptr interface{}) + Set func(ctx sdk.Context, key []byte, param interface{}) + type ProposalMetadata struct + Authors []string + Details string + ProposalForumUrl string + Summary string + Title string + VoteOptionContext string + type StakingKeeper interface + IterateBondedValidatorsByPower func(context.Context, ...) error + IterateDelegations func(ctx context.Context, delegator sdk.AccAddress, ...) error + TotalBondedTokens func(context.Context) (math.Int, error) + ValidatorAddressCodec func() addresscodec.Codec