Documentation ¶
Index ¶
- func NewMsgServerImpl(k Keeper) types.MsgServer
- func NewQueryServerImpl(k Keeper) types.QueryServer
- type Keeper
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetBalances(ctx sdk.Context) sdk.Coins
- func (k Keeper) GetModuleAddress() sdk.AccAddress
- func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ReleaseFund(ctx sdk.Context, recipient sdk.AccAddress, amount sdk.Coins) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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(ctx sdk.Context) *types.GenesisState
ExportGenesis returns a genesis state for a given context and keeper
func (Keeper) GetBalances ¶
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, gs 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) ReleaseFund ¶
ReleaseFund releases coins from the safety fund to the specified recipient