Skip to content

Build cross-chain bridge with HTLC atomic swap for Stellar-EVM transfers #565

Description

@Smartdevs17

Context

AgenticPay supports both Stellar and EVM chains but lacks a production-ready cross-chain bridge. An HTLC-based atomic swap would enable trustless cross-chain payments.

Current Limitation

Users cannot move assets between Stellar and EVM chains within the platform.

Expected Outcome

  • HTLC contract on both chains for atomic swaps
  • Relayer service for monitoring and coordinating swaps
  • Configurable timelock periods and hash algorithms
  • Support for XLM, USDC, and custom tokens

Acceptance Criteria

  • HTLC contracts deployed on both Stellar and EVM
  • Relayer service monitors HTLC events on both chains
  • Atomic swap initiation, claiming, and refund flows
  • Timeout-based refund mechanism with safety margins
  • Support for multiple token types (native + ERC20/Soroban tokens)
  • E2E tests for complete cross-chain swap lifecycle

Technical Scope

  • contracts/evm/contracts/BridgeHTLC.sol - EVM HTLC contract
  • contracts/bridges/ - Bridge contract implementations
  • backend/src/services/bridge.ts - Bridge coordination service
  • frontend/app/dashboard/bridge/ - Bridge UI components

Metadata

Metadata

Assignees

Labels

200-points200 point issueStellar WaveIssues in the Stellar wave programdrips-waveIssues in the Drips Wave programhighHigh complexity issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions