keeper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 10 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 {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey sdk.StoreKey,
	transferKeeper types.TransferKeeper,
	gammKeeper types.GammKeeper,
) Keeper

func (Keeper) MultihopSwapExactAmountIn added in v0.2.0

func (k Keeper) MultihopSwapExactAmountIn(
	ctx sdk.Context,
	sender sdk.AccAddress,
	routes []types.SwapAmountInRoute,
	tokenIn sdk.Coin,
	tokenOutMinAmount sdk.Int,
) (tokenOutAmount sdk.Int, tokenOutDenom string, err error)

func (Keeper) OnRecvSwapPacket added in v0.2.0

func (k Keeper) OnRecvSwapPacket(ctx sdk.Context, packet channeltypes.Packet, sender sdk.AccAddress, amount, denom string, data types.SwapExactAmountInPacketData) (packetAck types.SwapExactAmountInAck, err error)

OnRecvSwapPacket processes packet reception

type SwapICS4Wrapper added in v0.2.0

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

func NewSwapICS4Wrapper added in v0.2.0

func NewSwapICS4Wrapper(channelKeeper transfertypes.ChannelKeeper) SwapICS4Wrapper

func (SwapICS4Wrapper) GetChannel added in v0.2.0

func (w SwapICS4Wrapper) GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool)

func (SwapICS4Wrapper) GetNextSequenceSend added in v0.2.0

func (w SwapICS4Wrapper) GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)

func (SwapICS4Wrapper) SendPacket added in v0.2.0

func (w SwapICS4Wrapper) SendPacket(ctx sdk.Context, channelCap *capabilitytypes.Capability, packet ibcexported.PacketI) error

Jump to

Keyboard shortcuts

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