network.c functions cleanup
This commit is contained in:
@@ -2,24 +2,9 @@
|
||||
#define _NETWORK_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include "tokens.h"
|
||||
#include "shared_context.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct network_info_s {
|
||||
const char *name;
|
||||
const char *ticker;
|
||||
uint64_t chain_id;
|
||||
} network_info_t;
|
||||
|
||||
// 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_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_tx_network_ticker(void);
|
||||
const char *get_app_network_ticker(void);
|
||||
const char *get_network_name_from_chain_id(const uint64_t *chain_id);
|
||||
const char *get_network_ticker_from_chain_id(const uint64_t *chain_id);
|
||||
|
||||
#endif // _NETWORK_H_
|
||||
|
||||
Reference in New Issue
Block a user