hackquest logo
  • Learn
  • Explore Course
  • Build
  • Explore Hackathon
  • Project Archive
  • Community
  • Forum
  • Global Event
  • My Community
  • Co-learning
  • Organization Hub
  • More
    • Glossary
    • Blog
    • Faucet
    • Job Station
    • Press Kit
    • Founder
hackquest logo

Pocket Protocol

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

Videos

Tech Stack

Ethers
Solidity
Web3
React

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

  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.

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.

Fundraising Status

We are looking for funds
Team Leader
MManobendra Mandal
Project Link
Sector
DeFiAIInfra