feat: hoodi chain support - #429
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 8fb1ceb 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.
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request adds support for the Hoodi blockchain while removing Holesky chain support, and improves type safety for chain ID enums through a new utility type that validates naming conventions.
- Replaces Holesky chain references with Hoodi across EVM and Ledger configurations
- Introduces
KebabToCamelCaseutility type to validate enum naming conventions - Updates chain IDs and imports to reflect the new Hoodi chain integration
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/widget/src/types/utils.ts | Adds KebabToCamelCase utility type for string transformation |
| packages/widget/src/domain/types/chains/evm.ts | Replaces Holesky with Hoodi chain configuration and adds type validation |
| packages/widget/src/domain/types/chains/ledger.ts | Updates Ledger family to use ethereum_hoodi instead of ethereum_holesky |
| packages/widget/src/domain/types/chains/substrate.ts | Adds type validation using new utility type |
| packages/widget/src/domain/types/chains/misc.ts | Adds type validation using new utility type |
| .changeset/stale-swans-report.md | Documents the Hoodi chain support feature |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Philippoes
approved these changes
Aug 17, 2025
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds support for the Hoodi chain to the widget and improves type safety for chain ID enums. The main changes include replacing the previous Holesky chain references with Hoodi, updating related configuration and type definitions, and introducing a utility type for converting kebab-case strings to CamelCase, which is now used to validate enum mappings.
Hoodi chain support and configuration updates:
evmChainsMap), and theEvmChainIdsenum. (packages/widget/src/domain/types/chains/evm.ts, [1] [2] [3] [4]ethereum_hoodiinstead ofethereum_holesky, reflecting the new chain support. (packages/widget/src/domain/types/chains/ledger.ts, packages/widget/src/domain/types/chains/ledger.tsL99-R102)Type safety improvements:
KebabToCamelCaseand used it to assert that chain ID enums (EvmChainIds,MiscChainIds,SubstrateChainIds) match the expected naming conventions, improving type safety and maintainability. (packages/widget/src/types/utils.ts, [1];packages/widget/src/domain/types/chains/evm.ts, [2] [3];packages/widget/src/domain/types/chains/misc.ts, [4] [5];packages/widget/src/domain/types/chains/substrate.ts, [6] [7]Changelog:
.changeset/stale-swans-report.md, .changeset/stale-swans-report.mdR1-R5)