EIP-712 code linting
This commit is contained in:
@@ -6,30 +6,21 @@
|
||||
#include <stdint.h>
|
||||
#include "ux.h"
|
||||
|
||||
#define UI_712_FIELD_SHOWN (1 << 0)
|
||||
#define UI_712_FIELD_NAME_PROVIDED (1 << 1)
|
||||
#define UI_712_FIELD_SHOWN (1 << 0)
|
||||
#define UI_712_FIELD_NAME_PROVIDED (1 << 1)
|
||||
|
||||
typedef enum
|
||||
{
|
||||
EIP712_FILTERING_BASIC,
|
||||
EIP712_FILTERING_FULL
|
||||
} e_eip712_filtering_mode;
|
||||
typedef enum { EIP712_FILTERING_BASIC, EIP712_FILTERING_FULL } e_eip712_filtering_mode;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UI_712_POS_REVIEW,
|
||||
UI_712_POS_END
|
||||
} e_ui_position;
|
||||
typedef enum { UI_712_POS_REVIEW, UI_712_POS_END } e_ui_position;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
bool shown;
|
||||
bool end_reached;
|
||||
e_ui_position pos;
|
||||
uint8_t filtering_mode;
|
||||
uint8_t field_flags;
|
||||
uint8_t structs_to_review;
|
||||
} t_ui_context;
|
||||
} t_ui_context;
|
||||
|
||||
bool ui_712_init(void);
|
||||
void ui_712_deinit(void);
|
||||
@@ -41,15 +32,15 @@ unsigned int ui_712_approve(const bagl_element_t *e);
|
||||
unsigned int ui_712_reject(const bagl_element_t *e);
|
||||
void ui_712_set_title(const char *const str, uint8_t length);
|
||||
void ui_712_set_value(const char *const str, uint8_t length);
|
||||
void ui_712_message_hash(void);
|
||||
void ui_712_redraw_generic_step(void);
|
||||
void ui_712_flag_field(bool show, bool name_provided);
|
||||
void ui_712_field_flags_reset(void);
|
||||
void ui_712_finalize_field(void);
|
||||
void ui_712_set_filtering_mode(e_eip712_filtering_mode mode);
|
||||
void ui_712_message_hash(void);
|
||||
void ui_712_redraw_generic_step(void);
|
||||
void ui_712_flag_field(bool show, bool name_provided);
|
||||
void ui_712_field_flags_reset(void);
|
||||
void ui_712_finalize_field(void);
|
||||
void ui_712_set_filtering_mode(e_eip712_filtering_mode mode);
|
||||
e_eip712_filtering_mode ui_712_get_filtering_mode(void);
|
||||
void ui_712_queue_struct_to_review(void);
|
||||
void ui_712_queue_struct_to_review(void);
|
||||
|
||||
#endif // HAVE_EIP712_FULL_SUPPORT
|
||||
#endif // HAVE_EIP712_FULL_SUPPORT
|
||||
|
||||
#endif // UI_LOGIC_712_H_
|
||||
#endif // UI_LOGIC_712_H_
|
||||
|
||||
Reference in New Issue
Block a user