1inch Fusion+ Extension Ethereum and NEAR/Aptos chains using Hash Time-Locked Contracts (HTLC).
A cross-chain swap extension for 1inch Fusion+ that enables bidirectional swaps between Ethereum and NEAR/Aptos chains using Hash Time-Locked Contracts (HTLC).
Features:
✅ Bidirectional swaps: ETH ↔ NEAR and ETH ↔ Aptos
✅ Hash Time-Locked Contracts (HTLC): With proper hashlock and timelock functionality
✅ 1inch Escrow Factory integration: On Ethereum side
✅ Custom escrow contracts: For NEAR and Aptos
✅ Cross-chain orchestration layer
✅ Mainnet and testnet support
HTLC Flow
┌────────────────────┐
│ │
NEAR/Aptos <------------> Ethereum │ │ ▼ ▼ Escrow Factory Contract → 1inch Custom Escrow
🔧 Core Technologies 1inch Limit Order Protocol (LOP) – for atomic escrow on Ethereum (Base Sepolia)
Hash Time-Locked Contracts (HTLC) – for trustless locking on NEAR and Aptos
Cross-chain orchestration layer – JS orchestrator managing swap flow
⛓️ Blockchain Platforms Ethereum (Base Sepolia) – using 1inch for escrow and claiming
NEAR Protocol – custom HTLC smart contract (Rust)
Aptos – HTLC contract written in Move
🧠 Smart Contract Languages Solidity – Ethereum-side integration via 1inch
Rust – NEAR smart contracts
Move – Aptos smart contracts
🧰 Libraries & Tools ethers.js – Ethereum smart contract interaction
near-api-js – NEAR RPC and contract integration
aptos (TypeScript SDK) – Aptos account and contract handling
SHA-256 – cryptographic hash function for hashlocks