Stores a new operation in the queue.
The operation to store
Promise that resolves when the operation is stored
Retrieves queued operations for processing.
Optionaloptions: { limit?: number }Query options
Promise resolving to an array of queued operations
Updates the status of an operation.
The ID of the operation to update
The new status
Optionalmetadata: anyOptional metadata to store with the update
Promise that resolves when the status is updated
OptionalgetGets operations currently being processed.
Optionaloptions: { limit?: number }Query options
Promise resolving to an array of processing operations
OptionalgetGets failed operations.
Optionaloptions: { limit?: number }Query options
Promise resolving to an array of failed operations
OptionalgetGets the status of a specific operation.
The ID of the operation to check
Promise resolving to the operation or null if not found
OptionaldeleteDeletes an operation from storage.
The ID of the operation to delete
Promise that resolves when the operation is deleted
Interface for operation storage backends.
Remarks
Implementations of this interface provide persistent storage for queued operations in a distributed relayer system. This allows operations to be processed asynchronously and recovered after failures.
Common implementations include:
Example