2
2
#include "eth_plugin_internal.h"
3
3
#include "plugin_utils.h"
4
4
5
- bool erc20_plugin_available_check (void );
6
-
7
5
void erc20_plugin_call (int message , void * parameters );
8
6
9
- #ifdef HAVE_STARKWARE
10
- void starkware_plugin_call (int message , void * parameters );
11
- #endif
12
7
#ifdef HAVE_ETH2
13
8
void eth2_plugin_call (int message , void * parameters );
14
9
#endif
@@ -27,83 +22,15 @@ const uint8_t* const ETH2_SELECTORS[NUM_ETH2_SELECTORS] = {ETH2_DEPOSIT_SELECTOR
27
22
28
23
#endif
29
24
30
- #ifdef HAVE_STARKWARE
31
-
32
- static const uint8_t STARKWARE_REGISTER_ID [SELECTOR_SIZE ] = {0xdd , 0x24 , 0x14 , 0xd4 };
33
- static const uint8_t STARKWARE_DEPOSIT_TOKEN_ID [SELECTOR_SIZE ] = {0x25 , 0x05 , 0xc3 , 0xd9 };
34
- static const uint8_t STARKWARE_DEPOSIT_ETH_ID [SELECTOR_SIZE ] = {0x00 , 0xae , 0xef , 0x8a };
35
- static const uint8_t STARKWARE_DEPOSIT_CANCEL_ID [SELECTOR_SIZE ] = {0x7d , 0xf7 , 0xdc , 0x04 };
36
- static const uint8_t STARKWARE_DEPOSIT_RECLAIM_ID [SELECTOR_SIZE ] = {0xae , 0x87 , 0x38 , 0x16 };
37
- static const uint8_t STARKWARE_WITHDRAW_ID [SELECTOR_SIZE ] = {0x44 , 0x1a , 0x3e , 0x70 };
38
- static const uint8_t STARKWARE_FULL_WITHDRAWAL_ID [SELECTOR_SIZE ] = {0xa9 , 0x33 , 0x10 , 0xc4 };
39
- static const uint8_t STARKWARE_FREEZE_ID [SELECTOR_SIZE ] = {0x93 , 0xc1 , 0xe4 , 0x66 };
40
- static const uint8_t STARKWARE_ESCAPE_ID [SELECTOR_SIZE ] = {0x9e , 0x3a , 0xda , 0xc4 };
41
- static const uint8_t STARKWARE_VERIFY_ESCAPE_ID [SELECTOR_SIZE ] = {0x2d , 0xd5 , 0x30 , 0x06 };
42
-
43
- static const uint8_t STARKWARE_WITHDRAW_TO_ID [SELECTOR_SIZE ] = {0x14 , 0xcd , 0x70 , 0xe4 };
44
- static const uint8_t STARKWARE_DEPOSIT_NFT_ID [SELECTOR_SIZE ] = {0xae , 0x1c , 0xdd , 0xe6 };
45
- static const uint8_t STARKWARE_DEPOSIT_NFT_RECLAIM_ID [SELECTOR_SIZE ] = {0xfc , 0xb0 , 0x58 , 0x22 };
46
- static const uint8_t STARKWARE_WITHDRAW_AND_MINT_ID [SELECTOR_SIZE ] = {0xd9 , 0x14 , 0x43 , 0xb7 };
47
- static const uint8_t STARKWARE_WITHDRAW_NFT_ID [SELECTOR_SIZE ] = {0x01 , 0x9b , 0x41 , 0x7a };
48
- static const uint8_t STARKWARE_WITHDRAW_NFT_TO_ID [SELECTOR_SIZE ] = {0xeb , 0xef , 0x0f , 0xd0 };
49
- static const uint8_t STARKWARE_REGISTER_AND_DEPOSIT_TOKEN_ID [SELECTOR_SIZE ] = {0x10 ,
50
- 0x82 ,
51
- 0x08 ,
52
- 0xcf };
53
- static const uint8_t STARKWARE_REGISTER_AND_DEPOSIT_ETH_ID [SELECTOR_SIZE ] = {0xa7 ,
54
- 0x78 ,
55
- 0xc0 ,
56
- 0xc3 };
57
- static const uint8_t STARKWARE_PROXY_DEPOSIT_TOKEN_ID [SELECTOR_SIZE ] = {0xdc , 0xca , 0xd5 , 0x24 };
58
- static const uint8_t STARKWARE_PROXY_DEPOSIT_ETH_ID [SELECTOR_SIZE ] = {0x6c , 0xe5 , 0xd9 , 0x57 };
59
-
60
- const uint8_t * const STARKWARE_SELECTORS [NUM_STARKWARE_SELECTORS ] = {
61
- STARKWARE_REGISTER_ID ,
62
- STARKWARE_DEPOSIT_TOKEN_ID ,
63
- STARKWARE_DEPOSIT_ETH_ID ,
64
- STARKWARE_DEPOSIT_CANCEL_ID ,
65
- STARKWARE_DEPOSIT_RECLAIM_ID ,
66
- STARKWARE_WITHDRAW_ID ,
67
- STARKWARE_FULL_WITHDRAWAL_ID ,
68
- STARKWARE_FREEZE_ID ,
69
- STARKWARE_ESCAPE_ID ,
70
- STARKWARE_VERIFY_ESCAPE_ID ,
71
- STARKWARE_WITHDRAW_TO_ID ,
72
- STARKWARE_DEPOSIT_NFT_ID ,
73
- STARKWARE_DEPOSIT_NFT_RECLAIM_ID ,
74
- STARKWARE_WITHDRAW_AND_MINT_ID ,
75
- STARKWARE_WITHDRAW_NFT_ID ,
76
- STARKWARE_WITHDRAW_NFT_TO_ID ,
77
- STARKWARE_REGISTER_AND_DEPOSIT_TOKEN_ID ,
78
- STARKWARE_REGISTER_AND_DEPOSIT_ETH_ID ,
79
- STARKWARE_PROXY_DEPOSIT_TOKEN_ID ,
80
- STARKWARE_PROXY_DEPOSIT_ETH_ID };
81
-
82
- #endif
83
-
84
25
// All internal alias names start with 'minus'
85
26
86
27
const internalEthPlugin_t INTERNAL_ETH_PLUGINS [] = {
87
- {erc20_plugin_available_check ,
88
- (const uint8_t * * ) ERC20_SELECTORS ,
89
- NUM_ERC20_SELECTORS ,
90
- "-erc20" ,
91
- erc20_plugin_call },
28
+ {NULL , (const uint8_t * * ) ERC20_SELECTORS , NUM_ERC20_SELECTORS , "-erc20" , erc20_plugin_call },
92
29
93
30
#ifdef HAVE_ETH2
94
31
95
32
{NULL , (const uint8_t * * ) ETH2_SELECTORS , NUM_ETH2_SELECTORS , "-eth2" , eth2_plugin_call },
96
33
97
- #endif
98
-
99
- #ifdef HAVE_STARKWARE
100
-
101
- {NULL ,
102
- (const uint8_t * * ) STARKWARE_SELECTORS ,
103
- NUM_STARKWARE_SELECTORS ,
104
- "-strk" ,
105
- starkware_plugin_call },
106
-
107
34
#endif
108
35
109
36
{NULL , NULL , 0 , "" , NULL }};
0 commit comments