fromRawEvent

Converts RawLedgerEvent to DustEvent.

Note: Since we can't easily discriminate event types without full SCALE decoding, we create a generic DustSpendProcessed event and let DustLocalState.replayEvents() handle the actual type checking.

In production, this should:

  1. Decode SCALE event discriminant

  2. Match to specific DustEvent subtype

  3. Return appropriate variant

Return

DustEvent (currently always DustSpendProcessed as placeholder)

Parameters

rawEvent

Raw ledger event