Skip to content

feat(dapp): admin dashboard by chain, and off-ramps from every chain - #197

Merged
0xDeon merged 2 commits into
mainfrom
feat/admin-by-chain
Nov 16, 2026
Merged

0xDeon merged 2 commits into
mainfrom
feat/admin-by-chain

Conversation

@0xDeon

@0xDeon 0xDeon commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

What changes

Overview

  • With All chains selected there is a new Every chain table. Each row has:
    • volume and share of the total;
    • a small volume line per day;
    • transactions, failures and success rate;
    • wallets;
    • how many rows came in without a type, so missing receipts show up.
  • What ran on each chain is a grid of chains against types, with count and value in each cell, shaded by how busy the cell is. Staking and unstaking show as their own types (they are logged as lending and withdrawing, and are told apart by action).
  • Apps used lists the venue each transaction went through, on chains that record one.
  • Top pairs now names the chain each pair ran on.

Transactions

  • New Chain and App columns.
  • Finer actions (supply, repay and the like) show under the type.

Payouts

  • Reads weave_orders, so it shows off-ramps from every chain:
    • totals;
    • by chain and by provider (Linq or Weave);
    • Needs attention: orders where the deposit left the wallet but the payout hasn't completed, each linked to that chain's explorer.
  • The Stellar naira form keeps its own section below.
  • Labels now say "Off-ramps" instead of "Cash-outs".

How

  • lib/server/admin-metrics.ts gains byChain, typesByChain, venues and offRamps.
  • Every new query keeps the network parameter and the fixed chain text, as the existing ones do.
  • Rows from before the chain was recorded count as Stellar.
  • Off-ramp orders are mainnet only, so testnet gets an empty report.

Tests

  • 2 new route tests.
  • 3 new SQL tests against a real Postgres in admin-metrics-chains.live.test.ts, run locally against the docker database: 21 of 21 pass, including the existing admin live tests.
  • Full non-live suite: 381 files, 9097 tests passing.
  • Typecheck, lint and Prettier are clean.
  • Screenshots were taken locally with sample rows across all six chains. The sample rows were removed afterwards.

Not in this PR

  • Perps still log no volume.
  • Transactions on other chains that arrive without a signed receipt are still saved as "Type not recorded". The new column shows how many there are.

All chains now shows each chain side by side: volume, share, a line
per day, transactions, success rate, wallets and how many rows came in
without a type. A grid of type by chain follows, with staking told
apart from lending by its action, and the apps transactions went
through. Top pairs name their chain.

Transactions gain chain and app columns. Payouts reads off-ramp orders
from every chain, by chain and by provider, with any stuck after a
deposit linked to that chain's explorer; the Stellar naira form keeps
its own section.
@netlify

netlify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for useintentadapp ready!

Name Link
🔨 Latest commit 4ae9d8b
🔍 Latest deploy log https://app.netlify.com/projects/useintentadapp/deploys/6afae684c3c8ba0f8ca2cf12
😎 Deploy Preview https://deploy-preview-197--useintentadapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for useintent ready!

Name Link
🔨 Latest commit 4ae9d8b
🔍 Latest deploy log https://app.netlify.com/projects/useintent/deploys/6afae68470c466edf64a9f5d
😎 Deploy Preview https://deploy-preview-197--useintent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

… top

The overview gains a naira paid out card and a naira column per chain:
naira actually paid to banks, from every provider's off-ramps and the
Stellar naira form. The light and dark toggle moves from the foot of
the sidebar, where it was easy to miss, to the top bar.
@0xDeon
0xDeon merged commit f90e379 into main Nov 16, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant