Skip to content

feat: hoodi chain support - #429

Merged
petar-omni merged 1 commit into
mainfrom
feat/hoodi-chain
Aug 18, 2025
Merged

petar-omni merged 1 commit into
mainfrom
feat/hoodi-chain

Conversation

@petar-omni

Copy link
Copy Markdown
Contributor

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:

  • Replaced all references to Holesky with Hoodi in the EVM chain configuration, including imports, supported chains list, chain mapping (evmChainsMap), and the EvmChainIds enum. (packages/widget/src/domain/types/chains/evm.ts, [1] [2] [3] [4]
  • Updated the Ledger family configuration to use ethereum_hoodi instead of ethereum_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:

  • Added a utility type KebabToCamelCase and 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-bot

changeset-bot Bot commented Aug 15, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8fb1ceb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stakekit/widget Patch

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

@vercel

vercel Bot commented Aug 15, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
dashboard-finery Ready Preview Comment Aug 15, 2025 1:34pm
dashboard-utila Ready Preview Comment Aug 15, 2025 1:34pm
staging-widget Ready Preview Comment Aug 15, 2025 1:34pm
stakekit-widget Ready Preview Comment Aug 15, 2025 1:34pm

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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 KebabToCamelCase utility 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.

Comment thread packages/widget/src/domain/types/chains/evm.ts
@petar-omni
petar-omni merged commit f37db5b into main Aug 18, 2025
9 checks passed
@petar-omni
petar-omni deleted the feat/hoodi-chain branch August 18, 2025 09:02

This branch was successfully deployed

4 active deployments
Preview – dashboard-finery 8fb1ceb6 Deployed Aug 15, 2025 by vercel[bot]
Preview – stakekit-widget 8fb1ceb6 Deployed Aug 15, 2025 by vercel[bot]
Preview – staging-widget 8fb1ceb6 Deployed Aug 15, 2025 by vercel[bot]
Preview – dashboard-utila 8fb1ceb6 Deployed Aug 15, 2025 by vercel[bot]
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