-
Notifications
You must be signed in to change notification settings - Fork 2
feat: initial chain to connect to #511
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?
Conversation
🦋 Changeset detectedLatest commit: 5e97c17 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Pull request overview
This pull request adds support for specifying an initial blockchain network to connect to in the StakeKit widget by introducing the initialChain property.
Changes:
- Added optional
initialChainproperty to widget settings to allow pre-selecting a blockchain network - Updated RainbowKitProvider to receive and use the initial chain configuration
- Added changeset documenting the feature
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/widget/src/providers/settings/types.ts | Added initialChain property of type SupportedSKChainIds to SettingsProps |
| packages/widget/src/providers/rainbow-kit.tsx | Updated to extract initialChain from settings and pass it to RainbowKitProvider |
| .changeset/tall-falcons-boil.md | Added changeset documenting the new initial chain connection feature |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| preferredTokenYieldsPerNetwork?: PreferredTokenYieldsPerNetwork; | ||
| portalContainer?: HTMLElement; | ||
| tonConnectManifestUrl?: string; | ||
| initialChain?: SupportedSKChainIds; |
Copilot
AI
Jan 28, 2026
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.
The new initialChain feature lacks test coverage. Consider adding a test case that verifies the initialChain prop is correctly passed through the settings context to the RainbowKitProvider. This would ensure the initial chain selection works as expected when users provide this configuration.
This pull request introduces support for specifying an initial blockchain network (chain) to connect to in the StakeKit widget. This allows consumers of the widget to pre-select a chain, improving the user experience by streamlining the initial connection process.
Initial Chain Selection Feature:
initialChainproperty of typeSupportedSKChainIdsto theSettingsPropstype insettings/types.tsto allow specifying the initial chain. [1] [2]useSettingshook and theRainbowKitProviderWithThemecomponent inrainbow-kit.tsxto consume and forward theinitialChainproperty to the underlying provider, enabling the widget to honor the initial chain selection. [1] [2]Changelog: