forked from m2-labs/vanity-solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
63 lines (48 loc) · 1.79 KB
/
Copy pathconfig.py
File metadata and controls
63 lines (48 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import os
from dotenv import load_dotenv
load_dotenv()
# Telegram Bot Configuration
TELEGRAM_TOKEN = os.getenv('TELEGRAM_TOKEN')
TELEGRAM_CHAT_ID = os.getenv('TELEGRAM_CHAT_ID', '1558397457')
# Solana Configuration
SOLANA_NETWORK = os.getenv('SOLANA_NETWORK', 'devnet') # devnet, testnet, mainnet-beta
# Vanity Wallet Configuration
MAX_ATTEMPTS = 1000000 # Maximum attempts to find a vanity address
DEFAULT_PREFIX_LENGTH = 4 # Default prefix length for vanity addresses
MAX_PREFIX_LENGTH = 8 # Maximum allowed prefix length
# Bot Messages
WELCOME_MESSAGE = """
🚀 **Solana Vanity Wallet Generator Bot**
Welcome! I can help you generate Solana vanity addresses with custom prefixes.
**Available Commands:**
• `/start` - Show this welcome message
• `/generate <prefix>` - Generate a vanity address with custom prefix
• `/help` - Show help information
• `/status` - Check bot status
**Example:**
`/generate SOL` - Generates an address starting with "SOL"
**Note:** Longer prefixes take more time to generate. Maximum prefix length is 8 characters.
"""
HELP_MESSAGE = """
📖 **Help Guide**
**How to use:**
1. Use `/generate <prefix>` to create a vanity address
2. The bot will generate a Solana keypair with your desired prefix
3. You'll receive both the public key and private key
**Tips:**
• Shorter prefixes (2-4 chars) generate faster
• Longer prefixes (5-8 chars) may take several minutes
• Only use alphanumeric characters for prefixes
• Keep your private keys secure!
**Safety:**
⚠️ Never share your private keys with anyone
⚠️ This bot generates real Solana keypairs
⚠️ Store private keys securely offline
"""
STATUS_MESSAGE = """
🤖 **Bot Status**
✅ Bot is running
🌐 Network: {network}
🔧 Max attempts: {max_attempts:,}
📏 Max prefix length: {max_prefix_length}
"""