XRoute
Intergation of Etherlink and Tezos with 1inch Fusion+ protocol, enabling token swaps via routing
Problem Statement
Tezos:We created a cross-chain bridge implementation, which provides a solution for executing 1inch Fusion+ cross-chain orders between Tezos and Ethereum networks.Features:Hashlock and timelock functionality - preserved on the Tezos side to ensure secure cross-chain transactionsSignature verification - implemented on the Tezos side for validating swap requestsBidirectional swaps - token swaps are supported in both directions (Tezos ↔ Ethereum)On-chain execution - deployed and tested on Tezos Ghostnet and Local EVM NodeResolver server - a lightweight resolver implemented to launch cross-chain order executionUser interface - console application for easy interactionComponents::Smart contracts deployed on both EVM-compatible chains and TezosA resolver service that receives cross-chain orders from clients and executes them on Tezos and EthereumA command-line interface application that allows users to swap tokens between Tezos and Ethereum networksEtherlink:The project integrates Etherlink with 1inch Fusion+ protocol by implementing a custom resolver that enables cross-chain token swaps with automatic routing through Etherlink's DEX aggregator.Features: The resolver automatically detects when tokens differ between source and destination chains, calls the Etherlink aggregator API to get optimal swap routes, prepares approve + swap calldata, and executes everything atomically in a single transaction. This enables seamless cross-chain swaps like ETH USDC → Etherlink WBTC with the best available rates.Components:Resolver implementation and testing frameworkSolidity smart contracts extending 1inch's base resolver with arbitraryCalls functionality1inch Cross-Chain SDK for order creation and escrow managementCustom API integration for swap route optimization on Etherlink
Solution
TezosKey technologies:Node.js + TypeScript - for type safety and easier debugging across all packagesCameLIGO - for writing smart contracts on Tezos with strong typingprool - for testing EVM contracts locallyTaquito - for interacting with Tezos blockchain from Node.jsethers.js - for handling Ethereum transactions and smart contract callsExpress - for building a simple API for the resolver service@1inch/cross-chain-sdk - for creating and validating cross-chain orders the 1inch wayEtherlinkKey technologies:TypeScript/Node.js for the resolver implementation and testing frameworkSolidity: Enhanced resolver contract with deployDst(targets[], callsData[]) for complex operations1inch Cross-Chain SDK for order creation and escrow managementCustom API integration for swap route optimization on EtherlinkEthers.js for blockchain interactions and transaction handlingBuilt with comprehensive test coverage using Jest and Prool for local blockchain forking, ensuring reliability for mainnet deployment.
Hackathon
ETHGlobal Unite
2025
Prizes
- 🏆
Extend Fusion+ to Tezos1st place
1inch
- 🏆
Hack the Stack: Bring Fusion+ to Etherlink1st place
Etherlink
Contributors
- skubarenko
2 contributions