Skip to content

Conversation

@MajorLift
Copy link
Contributor

@MajorLift MajorLift commented Aug 28, 2025

This commit refactors KnownCaipNamespacedChainId (introduced in #258) into a generic type by adding a Namespace type parameter. This allows the type to be narrowed down to chain IDs with a specific namespace.

This is not a breaking change, as Namespace defaults to a type union of known CAIP namespaces. The type's previous behavior is preserved when its generic type parameter is omitted.

@MajorLift MajorLift self-assigned this Aug 28, 2025
@MajorLift MajorLift force-pushed the jongsun/feat/250828-make-generic-KnownCaipNamespacedChainId branch from 2a6ad40 to 65c5896 Compare August 28, 2025 15:07
@MajorLift MajorLift changed the title Make KnownCaipNamespacedChainId generic upon Namespace type parameter Make KnownCaipNamespacedChainId generic over Namespace type parameter Aug 28, 2025
@MajorLift MajorLift marked this pull request as ready for review August 28, 2025 15:13
@MajorLift MajorLift requested a review from erwolff August 28, 2025 15:14
Copy link
Contributor

@erwolff erwolff left a comment

Choose a reason for hiding this comment

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

Good improvement!

@MajorLift MajorLift merged commit 35fb5e8 into main Aug 28, 2025
22 checks passed
@MajorLift MajorLift deleted the jongsun/feat/250828-make-generic-KnownCaipNamespacedChainId branch August 28, 2025 15:48
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