Skip to content

Optimize RPC usage#58

Merged
fr1jo merged 1 commit into
mainfrom
feature/rpc-cost-optimization
May 7, 2026
Merged

Optimize RPC usage#58
fr1jo merged 1 commit into
mainfrom
feature/rpc-cost-optimization

Conversation

@fr1jo

@fr1jo fr1jo commented May 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • enable ethers JSON-RPC batching and optional RPC method counting
  • add run-scoped memoization, Multicall3, and immutable historical RPC caching
  • reduce redundant Tractor, inflow, season-seeder, and timestamp lookup RPC reads
  • add focused tests for multicall, RPC cache, inflow memoization, and season seeding

Validation

  • npm test -- --runInBand
  • git diff --check
  • live local indexer smoke run with LOG_RPC=1 completed after fixes

Deployment Notes

  • no database migration in this patch
  • no public API route or response-shape change intended
  • production deploy is triggered by merge to main via GitHub Actions SSH deploy workflow
  • recommended first step is manual dev deployment from this branch, then compare key API endpoints before merging

@fr1jo fr1jo marked this pull request as ready for review May 7, 2026 18:47
@fr1jo fr1jo merged commit 9bd4cd5 into main May 7, 2026
1 check passed
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.

1 participant