Skip to content

feat: custom polling interval for select chains#258

Open
arpan-jain wants to merge 7 commits intomainfrom
feat/custom_polling_interval
Open

feat: custom polling interval for select chains#258
arpan-jain wants to merge 7 commits intomainfrom
feat/custom_polling_interval

Conversation

@arpan-jain
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a chain-aware default polling interval for kernelAccountClient, enabling faster polling on a curated set of chain IDs while keeping the existing pollingInterval override behavior.

Changes:

  • Introduced FAST_POLLING_CHAIN_IDS constant in core constants.
  • Updated createKernelAccountClient to default pollingInterval to 250ms for fast-polling chains, otherwise 1000ms, unless explicitly provided by the caller.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/core/constants.ts Adds the FAST_POLLING_CHAIN_IDS list used to determine faster default polling behavior.
packages/core/clients/kernelAccountClient.ts Computes a chain-dependent default polling interval and applies it when parameters.pollingInterval is not provided.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants