# Honeypot Detector Python SDK
# pip install requests
# Usage: result = HoneypotDetector.score('0xTOKEN', 'ethereum')
import requests

class HoneypotDetector:
    BASE = 'https://honeypot-detector.soft-but-savage31.workers.dev'

    @staticmethod
    def score(address, chain='ethereum'):
        return requests.get(f'{HoneypotDetector.BASE}/score', params={'address': address, 'chain': chain}).json()

    @staticmethod
    def deployer(address, chain='ethereum'):
        return requests.get(f'{HoneypotDetector.BASE}/deployer', params={'address': address, 'chain': chain}).json()

    @staticmethod
    def lplock(address, chain='ethereum'):
        return requests.get(f'{HoneypotDetector.BASE}/lplock', params={'address': address, 'chain': chain}).json()

    @staticmethod
    def bundle(address, chain='ethereum'):
        return requests.get(f'{HoneypotDetector.BASE}/bundle', params={'address': address, 'chain': chain}).json()

    @staticmethod
    def danger_feed(min_score=50, limit=20):
        return requests.get(f'{HoneypotDetector.BASE}/danger-feed', params={'minScore': min_score, 'limit': limit}).json()