Add temp-SMS tool (SMSPool-backed temp-number marketplace) to Pleiades

- sms.py: NumberProvider abstraction + SMSPoolProvider + routes (/sms, rent, poll, release) + admin (/admin/sms)
- Reuses existing sats wallet + BTCPay deposit flow; charges per-rental against balance_sats
- Code detection, lazy expiry/release, per-user session limit, per-IP rate limit
- Verified end-to-end: rented Discord US +1 534 251 1825, wallet 5000->3500 sats, release refunded SMSPool to $7.45
This commit is contained in:
drjones
2026-09-20 19:34:25 -07:00
parent 74268306d0
commit 48305b4ad1
6 changed files with 789 additions and 0 deletions

5
app.py
View File

@@ -953,6 +953,11 @@ def sitemap():
return app.response_class(body, mimetype="application/xml")
# temporary inbound-SMS tool (SMSPool-backed temp-number marketplace)
import sms
sms.init_sms_app(app, login_required, current_user)
if __name__ == "__main__":
db.init_db()
app.run(host="127.0.0.1", port=5000, debug=False)