Versions in this module Expand all Collapse all v0 v0.50.9 Jul 10, 2024 Changes in this version + func ModuleAccountInvariant(keeper *Keeper, bk types.BankKeeper) sdk.Invariant + func NewLegacyMsgServerImpl(govAcct string, v1Server v1.MsgServer) v1beta1.MsgServer + func NewLegacyQueryServer(k *Keeper) v1beta1.QueryServer + func NewMsgServerImpl(keeper *Keeper) v1.MsgServer + func NewQueryServer(k *Keeper) v1.QueryServer + func RegisterInvariants(ir sdk.InvariantRegistry, keeper *Keeper, bk types.BankKeeper) + type Keeper struct + ActiveProposalsQueue collections.Map[collections.Pair[time.Time, uint64], uint64] + Constitution collections.Item[string] + Deposits collections.Map[collections.Pair[uint64, sdk.AccAddress], v1.Deposit] + InactiveProposalsQueue collections.Map[collections.Pair[time.Time, uint64], uint64] + Params collections.Item[v1.Params] + ProposalID collections.Sequence + Proposals collections.Map[uint64, v1.Proposal] + Schema collections.Schema + Votes collections.Map[collections.Pair[uint64, sdk.AccAddress], v1.Vote] + VotingPeriodProposals collections.Map[uint64, []byte] + func NewKeeper(cdc codec.Codec, storeService corestoretypes.KVStoreService, ...) *Keeper + func (k *Keeper) Hooks() types.GovHooks + func (k *Keeper) SetHooks(gh types.GovHooks) *Keeper + func (k *Keeper) SetLegacyRouter(router v1beta1.Router) + func (k Keeper) GetAuthority() string + func (k Keeper) GetGovernanceAccount(ctx context.Context) sdk.ModuleAccountI + func (k Keeper) LegacyRouter() v1beta1.Router + func (k Keeper) Logger(ctx context.Context) log.Logger + func (k Keeper) ModuleAccountAddress() sdk.AccAddress + func (k Keeper) Router() baseapp.MessageRouter + func (keeper Keeper) ActivateVotingPeriod(ctx context.Context, proposal v1.Proposal) error + func (keeper Keeper) AddDeposit(ctx context.Context, proposalID uint64, depositorAddr sdk.AccAddress, ...) (bool, error) + func (keeper Keeper) AddVote(ctx context.Context, proposalID uint64, voterAddr sdk.AccAddress, ...) error + func (keeper Keeper) CancelProposal(ctx context.Context, proposalID uint64, proposer string) error + func (keeper Keeper) ChargeDeposit(ctx context.Context, proposalID uint64, destAddress, proposalCancelRate string) error + func (keeper Keeper) DeleteAndBurnDeposits(ctx context.Context, proposalID uint64) error + func (keeper Keeper) DeleteProposal(ctx context.Context, proposalID uint64) error + func (keeper Keeper) GetDeposits(ctx context.Context, proposalID uint64) (deposits v1.Deposits, err error) + func (keeper Keeper) IterateDeposits(ctx context.Context, proposalID uint64, ...) error + func (keeper Keeper) RefundAndDeleteDeposits(ctx context.Context, proposalID uint64) error + func (keeper Keeper) SetDeposit(ctx context.Context, deposit v1.Deposit) error + func (keeper Keeper) SetProposal(ctx context.Context, proposal v1.Proposal) error + func (keeper Keeper) SubmitProposal(ctx context.Context, messages []sdk.Msg, metadata, title, summary string, ...) (v1.Proposal, error) + func (keeper Keeper) Tally(ctx context.Context, proposal v1.Proposal) (passes, burnDeposits bool, tallyResults v1.TallyResult, err error) + type Migrator struct + func NewMigrator(keeper *Keeper, legacySubspace exported.ParamSubspace) Migrator + func (m Migrator) Migrate1to2(ctx sdk.Context) error + func (m Migrator) Migrate2to3(ctx sdk.Context) error + func (m Migrator) Migrate3to4(ctx sdk.Context) error + func (m Migrator) Migrate4to5(ctx sdk.Context) error