Package-level declarations
Types
Link copied to clipboard
@Singleton
Manages subscription to dust-related blockchain events and syncs them to DustLocalState.
Link copied to clipboard
class ReorgDetectedException(val address: String, val localHighest: Int, val serverMax: Int) : RuntimeException
Raised from inside the subscription flow when the indexer reports a highestTransactionId lower than what we have locally. Means the server's view of the chain went backwards (reorg, indexer DB wiped, dev localnet reset from genesis). SubscriptionManager catches this, wipes local state via performFullResync, and lets kotlinx.coroutines.flow.retryWhen restart the subscription cleanly from the new server truth.
Link copied to clipboard
class SubscriptionManager(context: Context, indexerClient: IndexerClient, utxoManager: UtxoManager, syncStateManager: SyncStateManager)
Manages subscription lifecycle for UTXO syncing.
Link copied to clipboard
Manages subscription sync state for resuming after app restarts.