keeper

package
v1.11.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

func (k Keeper) GetAuthority() string

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.

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

type Querier

type Querier struct {
	Keeper
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL