Melswap

Cross-chain swaps via 1inch Fusion+ with Aptos and Sui blockchains

Melswap

Created At

ETHGlobal New Delhi

Winner of

1inch

1inch - Non-EVM Extensions for 1inch Cross-chain Swap (Fusion+) 1st place

Project Description

Melswap is a cross-chain swap protocol built on 1inch Fusion+ that connects Ethereum with non-EVM chains (Aptos and Sui).

The design preserves 1inch Fusion+’s Dutch auction + resolver/relayer model while extending it to non-EVM chains.

  • Deposit tokens from Ethereum into Aptos/Sui instantly
  • Withdraw tokens back to Ethereum or swap between Move chains with the same atomic guarantees.
  • Escrows are enforced with hashlocks + timelocks guarantees.
  • Orders are paid for by resolvers, letting users trade without worrying about gas.

How it's Made

Melswap combines EVM contracts, Move modules, and an off-chain service with a browser-based frontend:

Ethereum (Sepolia)

  • Uses 1inch Limit Order Protocol and a custom EscrowFactory for order creation via fillOrderArgs.
  • Resolver contracts handle order execution and interaction.

Aptos (Move) -Custom Order and Escrow objects replicate the LOP escrow logic.

  • Multi-agent transactions allow both user deposits and resolver incentives to settle atomically.

Sui (Move)

  • Implements object-based escrows with hashlock + timelock guarantees.
  • Resolvers deploy escrows directly for settlement.

Frontend (Next.js + TypeScript)

  • Built as a browser dApp where users can connect via MetaMask (EVM), Phantom and Petra wallets.

Resolver-Relayer Network

  • Written in TypeScript with scripts that monitor on-chain events.
  • Listens for new 1inch Fusion+ orders on Ethereum, handles Aptos/Sui escrow deployments, and unlocks funds upon hash preimage reveal.

Notable Hacks:

  • Leveraged gas sponsorship (Aptos) and multi-agent transactions to mimic 1inch’s gasless UX without requiring Permit approvals.
  • Built Move-based escrow factories that closely match Solidity LOP behavior but in a native Move object model.
background image mobile

Join the mailing list

Get the latest news and updates