Skip to content

Event block range and finality changes#435

Merged
arthcp merged 1 commit intomasterfrom
chains
Apr 13, 2026
Merged

Event block range and finality changes#435
arthcp merged 1 commit intomasterfrom
chains

Conversation

@arthcp
Copy link
Copy Markdown
Contributor

@arthcp arthcp commented Apr 13, 2026

Summary by CodeRabbit

  • New Features

    • Added event block range configuration support for chains, with customizable overrides for HyperEVM and Monad.
  • Enhancements

    • Extended finality configurations for SEI, SwellChain, and Monad with low, medium, and high finality values.
  • Chores

    • Bumped version to 1.0.136.

@arthcp arthcp merged commit a832590 into master Apr 13, 2026
0 of 3 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 13, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 92574e6a-76fc-4ef6-ab42-1fd7ae42d840

📥 Commits

Reviewing files that changed from the base of the PR and between ade0b2c and 97fb427.

📒 Files selected for processing (6)
  • scripts/rpcConfig/constants/eventBlockRange.ts
  • scripts/rpcConfig/constants/finality.ts
  • scripts/rpcConfig/constants/index.ts
  • scripts/rpcConfig/constants/version.ts
  • scripts/rpcConfig/rpcConfig.ts
  • src/index.ts

Walkthrough

Introduced eventBlockRange configuration system with chain-specific overrides for HYPEREVM and MONAD, extended finality overrides for SEI, SWELLCHAIN, and MONAD chains, integrated the new config into RPC chain data, bumped version to 1.0.136, and exported new utilities through index files.

Changes

Cohort / File(s) Summary
New Event Block Range Configuration
scripts/rpcConfig/constants/eventBlockRange.ts
Added getEventBlockRange function and eventBlockRangeOverrides mapping. Returns override values for HYPEREVM and MONAD (1000 blocks each), undefined otherwise.
Extended Chain Finality Configuration
scripts/rpcConfig/constants/finality.ts
Added finality overrides for SEI, SWELLCHAIN, and MONAD with consistent low/medium/high values (1/10/100).
Config & Export Updates
scripts/rpcConfig/constants/index.ts, scripts/rpcConfig/rpcConfig.ts, src/index.ts
Re-exported eventBlockRange module; integrated getEventBlockRange() into per-chain config data; exposed getEventBlockRange at package root.
Version Increment
scripts/rpcConfig/constants/version.ts
Bumped PROD version from 1.0.131 to 1.0.136.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

✨ New chains join the fold,
Block ranges configured, finality gold,
Overrides stacked for SEI and friends,
A minor bump where this thread ends. 🔗

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chains

Comment @coderabbitai help to get the list of available commands and usage tips.

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