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: 23 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 envoy module's keeper.

func NewKeeper

func NewKeeper(
	cdc codec.Codec, accountKeeper authkeeper.AccountKeeper,
	bankKeeper bankkeeper.Keeper, distrKeeper distrkeeper.Keeper,
	channelKeeper ibcchannelkeeper.Keeper, icaControllerKeeper icacontrollerkeeper.Keeper,
	router *baseapp.MsgServiceRouter, authorities []string,
) Keeper

NewKeeper creates a new envoy module keeper.

func (Keeper) ExportGenesis

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

ExportGenesis returns a genesis state for a given context and keeper.

func (Keeper) GetModuleAddress

func (k Keeper) GetModuleAddress() sdk.AccAddress

GetModuleAddress returns the envoy module account's address.

func (Keeper) GetOwnerAndPortID

func (k Keeper) GetOwnerAndPortID() (sdk.AccAddress, string, error)

GetOwnerAndPortID is a convenience method that returns the envoy module account, which acts as the owner of interchain accounts, as well as the ICA controller port ID associated with it.

func (Keeper) InitGenesis

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

InitGenesis initializes the envoy 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.

Jump to

Keyboard shortcuts

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