Pocket Protocol
One-click swap, bridge, and stake via U2U. AI-powered liquidity rebalancing for efficient cross-chain access.
Videos
Description
🎯 Pocket Protocol – Cross-Chain Bridge Application
Pocket Protocol allows users to transfer tokens across chains effortlessly. Featuring a smooth interface, real-time transaction tracking, and automated relayer systems, it ensures fast and secure cross-chain swaps, bridging, and one-click staking between U2U Solaris and Ethereum.
One-click swap, bridge, and stake via U2U, with liquidity powered by AI that automatically rebalances pools for maximum efficiency, giving stakeholders access to optimized cross-chain liquidity.

🌉 Overview
Pocket Protocol enables fast and secure token transfers across chains. The platform combines an intuitive interface, real-time transaction tracking, and automated relayer systems to handle swaps, bridging, and staking between U2U Solaris and Ethereum, with AI-driven liquidity management for optimal efficiency.
🔗 Supported Chains & Tokens
🪙 U2U Solaris Mainnet (Chain ID: 39)
Native Token: U2U
Explorer: https://u2uscan.xyz
Bridge Contract: 0x20c452438968C942729D70035fF2dD86481F6EaB
💠 Ethereum Network (Chain ID: 1)
Native Token: ETH
Explorer: https://sepolia.etherscan.io
Bridge Contract: 0xe564df234366234b279c9a5d547c94AA4a5C08F3
WETH Contract: 0x3BfA22D8b5fD0f63E96425717BC58910F4F7DD6D
🔄 Bridge Functionality
💱 U2U → ETH Flow
User sends U2U to relayer on U2U Solaris
Relayer receives and processes transfer
Equivalent ETH sent to user on Ethereum
User receives ETH instantly in wallet

💰 ETH → U2U Flow
User sends ETH to relayer on Ethereum
Relayer validates transaction
Equivalent U2U sent to user on U2U Solaris
User receives U2U in wallet
💎 ETH → WETH Flow
ETH locked in Ethereum Bridge Contract
Relayer mints WETH on U2U Solaris
User receives WETH instantly

🏗️ Architecture
🧩 Frontend Components
Swap Card – Cross-chain token swap interface
Bridge Card – ETH → WETH bridging module
Transaction Modal – Real-time tracking and progress view
Relayer Liquidity – Displays live relayer balance
⚙️ Smart Contracts
U2UBridge.sol– U2U Solaris bridge logicSepoliaBridge.sol– Ethereum bridge logicWETH.sol– Wrapped ETH token contract
🖥️ Backend Services
Relayer API – Cross-chain transaction handler
Price API – Provides exchange rates and swap quotes
Status API – Monitors relayer liquidity and uptime
🔁 Relayer System
Maintains liquidity across both networks
Verifies and executes all bridge transfers
Ensures confirmations and sync between chains
Provides real-time status monitoring
🚀 Getting Started
Requirements
Node.js 18+
MetaMask wallet
Test tokens: U2U (U2U Solaris) and ETH (Ethereum)
Usage
Connect wallet (MetaMask or compatible)
Select network: U2U Solaris / Ethereum
Choose operation (Swap or Bridge)
Enter transfer amount
Confirm transaction in wallet
Track progress via modal
Receive tokens in destination wallet
🌟 Key Features
🎨 User Experience
Clean modal interface with real-time tracking
Automatic chain validation and switching
Relayer liquidity checks with AI optimization
Explorer links for every transaction
Confirmation verification for transparency
🧠 Technical Features
Wagmi + Viem for blockchain connectivity
Next.js 15 with App Router
TypeScript + Tailwind CSS for clean UI
Secure, gas-optimized smart contracts

⚠️ Important Notes
🔍 Network Info
U2U Solaris → Mainnet
Ethereum → Mainnet
🚧 Safety & Limitations
Hackathon demo – not production-ready
Centralized relayer (for testing only)
No multi-sig or insurance
Use test funds only
🔮 Future Roadmap
🧱 Production Plans
Multi-sig relayer implementation
Decentralized relayer network
On-chain liquidity pools
Real mainnet support post audit
Expansion to more chains
Support for additional wrapped assets

🛡️ Security Enhancements
Smart contract audits
Time-locked large transfers
Rate limiting and circuit breakers
Emergency pause function
🛠️ Technical Stack
💻 Frontend
Next.js 15, TypeScript, Tailwind CSS
Wagmi + Viem for Web3 integration
📜 Smart Contracts
Solidity, Hardhat, OpenZeppelin
🧠 Backend
Node.js + Express.js
Web3.js for blockchain operations
📊 Contract Information
Contract | Network | Address | Explorer |
|---|---|---|---|
U2UBridge | U2U Solaris |
| View |
SepoliaBridge | Ethereum |
| View |
WETH | U2U Solaris |
| View |
🤝 Contributing
Fork the repository
Create a new branch
Implement changes
Submit a pull request
📄 License
MIT License — see the LICENSE file for details.
📞 Contact
Hackathon: VietBUIDL Hackathon (HackQuest Demo)
Project: Pocket Protocol – Cross-Chain Bridge
Built with ❤️ for the U2U and Ethereum Communities
⚠️ Disclaimer
This project is for hackathon demonstration purposes only.
Do not use real funds. The relayer system is centralized and not suitable for production deployment.
Progress During Hackathon
We successfully built and deployed a fully functional cross-chain bridge that enables seamless transfer of ETH from the Ethereum to WETH on the U2U Solaris Mainnet. Alongside this, we developed and integrated a live relayer system that automatically manages cross-chain swaps between ETH and U2U, handling liquidity, verification, and real-time transaction processing to ensure smooth and secure interoperability between both networks.
Tech Stack
Fundraising Status
We are looking for funds