Files
GoblinPay/templates/admin.html
T
2ro 33c5ee568f
ci / fmt / clippy / test (push) Has been cancelled
chore: retire the dormant Nym client (Nym → Tor migration cleanup)
Production has run GP_NYM=off for over a day: GoblinPay already reaches its
relays over clearnet, which is the end state the ecosystem's Nym → Tor move
aims for. This removes the now-dead ported Nym client and its plumbing. Pure
subtraction — the code path that remains is exactly the one already running
live, so there is no behavior change beyond "GoblinPay still boots and still
moves money." Per TOR-MIGRATION-PLAN.md.

Removed:
- crates/gp-nostr/src/nym/ (mod, transport, nymproc, dns — 599 lines).
- smolmix + hickory-proto (and the nym-only rand) deps from gp-nostr, and
  their transitive tree from Cargo.lock.
- GP_NYM config plumbing (gp-core config: field, parse, default, summary),
  the opts.nym service branch, the main.rs warm-up wiring, and the admin
  dashboard Nym row.
- The nym leg of the CI sibling-checkout gate (.github + .gitea), the
  `COPY nym` / sibling mentions in Dockerfile/compose/install.sh, and the
  GP_NYM copy in README, .env.example, and the three connector docs.

GoblinPay does not gain a Tor transport of its own: it is receive-only
infrastructure, and the sender privacy that matters rides the paying
customer's own Goblin Wallet. Content encryption (NIP-44 in a NIP-59
gift-wrap) and the slatepack (grin1) path are untouched. The optional
onion-dialing and relay-list trim the plan flags are left for the owner.
2026-07-04 06:31:18 -04:00

69 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GoblinPay admin</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<main class="admin">
<h1>GoblinPay admin</h1>
<section class="config">
<h2>Configuration</h2>
<ul>
<li>Node: <code>{{ node_url }}</code></li>
<li>Default match mode: <code>{{ match_mode }}</code></li>
<li>Ingest: <code>{% if ingest %}on{% else %}off{% endif %}</code></li>
<li>Relays watched: <code>{{ relay_count }}</code></li>
<li>Webhook: <code>{% if webhook_configured %}configured{% else %}off{% endif %}</code>
(pending: {{ pending_webhooks }})</li>
<li>Endpub rotation: <code>{{ rotate_interval }}s</code>, overlap <code>{{ overlap_epochs }}</code></li>
</ul>
</section>
<section class="balances">
<h2>Users &amp; balances</h2>
{% if balances.is_empty() %}
<p class="hint">No tenant users yet.</p>
{% else %}
<table>
<thead><tr><th>User</th><th>Endpub (npub)</th><th>Epoch</th><th>Balance (GRIN)</th></tr></thead>
<tbody>
{% for b in balances %}
<tr><td>{{ b.user_id }}</td><td class="mono">{{ b.npub }}</td><td>{{ b.epoch }}</td><td>{{ b.balance_grin }}</td></tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</section>
<section class="payments">
<h2>Recent payments</h2>
{% if payments.is_empty() %}
<p class="hint">No payments recorded yet.</p>
{% else %}
<table>
<thead><tr><th>Slate</th><th>GRIN</th><th>Status</th><th>Invoice</th><th>User</th><th>Received</th></tr></thead>
<tbody>
{% for p in payments %}
<tr>
<td class="mono">{{ p.slate_id }}</td>
<td>{{ p.amount_grin }}</td>
<td class="status-{{ p.status }}">{{ p.status }}</td>
<td class="mono">{{ p.invoice_id }}</td>
<td class="mono">{{ p.user_id }}</td>
<td>{{ p.created_at }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</section>
<p class="footer">GoblinPay admin &middot; JSON API under <code>/admin/*</code></p>
</main>
</body>
</html>