keeper

package
v5.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 19 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.

Types

type Keeper

type Keeper struct {
	IBCKeeper           ibckeeper.Keeper
	ICAControllerKeeper icacontrollerkeeper.Keeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,
	scopedKeeper capabilitykeeper.ScopedKeeper,
	ibcKeeper ibckeeper.Keeper,
	icacontrollerkeeper icacontrollerkeeper.Keeper,
) *Keeper

func (Keeper) CallRegisteredICACallback

func (k Keeper) CallRegisteredICACallback(ctx sdk.Context, modulePacket channeltypes.Packet, ackResponse *types.AcknowledgementResponse) error

func (*Keeper) ClaimCapability

func (k *Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error

ClaimCapability claims the channel capability passed via the OnOpenChanInit callback

func (Keeper) GetAllCallbackData

func (k Keeper) GetAllCallbackData(ctx sdk.Context) (list []types.CallbackData)

GetAllCallbackData returns all callbackData

func (Keeper) GetCallbackData

func (k Keeper) GetCallbackData(
	ctx sdk.Context,
	callbackKey string,
) (val types.CallbackData, found bool)

GetCallbackData returns a callbackData from its index

func (Keeper) GetCallbackDataFromPacket

func (k Keeper) GetCallbackDataFromPacket(ctx sdk.Context, modulePacket channeltypes.Packet, callbackDataKey string) (cbd *types.CallbackData, found bool)

func (*Keeper) GetICACallbackHandler

func (k *Keeper) GetICACallbackHandler(module string) (types.ICACallbackHandler, error)

func (Keeper) GetICACallbackHandlerFromPacket

func (k Keeper) GetICACallbackHandlerFromPacket(ctx sdk.Context, modulePacket channeltypes.Packet) (*types.ICACallbackHandler, error)

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveCallbackData

func (k Keeper) RemoveCallbackData(
	ctx sdk.Context,
	callbackKey string,
)

RemoveCallbackData removes a callbackData from the store

func (Keeper) SetCallbackData

func (k Keeper) SetCallbackData(ctx sdk.Context, callbackData types.CallbackData)

SetCallbackData set a specific callbackData in the store from its index

func (*Keeper) SetICACallbackHandler

func (k *Keeper) SetICACallbackHandler(module string, handler types.ICACallbackHandler) error

Should we add a `AddICACallback`

func (Keeper) SetParams

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

SetParams set the params

Jump to

Keyboard shortcuts

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