You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tdbe): ParsedRight::from_wire_byte (inverse of as_wire_byte)
Add a `const fn` inverse of the existing `ParsedRight::as_wire_byte`,
decoding the FPSS wire byte (`67` for `'C'`, `80` for `'P'`) into
a typed `ParsedRight`. Returns `None` for any other byte so the
caller can lift the soft-skip / hard-error decision into its own
error type.
Round-trip property test confirms every variant whose
`as_wire_byte()` returns `Some(b)` decodes through
`from_wire_byte(b) == Some(self)`. The `Both` variant has no FPSS
wire encoding, so the test asserts that path stays unrepresentable
on the wire.
Removes the rationale for downstream tick decoders (analytics
chain snapshots, replay validators) to re-type the `67` / `80`
magic numbers at every trust boundary.
Patch bump tdbe 0.12.8 -> 0.12.9 per the 0.12.x patch-only policy;
`thetadatadx` and `ffi` dependency pins lifted to match. No
`thetadatadx` version bump in this commit -- a follow-up release
PR will roll the SDK forward through the next patch.
Closes#495.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments