add features return information.
PR Summary
-
Addition of New Optional Fields and Enumerator The
common/protob/messages-management.protofile was updated with new optional fields associated with the OneKey device state and build information. An enum,OneKeySEState, was also introduced into thecore/src/trezor/enums/OneKeySEState.pyfile. -
Modification of Enum Constant Value The value assigned to the
MessageType_OnekeyGetFeaturesenum constant was altered in two files:common/protob/messages.protoandcore/src/trezor/enums/MessageType.py. -
New File Creation A new file
core/src/trezor/enums/OneKeySEState.pywas created. -
Additional Enum in Init The
core/src/trezor/enums/__init__.pyfile was modified to include the enumerationOneKeySEState. -
Addition and Modification of Functions Functions related to the
Featuresclass and its fields were either added or altered in both thecore/src/trezor/messages.pyfile and thepython/src/trezorlib/messages.pyfile. -
Change in MESSAGE_WIRE_TYPE Values For functions
RebootToBoardloaderandDeviceEraseSectorin thepython/src/trezorlib/messages.pyfile,MESSAGE_WIRE_TYPEvalues were reset toNone.
The PR aims at improving device state tracking, simplifying message feature fetching, and enhancing data handling within the Features class. Moreover, it ensures updated MESSAGE_WIRE_TYPE values for more appropriate handling of specified functions.