Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) MultihopSwapExactAmountIn(ctx sdk.Context, sender sdk.AccAddress, routes []types.SwapAmountInRoute, ...) (tokenOutAmount sdk.Int, tokenOutDenom string, err error)
- func (k Keeper) OnRecvSwapPacket(ctx sdk.Context, packet channeltypes.Packet, sender sdk.AccAddress, ...) (packetAck types.SwapExactAmountInAck, err error)
- type SwapICS4Wrapper
- func (w SwapICS4Wrapper) GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool)
- func (w SwapICS4Wrapper) GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
- func (w SwapICS4Wrapper) SendPacket(ctx sdk.Context, channelCap *capabilitytypes.Capability, ...) error
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 (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 (SwapICS4Wrapper) SendPacket ¶ added in v0.2.0
func (w SwapICS4Wrapper) SendPacket(ctx sdk.Context, channelCap *capabilitytypes.Capability, packet ibcexported.PacketI) error
Click to show internal directories.
Click to hide internal directories.