This issue was migrated from sonr-io/sonr2#223
Migration date: Fri Oct 3 03:17:12 PM EDT 2025
Summary
Complete the implementation of DEX module's Interchain Account (ICA) operations for cross-chain trading functionality.
TODO Locations
Message Server (x/dex/keeper/msg_server.go)
- Line 55-78:
ExecuteSwap - Implement cross-chain swap execution via ICA
- Line 81-105:
ProvideLiquidity - Implement cross-chain liquidity provision
- Line 108-132:
RemoveLiquidity - Implement cross-chain liquidity removal
- Line 135-160:
CreateLimitOrder - Implement cross-chain limit order creation
- Line 163-188:
CancelOrder - Implement cross-chain order cancellation
Query Server (x/dex/keeper/query_server.go)
- Line 83-93:
Balance - Implement cross-chain balance query via IBC
- Line 106-115:
Pool - Implement cross-chain liquidity pool query
- Line 127-139:
Orders - Implement order book query for user's limit orders
- Line 151-164:
History - Implement transaction history query from DWN storage
IBC Module (x/dex/ibc_module.go)
- Line 57-69: Implement ICA Controller channel handshake and acknowledgment
- Line 79-99: Handle ICA Controller channel setup and close
- Line 122-132: Handle ICA packet acknowledgments and timeouts
Integration Points
x/dex/keeper/did_integration.go:38: Implement proper controller verification
x/dex/keeper/dwn_integration.go:189-231: Implement actual DWN storage operations
Tasks
This issue was migrated from sonr-io/sonr2#223
Migration date: Fri Oct 3 03:17:12 PM EDT 2025
Summary
Complete the implementation of DEX module's Interchain Account (ICA) operations for cross-chain trading functionality.
TODO Locations
Message Server (
x/dex/keeper/msg_server.go)ExecuteSwap- Implement cross-chain swap execution via ICAProvideLiquidity- Implement cross-chain liquidity provisionRemoveLiquidity- Implement cross-chain liquidity removalCreateLimitOrder- Implement cross-chain limit order creationCancelOrder- Implement cross-chain order cancellationQuery Server (
x/dex/keeper/query_server.go)Balance- Implement cross-chain balance query via IBCPool- Implement cross-chain liquidity pool queryOrders- Implement order book query for user's limit ordersHistory- Implement transaction history query from DWN storageIBC Module (
x/dex/ibc_module.go)Integration Points
x/dex/keeper/did_integration.go:38: Implement proper controller verificationx/dex/keeper/dwn_integration.go:189-231: Implement actual DWN storage operationsTasks