-
Notifications
You must be signed in to change notification settings - Fork 4
Use Helios #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Use Helios #19
Conversation
…xpensive warmup upon construction
…r Helios, also useHelios instead of preferHelios, throw exception rather than falling back to non-Helios
| rpcUrls: string[] | ||
| explorerUrl: string | ||
| selectedRpcUrl: string | ||
| consensusRpcUrl?: string |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
- Force usage of regular JsonRpcProvider for unit testing, no Helios - Only use Helios to test getRpcProvider factory
Matching PR for extension: ethereum/kohaku-extension#61.
getRpcProviderby accepting the fields fromNetworkas the only parameter, with onlyrpcUrlsrequiredHeliosEthersProvideras a compatible wrapper ofHeliosProviderwithin theetherssystem (by implementingAbstractProvider)HeliosEthersProviderwhen the newNetworkfielduseHeliosis truegetRpcProvider.tsTest 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.