keeper

package
v0.0.0-...-9a9376b Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeriveIntermediateSender

func DeriveIntermediateSender(channel, originalSender, bech32Prefix string) (string, error)

func GetPacketKey

func GetPacketKey(channel string, packetSequence uint64) []byte

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	storeKey sdk.StoreKey,
) Keeper

NewKeeper returns a new instance of the x/ibchooks keeper

func (Keeper) DeletePacketCallback

func (k Keeper) DeletePacketCallback(ctx sdk.Context, channel string, packetSequence uint64)

DeletePacketCallback deletes the callback from storage once it has been processed

func (Keeper) GetPacketCallback

func (k Keeper) GetPacketCallback(ctx sdk.Context, channel string, packetSequence uint64) string

GetPacketCallback returns the bech32 addr of the contract that is expecting a callback from a packet

func (Keeper) Logger

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

Logger returns a logger for the x/tokenfactory module

func (Keeper) StorePacketCallback

func (k Keeper) StorePacketCallback(ctx sdk.Context, channel string, packetSequence uint64, contract string)

StorePacketCallback stores which contract will be listening for the ack or timeout of a packet

Jump to

Keyboard shortcuts

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