Versions in this module Expand all Collapse all v0 v0.400.3 Oct 18, 2021 v0.400.1 Oct 18, 2021 Changes in this version + func AllInvariants(keeper Keeper, bk types.BankKeeper) sdk.Invariant + func ModuleAccountInvariant(keeper Keeper, bk types.BankKeeper) sdk.Invariant + func NewMsgServerImpl(keeper Keeper) types.MsgServer + func NewQuerier(keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier + func RegisterInvariants(ir sdk.InvariantRegistry, keeper Keeper, bk types.BankKeeper) + type Keeper struct + func NewKeeper(cdc codec.BinaryCodec, key storetypes.StoreKey, paramSpace types.ParamSubspace, ...) Keeper + func (keeper *Keeper) SetHooks(gh types.GovHooks) *Keeper + func (keeper Keeper) ActivateVotingPeriod(ctx sdk.Context, proposal types.Proposal) + func (keeper Keeper) ActiveProposalQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator + func (keeper Keeper) AddDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress, ...) (bool, error) + func (keeper Keeper) AddVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress, ...) error + func (keeper Keeper) AfterProposalDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress) + func (keeper Keeper) AfterProposalFailedMinDeposit(ctx sdk.Context, proposalID uint64) + func (keeper Keeper) AfterProposalSubmission(ctx sdk.Context, proposalID uint64) + func (keeper Keeper) AfterProposalVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress) + func (keeper Keeper) AfterProposalVotingPeriodEnded(ctx sdk.Context, proposalID uint64) + func (keeper Keeper) DeleteAndBurnDeposits(ctx sdk.Context, proposalID uint64) + func (keeper Keeper) DeleteProposal(ctx sdk.Context, proposalID uint64) + func (keeper Keeper) GetAllDeposits(ctx sdk.Context) (deposits types.Deposits) + func (keeper Keeper) GetAllVotes(ctx sdk.Context) (votes types.Votes) + func (keeper Keeper) GetDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress) (deposit types.Deposit, found bool) + func (keeper Keeper) GetDepositParams(ctx sdk.Context) types.DepositParams + func (keeper Keeper) GetDeposits(ctx sdk.Context, proposalID uint64) (deposits types.Deposits) + func (keeper Keeper) GetGovernanceAccount(ctx sdk.Context) authtypes.ModuleAccountI + func (keeper Keeper) GetProposal(ctx sdk.Context, proposalID uint64) (types.Proposal, bool) + func (keeper Keeper) GetProposalID(ctx sdk.Context) (proposalID uint64, err error) + func (keeper Keeper) GetProposals(ctx sdk.Context) (proposals types.Proposals) + func (keeper Keeper) GetProposalsFiltered(ctx sdk.Context, params types.QueryProposalsParams) types.Proposals + func (keeper Keeper) GetTallyParams(ctx sdk.Context) types.TallyParams + func (keeper Keeper) GetVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress) (vote types.Vote, found bool) + func (keeper Keeper) GetVotes(ctx sdk.Context, proposalID uint64) (votes types.Votes) + func (keeper Keeper) GetVotingParams(ctx sdk.Context) types.VotingParams + func (keeper Keeper) InactiveProposalQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator + func (keeper Keeper) InsertActiveProposalQueue(ctx sdk.Context, proposalID uint64, endTime time.Time) + func (keeper Keeper) InsertInactiveProposalQueue(ctx sdk.Context, proposalID uint64, endTime time.Time) + func (keeper Keeper) IterateActiveProposalsQueue(ctx sdk.Context, endTime time.Time, ...) + func (keeper Keeper) IterateAllDeposits(ctx sdk.Context, cb func(deposit types.Deposit) (stop bool)) + func (keeper Keeper) IterateAllVotes(ctx sdk.Context, cb func(vote types.Vote) (stop bool)) + func (keeper Keeper) IterateDeposits(ctx sdk.Context, proposalID uint64, cb func(deposit types.Deposit) (stop bool)) + func (keeper Keeper) IterateInactiveProposalsQueue(ctx sdk.Context, endTime time.Time, ...) + func (keeper Keeper) IterateProposals(ctx sdk.Context, cb func(proposal types.Proposal) (stop bool)) + func (keeper Keeper) IterateVotes(ctx sdk.Context, proposalID uint64, cb func(vote types.Vote) (stop bool)) + func (keeper Keeper) Logger(ctx sdk.Context) log.Logger + func (keeper Keeper) MarshalProposal(proposal types.Proposal) ([]byte, error) + func (keeper Keeper) RefundAndDeleteDeposits(ctx sdk.Context, proposalID uint64) + func (keeper Keeper) RemoveFromActiveProposalQueue(ctx sdk.Context, proposalID uint64, endTime time.Time) + func (keeper Keeper) RemoveFromInactiveProposalQueue(ctx sdk.Context, proposalID uint64, endTime time.Time) + func (keeper Keeper) Router() types.Router + func (keeper Keeper) SetDeposit(ctx sdk.Context, deposit types.Deposit) + func (keeper Keeper) SetDepositParams(ctx sdk.Context, depositParams types.DepositParams) + func (keeper Keeper) SetProposal(ctx sdk.Context, proposal types.Proposal) + func (keeper Keeper) SetProposalID(ctx sdk.Context, proposalID uint64) + func (keeper Keeper) SetTallyParams(ctx sdk.Context, tallyParams types.TallyParams) + func (keeper Keeper) SetVote(ctx sdk.Context, vote types.Vote) + func (keeper Keeper) SetVotingParams(ctx sdk.Context, votingParams types.VotingParams) + func (keeper Keeper) SubmitProposal(ctx sdk.Context, content types.Content) (types.Proposal, error) + func (keeper Keeper) Tally(ctx sdk.Context, proposal types.Proposal) (passes bool, burnDeposits bool, tallyResults types.TallyResult) + func (keeper Keeper) UnmarshalProposal(bz []byte, proposal *types.Proposal) error + func (q Keeper) Deposit(c context.Context, req *types.QueryDepositRequest) (*types.QueryDepositResponse, error) + func (q Keeper) Deposits(c context.Context, req *types.QueryDepositsRequest) (*types.QueryDepositsResponse, error) + func (q Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (q Keeper) Proposal(c context.Context, req *types.QueryProposalRequest) (*types.QueryProposalResponse, error) + func (q Keeper) Proposals(c context.Context, req *types.QueryProposalsRequest) (*types.QueryProposalsResponse, error) + func (q Keeper) TallyResult(c context.Context, req *types.QueryTallyResultRequest) (*types.QueryTallyResultResponse, error) + func (q Keeper) Vote(c context.Context, req *types.QueryVoteRequest) (*types.QueryVoteResponse, error) + func (q Keeper) Votes(c context.Context, req *types.QueryVotesRequest) (*types.QueryVotesResponse, error) + type Migrator struct + func NewMigrator(keeper Keeper) Migrator + func (m Migrator) Migrate1to2(ctx sdk.Context) error