Part of the forward-compatible Device interfaces refactor.
Design: https://gist.github.com/elitegreg/e1d27c97034656a980fa8d7628ae16c5
Depends on #3658, #3659, #3660, #3661, #3662.
Scope
Pure rename. Swap the working-name NewInterface to Interface and the legacy enum from Interface to InterfaceDeprecated. Same for vec field names: new_interfaces → interfaces and old interfaces → deprecated_interfaces. All trait impls and call sites follow.
This is the cross-cutting churn step the earlier issues were structured to defer.
Tasks
Notes
- Mechanical PR. Likely large but reviewable as a rename. If split, do it along Rust workspace vs. SDK lines.
- After this lands, the
Future cleanup section in the design (collapse legacy vec to skip-only, drop dual writes) becomes possible — gated on every device account being re-written at least once.
Part of the forward-compatible Device interfaces refactor.
Design: https://gist.github.com/elitegreg/e1d27c97034656a980fa8d7628ae16c5
Depends on #3658, #3659, #3660, #3661, #3662.
Scope
Pure rename. Swap the working-name
NewInterfacetoInterfaceand the legacy enum fromInterfacetoInterfaceDeprecated. Same for vec field names:new_interfaces→interfacesand oldinterfaces→deprecated_interfaces. All trait impls and call sites follow.This is the cross-cutting churn step the earlier issues were structured to defer.
Tasks
smartcontract/programs/doublezero-serviceability/src/state/interface.rs: rename types.smartcontract/programs/doublezero-serviceability/src/state/device.rs: rename fields.deprecated_interfaceswhere it currently readsinterfaces. Do not migrate it to use the new (now-renamed)Interfacestruct orinterfacesvec.Interface/DeprecatedInterfaceif surfaced), Python, TS as needed for parity.DeviceJSON now exposesinterfaces(new shape) anddeprecated_interfaces(legacy projection). Update CLI renderers / telemetry consumers if their schema assumed the old layout.Notes
Futurecleanup section in the design (collapse legacy vec to skip-only, drop dual writes) becomes possible — gated on every device account being re-written at least once.