Versions in this module Expand all Collapse all v0 v0.0.2 Jul 1, 2023 v0.0.1 Jul 2, 2023 Changes in this version + func NewMsgServerImpl(keeper Keeper) types.MsgServer + func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier + func NewQueryServerImpl(k Keeper) types.QueryServer + type Keeper struct + func NewKeeper(cdc codec.Codec, storeKey storetypes.StoreKey, router govv1beta1.Router, ...) Keeper + func (k Keeper) AddVote(ctx sdk.Context, proposalID uint64, voter sdk.AccAddress, ...) error + func (k Keeper) CloseProposal(ctx sdk.Context, proposal types.Proposal, outcome types.ProposalOutcome) + func (k Keeper) DeleteCommittee(ctx sdk.Context, committeeID uint64) + func (k Keeper) DeleteProposal(ctx sdk.Context, proposalID uint64) + func (k Keeper) DeleteProposalAndVotes(ctx sdk.Context, proposalID uint64) + func (k Keeper) DeleteVote(ctx sdk.Context, proposalID uint64, voter sdk.AccAddress) + func (k Keeper) GetCommittee(ctx sdk.Context, committeeID uint64) (types.Committee, bool) + func (k Keeper) GetCommittees(ctx sdk.Context) types.Committees + func (k Keeper) GetMemberCommitteeProposalResult(ctx sdk.Context, proposalID uint64, committee types.Committee) bool + func (k Keeper) GetNextProposalID(ctx sdk.Context) (uint64, error) + func (k Keeper) GetProposal(ctx sdk.Context, proposalID uint64) (types.Proposal, bool) + func (k Keeper) GetProposalResult(ctx sdk.Context, proposalID uint64, committee types.Committee) bool + func (k Keeper) GetProposalTallyResponse(ctx sdk.Context, proposalID uint64) (*types.QueryTallyResponse, bool) + func (k Keeper) GetProposals(ctx sdk.Context) types.Proposals + func (k Keeper) GetProposalsByCommittee(ctx sdk.Context, committeeID uint64) types.Proposals + func (k Keeper) GetTokenCommitteeProposalResult(ctx sdk.Context, proposalID uint64, committee *types.TokenCommittee) bool + func (k Keeper) GetVote(ctx sdk.Context, proposalID uint64, voter sdk.AccAddress) (types.Vote, bool) + func (k Keeper) GetVotes(ctx sdk.Context) []types.Vote + func (k Keeper) GetVotesByProposal(ctx sdk.Context, proposalID uint64) []types.Vote + func (k Keeper) IncrementNextProposalID(ctx sdk.Context) error + func (k Keeper) IterateCommittees(ctx sdk.Context, cb func(committee types.Committee) (stop bool)) + func (k Keeper) IterateProposals(ctx sdk.Context, cb func(proposal types.Proposal) (stop bool)) + func (k Keeper) IterateVotes(ctx sdk.Context, cb func(vote types.Vote) (stop bool)) + func (k Keeper) ProcessProposals(ctx sdk.Context) + func (k Keeper) SetCommittee(ctx sdk.Context, committee types.Committee) + func (k Keeper) SetNextProposalID(ctx sdk.Context, id uint64) + func (k Keeper) SetProposal(ctx sdk.Context, proposal types.Proposal) + func (k Keeper) SetVote(ctx sdk.Context, vote types.Vote) + func (k Keeper) StoreNewProposal(ctx sdk.Context, pubProposal types.PubProposal, committeeID uint64, ...) (uint64, error) + func (k Keeper) SubmitProposal(ctx sdk.Context, proposer sdk.AccAddress, committeeID uint64, ...) (uint64, error) + func (k Keeper) TallyMemberCommitteeVotes(ctx sdk.Context, proposalID uint64) (totalVotes sdk.Dec) + func (k Keeper) TallyTokenCommitteeVotes(ctx sdk.Context, proposalID uint64, tallyDenom string) (yesVotes, noVotes, totalVotes, possibleVotes sdk.Dec) + func (k Keeper) ValidatePubProposal(ctx sdk.Context, pubProposal types.PubProposal) (returnErr error)