← Back to home

Tesseract

Send tokens from any EVM chain to Tezos and vice-versa using 1inch Fusion+

Problem Statement

Tesseract is a novel extension for 1inch Cross-chain Swap (Fusion+) that enables swaps between Ethereum and Tezos. It preserves hashlock and timelock functionality for the non-EVM implementation on Tezos and the swap functionality is be bidirectional (swaps are possible to and from Ethereum).

Solution

This project works by using an escrow contract on both Ethereum (written in Solidity) and Tezos (written in SmartPy and Ligo) with a filler completing the order from the queued orders.The Tezos integration follows the same pattern as other non-EVM chains in the 1inch Fusion+ ecosystem:Smart Contract: Michelson contract implementing escrow functionalityClient Library: TypeScript utilities for Tezos interactionsConfiguration: Chain-specific settings and RPC endpointsTests: Comprehensive test suite for EVM-to-Tezos swapsArchitectureSmart Contract (contracts/src/TezosEscrow.mligo)The Tezos escrow contract implements the same core functionality as the EVM contracts:Hashlock Mechanism: Useskeccak256for cross-chain consistencyTimelock System: Coordinated timelocks across chainsOrder Management: Create, fund, claim, and cancel escrow ordersSecurity Features: Access control and emergency functionsKey functions:announce_order: Create new escrow orderfund_dst_escrow: Fund destination escrowclaim_funds: Withdraw using secretcancel_swap: Cancel and return fundsrescue_funds: Emergency fund recovery

Hackathon

ETHGlobal Unite

2025

Contributors