Skip to content

Commit f075c1f

Browse files
committed
feat: add slip-44 identifier for added chains
1 parent b65917a commit f075c1f

File tree

12 files changed

+960
-238
lines changed

12 files changed

+960
-238
lines changed

eslint-suppressions.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,17 +1477,6 @@
14771477
"count": 1
14781478
}
14791479
},
1480-
"packages/network-enablement-controller/src/NetworkEnablementController.ts": {
1481-
"@typescript-eslint/explicit-function-return-type": {
1482-
"count": 1
1483-
},
1484-
"@typescript-eslint/prefer-nullish-coalescing": {
1485-
"count": 2
1486-
},
1487-
"id-length": {
1488-
"count": 7
1489-
}
1490-
},
14911480
"packages/network-enablement-controller/src/selectors.ts": {
14921481
"@typescript-eslint/explicit-function-return-type": {
14931482
"count": 3

packages/network-enablement-controller/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Add `nativeAssetIdentifiers` state property that maps CAIP-2 chain IDs to CAIP-19-like native asset identifiers (e.g., `eip155:1/slip44:60`) ([#7609](https://github.com/MetaMask/core/pull/7609))
13+
- Add `Slip44Service` to look up SLIP-44 coin types by native currency symbol ([#7609](https://github.com/MetaMask/core/pull/7609))
14+
- Add `@metamask/slip44` dependency for SLIP-44 coin type lookups ([#7609](https://github.com/MetaMask/core/pull/7609))
15+
- Subscribe to `NetworkController:stateChange` to update `nativeAssetIdentifiers` when a network's native currency changes ([#7609](https://github.com/MetaMask/core/pull/7609))
16+
1017
### Changed
1118

1219
- Upgrade `@metamask/utils` from `^11.8.1` to `^11.9.0` ([#7511](https://github.com/MetaMask/core/pull/7511))

packages/network-enablement-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"@metamask/messenger": "^0.3.0",
5555
"@metamask/multichain-network-controller": "^3.0.1",
5656
"@metamask/network-controller": "^28.0.0",
57+
"@metamask/slip44": "^4.3.0",
5758
"@metamask/transaction-controller": "^62.9.1",
5859
"@metamask/utils": "^11.9.0",
5960
"reselect": "^5.1.1"

0 commit comments

Comments
 (0)