Expand description
Transaction Repository Module
This module provides the transaction repository layer for the OpenZeppelin Relayer service. It implements the Repository pattern to abstract transaction data persistence operations, supporting both in-memory and Redis-backed storage implementations.
§Features
- CRUD Operations: Create, read, update, and delete transactions
- Specialized Queries: Find transactions by relayer ID, status, and nonce
- Pagination Support: Efficient paginated listing of transactions
- Status Management: Update transaction status and timestamps
- Partial Updates: Support for partial transaction updates
- Network Data: Manage transaction network-specific data
§Repository Implementations
InMemoryTransactionRepository
: Fast in-memory storage for testing/developmentRedisTransactionRepository
: Redis-backed storage for production environments
Structs§
Enums§
- Transaction
Repository Storage - Enum wrapper for different transaction repository implementations
Traits§
- Transaction
Repository - A trait defining transaction repository operations