keeper

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 15 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 MsgServer interface for the provided Keeper.

func NewQuerier

func NewQuerier(keeper Keeper) types.QueryServer

NewQuerier returns an implementation of the gmp QueryServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	IBCKeeper *keeper.Keeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	authority string,
	ibcKeeper keeper.Keeper,
) Keeper

func (Keeper) Bridge

func (k Keeper) Bridge(
	goCtx context.Context,
	msg *types.MsgBridge,
) (*types.MsgBridgeResponse, error)

Bridge submits an IBC transfer with a MsgBridge payload. This is so the IBC Transfer module can then use BuildGmpRequest and perform the GMP request.

func (Keeper) BuildGmpRequest

func (k Keeper) BuildGmpRequest(
	goCtx context.Context,
	msg *types.MsgBridge,
) (*ibctransfertypes.MsgTransfer, error)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams gets the module's parameters.

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams sets the module's parameters.

Jump to

Keyboard shortcuts

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