Conversation
ZacLou
force-pushed
the
feat/cache-metrics-611
branch
from
September 5, 2026 11:15
7178ce5 to
5aa8e7f
Compare
…uit-protocol#606) - Export resolveFee from src/index.ts so consumers can compute effective fees - Add fee and feeMultiplier rows to ConduitClient configuration table - Add Fee Precedence section to README explaining the resolution order: explicit fee > feeMultiplier * BASE_FEE > BASE_FEE Closes conduit-protocol#606
…l#627) - Add .size-limit.json with 80KB gzip limit for index entry and 30KB for utils - Add size-limit.yml GitHub Actions workflow (runs after build) - Add @size-limit/preset-small-lib devDependency and size-limit npm script
…ol#613) - Add typedoc.json configuration (entryPoints, output dir, sorting) - Add docs.yml GitHub Actions workflow: builds typedoc on PR/push, deploys to GitHub Pages on main merge - Add typedoc devDependency and docs npm script - Exclude tests, private/protected members, and external deps from docs
- Add cron trigger (02:00 UTC daily) to the existing CI workflow - Keeps existing push/PR triggers so E2E still runs on every change - Nightly runs catch browser drift and flaky regressions without blocking PRs
…l#611) - Add _cacheHits / _cacheMisses counters to FactoryModule - Increment hit on positive/negative cache lookup, miss on RPC fallback - Add getCacheMetrics() returning { hits, misses, size } - Add resetCacheStats() for measurement windows - Wire getCacheMetrics() through ConduitClient facade - Returns null when factoryAddress was not configured
ZacLou
force-pushed
the
feat/cache-metrics-611
branch
from
September 6, 2026 01:14
5aa8e7f to
a1f4536
Compare
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.
Summary
Addresses #611
Changes
Added
getCacheMetrics()to bothFactoryModuleandStreamsModule(delegating to the factory):FactoryModule
_cacheHitsand_cacheMissesprivate counters_cacheMisseson every cache miss (falls through to contract call)getCacheMetrics()returns{ hits, misses, size, hitRate }clearAddressCache()StreamsModule
getCacheMetrics()proxy delegating tothis._factory.getCacheMetrics()Usage
Files changed
src/factory.ts- counters + getCacheMetrics()src/streams.ts- getCacheMetrics() proxy