Versions in this module Expand all Collapse all v1 v1.3.1 Feb 6, 2021 v1.3.0 Jan 15, 2021 Changes in this version + func NewQuerier(keeper Keeper) sdk.Querier + func ProposalKey(proposalID uint64) []byte + func SecurityTally(ctx sdk.Context, k Keeper, proposal types.Proposal) (bool, bool, govTypes.TallyResult) + func Tally(ctx sdk.Context, k Keeper, proposal types.Proposal) (pass bool, veto bool, tallyResults govTypes.TallyResult) + type Keeper struct + CertKeeper types.CertKeeper + ShieldKeeper types.ShieldKeeper + UpgradeKeeper types.UpgradeKeeper + func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, paramSpace types.ParamSubspace, ...) Keeper + func (k Keeper) ActivateCouncilProposalVotingPeriod(ctx sdk.Context, proposal types.Proposal) bool + func (k Keeper) ActivateVotingPeriod(ctx sdk.Context, proposal types.Proposal) + func (k Keeper) AddDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress, ...) (bool, error) + func (k Keeper) AddVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress, ...) error + func (k Keeper) BondDenom(ctx sdk.Context) string + func (k Keeper) DeleteAllVotes(ctx sdk.Context, proposalID uint64) + func (k Keeper) DeleteDepositsByProposalID(ctx sdk.Context, proposalID uint64) + func (k Keeper) DeleteProposalByProposalID(ctx sdk.Context, proposalID uint64) + func (k Keeper) GetAllDeposits(ctx sdk.Context) (deposits types.Deposits) + func (k Keeper) GetAllVotes(ctx sdk.Context) (votes types.Votes) + func (k Keeper) GetDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress) (deposit types.Deposit, found bool) + func (k Keeper) GetDepositParams(ctx sdk.Context) types.DepositParams + func (k Keeper) GetDeposits(ctx sdk.Context, proposalID uint64) (deposits types.Deposits) + func (k Keeper) GetDepositsByProposalID(ctx sdk.Context, proposalID uint64) (deposits types.Deposits) + func (k Keeper) GetDepositsIteratorByProposalID(ctx sdk.Context, proposalID uint64) sdk.Iterator + func (k Keeper) GetProposal(ctx sdk.Context, proposalID uint64) (proposal types.Proposal, ok bool) + func (k Keeper) GetProposals(ctx sdk.Context) (proposals types.Proposals) + func (k Keeper) GetProposalsFiltered(ctx sdk.Context, params types.QueryProposalsParams) []types.Proposal + func (k Keeper) GetTallyParams(ctx sdk.Context) types.TallyParams + func (k Keeper) GetVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress) (vote types.Vote, found bool) + func (k Keeper) GetVotes(ctx sdk.Context, proposalID uint64) (votes types.Votes) + func (k Keeper) GetVotesIterator(ctx sdk.Context, proposalID uint64) sdk.Iterator + func (k Keeper) GetVotesIteratorPaginated(ctx sdk.Context, proposalID uint64, page, limit uint) sdk.Iterator + func (k Keeper) GetVotesPaginated(ctx sdk.Context, proposalID uint64, page, limit uint) (votes types.Votes) + func (k Keeper) IsCertifiedIdentity(ctx sdk.Context, addr sdk.AccAddress) bool + func (k Keeper) IsCertifier(ctx sdk.Context, addr sdk.AccAddress) bool + func (k Keeper) IsCouncilMember(ctx sdk.Context, addr sdk.AccAddress) bool + func (k Keeper) IterateActiveProposalsQueue(ctx sdk.Context, endTime time.Time, ...) + func (k Keeper) IterateAllDeposits(ctx sdk.Context, cb func(deposit types.Deposit) (stop bool)) + func (k Keeper) IterateAllVotes(ctx sdk.Context, cb func(vote types.Vote) (stop bool)) + func (k Keeper) IterateDeposits(ctx sdk.Context, proposalID uint64, cb func(deposit types.Deposit) (stop bool)) + func (k Keeper) IterateInactiveProposalsQueue(ctx sdk.Context, endTime time.Time, ...) + func (k Keeper) IterateProposals(ctx sdk.Context, cb func(proposal types.Proposal) (stop bool)) + func (k Keeper) IterateVotes(ctx sdk.Context, proposalID uint64, cb func(vote types.Vote) (stop bool)) + func (k Keeper) IterateVotesPaginated(ctx sdk.Context, proposalID uint64, page, limit uint, ...) + func (k Keeper) RefundDepositsByProposalID(ctx sdk.Context, proposalID uint64) + func (k Keeper) SetDeposit(ctx sdk.Context, deposit types.Deposit) + func (k Keeper) SetDepositParams(ctx sdk.Context, depositParams types.DepositParams) + func (k Keeper) SetProposal(ctx sdk.Context, proposal types.Proposal) + func (k Keeper) SetTallyParams(ctx sdk.Context, tallyParams types.TallyParams) + func (k Keeper) SetVote(ctx sdk.Context, vote types.Vote) + func (k Keeper) SubmitProposal(ctx sdk.Context, content govTypes.Content, addr sdk.AccAddress) (types.Proposal, error) + func (k Keeper) Tally(ctx sdk.Context, proposal types.Proposal) (passes bool, burnDeposits bool, tallyResults gov.TallyResult) + func (k Keeper) TotalBondedByCertifiedIdentities(ctx sdk.Context) sdk.Int + type TallyHelper struct Other modules containing this package github.com/certikfoundation/shentu/v2