project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

SYNAPSE

Cross-chain CLI for atomic swaps using Fusion, 1inch, now extended to the high-speed Monad chain.

SYNAPSE

Created At

Unite Defi

Project Description

MY GPU IS COOKED SO DONT MIND THE DISTORTION IN DEMO VIDEO

This project is a powerful command-line interface (CLI) tool designed for seamless, permissionless cross-chain token swaps. It integrates Fusion’s Time-Lock based atomic swap protocol for secure cross-chain transactions and 1inch as the routing backend to ensure users get optimal on-chain exchange rates.

The CLI abstracts complex smart contract interactions into simple commands, allowing developers, traders, and automation scripts to initiate, monitor, and finalize cross-chain swaps with ease. The tool supports both EVM-compatible chains and fusion protocol natively.

We are now extending support to the Monad chain, a high-throughput, parallelized EVM-compatible blockchain, to leverage its low-latency execution and scale up cross-chain settlement speeds. This enables users to perform efficient swaps between Monad and other supported chains, making the tool even more powerful in DeFi automation and arbitrage workflows.

Features: 🔁 Cross-chain atomic swaps using Fusion’s time-lock protocol

🔄 Aggregated DEX pricing via 1inch for best execution

🧩 Modular architecture for easily adding new chains (now includes Monad!)

🔐 Secure and gas-optimized with clear audit-friendly logic

🧪 Supports scripting, batching, and dry-run simulation for advanced users

🛠️ Written in TypeScript + ethers.js for broad compatibility and extensibility

This project aims to empower DeFi developers and power users with low-level swap tooling that bridges ecosystems without relying on centralized intermediaries.

How it's Made

🧱 How It’s Made This CLI tool is built on a composable and modular architecture that combines the Fusion+ protocol from 1inch with Hashed Timelock Contracts (HTLCs) to enable atomic, decentralized, and secure cross-chain swaps. The Monad chain integration is achieved through its EVM compatibility, allowing reuse of core swap logic with minor chain-specific adaptations.

🔧 Technologies Used TypeScript: Main CLI language, chosen for its safety and modern developer tooling.

Ethers.js: Interacts with smart contracts and wallet management across chains.

1inch Fusion+ SDK: Used for creating, signing, and managing Fusion+ orders.

Fusion Escrow Contracts: Custom or extended HTLC-like contracts deployed per chain.

Monad JSON-RPC: Native RPC calls for escrow deployments and token handling on Monad.

dotenv & commander: For CLI config and interface.

Hardhat: For testing and deploying EVM contracts.

🔄 Architecture and Flow User Input: CLI parses and validates swap parameters (tokenIn, tokenOut, amount, sourceChain, destinationChain).

Order Creation:

Generates a secret and secret hash.

Constructs a Fusion+ order with auction parameters (minReturn, price curve, etc.).

Signs and submits the order to the 1inch relayer.

Auction and Escrow:

Resolvers compete to fulfill the order by locking assets on the source and destination chains using 1inch’s escrow contracts.

Once finality locks pass, the secret is revealed, enabling the withdrawal phase.

Swap Finalization:

Assets are distributed to the respective recipients, and safety deposits returned to resolvers.

If timeout/cancellation occurs, fallback paths are triggered.

Monad Support:

Monad integration uses EVM-equivalent Fusion escrow contracts.

Chain metadata (gas, finality, nonce logic) adapted in the CLI to support Monad-specific parameters.

background image mobile

Join the mailing list

Get the latest news and updates