BaraGames
Official Website
  • Welcome to BARA Games
  • Users
    • Getting Started
      • Setting up your wallet
      • Bridging funds to Solana
      • Join BARA community!
  • Developers
    • Why Choose BARA?
    • Getting Started
      • Setup local development for BARA SVM
      • Build & Deploy Your First Program
    • Developer Tooling
      • Explorer
      • Faucet
      • Wallet Extensions
    • Additional Resources
  • Architecture
    • Overview
    • Vision & Architecture
    • HyperGrid Framework
      • HyperGrid Infrastructure
        • Architectural Overview
        • Grids and Network Relationships
          • Grids
      • Interoperability with Solana
        • Data Synchronization Between HyperGrid and Solana Base Layer
      • HyperGrid Shared State Network (HSSN)
      • HSSN Explorer Overview
      • HSSN Gas Fee Mechanism
      • Operator Guides
        • Deploying a New Grid
        • Deploying a BARA RPC Node
        • Deploying an HSSN Validator
        • Mainnet
          • Deploying an HSSN Validator
      • Verifiable Compute & Zero-Knowledge Proofing on HyperGrid
    • Sorada
      • Introduction
      • Architecture
      • How to Deploy Sorada
      • Resources
    • Rush ECS Framework
      • Introduction
      • Features
      • Quickstart
      • Reference
      • Demo
  • RESOURCES
    • Audit Reports
    • We're Hiring!
Powered by GitBook
On this page
  • Reading Data from Solana to HyperGrid
  • Synchronizing Updates Back to the Solana Base Layer
  1. Architecture
  2. HyperGrid Framework
  3. Interoperability with Solana

Data Synchronization Between HyperGrid and Solana Base Layer

Step-by-step flow of reading data from and synchronizing updates to the Solana Base Layer within the HyperGrid architecture.

PreviousInteroperability with SolanaNextHyperGrid Shared State Network (HSSN)

Last updated 3 months ago

Reading Data from Solana to HyperGrid

The diagram above illustrates the following flow when performing state synchonization from Solana to a Grid on HyperGrid, like BARA.

  1. Initial loading: A pre-existing Solana program is loaded from Storage into HyperGrid's Cache.

  2. User sends a read request for a specific program to HyperGrid's BARA RPC.

  3. Synchronization Program checks the Cache for the requested Program, but it's not found.

  4. Synchronization Program sends a request to Solana Base Layer RPC for the Program.

  5. Solana Base Layer responds with the Program data.

  6. Synchronization Program receives the response and updates HyperGrid's Cache with the new Program data.

  7. Synchronization Program sends the read response back to BARA RPC.

  8. BARA RPC forwards the read response to the User.

Synchronizing Updates Back to the Solana Base Layer

The diagram above illustrates the following flow when performing state synchonization from a Grid on HyperGrid [like BARA], back to Solana.

  1. Initial loading: A pre-existing Program is loaded from Storage into HyperGrid's Cache.

  2. User sends a write request for a specific Program to HyperGrid's BARA RPC.

  3. Synchronization Program checks the Cache for the requested Program, but it's not found.

  4. Synchronization Program sends a request to lock the program on the Solana Base Layer.

  5. Solana Base Layer RPC locks the requested Program.

  6. Solana Base Layer responds with the Program data.

  7. Synchronization program receives the response and updates HyperGrid's Cache with the new program data.

  8. Synchronization Program sends a request to release the lock and write the updated data for the Program to the Solana Base Layer.

  9. Solana Base Layer RPC releases the lock and writes the updated data.

  10. Synchronization Program sends the write response back to BARA RPC.

  11. BARA RPC forwards the write response to the User.

Reading Data from Solana to HyperGrid
Synchronizing Updates from Grid to Base Layer