Skip to content
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

refactor!: use better CAIP types + add generic type in definePattern #150

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

ccharly
Copy link
Collaborator

@ccharly ccharly commented Jan 17, 2025

Now those types have been moved to @metamask/utils, so just re-export them to keep them in the API.

Also, we are still re-defining the structs, since our definePattern allow for better error messages.

This is BREAKING for the keyring-api since the CAIP types used in the public API will now be more restrictive (${string}:${string}/${string}:${string} for CaipAssetType rather than a simple string)

@ccharly ccharly requested a review from a team as a code owner January 17, 2025 11:17
@ccharly ccharly changed the title refactor(keyring-api): use CAIP types from @metamask/utils refactor!(keyring-api): use better CAIP types Jan 17, 2025
@ccharly ccharly changed the title refactor!(keyring-api): use better CAIP types refactor(keyring-api)!: use better CAIP types Jan 17, 2025
@ccharly ccharly changed the title refactor(keyring-api)!: use better CAIP types refactor!: use better CAIP types Jan 17, 2025
@ccharly ccharly changed the title refactor!: use better CAIP types refactor!: use better CAIP types + add generic type in definePattern Jan 17, 2025
@ccharly ccharly added this pull request to the merge queue Jan 17, 2025
Merged via the queue into main with commit 93c1b06 Jan 17, 2025
29 checks passed
@ccharly ccharly deleted the feat/use-caip-from-utils branch January 17, 2025 14:20
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