Skip to main content

Architecture Image

Overview

This section focuses on the structure of the Reactive Network. It includes several elements, each with its own specific role:

The following flowchart illustrates the architecture of the Reactive Network, consisting of multiple ReactVM instances hosting the corresponding Reactive Smart Contracts. These contracts interact with the Relayer Network, which includes components like Event Consensus and the Interoperability Service. External ecosystems, represented by Origin Chain Contracts and Destination Chain Contracts, emit logs that are processed by the Event Consensus and subsequently influence the Reactive Network.

Execution Layer

The Reactive Network is a fully EVM-compatible execution layer that supports Reactive Smart Contracts and facilitates event-based blockchain interactions. Unlike traditional Smart Contracts, a Reactive Smart Contract takes external events as input, rather than user transactions, and enables developers to execute arbitrary logic written in Solidity. Additionally, it allows posting callbacks (state changes) to the same or different destination network.

Developers can use their favorite Web3 tools when developing for the Reactive Network, including web3.js, ethers.js, truffle, hardhat, etc.

Reactive Network is built on the Arbitrum AnyTrust tech stack. Arbitrum provides the security guarantees of Ethereum while handling other inherent tasks of a modular blockchain, such as Consensus and Settlement. Data availability is assured by Celestia.

Arbitrum Celestia

Reactive Smart Contracts

A Reactive Smart Contract is a new type of Smart Contract whose state is moved by external events from other blockchain ecosystems. In traditional Smart Contracts, changes are initiated by users broadcasting transactions to the network. However, Reactive Smart Contracts allow for external event subscriptions, and once these events occur and filters are matched, the Reactive Network will execute the handler function.

Handler functions can accumulate state locally or emit a special event that will initiate a callback to the destination chain.

React VM

The React VM is a subnet of the Reactive Network intended as a sandbox for Reactive Smart Contracts. In exchange for state limitations, we can execute different transactions meant for various Reactive Smart Contracts in a parallel manner.

Relayer Network

The Relayer Network should serve as a layer for achieving consensus on external events and facilitating interoperability services, enabling communication with external ecosystems.