project screenshot 1
project screenshot 2
project screenshot 3

Tesseract

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

Tesseract

Created At

Unite Defi

Project Description

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
background image mobile

Join the mailing list

Get the latest news and updates