keeper

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	PushAction vm.ActionPusher
	// contains filtered or unexported fields
}

Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine

func NewKeeper

func NewKeeper(
	cdc codec.Codec, key sdk.StoreKey,
	channelKeeper types.ChannelKeeper, portKeeper types.PortKeeper,
	bankKeeper bankkeeper.Keeper,
	scopedKeeper capabilitykeeper.ScopedKeeper,
	pushAction vm.ActionPusher,
) Keeper

NewKeeper creates a new dIBC Keeper instance

func (Keeper) BindPort

func (k Keeper) BindPort(ctx sdk.Context, portID string) error

BindPort defines a wrapper function for the port Keeper's function in order to expose it to the vibc IBC handler.

func (Keeper) ChanCloseInit

func (k Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error

ChanCloseInit defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.

func (Keeper) ChanOpenInit

func (k Keeper) ChanOpenInit(ctx sdk.Context, order channeltypes.Order, connectionHops []string,
	portID, rPortID, version string,
) error

ChanOpenInit defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.

func (Keeper) ClaimCapability

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

ClaimCapability allows the vibc module to claim a capability that IBC module passes to it

func (Keeper) GetBalance

func (k Keeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin

func (Keeper) GetCapability

func (k Keeper) GetCapability(ctx sdk.Context, name string) (*capability.Capability, bool)

func (Keeper) GetChannel

func (k Keeper) GetChannel(ctx sdk.Context, portID, channelID string) (channeltypes.Channel, bool)

GetChannel defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.

func (Keeper) GetNextSequenceSend

func (k Keeper) GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)

GetNextSequenceSend defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.

func (Keeper) SendPacket

func (k Keeper) SendPacket(ctx sdk.Context, packet ibcexported.PacketI) error

SendPacket defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.

func (Keeper) TimeoutExecuted

func (k Keeper) TimeoutExecuted(ctx sdk.Context, packet ibcexported.PacketI) error

TimeoutExecuted defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.

func (Keeper) WriteAcknowledgement

func (k Keeper) WriteAcknowledgement(ctx sdk.Context, packet ibcexported.PacketI, acknowledgement []byte) error

WriteAcknowledgement defines a wrapper function for the channel Keeper's function in order to expose it to the vibc IBC handler.

Jump to

Keyboard shortcuts

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