MetaMask / utils

Various JavaScript / TypeScript utilities of wide relevance to the MetaMask codebase.
https://metamask.github.io/utils/index.html
ISC License
31 stars 10 forks source link

feat(caip): add .toCaipChainId + KnownCaipNamespace #175

Closed ccharly closed 7 months ago

ccharly commented 7 months ago

This adds some new helpers regarding CAIP-2 chain IDs.

This is in regard to the on-going work of adding those chain-agnostics IDs into our Snap keyring implementations.

Initially those helpers were living on https://github.com/MetaMask/eth-snap-keyring repository, but it feels more natural to have them here. Moreover, we might use them elsewhere.

Related