2020-09-22 09:22:49 +02:00
|
|
|
#ifndef __ETH_PLUGIN_INTERNAL_H__
|
|
|
|
|
|
|
|
|
|
#include "eth_plugin_interface.h"
|
|
|
|
|
|
|
|
|
|
#define SELECTOR_SIZE 4
|
|
|
|
|
|
|
|
|
|
typedef struct internalEthPlugin_t {
|
|
|
|
|
const uint8_t **selectors;
|
|
|
|
|
uint8_t num_selectors;
|
|
|
|
|
char alias[7];
|
|
|
|
|
PluginCall impl;
|
|
|
|
|
} internalEthPlugin_t;
|
|
|
|
|
|
2020-09-24 17:02:57 +02:00
|
|
|
#define NUM_ERC20_SELECTORS 2
|
|
|
|
|
extern const uint8_t* const ERC20_SELECTORS[NUM_ERC20_SELECTORS];
|
|
|
|
|
|
2020-10-05 18:22:42 +02:00
|
|
|
#define NUM_COMPOUND_SELECTORS 4
|
|
|
|
|
extern const uint8_t* const COMPOUND_SELECTORS[NUM_COMPOUND_SELECTORS];
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 09:22:49 +02:00
|
|
|
#ifdef HAVE_STARKWARE
|
|
|
|
|
|
2020-10-05 18:22:42 +02:00
|
|
|
#define NUM_INTERNAL_PLUGINS 3
|
2020-09-22 09:22:49 +02:00
|
|
|
|
|
|
|
|
#define NUM_STARKWARE_SELECTORS 10
|
|
|
|
|
extern const uint8_t* const STARKWARE_SELECTORS[NUM_STARKWARE_SELECTORS];
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
2020-10-05 18:22:42 +02:00
|
|
|
#define NUM_INTERNAL_PLUGINS 2
|
2020-09-22 09:22:49 +02:00
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
extern internalEthPlugin_t const INTERNAL_ETH_PLUGINS[NUM_INTERNAL_PLUGINS];
|
|
|
|
|
|
|
|
|
|
#endif
|