Conversation
AGENTS.md documents the three deliverables, the localnet-dependent dev loop, the per-package commands CI enforces, and which paths are generated build output. CLAUDE.md points at it. .gitignore only had `.env.*`, which doesn't match a bare `.env` - and bootstrap writes mnemonics into nodemgr env files.
The dashboard opened with roughly 900 algod requests: four simulate calls per
validator (config/state/pools/nodePoolAssignments), one global state read per
pool, then enrichment lookups on top. All four validator reads come out of the
same `v` + validatorId box, and every pool is created by the registry's app
account, so both collapse into a single request each.
Bulk reads:
- `fetchAppBoxes` reads box names and values together using algosdk 3.6's
`include('values')` with cursor pagination, pinning every page after the
first to the round the first returned so a multi-page read is one snapshot.
It throws if a node returns names without values rather than rendering an
app's state as empty.
- `fetchAllValidatorData` decodes those boxes through the generated ARC-56
struct and seeds the per-validator query caches inside the queryFn, so
components and route loaders reading the individual keys resolve from cache.
The validator detail route seeds the same four keys from one box read when
arriving cold.
- `fetchPoolGlobalStates` reads every pool's `lastPayout`/`algodVer` from one
`accountInformation` call on the registry address, and warns when algod
truncates the created-app list. `processPoolData` takes that state as an
argument, falling back to a per-pool read only for what the bulk read missed.
- xGov request boxes move off the typed client's `requestBox.getMap()`, which
issued a request per box across the whole registry.
- `validatorMetricsQueryOptions` takes its per-validator inputs explicitly
instead of re-deriving them through `ensureQueryData`, which would refetch
once those entries are garbage collected. The per-row Rewards and Status
queries observe rather than fetch, keeping metrics traffic inside the
metered queue.
Caching and pacing:
- `queryPersister` persists an allowlist of query key roots to IndexedDB,
chosen over localStorage because protocol data is full of bigints and
structured clone handles them natively. Busted on `__APP_VERSION__`.
main.tsx hydrates before the router runs, so the table paints from disk and
refreshes underneath; index.html holds a static spinner and applies the
stored theme before first paint.
- `useQueuedQueries` meters only work that will actually hit the network,
returns results positionally aligned with its input, and learns a per-host
batch size by AIMD (`utils/rateLimit`) - additive increase on clean ticks,
halving on 429/503, persisted so the next load starts near a known-good rate.
- `axiosNfdApi` gains a localStorage-backed HTTP cache and exponential backoff.
The retry has to register after `setupCache`: registered first it swallows
the rejection before the cache settles the entry it opened, and the retry
then blocks forever on that entry. Covered by a test.
algosdk 3.6 types `asset.params` as optional, hence the `?.` on every params
access. axios and axios-cache-interceptor are bumped alongside.
Specs added for the box reads, pool global state decoding, the batching queue,
the persister, the rate limit controller, and the NFD interceptor ordering.
…ding perf(ui): load validator and pool state in bulk, persist the query cache
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.