How empyrealapp/eth-packages works
High-Level Components (Main Layer)
• eth_rpc (Core RPC functionality)
• eth_protocols (Protocol implementations)
• eth_typeshed (Type definitions)
• eth_streams (Stream processing)
• sapphire (Auxiliary functionality)
Core Services Layer
• Transport Layer
• RPC Client
• WebSocket Client
• Contract Interaction Layer
• Contract Factory
• Function Caller
• Event Handler
• Blockchain Interface Layer
• Block Manager
• Transaction Manager
• Account Manager
• Network Layer
• Multiple Network Support (Ethereum, Arbitrum, etc.)
Protocol Implementation Layer
• UniswapV2 Implementation
• UniswapV3 Implementation
• ERC20 Implementation
• Multicall Implementation
• Custom Protocol Support
Stream Processing Layer
Stream processing components:
• Event Streams
• Block Streams
• Pipeline Processing
• Data Transformers
Type System Layer
Type system components:
• Contract Types
• Blockchain Types
• Protocol Types
• Custom Type Definitions
Use the following visual elements:
Specific callouts for
• Async support
• Type safety features
• Multi-network compatibility
• Event subscription capabilities
Key Relationships to Highlight:
Flow of type information through the system
Additional Elements:
Async/sync boundaries
• The modular nature of the system
• Type safety throughout the stack
• The ability to extend with new protocols
• The streaming and event handling capabilities
• Multi-network support