Skip to content

Conversation

@voltrevo
Copy link
Member

@voltrevo voltrevo commented Oct 8, 2025

Matching PR for extension: ethereum/kohaku-extension#61.

  • Includes 'Fix ts errors' originally proposed separately: Fix ts errors #16
  • Tidies up getRpcProvider by accepting the fields from Network as the only parameter, with only rpcUrls required
  • Adds HeliosEthersProvider as a compatible wrapper of HeliosProvider within the ethers system (by implementing AbstractProvider)
  • Uses HeliosEthersProvider when the new Network field useHelios is true
    • See getRpcProvider.ts

Test failures: I am still getting test failures, but I'm no longer getting any failures that don't also occur in main.
Most failures are also present in ambire-common. They are working on fixing this.

…r Helios, also useHelios instead of preferHelios, throw exception rather than falling back to non-Helios
@voltrevo voltrevo changed the title Use Helios when consensusRpcUrl is configured Enable Helios Oct 15, 2025
rpcUrls: string[]
explorerUrl: string
selectedRpcUrl: string
consensusRpcUrl?: string
Copy link
Member Author

Choose a reason for hiding this comment

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

Used for sourcing beacon chain data

nativeAssetId: NetworkInfo['nativeAssetId']
iconUrls?: string[]
isOptimistic?: NetworkInfo['isOptimistic']
isLinea?: boolean
Copy link
Member Author

Choose a reason for hiding this comment

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

Required for Helios to know the type of network it needs to sync

has7702: boolean
allowForce4337?: boolean
disabled?: boolean
batchMaxCount?: number
Copy link
Member Author

Choose a reason for hiding this comment

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

Pre-existing parameter that used to be part of a separate ProviderOptions param when calling getRpcProvider.

allowForce4337?: boolean
disabled?: boolean
batchMaxCount?: number
useHelios?: boolean
Copy link
Member Author

Choose a reason for hiding this comment

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

When true, use Helios if possible, or throw exception.

@voltrevo voltrevo marked this pull request as ready for review October 15, 2025 00:57
@voltrevo voltrevo changed the title Enable Helios Use Helios Oct 16, 2025
@karen-sarkisyan karen-sarkisyan self-assigned this Oct 18, 2025
@karen-sarkisyan karen-sarkisyan marked this pull request as draft October 18, 2025 08:14
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.

2 participants