Search projects, hackathons, sponsors and tech

    ← All projects

    Tesseract

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

    Demo

    About

    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).

    How it's made

    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: 1. **Smart Contract**: Michelson contract implementing escrow functionality 2. **Client Library**: TypeScript utilities for Tezos interactions 3. **Configuration**: Chain-specific settings and RPC endpoints 4. **Tests**: Comprehensive test suite for EVM-to-Tezos swaps ## Architecture ### Smart Contract (`contracts/src/TezosEscrow.mligo`) The Tezos escrow contract implements the same core functionality as the EVM contracts: - **Hashlock Mechanism**: Uses `keccak256` for cross-chain consistency - **Timelock System**: Coordinated timelocks across chains - **Order Management**: Create, fund, claim, and cancel escrow orders - **Security Features**: Access control and emergency functions Key functions: - `announce_order`: Create new escrow order - `fund_dst_escrow`: Fund destination escrow - `claim_funds`: Withdraw using secret - `cancel_swap`: Cancel and return funds - `rescue_funds`: Emergency fund recovery