- Bitcoin and Ethereum address tracking - Identifies first purchase from exchanges - Interactive CLI mode with historical price lookup links - Test suite with public addresses - Documentation for Claude Code 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
70 lines
2.0 KiB
Python
70 lines
2.0 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
Test script for crypto tracker with example addresses
|
|
"""
|
|
|
|
from crypto_tracker import CryptoTracker
|
|
|
|
def test_bitcoin():
|
|
"""Test with a real Bitcoin address"""
|
|
print("\n" + "="*70)
|
|
print("TEST 1: Bitcoin Address")
|
|
print("="*70)
|
|
|
|
tracker = CryptoTracker()
|
|
|
|
# Using a known address with public transactions
|
|
# This is a public address, not a personal wallet
|
|
test_address = "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" # Genesis block address
|
|
|
|
results = tracker.track_bitcoin_address(test_address)
|
|
|
|
return results
|
|
|
|
def test_ethereum():
|
|
"""Test with a real Ethereum address"""
|
|
print("\n" + "="*70)
|
|
print("TEST 2: Ethereum Address")
|
|
print("="*70)
|
|
|
|
tracker = CryptoTracker()
|
|
|
|
# Using Ethereum Foundation address (public)
|
|
test_address = "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae"
|
|
|
|
results = tracker.track_ethereum_address(test_address)
|
|
|
|
return results
|
|
|
|
if __name__ == "__main__":
|
|
print("🧪 RULARE TESTE PENTRU CRYPTO TRACKER")
|
|
print("=" * 70)
|
|
print("\nAceste teste folosesc adrese publice cunoscute")
|
|
print("pentru a verifica că programul funcționează corect.\n")
|
|
|
|
input("Apasă ENTER pentru a continua cu testele...")
|
|
|
|
# Test Bitcoin
|
|
try:
|
|
btc_results = test_bitcoin()
|
|
print("\n✅ Test Bitcoin: SUCCES")
|
|
except Exception as e:
|
|
print(f"\n❌ Test Bitcoin: EȘUAT - {e}")
|
|
|
|
input("\nApasă ENTER pentru testul Ethereum...")
|
|
|
|
# Test Ethereum
|
|
try:
|
|
eth_results = test_ethereum()
|
|
print("\n✅ Test Ethereum: SUCCES")
|
|
except Exception as e:
|
|
print(f"\n❌ Test Ethereum: EȘUAT - {e}")
|
|
|
|
print("\n" + "="*70)
|
|
print("🎉 TESTE COMPLETE!")
|
|
print("="*70)
|
|
print("\n💡 Dacă ai văzut rezultate mai sus, programul funcționează!")
|
|
print(" Acum poți să-l folosești cu propriile tale adrese.\n")
|
|
print(" Rulează: python crypto_tracker.py")
|
|
print("="*70)
|