Resolve "feat(Primitives): Have Bytes Primitive extends Uint8Array (if possible)"
This commit is contained in:
@@ -11,18 +11,21 @@ The XO Stack is a comprehensive framework designed for building applications on
|
||||
The XO Stack adopts an Object-Oriented design for several key reasons:
|
||||
|
||||
1. **Encapsulation and Data Privacy**
|
||||
|
||||
- Internal implementation details are hidden from consumers
|
||||
- State management is contained within specific classes
|
||||
- Clear boundaries between different system components
|
||||
- Reduced likelihood of state-related bugs
|
||||
|
||||
2. **Adapter Pattern Benefits**
|
||||
|
||||
- Pluggable components that can be swapped without changing application code
|
||||
- Easy to add new implementations for different environments
|
||||
- Testing simplified through mock adapters
|
||||
- Reduced vendor lock-in
|
||||
|
||||
3. **Developer Experience**
|
||||
|
||||
- Strong IDE support with autocomplete suggestions
|
||||
- Type safety when using TypeScript
|
||||
- Clear inheritance hierarchies
|
||||
@@ -57,6 +60,7 @@ The storage adapter interface that defines how data is persisted:
|
||||
- Query capabilities
|
||||
|
||||
Available implementations:
|
||||
|
||||
- **StoreInMemory**: Volatile storage for testing and development
|
||||
- **StoreIndexedDB**: Browser-based persistent storage
|
||||
- **StoreSQLite**: Native application storage solution
|
||||
@@ -71,6 +75,7 @@ Defines the interface for interacting with the BCH network:
|
||||
- Network status management
|
||||
|
||||
Available implementations:
|
||||
|
||||
- **BlockchainInMemory**: Mock blockchain for testing
|
||||
- **BlockchainElectrum**: Production-ready Electrum protocol client
|
||||
|
||||
@@ -84,6 +89,7 @@ Represents different wallet types for managing BCH:
|
||||
- Balance tracking
|
||||
|
||||
Available implementations:
|
||||
|
||||
- **WalletP2PKH**: Basic Pay-to-Public-Key-Hash wallet
|
||||
- **WalletHD**: Hierarchical Deterministic wallet implementation
|
||||
- **WalletXO**: Extended HD wallet with XO-specific features
|
||||
|
||||
Reference in New Issue
Block a user