hackquest logo

ONIGIRI PROTOCOL

One-click swap, bridge & stake across EVM chains via monad

Videos

Description

Onigiri Protocol — Cross-Chain Bridge and Swap with Envio HyperSync Integration

A decentralized cross-chain bridge protocol enabling seamless token swaps between Monad Testnet and Sepolia Testnet, powered by Envio HyperSync for real-time blockchain data indexing, analytics, and monitoring — with MetaMask Delegation Toolkit for gasless, one-click cross-chain operations.


Problem Statement

Cross-chain bridges today face major challenges:

  1. Data Latency: Delayed indexing leads to inaccurate transaction status and degraded user experience.

  2. Operational Complexity: Managing separate monitoring systems for multiple chains increases overhead.

  3. Limited Transparency: Centralized bridge analytics lack verifiable, real-time data visibility.


The Onigiri Solution

Onigiri Protocol introduces a fully decentralized and transparent cross-chain bridge integrating Envio HyperSync and MetaMask Delegation Toolkit, offering:

  • Real-time cross-chain monitoring across Monad and Sepolia.

  • Instant analytics dashboard powered by HyperSync data streams.

  • Gasless, one-click transactions through delegated Smart Accounts.

  • Developer-friendly APIs for seamless integration and insights.


Why Envio HyperSync?

Envio HyperSync provides real-time blockchain data streaming that powers Onigiri’s analytics and monitoring stack.

It continuously tracks bridge contracts across Monad Testnet and Sepolia Testnet, streaming critical events such as CrossChainTransfer, WETHMinted, and BridgeCompleted in real time.

This data enables:

  • Live Metrics: Displays total bridge volume, transaction count, and success rates.

  • Cross-Chain Correlation: Links source and destination transactions instantly.

  • Liquidity Tracking: Monitors relayer wallet balances and updates available liquidity in the dashboard dynamically.

  • User Confidence: Ensures users always see up-to-date information about bridge capacity and health.

Envio’s low-latency indexing and decentralized architecture make it the ideal foundation for real-time DeFi infrastructure.


MetaMask Delegation Toolkit with Smart Accounts

The MetaMask Delegation Toolkit enhances user experience by enabling one-click, gasless cross-chain swaps through Smart Account delegation.

When a user activates delegation, they:

  1. Sign a SIWE (Sign-In with Ethereum) message authorizing their Smart Account to call key bridge functions such as crossChainTransfer and completeBridge.

  2. These permissions are securely stored on-chain, allowing pre-authorized execution without wallet popups on every transaction.

The integration leverages:

  • Pimlico’s Paymaster — Sponsors gas fees, ensuring all transactions are gasless for users.

  • Bundler Infrastructure — Executes delegated UserOperations for seamless UX.

This setup transforms the traditional bridging flow into a single-click experience: after initial delegation, users can perform any future cross-chain operation instantly — no repeated signing, no wallet interruptions, and no gas costs.


Envio Bounty Compliance

Onigiri fully meets the Envio HyperSync Bounty criteria:

  • Functional HyperSync indexer monitoring bridge events in real time

  • Verified HyperSync API integration across Monad & Sepolia

  • Envio-powered analytics endpoints

  • Full documentation and live demonstration


Technical Architecture

On-Chain Components

Off-Chain Components

  • Envio HyperSync Client: Streams live event data from both networks.

  • Event Indexer: Correlates cross-chain transactions.

  • Analytics API: Feeds HyperSync data into the dashboard in real time.

  • MetaMask Delegation Layer: Executes pre-authorized Smart Account transactions gaslessly.

  • Dashboard Interface: Visualizes metrics, liquidity, and transaction health.


Consensus and Data Flow

  1. Detection — HyperSync detects bridge contract events (CrossChainTransfer, WETHMinted).

  2. Correlation — Cross-chain match is confirmed with the corresponding BridgeCompleted event.

  3. Verification — HyperSync validates event integrity and transaction success.

  4. Execution — Delegated Smart Account finalizes the operation via Bundler.

  5. Analytics Update — Dashboard reflects updated liquidity and volume metrics in real time.


Product Features

For Users

  • Gasless, one-click cross-chain swaps

  • Real-time transaction tracking and liquidity display

  • Transparent uptime and bridge reliability metrics

  • Live notifications of completed transfers

For Developers

  • HyperSync-powered data endpoints

  • Modular APIs for analytics and monitoring

  • Easy integration with existing EVM-based contracts

  • Complete SIWE + Smart Account delegation workflow


Envio Integration Highlights

  • Real-time Indexing: Sub-second bridge event streaming from Monad & Sepolia

  • Cross-chain Correlation: Ensures accurate linkage of paired transactions

  • Analytics Dashboard: Displays live transaction volume, success rate, and liquidity metrics

  • API Endpoints: Enables third-party dashboards and bots to query bridge data directly

  • Reliability: Built on Envio’s fault-tolerant infrastructure for uninterrupted streaming


Installation

# Clone repository
git clone https://github.com/manovHacksaw/onigiri-protocol
cd onigiri-protocol

# Install dependencies
bun install

# Configure environmentcp .env.example .env

Quick Start

# Start development server
bun run dev

# Start Envio real-time monitor
bun run envio:monitor

# Start analytics logger
bun run envio:logger

Access points:


Envio Integration Architecture

Monad Testnet ───► Envio HyperSync ───► Sepolia Testnet
      │                   │                   │
      ▼                   ▼                   ▼
 Bridge Contract     Event Indexer        Bridge Contract
      │                   │                   │
      ▼                   ▼                   ▼
 Smart Account   ◄──►  Analytics API   ◄──►  Dashboard Interface
 (MetaMask DTK)           │                     │
  Gasless Ops       Live Metrics + UX     Liquidity + Alerts

Real-time Monitoring Example

[ENVIO] Real-time Bridge Monitoring Initialized...
Connected to Monad Testnet (Block: 44598643)
Connected to Sepolia Testnet (Block: 9460798)
Monitoring Events:
   • CrossChainTransfer
   • WETHMinted
   • BridgeCompleted

[DELEGATION] Smart Account executing authorized cross-chain transfer
TX: 0x1234567890abcdef...
From: Monad → Sepolia
Gas: Sponsored by Pimlico Paymaster
Status: Completed (1.5 ETH bridged)

Market Opportunity

The cross-chain infrastructure market exceeds $100B in bridged assets, with a growing need for transparent, real-time monitoring and seamless UX.

Onigiri Protocol delivers:

  • Real-time analytics powered by Envio HyperSync

  • Gasless UX via MetaMask Delegation Toolkit

  • Developer-ready architecture for EVM chains

  • Sub-second transaction tracking and correlation


Live Product

Progress During Hackathon

Fully functional cross-chain bridge between Monad and Sepolia Testnets - Real-time blockchain event streaming via Envio HyperSync - Live analytics dashboard for transaction tracking and liquidity monitoring - MetaMask Delegation Toolkit integration enabling one-click, gasless Smart Account transactions - Pimlico Paymaster and Bundler setup for sponsored transaction execution - Cross-chain coordination module for event correlation and verification - RESTful API endpoints for analytics and bridge status - Off-chain indexing layer for event mapping and data persistence - Next.js frontend with integrated bridge and analytics interface - End-to-end deployment demonstrating seamless, real-time cross-chain swaps

Tech Stack

React
Next
Web3
Ethers
Solidity
Node

Fundraising Status

We are planning to onboard more chain , and will be raising funds this Q4 2025

Team Leader
DDebanjan Mondal
Sector
AIInfraDeFi