Skip to content

feat(indexer): provide optional mock transport for GraphQLIndexer (#607) - #695

Open
ZacLou wants to merge 15 commits into
conduit-protocol:mainfrom
ZacLou:feat/mock-transport-indexer-607
Open

feat(indexer): provide optional mock transport for GraphQLIndexer (#607)#695
ZacLou wants to merge 15 commits into
conduit-protocol:mainfrom
ZacLou:feat/mock-transport-indexer-607

Conversation

@ZacLou

@ZacLou ZacLou commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Closes #607.

Allows callers to inject a custom fetch implementation for testing or custom networking.

ZacLou and others added 15 commits September 6, 2026 03:51
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide a mock transport for GraphQLIndexer

1 participant