Riy777 commited on
Commit
4155930
·
1 Parent(s): 03ad919

Update whale_monitor/config.py

Browse files
Files changed (1) hide show
  1. whale_monitor/config.py +40 -30
whale_monitor/config.py CHANGED
@@ -1,4 +1,5 @@
1
  # whale_monitor/config.py
 
2
  # هذا الملف يحتوي على جميع الإعدادات الثابتة لخدمة مراقبة الحيتان
3
 
4
  import os
@@ -27,6 +28,7 @@ COINGECKO_SYMBOL_MAPPING = {
27
  }
28
 
29
  # --- عناوين المنصات والبروتوكولات (ثابتة) ---
 
30
  DEFAULT_EXCHANGE_ADDRESSES = {
31
  # KuCoin
32
  'kucoin': [
@@ -39,7 +41,7 @@ DEFAULT_EXCHANGE_ADDRESSES = {
39
  'binance': [
40
  '0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be', '0xd551234ae421e3bcba99a0da6d736074f22192ff',
41
  '0x564286362092d8e7936f0549571a803b203aaced', '0x0681d8db095565fe8a346fa0277bffde9c0edbbf',
42
- '0xfe9e8709d3215310075d67e3ed32a380ccf451c8', '0.G'
43
  ],
44
  # Coinbase
45
  'coinbase': [
@@ -65,7 +67,10 @@ DEFAULT_EXCHANGE_ADDRESSES = {
65
 
66
 
67
  # --- إعدادات نقاط RPC والمستكشفات ---
68
- # سيتم استبدال <API_KEY> بالمفتاح الفعلي بواسطة rpc_manager
 
 
 
69
  DEFAULT_NETWORK_CONFIGS = {
70
  'ethereum': {
71
  'name': 'Ethereum', 'chain_id': '0x1', 'native_coin': 'ETH', 'type': 'evm',
@@ -74,28 +79,27 @@ DEFAULT_NETWORK_CONFIGS = {
74
  'https://rpc.ankr.com/eth',
75
  'https://cloudflare-eth.com',
76
  'https://eth.llamarpc.com',
77
- 'https://ethereum.publicnode.com',
78
- 'https://1rpc.io/eth',
79
  ],
80
  'explorer': {
81
  'api_url': 'https://api.etherscan.io/api',
82
- 'api_key_name': 'etherscan' # اسم المفتاح الذي سيبحث عنه rpc_manager
83
- }
 
 
84
  },
85
  'bsc': {
86
  'name': 'Binance Smart Chain', 'chain_id': '0x38', 'native_coin': 'BNB', 'type': 'evm',
87
  'rpc_endpoints': [
88
  'https://bsc-dataseed.binance.org/',
89
- 'https://bsc-dataseed1.defibit.io/',
90
  'https://bsc.publicnode.com',
91
  'https://binance.llamarpc.com',
92
- 'https://1rpc.io/bnb',
93
  'https://rpc.ankr.com/bsc'
94
  ],
95
  'explorer': {
96
  'api_url': 'https://api.bscscan.com/api',
97
- 'api_key_name': 'bscscan'
98
- }
 
99
  },
100
  'polygon': {
101
  'name': 'Polygon', 'chain_id': '0x89', 'native_coin': 'MATIC', 'type': 'evm',
@@ -103,14 +107,13 @@ DEFAULT_NETWORK_CONFIGS = {
103
  'https://polygon-mainnet.infura.io/v3/<INFURA_KEY>',
104
  'https://polygon-rpc.com',
105
  'https://polygon.llamarpc.com',
106
- 'https://polygon-bor.publicnode.com',
107
- 'https://1rpc.io/matic',
108
  'https://rpc.ankr.com/polygon'
109
  ],
110
  'explorer': {
111
  'api_url': 'https://api.polygonscan.com/api',
112
- 'api_key_name': 'polygonscan'
113
- }
 
114
  },
115
  'arbitrum': {
116
  'name': 'Arbitrum', 'chain_id': '0xa4b1', 'native_coin': 'ETH', 'type': 'evm',
@@ -118,11 +121,13 @@ DEFAULT_NETWORK_CONFIGS = {
118
  'https://arbitrum-mainnet.infura.io/v3/<INFURA_KEY>',
119
  'https://arb1.arbitrum.io/rpc',
120
  'https://arbitrum.llamarpc.com',
121
- 'https://arbitrum.publicnode.com',
122
- 'https://1rpc.io/arb',
123
  'https://rpc.ankr.com/arbitrum'
124
  ],
125
- 'explorer': None # يمكن إضافته لاحقاً
 
 
 
 
126
  },
127
  'optimism': {
128
  'name': 'Optimism', 'chain_id': '0xa', 'native_coin': 'ETH', 'type': 'evm',
@@ -130,44 +135,49 @@ DEFAULT_NETWORK_CONFIGS = {
130
  'https://optimism-mainnet.infura.io/v3/<INFURA_KEY>',
131
  'https://mainnet.optimism.io',
132
  'https://optimism.llamarpc.com',
133
- 'https://optimism.publicnode.com',
134
- 'https://1rpc.io/op',
135
  'https://rpc.ankr.com/optimism'
136
  ],
137
- 'explorer': None
 
 
 
 
138
  },
139
  'avalanche': {
140
  'name': 'Avalanche', 'chain_id': '0xa86a', 'native_coin': 'AVAX', 'type': 'evm',
141
  'rpc_endpoints': [
142
  'https://api.avax.network/ext/bc/C/rpc',
143
  'https://avalanche.publicnode.com',
144
- 'https://avax.llamarpc.com',
145
- 'https://1rpc.io/avax/c',
146
  'https://rpc.ankr.com/avalanche'
147
  ],
148
- 'explorer': None
 
 
 
 
149
  },
150
  'fantom': {
151
  'name': 'Fantom', 'chain_id': '0xfa', 'native_coin': 'FTM', 'type': 'evm',
152
  'rpc_endpoints': [
153
  'https://rpc.ftm.tools/',
154
  'https://fantom.publicnode.com',
155
- 'https://fantom.llamarpc.com',
156
- 'https://1rpc.io/ftm',
157
  'https://rpc.ankr.com/fantom'
158
  ],
159
- 'explorer': None
 
 
 
 
160
  },
161
  'solana': {
162
  'name': 'Solana', 'chain_id': 'mainnet-beta', 'native_coin': 'SOL', 'type': 'solana',
163
  'rpc_endpoints': [
164
  'https://api.mainnet-beta.solana.com',
165
  'https://solana-mainnet.publicnode.com',
166
- 'https://ssc-dao.genesysgo.net/',
167
- 'https://solana-mainnet.rpc.extrnode.com',
168
- 'https://solana-mainnet.phantom.tech/',
169
  'https://rpc.ankr.com/solana',
 
170
  ],
171
- 'explorer': None # Solscan/SolanaFM API مختلف
 
172
  }
173
  }
 
1
  # whale_monitor/config.py
2
+ # (V2 - محدث ليدعم Scanners V2)
3
  # هذا الملف يحتوي على جميع الإعدادات الثابتة لخدمة مراقبة الحيتان
4
 
5
  import os
 
28
  }
29
 
30
  # --- عناوين المنصات والبروتوكولات (ثابتة) ---
31
+ # (هذه القائمة هي احتياطية في حال فشل Moralis "الذكي")
32
  DEFAULT_EXCHANGE_ADDRESSES = {
33
  # KuCoin
34
  'kucoin': [
 
41
  'binance': [
42
  '0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be', '0xd551234ae421e3bcba99a0da6d736074f22192ff',
43
  '0x564286362092d8e7936f0549571a803b203aaced', '0x0681d8db095565fe8a346fa0277bffde9c0edbbf',
44
+ '0xfe9e8709d3215310075d67e3ed32a380ccf451c8', '0xG'
45
  ],
46
  # Coinbase
47
  'coinbase': [
 
67
 
68
 
69
  # --- إعدادات نقاط RPC والمستكشفات ---
70
+ # (V2 - محدث بالكامل)
71
+ # سيتم استبدال <INFURA_KEY> تلقائياً بواسطة rpc_manager
72
+ # سيتم تحميل ملف CSV المخصص تلقائياً بواسطة rpc_manager
73
+
74
  DEFAULT_NETWORK_CONFIGS = {
75
  'ethereum': {
76
  'name': 'Ethereum', 'chain_id': '0x1', 'native_coin': 'ETH', 'type': 'evm',
 
79
  'https://rpc.ankr.com/eth',
80
  'https://cloudflare-eth.com',
81
  'https://eth.llamarpc.com',
 
 
82
  ],
83
  'explorer': {
84
  'api_url': 'https://api.etherscan.io/api',
85
+ 'api_key_name': 'etherscan' # (نفس اسم المفتاح في rpc_manager)
86
+ },
87
+ # (جديد V2) - معرف Moralis API لهذه الشبكة
88
+ 'moralis_chain_id': 'eth'
89
  },
90
  'bsc': {
91
  'name': 'Binance Smart Chain', 'chain_id': '0x38', 'native_coin': 'BNB', 'type': 'evm',
92
  'rpc_endpoints': [
93
  'https://bsc-dataseed.binance.org/',
 
94
  'https://bsc.publicnode.com',
95
  'https://binance.llamarpc.com',
 
96
  'https://rpc.ankr.com/bsc'
97
  ],
98
  'explorer': {
99
  'api_url': 'https://api.bscscan.com/api',
100
+ 'api_key_name': 'bscscan' # (نستخدم المفتاح المشترك "etherscan" إذا كان هذا المفتاح فارغاً)
101
+ },
102
+ 'moralis_chain_id': 'bsc'
103
  },
104
  'polygon': {
105
  'name': 'Polygon', 'chain_id': '0x89', 'native_coin': 'MATIC', 'type': 'evm',
 
107
  'https://polygon-mainnet.infura.io/v3/<INFURA_KEY>',
108
  'https://polygon-rpc.com',
109
  'https://polygon.llamarpc.com',
 
 
110
  'https://rpc.ankr.com/polygon'
111
  ],
112
  'explorer': {
113
  'api_url': 'https://api.polygonscan.com/api',
114
+ 'api_key_name': 'polygonscan' # (نستخدم المفتاح المشترك "etherscan" إذا كان هذا المفتاح فارغاً)
115
+ },
116
+ 'moralis_chain_id': 'polygon'
117
  },
118
  'arbitrum': {
119
  'name': 'Arbitrum', 'chain_id': '0xa4b1', 'native_coin': 'ETH', 'type': 'evm',
 
121
  'https://arbitrum-mainnet.infura.io/v3/<INFURA_KEY>',
122
  'https://arb1.arbitrum.io/rpc',
123
  'https://arbitrum.llamarpc.com',
 
 
124
  'https://rpc.ankr.com/arbitrum'
125
  ],
126
+ 'explorer': {
127
+ 'api_url': 'https://api.arbiscan.io/api',
128
+ 'api_key_name': 'etherscan' # (تستخدم نفس المفتاح المشترك)
129
+ },
130
+ 'moralis_chain_id': 'arbitrum'
131
  },
132
  'optimism': {
133
  'name': 'Optimism', 'chain_id': '0xa', 'native_coin': 'ETH', 'type': 'evm',
 
135
  'https://optimism-mainnet.infura.io/v3/<INFURA_KEY>',
136
  'https://mainnet.optimism.io',
137
  'https://optimism.llamarpc.com',
 
 
138
  'https://rpc.ankr.com/optimism'
139
  ],
140
+ 'explorer': {
141
+ 'api_url': 'https://api-optimistic.etherscan.io/api',
142
+ 'api_key_name': 'etherscan' # (تستخدم نفس المفتاح المشترك)
143
+ },
144
+ 'moralis_chain_id': 'optimism'
145
  },
146
  'avalanche': {
147
  'name': 'Avalanche', 'chain_id': '0xa86a', 'native_coin': 'AVAX', 'type': 'evm',
148
  'rpc_endpoints': [
149
  'https://api.avax.network/ext/bc/C/rpc',
150
  'https://avalanche.publicnode.com',
 
 
151
  'https://rpc.ankr.com/avalanche'
152
  ],
153
+ 'explorer': {
154
+ 'api_url': 'https://api.snowtrace.io/api',
155
+ 'api_key_name': 'etherscan' # (تستخدم نفس المفتاح المشترك)
156
+ },
157
+ 'moralis_chain_id': 'avalanche'
158
  },
159
  'fantom': {
160
  'name': 'Fantom', 'chain_id': '0xfa', 'native_coin': 'FTM', 'type': 'evm',
161
  'rpc_endpoints': [
162
  'https://rpc.ftm.tools/',
163
  'https://fantom.publicnode.com',
 
 
164
  'https://rpc.ankr.com/fantom'
165
  ],
166
+ 'explorer': {
167
+ 'api_url': 'https://api.ftmscan.com/api',
168
+ 'api_key_name': 'etherscan' # (تستخدم نفس المفتاح المشترك)
169
+ },
170
+ 'moralis_chain_id': 'fantom'
171
  },
172
  'solana': {
173
  'name': 'Solana', 'chain_id': 'mainnet-beta', 'native_coin': 'SOL', 'type': 'solana',
174
  'rpc_endpoints': [
175
  'https://api.mainnet-beta.solana.com',
176
  'https://solana-mainnet.publicnode.com',
 
 
 
177
  'https://rpc.ankr.com/solana',
178
+ # (نقاط Moralis Solana API ستُستخدم بشكل منفصل، وليس كـ RPC)
179
  ],
180
+ 'explorer': None, # (Solscan/SolanaFM API مختلف)
181
+ 'moralis_chain_id': 'sol'
182
  }
183
  }