feat(explorer): dynamic feeds, wallet SSR alignment, and detail pagination

Align wallet SSR with report token-list, dedupe featured v1 tokens, refresh home and wallet snapshots on a 60s cadence, and drive vanilla SPA chain add/watch from API metadata. Add shared pagination/tabs for address, token, and transaction pages, extend token aggregation helpers, and harden stats API with tests and health checks.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
defiQUG
2026-05-22 17:58:27 -07:00
parent ca1394c579
commit 4b747f0309
23 changed files with 1030 additions and 166 deletions

View File

@@ -11,6 +11,15 @@ describe('resolveExplorerApiBase', () => {
).toBe('https://blockscout.defi-oracle.io')
})
it('uses browser HTTPS origin when an explicit same-host HTTP value is present', () => {
expect(
resolveExplorerApiBase({
envValue: 'http://explorer.d-bis.org',
browserOrigin: 'https://explorer.d-bis.org',
})
).toBe('https://explorer.d-bis.org')
})
it('falls back to same-origin in the browser when env is empty', () => {
expect(
resolveExplorerApiBase({