How Rebar Works

Rebar is built on a robust foundation using the Cosmos SDK, providing a scalable and interoperable blockchain infrastructure. Here's how the key components work together:

Network Architecture

Rebar operates as a directed acyclic graph (DAG) where each node represents either:

  • A data source
  • A calculation
  • An action

All nodes are interconnected, forming a comprehensive dependency graph that enables:

  • Automatic propagation of updates
  • Efficient recalculation of dependent values
  • Real-time consistency across the network

Dependency Management

When any node in the graph updates:

  1. The network identifies all downstream dependencies
  2. Triggers recalculations in topological order
  3. Propagates changes through the entire dependency chain

For example:

  • When an ETH block is produced, the "Base Fee" data node updates
  • This triggers recalculation of any gas price calculations
  • Which then updates any automated trading actions

Real-Time Processing

The Cosmos SDK provides:

  • Fast finality for all network operations
  • Efficient state management
  • Cross-chain interoperability

This architecture ensures that all data and calculations remain consistent and up-to-date across the entire network, with minimal latency between updates and their downstream effects.