Skip to main content

Module eventref

Module eventref 

Source
Expand description

Parse CLI references back into core types. The primary case is the canonical EventId string the engine prints (EventId::canonical()): import|<src>|<source_ref…>, conflict|<src>|<source_ref…>|<fp>, decision|<seq>. source_ref itself may contain | (adapters mint direction-scoped refs like out|cb-send), so import rejoins parts[2..] and conflict takes the LAST part as the fingerprint.

Functions§

parse_date_arg
parse_dispose_kind
Parse a bulk-reclassify-outflow --kind argument. Accepts ONLY sell/spend; REJECTS gift and donate (and any other value) — the structural scope-lock [Q2]: GiftOut/Donate need a per-row donee and (for Donate) a qualified-appraisal FMV, so a uniform-across-many-rows bulk substitution of a market close price is semantically wrong. Those stay single-item (reclassify-outflow).
parse_event_id
parse_income_kind
parse_lot_id
<event-id-canonical>#<split-sequence>LotId.
parse_lot_pick
<lot-id>:<sat>LotPick.
parse_usd_arg
Exact USD (NFR5): string → Decimal, never float.
parse_wallet_id
exchange:PROVIDER:ACCOUNT | self:LABEL.