The Optimism 0G integration allows developers to deploy an OP Stack-based chain using 0G (Zero Gravity) for data availability. This integration offers an alternative to Optimism's default data availability solution, providing a cost-effective and secure option for storing transaction data.
- DA Server: Implements the data availability server interface for 0G DA.
- OP Stack Configuration: Customizes the OP Stack components to work with 0G DA.
- 0G Integration: Ensures data integrity and availability through 0G's network.
The core logic for posting and retrieving data is implemented in the da-server. Key features include:
- DA Server: Manages the connection to the 0G DA client.
- HTTP Server: Handles requests from OP Stack components for data storage and retrieval.
- Integration with OP Stack: Ensures seamless communication between Optimism components and 0G DA.
-
Deploy da-server:
- Follow the deployment instructions in the da-server README.
-
Deploy OP Stack components:
- Modify the
rollup.json
configuration for op-node. - Set specific CLI configurations for op-node and op-batcher.
- Modify the
-
Start the system:
- Launch all components following Optimism's general instructions with the 0G-specific modifications.
Optimism Documentation OP Stack Github
How to Use the OP Stack with 0G DA
- Refer to Optimism documentation for additional configuration options and troubleshooting.