Home page rework

Now explicitly shows if the app has been launched through a plugin or clone
thanks to the new NBGL use case
This commit is contained in:
Alexandre Paillier
2023-02-07 18:06:44 +01:00
committed by Clement Bouvet
parent e950372438
commit 462c39aa4b
10 changed files with 126 additions and 46 deletions
+9 -6
View File
@@ -11,13 +11,16 @@ typedef struct network_info_s {
uint64_t chain_id;
} network_info_t;
// Returns the current chain id. Defaults to 0 if txType was not found.
uint64_t get_chain_id(void);
// Returns a pointer to the network struct, or NULL if there is none.
const network_info_t *get_network(void);
// Returns the chain ID. Defaults to 0 if txType was not found (For TX).
uint64_t get_tx_chain_id(void);
uint64_t get_app_chain_id(void);
// Returns a pointer to the network name, or NULL if there is none.
const char *get_network_name(void);
const char *get_tx_network_name(void);
const char *get_app_network_name(void);
// Returns a pointer to the network ticker, or chainConfig->coinName if there is none.
const char *get_network_ticker(void);
const char *get_tx_network_ticker(void);
const char *get_app_network_ticker(void);
#endif // _NETWORK_H_