hackquest logo

Pocket Protocol

One-click swap, bridge, and stake via U2U. AI-powered liquidity rebalancing for efficient cross-chain access.

视频

技术栈

Ethers
Solidity
Web3
React

描述

🎯 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)

💠 Ethereum Network (Chain ID: 1)


🔄 Bridge Functionality

💱 U2U → ETH Flow

  1. User sends U2U to relayer on U2U Solaris

  2. Relayer receives and processes transfer

  3. Equivalent ETH sent to user on Ethereum

  4. User receives ETH instantly in wallet

💰 ETH → U2U Flow

  1. User sends ETH to relayer on Ethereum

  2. Relayer validates transaction

  3. Equivalent U2U sent to user on U2U Solaris

  4. User receives U2U in wallet

💎 ETH → WETH Flow

  1. ETH locked in Ethereum Bridge Contract

  2. Relayer mints WETH on U2U Solaris

  3. 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 logic

  • SepoliaBridge.sol – Ethereum bridge logic

  • WETH.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

  1. Connect wallet (MetaMask or compatible)

  2. Select network: U2U Solaris / Ethereum

  3. Choose operation (Swap or Bridge)

  4. Enter transfer amount

  5. Confirm transaction in wallet

  6. Track progress via modal

  7. 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

0x20c452438968C942729D70035fF2dD86481F6EaB

View

SepoliaBridge

Ethereum

0xe564df234366234b279c9a5d547c94AA4a5C08F3

View

WETH

U2U Solaris

0x3BfA22D8b5fD0f63E96425717BC58910F4F7DD6D

View


🤝 Contributing

  1. Fork the repository

  2. Create a new branch

  3. Implement changes

  4. 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.

本次黑客松进展

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.

融资状态

We are looking for funds
队长
MManobendra Mandal
项目链接
赛道
DeFiAIInfra