@exodus/assets
Advanced tools
+10
-0
@@ -6,2 +6,12 @@ # Change Log | ||
| ## [11.10.0](https://github.com/ExodusMovement/assets/compare/@exodus/assets@11.9.0...@exodus/assets@11.10.0) (2026-05-05) | ||
| ### Features | ||
| * feat(assets): allow supplying keyType, derivationAlgorithm and bip44 constant when creating a delisted asset (#7978) | ||
| ## [11.9.0](https://github.com/ExodusMovement/assets/compare/@exodus/assets@11.8.0...@exodus/assets@11.9.0) (2026-04-14) | ||
@@ -8,0 +18,0 @@ |
+3
-3
| { | ||
| "name": "@exodus/assets", | ||
| "version": "11.9.0", | ||
| "version": "11.10.0", | ||
| "description": "Exodus assets", | ||
@@ -29,3 +29,3 @@ "type": "module", | ||
| "@exodus/cardano-meta": "^2.2.0", | ||
| "@exodus/combined-assets-meta": "^3.10.0" | ||
| "@exodus/combined-assets-meta": "^3.11.0" | ||
| }, | ||
@@ -48,3 +48,3 @@ "scripts": { | ||
| }, | ||
| "gitHead": "6c9c8238ef62c3b7d989f388d825d03d2921b746" | ||
| "gitHead": "7b6397ad9b15d01cf196ea3e20b640300531b6a7" | ||
| } |
@@ -13,3 +13,6 @@ import bip44Constants from '@exodus/bip44-constants/by-ticker.js' | ||
| encodePublicKey, | ||
| getKeyIdentifier, | ||
| getKeyIdentifier: providedGetKeyIdentifier, | ||
| bip44: providedBip44, | ||
| keyType, | ||
| derivationAlgorithm, | ||
| }) => { | ||
@@ -33,5 +36,17 @@ assert( | ||
| assert( | ||
| getKeyIdentifier === undefined || typeof getKeyIdentifier === 'function', | ||
| providedGetKeyIdentifier === undefined || typeof providedGetKeyIdentifier === 'function', | ||
| 'createDelistedAssetFactory: "getKeyIdentifier" expected to be a function' | ||
| ) | ||
| assert( | ||
| providedBip44 === undefined || typeof providedBip44 === 'number', | ||
| 'createDelistedAssetFactory: "bip44" expected to be a number' | ||
| ) | ||
| assert( | ||
| keyType === undefined || typeof keyType === 'string', | ||
| 'createDelistedAssetFactory: "keyType" expected to be a string' | ||
| ) | ||
| assert( | ||
| derivationAlgorithm === undefined || typeof derivationAlgorithm === 'string', | ||
| 'createDelistedAssetFactory: "derivationAlgorithm" expected to be a string' | ||
| ) | ||
@@ -44,3 +59,3 @@ const assets = connectAssetsList(assetsList) | ||
| const bip44 = bip44Constants[base.ticker] | ||
| const bip44 = providedBip44 ?? bip44Constants[base.ticker] | ||
@@ -55,2 +70,6 @@ const keys = { encodePrivate: encodePrivateKey, encodePublic: encodePublicKey } | ||
| const getKeyIdentifier = | ||
| providedGetKeyIdentifier ?? | ||
| createGetKeyIdentifier({ bip44, assetName: base.name, derivationAlgorithm, keyType }) | ||
| const getTokens = () => | ||
@@ -65,3 +84,3 @@ Object.values(assets) | ||
| getDefaultAddressPath: () => defaultAddressPath, | ||
| getKeyIdentifier: getKeyIdentifier || createGetKeyIdentifier({ bip44, assetName: base.name }), | ||
| getKeyIdentifier, | ||
| getTokens, | ||
@@ -68,0 +87,0 @@ hasFeature: (feature) => !!features[feature], // @deprecated use api.features instead |
34581
2.73%521
3.58%