# README
InterGAMM
This is a middleware module around ICS20 transfer module to allow executing custom transactions (ex: swap) on osmosis chain.
IBC Swap
IbcPacketData
Data packet sent by a blockchain to Osmosis chain to make custom transaction. It contains the following parameters:
Parameter | Type | Description |
---|---|---|
Denom | string | From ICS20 |
Amount | string | From ICS20 |
Sender | string | From ICS20 |
Receiver | string | From ICS20 |
gamm | object | Osmosis action (optional) |
GAMM actions supported:
SwapExactAmountInPacketData
Allows to make swap transaction on Osmosis chain, uses TokenIn
from ICS20 data.
Parameter | Type | Description |
---|---|---|
Sender | string | Sender, useful for the caller |
Routes | SwapAmountInRoute | From osmosis |
TokenOutMinAmount | string | Min output amount |
SwapExactAmountInAck
Returns the swap result
Parameter | Type |
---|---|
Denom | string |
Amount | string |