🔁 Cross-chain ETH→Sui escrow swap via LayerZero V2 and custom EVM + Move smart contracts
This project implements a cross-chain asset bridge using an escrow pattern with a hub-and-spoke model. An EVM smart contract on Sepolia allows users to lock ETH and emit a SwapInitiated event. A TypeScript-based relay bot listens to these events and uses the LayerZero V2 SDK to forward payloads to a non-EVM destination chain (e.g., Sui). The Sui Move module then verifies and releases the funds based on the payload contents. The architecture abstracts the user away from bridging complexity, enabling trust-minimized swaps across heterogeneous chains.
The project consists of three parts: A Solidity-based escrow contract deployed on Sepolia (Hardhat, Foundry). A TypeScript relay bot built with ethers.js, LayerZero’s lz-v2-utilities, and ts-node for live execution. A Move 2024-compatible smart contract on Sui (Move CLI, sui move). All parts communicate via LayerZero’s UltraLightNode V2 infrastructure. Configuration is handled via .env, and all deployments/scripts are reproducible via pnpm-based monorepo tooling.