LedgerUpdate

sealed interface LedgerUpdate

One element of the ledger update stream. Every update carries the participant-local offset that totally orders it; persist the offset of the last update you processed and pass it as UpdateSubscription.beginExclusive to resume without gaps or duplicates.

Inheritors

Types

Link copied to clipboard
data class Checkpoint(val offset: Long) : LedgerUpdate

A cursor keep-alive: no matching event, but the resume offset advanced.

Link copied to clipboard
object Companion

Internal decoding from the raw stream response.

Link copied to clipboard
data class Reassignment(val reassignment: ReassignmentOuterClass.Reassignment) : LedgerUpdate

A contract moving between synchronizers.

Link copied to clipboard
data class TopologyTransaction(val topologyTransaction: TopologyTransactionOuterClass.TopologyTransaction) : LedgerUpdate

A party (de)activation on the participant.

Link copied to clipboard
data class Transaction(val transaction: TransactionOuterClass.Transaction) : LedgerUpdate

A committed Daml transaction.

Properties

Link copied to clipboard
abstract val offset: Long

The participant-local offset of this update; the resume point for the next subscription.