Spaces:
Paused
Paused
Update whale_monitor/config.py
Browse files- whale_monitor/config.py +244 -71
whale_monitor/config.py
CHANGED
|
@@ -1,135 +1,301 @@
|
|
| 1 |
# whale_monitor/config.py
|
| 2 |
-
# (
|
| 3 |
-
#
|
| 4 |
|
| 5 |
import os
|
| 6 |
|
| 7 |
-
#
|
|
|
|
|
|
|
| 8 |
DEFAULT_WHALE_THRESHOLD_USD = 50000.0
|
| 9 |
TRANSFER_EVENT_SIGNATURE = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
|
| 10 |
|
| 11 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
NATIVE_COINS = [
|
| 13 |
'BTC', 'LTC', 'ETH', 'BNB', 'ADA', 'DOT', 'XRP', 'DOGE', 'BCH',
|
| 14 |
-
'XLM', 'TRX', 'EOS', 'XMR', 'SOL', 'MATIC', 'AVAX', 'FTM'
|
|
|
|
| 15 |
]
|
| 16 |
|
| 17 |
-
#
|
|
|
|
|
|
|
| 18 |
COINGECKO_BASE_URL = "https://api.coingecko.com/api/v3"
|
|
|
|
|
|
|
| 19 |
COINGECKO_SYMBOL_MAPPING = {
|
| 20 |
-
'BTC': 'bitcoin',
|
| 21 |
-
'
|
| 22 |
-
'
|
| 23 |
-
'
|
| 24 |
-
'
|
| 25 |
-
'
|
| 26 |
-
'
|
| 27 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
}
|
| 29 |
|
| 30 |
-
#
|
| 31 |
-
#
|
|
|
|
|
|
|
| 32 |
DEFAULT_EXCHANGE_ADDRESSES = {
|
| 33 |
-
# KuCoin
|
| 34 |
'kucoin': [
|
| 35 |
-
'0x2b5634c42055806a59e9107ed44d43c426e58258',
|
| 36 |
-
'
|
| 37 |
-
'
|
| 38 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
],
|
| 40 |
-
# Binance
|
| 41 |
'binance': [
|
| 42 |
-
'0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be',
|
| 43 |
-
'
|
| 44 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
],
|
| 46 |
-
# Coinbase
|
| 47 |
'coinbase': [
|
| 48 |
-
'0x71660c4005ba85c37ccec55d0c4493e66fe775d3',
|
| 49 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
],
|
| 51 |
-
#
|
| 52 |
-
'
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
#
|
| 58 |
-
'
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
'
|
| 64 |
-
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
}
|
| 67 |
|
| 68 |
-
|
| 69 |
-
#
|
| 70 |
-
#
|
| 71 |
-
#
|
| 72 |
-
#
|
| 73 |
|
| 74 |
DEFAULT_NETWORK_CONFIGS = {
|
| 75 |
'ethereum': {
|
| 76 |
-
'name': 'Ethereum',
|
|
|
|
|
|
|
|
|
|
| 77 |
'rpc_endpoints': [
|
| 78 |
'https://mainnet.infura.io/v3/<INFURA_KEY>',
|
| 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'
|
| 86 |
},
|
| 87 |
'moralis_chain_id': 'eth'
|
| 88 |
},
|
| 89 |
'bsc': {
|
| 90 |
-
'name': 'Binance Smart Chain',
|
|
|
|
|
|
|
|
|
|
| 91 |
'rpc_endpoints': [
|
| 92 |
'https://bsc-dataseed.binance.org/',
|
| 93 |
'https://bsc.publicnode.com',
|
| 94 |
'https://binance.llamarpc.com',
|
| 95 |
-
'https://rpc.ankr.com/bsc'
|
|
|
|
| 96 |
],
|
| 97 |
'explorer': {
|
| 98 |
'api_url': 'https://api.bscscan.com/api',
|
| 99 |
-
'api_key_name': 'bscscan'
|
| 100 |
},
|
| 101 |
'moralis_chain_id': 'bsc'
|
| 102 |
},
|
| 103 |
'polygon': {
|
| 104 |
-
'name': 'Polygon',
|
|
|
|
|
|
|
|
|
|
| 105 |
'rpc_endpoints': [
|
| 106 |
'https://polygon-mainnet.infura.io/v3/<INFURA_KEY>',
|
| 107 |
'https://polygon-rpc.com',
|
| 108 |
'https://polygon.llamarpc.com',
|
| 109 |
-
'https://rpc.ankr.com/polygon'
|
|
|
|
| 110 |
],
|
| 111 |
'explorer': {
|
| 112 |
'api_url': 'https://api.polygonscan.com/api',
|
| 113 |
-
'api_key_name': 'polygonscan'
|
| 114 |
},
|
| 115 |
'moralis_chain_id': 'polygon'
|
| 116 |
},
|
| 117 |
'arbitrum': {
|
| 118 |
-
'name': 'Arbitrum',
|
|
|
|
|
|
|
|
|
|
| 119 |
'rpc_endpoints': [
|
| 120 |
'https://arbitrum-mainnet.infura.io/v3/<INFURA_KEY>',
|
| 121 |
'https://arb1.arbitrum.io/rpc',
|
| 122 |
'https://arbitrum.llamarpc.com',
|
| 123 |
-
'https://rpc.ankr.com/arbitrum'
|
|
|
|
| 124 |
],
|
| 125 |
'explorer': {
|
| 126 |
'api_url': 'https://api.arbiscan.io/api',
|
| 127 |
-
'api_key_name': 'etherscan'
|
| 128 |
},
|
| 129 |
'moralis_chain_id': 'arbitrum'
|
| 130 |
},
|
| 131 |
'optimism': {
|
| 132 |
-
'name': 'Optimism',
|
|
|
|
|
|
|
|
|
|
| 133 |
'rpc_endpoints': [
|
| 134 |
'https://optimism-mainnet.infura.io/v3/<INFURA_KEY>',
|
| 135 |
'https://mainnet.optimism.io',
|
|
@@ -138,25 +304,31 @@ DEFAULT_NETWORK_CONFIGS = {
|
|
| 138 |
],
|
| 139 |
'explorer': {
|
| 140 |
'api_url': 'https://api-optimistic.etherscan.io/api',
|
| 141 |
-
'api_key_name': 'etherscan'
|
| 142 |
},
|
| 143 |
'moralis_chain_id': 'optimism'
|
| 144 |
},
|
| 145 |
'avalanche': {
|
| 146 |
-
'name': 'Avalanche',
|
|
|
|
|
|
|
|
|
|
| 147 |
'rpc_endpoints': [
|
| 148 |
-
'
|
| 149 |
'https://avalanche.publicnode.com',
|
| 150 |
'https://rpc.ankr.com/avalanche'
|
| 151 |
],
|
| 152 |
'explorer': {
|
| 153 |
'api_url': 'https://api.snowtrace.io/api',
|
| 154 |
-
'api_key_name': 'etherscan'
|
| 155 |
},
|
| 156 |
'moralis_chain_id': 'avalanche'
|
| 157 |
},
|
| 158 |
'fantom': {
|
| 159 |
-
'name': 'Fantom',
|
|
|
|
|
|
|
|
|
|
| 160 |
'rpc_endpoints': [
|
| 161 |
'https://rpc.ftm.tools/',
|
| 162 |
'https://fantom.publicnode.com',
|
|
@@ -164,23 +336,24 @@ DEFAULT_NETWORK_CONFIGS = {
|
|
| 164 |
],
|
| 165 |
'explorer': {
|
| 166 |
'api_url': 'https://api.ftmscan.com/api',
|
| 167 |
-
'api_key_name': 'etherscan'
|
| 168 |
},
|
| 169 |
'moralis_chain_id': 'fantom'
|
| 170 |
},
|
| 171 |
'solana': {
|
| 172 |
-
'name': 'Solana',
|
|
|
|
|
|
|
|
|
|
| 173 |
'rpc_endpoints': [
|
| 174 |
'https://api.mainnet-beta.solana.com',
|
| 175 |
'https://solana-mainnet.publicnode.com',
|
| 176 |
'https://rpc.ankr.com/solana',
|
| 177 |
],
|
| 178 |
-
# 🔴 --- START OF CHANGE (V2.1) --- 🔴
|
| 179 |
'explorer': {
|
| 180 |
-
'api_url': 'https://pro-api.solscan.io', #
|
| 181 |
-
'api_key_name': 'solscan'
|
| 182 |
},
|
| 183 |
-
# 🔴 --- END OF CHANGE --- 🔴
|
| 184 |
'moralis_chain_id': 'sol'
|
| 185 |
}
|
| 186 |
}
|
|
|
|
| 1 |
# whale_monitor/config.py
|
| 2 |
+
# (V3.2 - GEM-Architect: Full Enterprise Config with Web3 Support)
|
| 3 |
+
# يحتوي على الإعدادات الثابتة، عناوين العقود، إعدادات الشبكات، و ABI.
|
| 4 |
|
| 5 |
import os
|
| 6 |
|
| 7 |
+
# ==============================================================================
|
| 8 |
+
# ⚙️ General Settings
|
| 9 |
+
# ==============================================================================
|
| 10 |
DEFAULT_WHALE_THRESHOLD_USD = 50000.0
|
| 11 |
TRANSFER_EVENT_SIGNATURE = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
|
| 12 |
|
| 13 |
+
# ==============================================================================
|
| 14 |
+
# 📜 Web3 ABI (Standard ERC20) - **NEW & CRITICAL**
|
| 15 |
+
# ==============================================================================
|
| 16 |
+
# هذا التعريف ضروري لمكتبة Web3 لفك تشفير البيانات (Decimals + Transfers)
|
| 17 |
+
ERC20_ABI = [
|
| 18 |
+
{
|
| 19 |
+
"constant": True,
|
| 20 |
+
"inputs": [],
|
| 21 |
+
"name": "name",
|
| 22 |
+
"outputs": [{"name": "", "type": "string"}],
|
| 23 |
+
"payable": False,
|
| 24 |
+
"stateMutability": "view",
|
| 25 |
+
"type": "function"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"constant": True,
|
| 29 |
+
"inputs": [],
|
| 30 |
+
"name": "decimals",
|
| 31 |
+
"outputs": [{"name": "", "type": "uint8"}],
|
| 32 |
+
"payable": False,
|
| 33 |
+
"stateMutability": "view",
|
| 34 |
+
"type": "function"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"constant": True,
|
| 38 |
+
"inputs": [{"name": "_owner", "type": "address"}],
|
| 39 |
+
"name": "balanceOf",
|
| 40 |
+
"outputs": [{"name": "balance", "type": "uint256"}],
|
| 41 |
+
"payable": False,
|
| 42 |
+
"stateMutability": "view",
|
| 43 |
+
"type": "function"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"constant": True,
|
| 47 |
+
"inputs": [],
|
| 48 |
+
"name": "symbol",
|
| 49 |
+
"outputs": [{"name": "", "type": "string"}],
|
| 50 |
+
"payable": False,
|
| 51 |
+
"stateMutability": "view",
|
| 52 |
+
"type": "function"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"anonymous": False,
|
| 56 |
+
"inputs": [
|
| 57 |
+
{"indexed": True, "name": "from", "type": "address"},
|
| 58 |
+
{"indexed": True, "name": "to", "type": "address"},
|
| 59 |
+
{"indexed": False, "name": "value", "type": "uint256"}
|
| 60 |
+
],
|
| 61 |
+
"name": "Transfer",
|
| 62 |
+
"type": "event"
|
| 63 |
+
}
|
| 64 |
+
]
|
| 65 |
+
|
| 66 |
+
# ==============================================================================
|
| 67 |
+
# 💎 Native Coins (No Contracts)
|
| 68 |
+
# ==============================================================================
|
| 69 |
NATIVE_COINS = [
|
| 70 |
'BTC', 'LTC', 'ETH', 'BNB', 'ADA', 'DOT', 'XRP', 'DOGE', 'BCH',
|
| 71 |
+
'XLM', 'TRX', 'EOS', 'XMR', 'SOL', 'MATIC', 'AVAX', 'FTM', 'NEAR',
|
| 72 |
+
'ATOM', 'ALGO', 'HBAR', 'EGLD', 'FIL', 'THETA', 'VET', 'ICP'
|
| 73 |
]
|
| 74 |
|
| 75 |
+
# ==============================================================================
|
| 76 |
+
# 🦎 CoinGecko Settings & Mappings
|
| 77 |
+
# ==============================================================================
|
| 78 |
COINGECKO_BASE_URL = "https://api.coingecko.com/api/v3"
|
| 79 |
+
|
| 80 |
+
# خريطة لتسريع البحث عن العملات المشهورة وتفادي أخطاء البحث
|
| 81 |
COINGECKO_SYMBOL_MAPPING = {
|
| 82 |
+
'BTC': 'bitcoin',
|
| 83 |
+
'ETH': 'ethereum',
|
| 84 |
+
'BNB': 'binancecoin',
|
| 85 |
+
'ADA': 'cardano',
|
| 86 |
+
'DOT': 'polkadot',
|
| 87 |
+
'XRP': 'ripple',
|
| 88 |
+
'DOGE': 'dogecoin',
|
| 89 |
+
'BCH': 'bitcoin-cash',
|
| 90 |
+
'LTC': 'litecoin',
|
| 91 |
+
'XLM': 'stellar',
|
| 92 |
+
'TRX': 'tron',
|
| 93 |
+
'EOS': 'eos',
|
| 94 |
+
'XMR': 'monero',
|
| 95 |
+
'SOL': 'solana',
|
| 96 |
+
'MATIC': 'matic-network',
|
| 97 |
+
'AVAX': 'avalanche-2',
|
| 98 |
+
'LINK': 'chainlink',
|
| 99 |
+
'ATOM': 'cosmos',
|
| 100 |
+
'UNI': 'uniswap',
|
| 101 |
+
'AAVE': 'aave',
|
| 102 |
+
'KCS': 'kucoin-shares',
|
| 103 |
+
'MAVIA': 'heroes-of-mavia',
|
| 104 |
+
'COMMON': 'commonwealth',
|
| 105 |
+
'WLFI': 'wolfi',
|
| 106 |
+
'PINGPONG': 'pingpong',
|
| 107 |
+
'YB': 'yourbusd',
|
| 108 |
+
'REACT': 'react',
|
| 109 |
+
'XMN': 'xmine',
|
| 110 |
+
'ANOME': 'anome',
|
| 111 |
+
'ZEN': 'zencash',
|
| 112 |
+
'AKT': 'akash-network',
|
| 113 |
+
'UB': 'unibit',
|
| 114 |
+
'WLD': 'worldcoin',
|
| 115 |
+
'PEPE': 'pepe',
|
| 116 |
+
'FLOKI': 'floki',
|
| 117 |
+
'SHIB': 'shiba-inu',
|
| 118 |
+
'BONK': 'bonk',
|
| 119 |
+
'WIF': 'dogwifhat',
|
| 120 |
+
'JUP': 'jupiter-exchange-solana',
|
| 121 |
+
'PYTH': 'pyth-network',
|
| 122 |
+
'RNDR': 'render-token',
|
| 123 |
+
'FET': 'fetch-ai',
|
| 124 |
+
'AGIX': 'singularitynet',
|
| 125 |
+
'OCEAN': 'ocean-protocol'
|
| 126 |
}
|
| 127 |
|
| 128 |
+
# ==============================================================================
|
| 129 |
+
# 🏢 Exchange & Bridge Addresses (Source of Truth)
|
| 130 |
+
# ==============================================================================
|
| 131 |
+
# تستخدم لتصنيف الحركات (إيداع للمنصات = بيع محتمل / سحب = تجميع)
|
| 132 |
DEFAULT_EXCHANGE_ADDRESSES = {
|
| 133 |
+
# --- KuCoin ---
|
| 134 |
'kucoin': [
|
| 135 |
+
'0x2b5634c42055806a59e9107ed44d43c426e58258',
|
| 136 |
+
'0x689c56aef474df92d44a1b70850f808488f9769c',
|
| 137 |
+
'0xa1d8d972560c2f8144af871db508f0b0b10a3fbf',
|
| 138 |
+
'0x4ad64983349c49defe8d7a4686202d24b25d0ce8',
|
| 139 |
+
'0x1692e170361cefd1eb7240ec13d048fd9af6d667',
|
| 140 |
+
'0xd6216fc19db775df9774a6e33526131da7d19a2c',
|
| 141 |
+
'0xe59cd29be3be4461d79c0881a238c467a2b3775c',
|
| 142 |
+
'0x899b5d52671830f567bf43a14684eb14e1f945fe',
|
| 143 |
+
'0xe41d2489571d322189246dafa5ebde1f4699f498' # KuCoin 6
|
| 144 |
],
|
| 145 |
+
# --- Binance ---
|
| 146 |
'binance': [
|
| 147 |
+
'0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be', # Binance 1
|
| 148 |
+
'0xd551234ae421e3bcba99a0da6d736074f22192ff', # Binance 2
|
| 149 |
+
'0x564286362092d8e7936f0549571a803b203aaced', # Binance 3
|
| 150 |
+
'0x0681d8db095565fe8a346fa0277bffde9c0edbbf', # Binance 4
|
| 151 |
+
'0xfe9e8709d3215310075d67e3ed32a380ccf451c8', # Binance 5
|
| 152 |
+
'0x21a31Ee1afC51d94C2eFcCAa2092aD1028285549', # Binance 14
|
| 153 |
+
'0xF977814e90dA44bFA03b6295A0616a897441aceC', # Binance 8
|
| 154 |
+
'0x28C6c06298d514Db089934071355E5743bf21d60', # Binance 15
|
| 155 |
+
'0x47ac0Fb4F2D84898e4D9E7b4DaB3C24507a6D503' # Binance 16
|
| 156 |
],
|
| 157 |
+
# --- Coinbase ---
|
| 158 |
'coinbase': [
|
| 159 |
+
'0x71660c4005ba85c37ccec55d0c4493e66fe775d3',
|
| 160 |
+
'0x503828976d22510aad0201ac7ec88293211d23da',
|
| 161 |
+
'0xddfabcdc4d8ffc6d5beaf154f18b778f892a0740',
|
| 162 |
+
'0x3c96f264e1d3269b8d6f517228a4783307b22693'
|
| 163 |
+
],
|
| 164 |
+
# --- Kraken ---
|
| 165 |
+
'kraken': [
|
| 166 |
+
'0x2910543af39aba0cd09dbb2d50200b3e800a63d2',
|
| 167 |
+
'0xa160cdab225685da1d56aa342ad8841c3b53f291',
|
| 168 |
+
'0x0a869d79a7052c7f1b55a8ebab3eeb47737a8802'
|
| 169 |
],
|
| 170 |
+
# --- OKX ---
|
| 171 |
+
'okx': [
|
| 172 |
+
'0x6cc5f688a315f3dc28a7781717a9a798a59fda7b',
|
| 173 |
+
'0x2c8fbb630289363ac80705a1a61273f76fd5a161',
|
| 174 |
+
'0x5041ed759dd4afc3a72b8192c143f72f4724081a'
|
| 175 |
+
],
|
| 176 |
+
# --- Gate.io ---
|
| 177 |
+
'gate': [
|
| 178 |
+
'0x0d0707963952f2fba59dd06f2b425ace40b492fe',
|
| 179 |
+
'0xc6f9741f5a5a676b91171804cf3c500ab438bb6e'
|
| 180 |
+
],
|
| 181 |
+
# --- Bybit ---
|
| 182 |
+
'bybit': [
|
| 183 |
+
'0xf584f8728b874a6a5c7a8d4d387c9aae9172d621',
|
| 184 |
+
'0x1d9505953c306dca509427b375b472e3a51f937d'
|
| 185 |
+
],
|
| 186 |
+
# --- DEXs ---
|
| 187 |
+
'uniswap': [
|
| 188 |
+
'0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad', # Uniswap V3 Router
|
| 189 |
+
'0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45', # Uniswap V3 Router 2
|
| 190 |
+
'0x7a250d5630b4cf539739df2c5dacb4c659f2488d' # Uniswap V2 Router
|
| 191 |
+
],
|
| 192 |
+
'pancakeswap': [
|
| 193 |
+
'0x10ed43c718714eb63d5aa57b78b54704e256024e', # Pancake Router V2
|
| 194 |
+
'0x13f4ea83d0bd40e75c8222255bc855a974568dd4' # Pancake Router V3
|
| 195 |
+
],
|
| 196 |
+
# --- Solana Exchanges ---
|
| 197 |
+
'solana_kucoin': [
|
| 198 |
+
'F3a5ZLPKUCrCj6CGKP2m9wS9Y2L8RcUBoJq9L2D2sUYi',
|
| 199 |
+
'2AQdpHJ2JpcEgPiATFnAKfV9hPMvouWJAhKvamQ2Krqy'
|
| 200 |
+
],
|
| 201 |
+
'solana_binance': [
|
| 202 |
+
'5tzFkiKscXHK5ZXCGbXZJpXaWuBtZ6RrH8eL2a7Yi7Vn',
|
| 203 |
+
'9WzDXwBbmkg8ZTbNMqUxvQRApF22xwsgMj2SUZrchK2E',
|
| 204 |
+
'31k88G5C7w5B31eY435252875151241151521512125' # Placeholder for Binance 3
|
| 205 |
+
],
|
| 206 |
+
'solana_coinbase': [
|
| 207 |
+
'CeBiLnAE3UAW9mCDSjD1VULKLeQjefjN4d941fVKazSM',
|
| 208 |
+
'H8sMJSCQxfKi42eHGQp5f3s89h2i7a4C5j825125121'
|
| 209 |
+
],
|
| 210 |
+
# --- Bridges ---
|
| 211 |
+
'solana_wormhole': ['worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth'],
|
| 212 |
+
'ethereum_bridge': ['0x99c9fc46f92e8a1c0dec1b1747d010903e884be1'] # Optimism Bridge
|
| 213 |
}
|
| 214 |
|
| 215 |
+
# ==============================================================================
|
| 216 |
+
# 🌐 Network Configurations (RPC & Explorers)
|
| 217 |
+
# ==============================================================================
|
| 218 |
+
# يتم حقن المفاتيح وتعديل النقاط تلقائياً بواسطة rpc_manager.py
|
| 219 |
+
# تم تحديث إعدادات Solana لدعم Solscan Pro
|
| 220 |
|
| 221 |
DEFAULT_NETWORK_CONFIGS = {
|
| 222 |
'ethereum': {
|
| 223 |
+
'name': 'Ethereum',
|
| 224 |
+
'chain_id': '0x1',
|
| 225 |
+
'native_coin': 'ETH',
|
| 226 |
+
'type': 'evm',
|
| 227 |
'rpc_endpoints': [
|
| 228 |
'https://mainnet.infura.io/v3/<INFURA_KEY>',
|
| 229 |
'https://rpc.ankr.com/eth',
|
| 230 |
'https://cloudflare-eth.com',
|
| 231 |
'https://eth.llamarpc.com',
|
| 232 |
+
'https://1rpc.io/eth'
|
| 233 |
],
|
| 234 |
'explorer': {
|
| 235 |
'api_url': 'https://api.etherscan.io/api',
|
| 236 |
+
'api_key_name': 'etherscan'
|
| 237 |
},
|
| 238 |
'moralis_chain_id': 'eth'
|
| 239 |
},
|
| 240 |
'bsc': {
|
| 241 |
+
'name': 'Binance Smart Chain',
|
| 242 |
+
'chain_id': '0x38',
|
| 243 |
+
'native_coin': 'BNB',
|
| 244 |
+
'type': 'evm',
|
| 245 |
'rpc_endpoints': [
|
| 246 |
'https://bsc-dataseed.binance.org/',
|
| 247 |
'https://bsc.publicnode.com',
|
| 248 |
'https://binance.llamarpc.com',
|
| 249 |
+
'https://rpc.ankr.com/bsc',
|
| 250 |
+
'https://1rpc.io/bnb'
|
| 251 |
],
|
| 252 |
'explorer': {
|
| 253 |
'api_url': 'https://api.bscscan.com/api',
|
| 254 |
+
'api_key_name': 'bscscan'
|
| 255 |
},
|
| 256 |
'moralis_chain_id': 'bsc'
|
| 257 |
},
|
| 258 |
'polygon': {
|
| 259 |
+
'name': 'Polygon',
|
| 260 |
+
'chain_id': '0x89',
|
| 261 |
+
'native_coin': 'MATIC',
|
| 262 |
+
'type': 'evm',
|
| 263 |
'rpc_endpoints': [
|
| 264 |
'https://polygon-mainnet.infura.io/v3/<INFURA_KEY>',
|
| 265 |
'https://polygon-rpc.com',
|
| 266 |
'https://polygon.llamarpc.com',
|
| 267 |
+
'https://rpc.ankr.com/polygon',
|
| 268 |
+
'https://1rpc.io/matic'
|
| 269 |
],
|
| 270 |
'explorer': {
|
| 271 |
'api_url': 'https://api.polygonscan.com/api',
|
| 272 |
+
'api_key_name': 'polygonscan'
|
| 273 |
},
|
| 274 |
'moralis_chain_id': 'polygon'
|
| 275 |
},
|
| 276 |
'arbitrum': {
|
| 277 |
+
'name': 'Arbitrum',
|
| 278 |
+
'chain_id': '0xa4b1',
|
| 279 |
+
'native_coin': 'ETH',
|
| 280 |
+
'type': 'evm',
|
| 281 |
'rpc_endpoints': [
|
| 282 |
'https://arbitrum-mainnet.infura.io/v3/<INFURA_KEY>',
|
| 283 |
'https://arb1.arbitrum.io/rpc',
|
| 284 |
'https://arbitrum.llamarpc.com',
|
| 285 |
+
'https://rpc.ankr.com/arbitrum',
|
| 286 |
+
'https://1rpc.io/arb'
|
| 287 |
],
|
| 288 |
'explorer': {
|
| 289 |
'api_url': 'https://api.arbiscan.io/api',
|
| 290 |
+
'api_key_name': 'etherscan'
|
| 291 |
},
|
| 292 |
'moralis_chain_id': 'arbitrum'
|
| 293 |
},
|
| 294 |
'optimism': {
|
| 295 |
+
'name': 'Optimism',
|
| 296 |
+
'chain_id': '0xa',
|
| 297 |
+
'native_coin': 'ETH',
|
| 298 |
+
'type': 'evm',
|
| 299 |
'rpc_endpoints': [
|
| 300 |
'https://optimism-mainnet.infura.io/v3/<INFURA_KEY>',
|
| 301 |
'https://mainnet.optimism.io',
|
|
|
|
| 304 |
],
|
| 305 |
'explorer': {
|
| 306 |
'api_url': 'https://api-optimistic.etherscan.io/api',
|
| 307 |
+
'api_key_name': 'etherscan'
|
| 308 |
},
|
| 309 |
'moralis_chain_id': 'optimism'
|
| 310 |
},
|
| 311 |
'avalanche': {
|
| 312 |
+
'name': 'Avalanche',
|
| 313 |
+
'chain_id': '0xa86a',
|
| 314 |
+
'native_coin': 'AVAX',
|
| 315 |
+
'type': 'evm',
|
| 316 |
'rpc_endpoints': [
|
| 317 |
+
'https://api.avax.network/ext/bc/C/rpc',
|
| 318 |
'https://avalanche.publicnode.com',
|
| 319 |
'https://rpc.ankr.com/avalanche'
|
| 320 |
],
|
| 321 |
'explorer': {
|
| 322 |
'api_url': 'https://api.snowtrace.io/api',
|
| 323 |
+
'api_key_name': 'etherscan'
|
| 324 |
},
|
| 325 |
'moralis_chain_id': 'avalanche'
|
| 326 |
},
|
| 327 |
'fantom': {
|
| 328 |
+
'name': 'Fantom',
|
| 329 |
+
'chain_id': '0xfa',
|
| 330 |
+
'native_coin': 'FTM',
|
| 331 |
+
'type': 'evm',
|
| 332 |
'rpc_endpoints': [
|
| 333 |
'https://rpc.ftm.tools/',
|
| 334 |
'https://fantom.publicnode.com',
|
|
|
|
| 336 |
],
|
| 337 |
'explorer': {
|
| 338 |
'api_url': 'https://api.ftmscan.com/api',
|
| 339 |
+
'api_key_name': 'etherscan'
|
| 340 |
},
|
| 341 |
'moralis_chain_id': 'fantom'
|
| 342 |
},
|
| 343 |
'solana': {
|
| 344 |
+
'name': 'Solana',
|
| 345 |
+
'chain_id': 'mainnet-beta',
|
| 346 |
+
'native_coin': 'SOL',
|
| 347 |
+
'type': 'solana',
|
| 348 |
'rpc_endpoints': [
|
| 349 |
'https://api.mainnet-beta.solana.com',
|
| 350 |
'https://solana-mainnet.publicnode.com',
|
| 351 |
'https://rpc.ankr.com/solana',
|
| 352 |
],
|
|
|
|
| 353 |
'explorer': {
|
| 354 |
+
'api_url': 'https://pro-api.solscan.io', # Pro API
|
| 355 |
+
'api_key_name': 'solscan'
|
| 356 |
},
|
|
|
|
| 357 |
'moralis_chain_id': 'sol'
|
| 358 |
}
|
| 359 |
}
|