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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user