tesseract
Open source · MIT · v0.1.0

Atomic swaps across
every rollup.
No bridges. No custodians.

Tesseract is the open-source cross-rollup atomic swap protocol. Trustless multi-leg swaps across Ethereum, Polygon, Arbitrum, Optimism, and Base — MEV-protected, flash-loan resistant, settled in under thirty seconds.

7
Audit-grade Vyper contracts
<30s
Cross-chain coordination target
5
L2s supported out of the box
135
Tests in the open-source suite
Settles on
EthereumPolygonArbitrumOptimismBaseEthereumPolygonArbitrumOptimismBaseEthereumPolygonArbitrumOptimismBase

Architecture

Seven Vyper contracts. One Rust relayer. Zero off-chain trust.

Tesseract is built deliberately small. Every feature below is enforced in code on the rollup itself — not gated by a multisig, a validator quorum, or an optimistic dispute window.

Commit-reveal MEV shield

Every swap is buffered as a hash commitment first and revealed only after the next block. Searchers, sequencers, and sandwich bots see nothing useful in the mempool — your trade lands at the price you signed for, not the price someone reorganised the block for.

Atomic swap groups

A multi-leg trade across three rollups either executes everywhere or refunds everywhere. The TesseractBuffer contract enforces group atomicity at the protocol layer, so partial fills, stranded collateral, and half-finished cross-chain routes simply cannot happen.

Flash-loan resistance, built-in

A mandatory 2-block resolution delay (configurable up to your chain finality) makes single-block flash loan exploits structurally impossible. Combined with role-gated resolution and a circuit breaker after 50 consecutive failures, the buffer hardens the surface attackers usually target.

Rust relayer with chain-aware finality

A high-throughput Rust relayer monitors 4+ chains in parallel over WebSocket with HTTP failover, tracks per-chain confirmation rules, and recovers stuck nonces automatically. Auto-scales 2–10 instances on CPU and persists state in PostgreSQL — not in someone's memory.

No bridges. No wrapped IOUs.

Tesseract coordinates native swaps directly on each rollup. Users hold real assets, not bridge receipts. There is no honeypot multisig, no canonical-vs-wrapped fragmentation, and no $600M failure mode waiting to be exploited.

Order book + partial fills

AtomicSwapCoordinator gives makers and takers a real on-chain order book with configurable slippage tolerance and partial fill support. Settle 500 USDC of a 1000 USDC order without forcing the entire trade through.

On-chain governance & staking

The TESS token powers protocol governance, fee discounts up to 50%, and staking rewards from 5% to 15% APY based on lock duration. Fees flow through an on-chain FeeCollector — transparent, auditable, no opaque off-chain treasury.

Honest comparisons

How Tesseract differs from the alternatives.

We don't pretend our competitors are bad. We do explain the architectural choices and what they cost you.

State of the space
vs LayerZero

Generic messaging vs. purpose-built atomic settlement.

LayerZero is a general-purpose omnichain messaging protocol that lets contracts on chain A trigger contracts on chain B via an off-chain Oracle + Relayer pair. It's a brilliant primitive for arbitrary cross-chain calls — but the security model bottoms out at trusting that the Oracle and Relayer don't collude.

5 concrete advantages
vs Wormhole

Guardian quorums vs. trustless on-chain coordination.

Wormhole is a generic message-passing protocol secured by 19 Guardian nodes that sign attestations of source-chain events. It moves data and assets across ~30 chains, but its security and atomicity ultimately rest on the Guardian set being honest and available.

5 concrete advantages
vs Across Protocol

Optimistic relayer races vs. atomic settlement.

Across is an intent-based bridge that uses competitive relayers to fill user requests on the destination chain, then settles those fills back to relayers using UMA optimistic oracle on a slower cadence. Fast UX, but the security model is optimistic, not atomic.

5 concrete advantages
vs Chainflip

External validator set vs. native rollup execution.

Chainflip is a Substrate-based appchain that runs its own validator set, vaults user funds, and executes cross-chain swaps through threshold signature schemes. It supports non-EVM chains (Bitcoin, Solana) — but that comes with a separate consensus layer and an external trust boundary.

5 concrete advantages
vs THORChain

Continuous liquidity pools vs. atomic order matching.

THORChain is a Cosmos-based cross-chain liquidity protocol that uses continuous liquidity pools and a TSS-secured validator set to swap native assets across Bitcoin, Ethereum, and several major chains. Production-proven, but it's a separate L1 with its own economics.

5 concrete advantages

FAQ

Questions a serious buyer would actually ask.

How is Tesseract different from a bridge?
+
A bridge moves an asset from chain A to chain B by locking the original and minting a wrapped copy. Tesseract never moves assets across chains — it coordinates simultaneous, atomic swaps already happening on each chain. There is no lock contract to drain, no wrapped IOU to depeg, and no validator quorum that can be socially engineered.
What stops MEV bots from front-running my swap?
+
Swaps are submitted as a keccak commitment hiding the payload. The reveal can only happen after the commitment is included on-chain, and resolution requires a further 2-block delay. A searcher reading the mempool sees opaque bytes; by the time the payload is public, the block ordering is already settled.
Which chains are supported?
+
At launch: Ethereum, Polygon, Arbitrum, Optimism, and Base — both mainnets and their testnets (Sepolia, Amoy). Adding a new EVM rollup is a matter of deploying the seven Vyper contracts and pointing a relayer instance at the RPC.
Do I need to run a relayer to use it?
+
No. End users only interact with the Vyper contracts on whichever rollups they care about. Relayers are infrastructure operators — they bond TESS in the RelayerRegistry, listen for events, and earn fees for coordinating cross-chain resolution. The Rust reference implementation is open source.
What happens if a leg of a multi-chain swap fails?
+
Atomic swap groups either resolve everywhere within the deadline window (5–300 seconds, configurable per swap) or they don't resolve at all. Any participant can call the refund path after expiry and reclaim their funds on each chain. There is no "stuck mid-flight" failure mode.
Is it audited?
+
The seven Vyper contracts pass 135 in-house tests covering compilation, tokenomics, access control, safety, and cross-chain integration scenarios. A third-party security audit is in progress before mainnet launch; current contracts are production-ready on testnet. Roll responsibly.
Why Vyper instead of Solidity?
+
Vyper has overflow protection by default, no inheritance, no inline assembly, and a deliberately small surface area. For a protocol that holds buffered swap state across rollups, that small surface is a feature, not a constraint. Auditors love it; bug bounty hunters less so.
How do TESS stakers benefit?
+
Stakers earn 5–15% APY based on lock duration, receive fee discounts of up to 50% on their own swaps, and vote on governance proposals through TesseractGovernor. Protocol fees flow through the on-chain FeeCollector to staker rewards — not into a foundation wallet.

Ship multi-rollup swaps that actually settle.

Clone the repo, run the 135-test suite, deploy to testnet in fifteen minutes. The protocol is open source, the contracts are audit-ready, and the documentation is honest about what's done and what isn't.