Snapshot: full project state

This commit is contained in:
2026-10-06 23:43:23 -07:00
commit ed212cdbd9
21 changed files with 2090 additions and 0 deletions

32
panel_client.py Normal file
View File

@@ -0,0 +1,32 @@
"""Supernova — SMM reseller panel client.
Wraps the upstream SMM panel API (PerfectPanel-style v2).
Rate is per-1000 units.
"""
import requests
BASE = "https://therealblackmarket.net/api/v2"
class PanelClient:
def __init__(self, api_key):
self.key = api_key
def _call(self, action, **params):
data = {"key": self.key, "action": action}
data.update(params)
r = requests.post(BASE, data=data, timeout=25)
r.raise_for_status()
return r.json()
def balance(self):
return self._call("balance")
def services(self):
return self._call("services")
def place_order(self, service_id, link, quantity):
return self._call("add", service=service_id, link=link, quantity=quantity)
def order_status(self, order_id):
return self._call("status", order=order_id)