DustEvent

sealed class DustEvent

Dust-related blockchain events from Midnight indexer.

Event Types:

  • DustInitialUtxo: New dust UTXO registered (Night → Dust registration)

  • DustSpendProcessed: Dust spent for transaction fee

  • DustGenerationDtimeUpdate: Dust generation time updated

Processing: Events are SCALE-encoded in RawLedgerEvent.rawHex and need to be:

  1. Filtered to dust events only

  2. Decoded from hex

  3. Replayed into DustLocalState

Reference: /midnight-ledger/ledger/src/events.rs - Event enum definition

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class DustGenerationDtimeUpdate(val eventId: Long, val rawHex: String, val blockHeight: Long?, val timestamp: Long?) : DustEvent

Dust generation time updated.

Link copied to clipboard
data class DustInitialUtxo(val eventId: Long, val rawHex: String, val blockHeight: Long?, val timestamp: Long?) : DustEvent

New dust UTXO registered (Night → Dust registration).

Link copied to clipboard
data class DustSpendProcessed(val eventId: Long, val rawHex: String, val blockHeight: Long?, val timestamp: Long?) : DustEvent

Dust spent for transaction fee.

Properties

Link copied to clipboard
abstract val blockHeight: Long?

Block height where event occurred.

Link copied to clipboard
abstract val eventId: Long

Event ID from indexer (for tracking sync progress).

Link copied to clipboard
abstract val rawHex: String

Raw hex-encoded event data (SCALE codec). This is the actual data that gets replayed into DustLocalState.

Link copied to clipboard
abstract val timestamp: Long?

Block timestamp (milliseconds).