πŸŒ…
Sunrise / Gluon Docs
  • Home
    • πŸ‘‹Sunrise
  • πŸ“œLearn
    • πŸŒ†Sunrise
      • Proof of Liquidity
      • Data Availability
      • Liquidity Pool
      • Swap
      • Liquidity Incentive
        • Gauges Voting
        • Bribes
      • TokenConverter
      • Fee
      • Lockup Account
      • Non-Voting Delegation
    • πŸ’΄$RISE
      • Allocations
    • 🏦Gluon
    • πŸ’΄$GLU
    • πŸŽ“Thesis
      • App chain thesis
      • Interoperability
  • πŸ› οΈBuild
    • Client
    • L2 Blockchains
      • Rollkit
        • Sunrise Data
        • Rollkit L2 Chain
      • OP Stack
        • Sunrise Data
        • OP Stack L2 Chain
    • Validators
      • Proof of Data Availability
  • πŸ—οΈRun a Sunrise Node
    • Networks
    • Types of Nodes
      • Consensus
        • Full Consensus Node
        • Validator Node (Genesis)
        • Validator Node
        • Setup Cosmovisor
      • IBC Relayers
    • Resources
      • Upgrade
      • Environment
  • πŸ—οΈRun a Gluon Node
    • Networks
    • Node
      • Validator Node
  • πŸ”—Links
    • GitHub
    • Discord
    • X (Twitter)
    • Medium
Powered by GitBook
On this page
  • Sunrise Documents
  • How to create L2
  • Rollkit
  • OP Stack
  • Requirements
  • Official Document
  • Integration Architecture
  • Common Integration Steps
  • Configuration Examples
  • Rollkit Configuration
  • OP Stack Configuration
  • Best Practices
  • Troubleshooting
  • Additional Resources
  1. Build

L2 Blockchains

PreviousClientNextRollkit

Last updated 26 days ago

Sunrise Documents

    • - Configure and run the Sunrise DA relay

    • - Build and deploy a Rollkit-based L2

    • - Set up Sunrise DA for OP Stack

    • - Deploy an OP Stack L2 with Sunrise

How to create L2

It is recommended to run the full consensus node locally, without relying on an external RPC. This ensures better reliability and control over your L2 deployment.

Rollkit

sunrise-data, and rollkit need to be run. The integration provides:

  • Native data availability through Sunrise

  • Sovereign rollup capabilities

  • Customizable execution environment

  • Simple configuration and deployment

OP Stack

sunrise-data, optimism and op-geth need to be run. Key points:

  • The local EVM L1 chain is only used to meet OP Stack requirements

  • The actual data (metadata) is stored in Sunrise

  • Use Ganache, Hardhat, Anvil or similar for local L1 chain

  • Sunrise handles the actual data availability

Requirements

Type
CPU
Architecture
Mem
Disk
Bandwidth
Purpose

Rollkit + Sunrise Data

4 Core

x86_64

16 GB

1 TB SSD

1 Gbps

Development and testing

OP Stack + Sunrise Data

6 Core

x86_64

32 GB

1 TB SSD

1 Gbps

Production deployment

Additional considerations:

  • SSD should be enterprise-grade for production

  • Bandwidth requirements increase with transaction volume

  • Memory requirements scale with state size

Official Document

    • Provides full EVM compatibility while maintaining Sunrise DA benefits

    • Comprehensive documentation for OP Stack deployment

    • Integration guides for various components

Integration Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                 β”‚     β”‚                 β”‚     β”‚                 β”‚
β”‚  L2 Blockchain  │────▢│  Sunrise DA     │────▢│  Validator      β”‚
β”‚                 β”‚     β”‚  Layer          β”‚     β”‚  Network        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
        β”‚                       β”‚                       β–²
        β”‚                       β”‚                       β”‚
        β–Ό                       β–Ό                       β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”             β”‚
β”‚                 β”‚     β”‚                 β”‚             β”‚
β”‚  User           β”‚     β”‚  DA Proof       β”‚β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚  Applications   β”‚     β”‚  Verification   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Common Integration Steps

  1. Setup Sunrise DA Node

    • Deploy a Sunrise node or connect to the testnet

    • Configure network parameters

    • Set up validator if needed

    • Verify node synchronization

  2. Configure L2 Framework

    • Install required dependencies

    • Set up configuration files

    • Connect to Sunrise DA layer

    • Configure network parameters

  3. Implement DA Integration

    • Configure blob submission

    • Set up proof verification

    • Implement fee handling

    • Set up monitoring

  4. Testing and Deployment

    • Test on testnet

    • Verify DA proofs

    • Deploy to production

    • Monitor performance

Configuration Examples

Rollkit Configuration

[da]
rpc_address = "http://localhost:26657"
fee_denom   = "urise"
gas_price   = "0.025"

[rollup]
chain_id = "my-rollup-1"

OP Stack Configuration

# Environment variables
DA_SERVER=http://localhost:8547
BLOB_RPC=http://localhost:26657

Best Practices

  1. Security

    • Always verify DA proofs

    • Use secure RPC endpoints

    • Implement proper error handling

    • Regular security audits

  2. Performance

    • Optimize blob sizes

    • Implement proper caching

    • Monitor gas costs

    • Regular performance testing

  3. Reliability

    • Implement retry mechanisms

    • Monitor DA proof status

    • Set up proper logging

    • Regular backups

Troubleshooting

Issue
Solution
Prevention

DA proofs not verifying

Check RPC connection and proof format

Regular connection testing

High gas costs

Optimize blob size and frequency

Monitor and adjust gas settings

Connection issues

Verify network configuration and firewall settings

Regular network monitoring

Additional Resources

  • Fee Abstraction

: By combining BeaconKit and Rollkit, EVM compatible L2 blockchain is possible to develop.

πŸ› οΈ
Rollkit
Sunrise Data
Rollkit L2 Chain
Optimism OP Stack
Sunrise Data
OP Stack L2 Chain
Sunrise Consensus Node Document
Rollkit
BeaconKit (option)
OP Stack
Rollkit Documentation
OP Stack Integration
Data Availability Proofs