Bi-directional cross-chain swaps for $UNREAL via 1inch Fusion+: Etherlink, NEAR, Aptos
Unreal Wormhole is a live cross-chain DeFi protocol that enables seamless, atomic, and bi-directional swaps of $UNREAL tokens between Etherlink (EVM), NEAR, and Aptos. Using the latest 1inch Fusion+ primitives (Hash Time Lock Contracts and Dutch auction-style resolvers), Unreal Wormhole lets users securely swap assets between chains in both directions, all from a unified, intuitive UI.
The platform prioritizes real-world interoperability and user incentives: swaps are fully atomic and secured by hashlocks/timelocks; resolvers are rewarded via Dutch auctions that balance gas/infrastructure costs. Our UI abstracts away cross-chain complexity so anyone can bridge $UNREAL quickly, safely, and at optimal rates.
Unreal Wormhole stands out with:
First-ever bi-directional $UNREAL swaps across Etherlink↔NEAR and Etherlink↔Aptos
Dutch auction incentive system for cross-chain resolvers
Direct onchain execution for both EVM and non-EVM chains
Full compliance with 1inch Fusion+ and hackathon cross-chain prize tracks
Learn More about $UNREAL Token : https://tokenomics.unreal.art . Its essentially Stripe for AI : gas token for AI compute and more.
Our core architecture bridges three blockchains using both familiar and novel technologies:
Etherlink—Solidity smart contracts (Hardhat) implement $UNREAL (ERC20) and the 1inch Fusion+ hash time lock protocol. We forked Etherlink mainnet in Hardhat to simulate live swaps.
NEAR—Built custom Rust smart contracts, ported 1inch’s HTLC primitives for atomic swaps, and integrated chain signatures for secure cross-chain messaging.
Aptos—Move-based contracts facilitate $UNREAL lock/mint/burn and message passing, with a custom Dutch auction mechanism for incentivizing executors/resolvers.
All contracts were deployed on testnets, and our resolver backend and UI glue everything together:
Cross-chain messaging: Off-chain relayers batch-parse logs/events from Etherlink HTTP RPC (due to missing WebSocket RPC), feed events to NEAR/Aptos, and surface proofs/claims for bidirectional swapping.
UI: TypeScript/Next.js frontend (rewritten from JS to TS for safety and structure) lets users initiate and claim swaps between all supported chains, with real-time status and clear error handling.
Hacky solutions:
Batched block log fetching on Etherlink to overcome HTTP-only RPC and 100-block fetch limits.
Custom address adaptation between Aptos (32 bytes) and Ethereum (20 bytes) for cross-chain messaging.
Workarounds for NEAR wallet/testnet CLI access blocked in India (manual account scripts, TypeScript conversion of wallet flows).
Integrated custom deployment/orchestration scripts to manage multi-contract (NEAR) and scarce testnet resources (Aptos).
We leveraged 1inch documentation, cross-chain audits, and ran full E2E integration tests. All flows are demoable live, and the architecture is extensible to more chains!