CardaTron
Cross-chain atomic swaps: ETH ↔ Tron/Cardano via 1inch Fusion+ protocols on Fluence VMs
Problem Statement
CardaTron is a comprehensive cross-chain atomic swap platform that enables trustless token exchanges between Ethereum (EVM) and non-EVM blockchains - specifically Tron and Cardano. The project directly integrates with 1inch's Limit Order Protocol to facilitate bidirectional swaps while maintaining full decentralization and security following all 1inch Fusion plus protocols.
Solution
Technology Stack: Smart Contracts: Solidity (EVM/Tron), Plutus (Cardano) Backend: Node.js with Express, Python services Frontend: Next.js with React, TypeScript Blockchain Integration: Ethers.js, TronWeb, Cardano SDK Infrastructure: Fluence Virtual Servers (CPU-only VMs) AI Components: Custom chatbot with uAgent integrationFeatures:1inch Limit Order Protocol Integration : Custom CrossChainSettlement Contract: Extends 1inch's proven architecture for cross-chain compatibility fillOrderArgs Deployment: Uses 1inch's fillOrderArgs function to deploy escrows as mandated by bounty requirements Order Structure Compatibility: Maintains full compatibility with 1inch protocol's order schema and validation SafeERC20 Integration: Leverages SafeERC20 libraries from 1inch ecosystem for secure token transfers Direct LOP Integration: Seamlessly integrates with existing 1inch Limit Order Protocol infrastructure.Hash Time Locked Contracts (HTLC) Implementation: Atomic Swap Guarantees: HTLC ensures either both parties receive tokens or both get refunds Hashlock Mechanism: Cryptographic secret-based fund locking across all supported chains Timelock Security: Multiple deadline phases preventing fund lockup and enabling safe cancellation Cross-Chain Secret Sharing: Secure revelation mechanism ensuring atomic execution Bidirectional Support: HTLC implementation works for both EVM → Non-EVM and Non-EVM → EVM swapsAdvanced Escrow System: CREATE2 Factory Pattern: Deterministic escrow address generation using EscrowFactory Source & Destination Escrows: Separate escrow contracts for each chain in the swap pair Minimal Proxy Architecture: Gas-efficient escrow deployment reducing transaction costs Multi-Phase Withdrawal: Private and public withdrawal windows with safety mechanisms Emergency Cancellation: Timelock-based fund recovery preventing permanent lockupResolver Network & Safety Mechanisms: Decentralized Resolver System: Network of resolvers facilitating cross-chain coordination Safety Deposit Staking: Resolvers stake funds ensuring honest behavior and swap completion Public Enforcement: Community members can complete stalled swaps and claim resolver deposits Slashing Protection: Multiple validation layers preventing malicious resolver behavior Automated Monitoring: Real-time blockchain monitoring for resolver performance trackingCross-Chain Architecture: Bidirectional Swap Support: Full support for swaps to and from Ethereum (qualification requirement) Multi-Network Compatibility: Supports Ethereum Sepolia ↔ Tron and Ethereum Sepolia ↔ Cardano Onchain Execution: All token transfers execute onchain as required for final demo Atomic Guarantees: Either all swaps complete successfully or all funds return to original owners Real-Time Coordination: WebSocket-powered backend coordinating multi-chain operations Security & Trust Minimization:Trustless Operation: No centralized authority required for swap execution Cryptographic Proofs: HTLC secret verification ensuring atomic properties Multiple Timeout Layers: Graduated deadlines preventing any scenario of permanent fund loss Resolver Accountability: Economic incentives and penalties ensuring reliable service Emergency Recovery: Multiple escape hatches for fund recovery in edge cases Production-Ready Infrastructure: Git Commit History: Comprehensive development history meeting qualification requirements Fluence VM Deployment: CPU-optimized services deployed on Fluence Virtual Servers Scalable Architecture: Auto-scaling resolver network handling increased swap volume Monitoring & Analytics: Complete swap lifecycle tracking and performance metrics User Experience: Intuitive interface abstracting cross-chain complexity from end users
Hackathon
ETHGlobal New Delhi
2025
Contributors
- Dwaipayan25
27 contributions
- anj20
22 contributions
- misramrinal
8 contributions