Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type BankGovHooks
- func (h BankGovHooks) AfterProposalDeposit(ctx context.Context, proposalID uint64, depositorAddr sdk.AccAddress) error
- func (h BankGovHooks) AfterProposalFailedMinDeposit(ctx context.Context, proposalID uint64) error
- func (h BankGovHooks) AfterProposalSubmission(ctx context.Context, proposalID uint64) error
- func (h BankGovHooks) AfterProposalVote(ctx context.Context, proposalID uint64, voterAddr sdk.AccAddress) error
- func (h BankGovHooks) AfterProposalVotingPeriodEnded(ctx context.Context, proposalID uint64) error
- type Keeper
- func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState
- func (k Keeper) GetAllOngoingBurnProposals(ctx context.Context) []types.BurnProposal
- func (k Keeper) GetAuthority() string
- func (k Keeper) InitGenesis(ctx context.Context, genState *types.GenesisState)
- func (k Keeper) IterateAllOngoingBurnProposals(ctx context.Context, cb func(types.BurnProposal) bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the burn MsgServer interface for the provided Keeper.
Types ¶
type BankGovHooks ¶
type BankGovHooks struct {
// contains filtered or unexported fields
}
BankGovHooks implements govtypes.GovHooks
func NewGovHooksForBurn ¶
func NewGovHooksForBurn(k Keeper, bk types.BankKeeper, gk types.GovKeeper) BankGovHooks
NewGovHooksForBank creates new gov hooks for bank keeper
func (BankGovHooks) AfterProposalDeposit ¶
func (h BankGovHooks) AfterProposalDeposit(ctx context.Context, proposalID uint64, depositorAddr sdk.AccAddress) error
AfterProposalDeposit implements govtypes.GovHooks
func (BankGovHooks) AfterProposalFailedMinDeposit ¶
func (h BankGovHooks) AfterProposalFailedMinDeposit(ctx context.Context, proposalID uint64) error
AfterProposalFailedMinDeposit implements govtypes.GovHooks
func (BankGovHooks) AfterProposalSubmission ¶
func (h BankGovHooks) AfterProposalSubmission(ctx context.Context, proposalID uint64) error
AfterProposalSubmission implements govtypes.GovHooks
func (BankGovHooks) AfterProposalVote ¶
func (h BankGovHooks) AfterProposalVote(ctx context.Context, proposalID uint64, voterAddr sdk.AccAddress) error
AfterProposalVote implements govtypes.GovHooks
func (BankGovHooks) AfterProposalVotingPeriodEnded ¶
func (h BankGovHooks) AfterProposalVotingPeriodEnded(ctx context.Context, proposalID uint64) error
AfterProposalVotingPeriodEnded implements govtypes.GovHooks
type Keeper ¶
type Keeper struct {
OngoingBurnProposals collections.Map[uint64, types.BurnProposal]
Schema collections.Schema
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, storeService store.KVStoreService, ak types.AccountKeeper, bk types.BankKeeper, authority string, ) Keeper
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState
ExportGenesis returns the bank module's genesis state.
func (Keeper) GetAllOngoingBurnProposals ¶
func (k Keeper) GetAllOngoingBurnProposals(ctx context.Context) []types.BurnProposal
GetAllOngoingBurnProposals retrieves all ongoing burn proposal
func (Keeper) GetAuthority ¶
GetAuthority returns the authority address
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx context.Context, genState *types.GenesisState)
InitGenesis initializes the bank module's state from a given genesis state.
func (Keeper) IterateAllOngoingBurnProposals ¶
func (k Keeper) IterateAllOngoingBurnProposals(ctx context.Context, cb func(types.BurnProposal) bool)
IterateAllOngoingBurnProposals iterates over all the ongoing burn proposals and provides the proposal to a callback. If true is returned from the callback, iteration is halted.
type Querier ¶
type Querier struct {
Keeper
}
func (Querier) OngoingProposal ¶
func (k Querier) OngoingProposal(c context.Context, req *types.QueryOngoingProposalRequest) (*types.QueryOngoingProposalResponse, error)
func (Querier) OngoingProposals ¶
func (k Querier) OngoingProposals(c context.Context, req *types.QueryOngoingProposalsRequest) (*types.QueryOngoingProposalsResponse, error)