Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Implement DEX module ICA operations and cross-chain functionality #1293

@prdlk

Description

@prdlk

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

  • Implement ICA packet construction for each operation type
  • Add DID/UCAN validation for authorization
  • Integrate with DWN for transaction history storage
  • Add proper error handling and retry logic
  • Create comprehensive test coverage
  • Document ICA message formats for each DEX operation

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreImprovement to existing functionalitycross-chainMulti-chain integrations and protocolsibcInter-Blockchain Communication protocol

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions