keeper

package
v2.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(k Keeper) types.MsgServer

NewMsgServerImpl creates an implementation of the `MsgServer` interface for the given keeper.

func NewQueryServerImpl

func NewQueryServerImpl(k Keeper) types.QueryServer

NewQueryServerImpl creates an implementation of the `QueryServer` interface for the given keeper.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper is the module's keeper

func NewKeeper

func NewKeeper(accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, authority string) Keeper

NewKeeper creates a new Keeper instance

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(_ sdk.Context) *types.GenesisState

ExportGenesis returns a genesis state for a given context and keeper

func (Keeper) GetBalances

func (k Keeper) GetBalances(ctx sdk.Context) sdk.Coins

GetBalances returns the amount of coins available in the safety fund

func (Keeper) GetModuleAddress

func (k Keeper) GetModuleAddress() sdk.AccAddress

GetModuleAddress returns the safety fund module account's address

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, _ types.GenesisState)

InitGenesis initializes the safety module's storage according to the provided genesis state.

NOTE: we call `GetModuleAccount` instead of `SetModuleAccount` because the "get" function automatically sets the module account if it doesn't exist.

func (Keeper) Logger

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

Logger returns a module-specific logger

func (Keeper) ReleaseFund

func (k Keeper) ReleaseFund(ctx sdk.Context, recipient sdk.AccAddress, amount sdk.Coins) error

ReleaseFund releases coins from the safety fund to the specified recipient

Jump to

Keyboard shortcuts

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