feat(indexer): provide optional mock transport for GraphQLIndexer (#607) - #695
Open
ZacLou wants to merge 15 commits into
Open
feat(indexer): provide optional mock transport for GraphQLIndexer (#607)#695ZacLou wants to merge 15 commits into
ZacLou wants to merge 15 commits into
Conversation
…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
…nduit-protocol#607) - Add GraphQLIndexerOptions interface with optional transport (typeof fetch) - Accept string endpoint or options object in constructor - Use injected transport when provided, fall back to global fetch otherwise - Export GraphQLIndexerOptions type from public index - Add tests covering mock transport query, body shape, and error status
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.
Closes #607.
Allows callers to inject a custom fetch implementation for testing or custom networking.