@metamask-previews/core-backend 6.1.1-preview-152e02d → 6.2.0-preview-e0f8f1907
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/dist/api/tokens/types.cjs.map +1 -1
- package/dist/api/tokens/types.d.cts +2 -0
- package/dist/api/tokens/types.d.cts.map +1 -1
- package/dist/api/tokens/types.d.mts +2 -0
- package/dist/api/tokens/types.d.mts.map +1 -1
- package/dist/api/tokens/types.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [6.2.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add `includeOccurrences` option to `V3AssetsQueryOptions` so the tokens v3 assets API can be called with `includeOccurrences: true` to return token list occurrence counts in the response ([#8227](https://github.com/MetaMask/core/pull/8227))
|
|
15
|
+
|
|
10
16
|
## [6.1.1]
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -238,7 +244,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
238
244
|
- **Type definitions** - Comprehensive TypeScript types for transactions, balances, WebSocket messages, and service configurations
|
|
239
245
|
- **Logging infrastructure** - Structured logging with module-specific loggers for debugging and monitoring
|
|
240
246
|
|
|
241
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/core-backend@6.
|
|
247
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/core-backend@6.2.0...HEAD
|
|
248
|
+
[6.2.0]: https://github.com/MetaMask/core/compare/@metamask/core-backend@6.1.1...@metamask/core-backend@6.2.0
|
|
242
249
|
[6.1.1]: https://github.com/MetaMask/core/compare/@metamask/core-backend@6.1.0...@metamask/core-backend@6.1.1
|
|
243
250
|
[6.1.0]: https://github.com/MetaMask/core/compare/@metamask/core-backend@6.0.0...@metamask/core-backend@6.1.0
|
|
244
251
|
[6.0.0]: https://github.com/MetaMask/core/compare/@metamask/core-backend@5.1.1...@metamask/core-backend@6.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../../../src/api/tokens/types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * Tokens API types for the API Platform Client.\n * API: tokens.api.cx.metamask.io\n */\n\n// ============================================================================\n// SUPPORTED NETWORKS TYPES\n// ============================================================================\n\n/** Token supported networks response (v1) */\nexport type V1TokenSupportedNetworksResponse = {\n fullSupport: string[];\n};\n\n/** Token supported networks response (v2) - includes partial support */\nexport type V2TokenSupportedNetworksResponse = {\n fullSupport: string[];\n partialSupport: string[];\n};\n\n// ============================================================================\n// ASSET TYPES\n// ============================================================================\n\n/** Query options for V3 Assets endpoint */\nexport type V3AssetsQueryOptions = {\n /** Include icon URL in response */\n includeIconUrl?: boolean;\n /** Include market data in response */\n includeMarketData?: boolean;\n /** Include metadata in response */\n includeMetadata?: boolean;\n /** Include labels in response */\n includeLabels?: boolean;\n /** Include RWA data in response */\n includeRwaData?: boolean;\n /** Include DEX/aggregator integrations in response */\n includeAggregators?: boolean;\n};\n\n// ============================================================================\n// V3 ASSET RESPONSE TYPES\n// ============================================================================\n\n/** Fee information for an asset */\nexport type V3AssetFees = {\n avgFee: number;\n maxFee: number;\n minFee: number;\n};\n\n/** Honeypot detection status */\nexport type V3AssetHoneypotStatus = {\n honeypotIs: boolean;\n goPlus?: boolean;\n};\n\n/** Storage slot information for the contract */\nexport type V3AssetStorage = {\n balance: number;\n approval: number;\n};\n\n/** Localized description */\nexport type V3AssetDescription = {\n en: string;\n};\n\n/**\n * Asset response from V3 Assets endpoint.\n * All fields are stored in state (FungibleAssetMetadata).\n */\nexport type V3AssetResponse = {\n /** CAIP-19 asset ID (e.g., \"eip155:1/erc20:0x...\") */\n assetId: string;\n /** Asset display name */\n name: string;\n /** Asset symbol */\n symbol: string;\n /** Decimal places */\n decimals: number;\n /** Icon URL (maps to `image` in state) */\n iconUrl?: string;\n /** CoinGecko ID for price lookups */\n coingeckoId?: string;\n /** Number of token list occurrences */\n occurrences?: number;\n /** DEX/aggregator integrations */\n aggregators?: string[];\n /** Asset labels/tags (e.g., \"stable_coin\") */\n labels?: string[];\n /** Whether the token supports ERC-20 permit */\n erc20Permit?: boolean;\n /** Fee information */\n fees?: V3AssetFees;\n /** Honeypot detection status */\n honeypotStatus?: V3AssetHoneypotStatus;\n /** Storage slot information */\n storage?: V3AssetStorage;\n /** Whether the contract is verified */\n isContractVerified?: boolean;\n /** Localized description (maps to metadata.description in state) */\n description?: V3AssetDescription;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../../../src/api/tokens/types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * Tokens API types for the API Platform Client.\n * API: tokens.api.cx.metamask.io\n */\n\n// ============================================================================\n// SUPPORTED NETWORKS TYPES\n// ============================================================================\n\n/** Token supported networks response (v1) */\nexport type V1TokenSupportedNetworksResponse = {\n fullSupport: string[];\n};\n\n/** Token supported networks response (v2) - includes partial support */\nexport type V2TokenSupportedNetworksResponse = {\n fullSupport: string[];\n partialSupport: string[];\n};\n\n// ============================================================================\n// ASSET TYPES\n// ============================================================================\n\n/** Query options for V3 Assets endpoint */\nexport type V3AssetsQueryOptions = {\n /** Include icon URL in response */\n includeIconUrl?: boolean;\n /** Include market data in response */\n includeMarketData?: boolean;\n /** Include metadata in response */\n includeMetadata?: boolean;\n /** Include labels in response */\n includeLabels?: boolean;\n /** Include RWA data in response */\n includeRwaData?: boolean;\n /** Include DEX/aggregator integrations in response */\n includeAggregators?: boolean;\n /** Include token list occurrences in response */\n includeOccurrences?: boolean;\n};\n\n// ============================================================================\n// V3 ASSET RESPONSE TYPES\n// ============================================================================\n\n/** Fee information for an asset */\nexport type V3AssetFees = {\n avgFee: number;\n maxFee: number;\n minFee: number;\n};\n\n/** Honeypot detection status */\nexport type V3AssetHoneypotStatus = {\n honeypotIs: boolean;\n goPlus?: boolean;\n};\n\n/** Storage slot information for the contract */\nexport type V3AssetStorage = {\n balance: number;\n approval: number;\n};\n\n/** Localized description */\nexport type V3AssetDescription = {\n en: string;\n};\n\n/**\n * Asset response from V3 Assets endpoint.\n * All fields are stored in state (FungibleAssetMetadata).\n */\nexport type V3AssetResponse = {\n /** CAIP-19 asset ID (e.g., \"eip155:1/erc20:0x...\") */\n assetId: string;\n /** Asset display name */\n name: string;\n /** Asset symbol */\n symbol: string;\n /** Decimal places */\n decimals: number;\n /** Icon URL (maps to `image` in state) */\n iconUrl?: string;\n /** CoinGecko ID for price lookups */\n coingeckoId?: string;\n /** Number of token list occurrences */\n occurrences?: number;\n /** DEX/aggregator integrations */\n aggregators?: string[];\n /** Asset labels/tags (e.g., \"stable_coin\") */\n labels?: string[];\n /** Whether the token supports ERC-20 permit */\n erc20Permit?: boolean;\n /** Fee information */\n fees?: V3AssetFees;\n /** Honeypot detection status */\n honeypotStatus?: V3AssetHoneypotStatus;\n /** Storage slot information */\n storage?: V3AssetStorage;\n /** Whether the contract is verified */\n isContractVerified?: boolean;\n /** Localized description (maps to metadata.description in state) */\n description?: V3AssetDescription;\n};\n"]}
|
|
@@ -25,6 +25,8 @@ export type V3AssetsQueryOptions = {
|
|
|
25
25
|
includeRwaData?: boolean;
|
|
26
26
|
/** Include DEX/aggregator integrations in response */
|
|
27
27
|
includeAggregators?: boolean;
|
|
28
|
+
/** Include token list occurrences in response */
|
|
29
|
+
includeOccurrences?: boolean;
|
|
28
30
|
};
|
|
29
31
|
/** Fee information for an asset */
|
|
30
32
|
export type V3AssetFees = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../../src/api/tokens/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,6CA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EAAE,WAAW,CAAC;IACnB,gCAAgC;IAChC,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,+BAA+B;IAC/B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,uCAAuC;IACvC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oEAAoE;IACpE,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC,CAAC"}
|
|
@@ -25,6 +25,8 @@ export type V3AssetsQueryOptions = {
|
|
|
25
25
|
includeRwaData?: boolean;
|
|
26
26
|
/** Include DEX/aggregator integrations in response */
|
|
27
27
|
includeAggregators?: boolean;
|
|
28
|
+
/** Include token list occurrences in response */
|
|
29
|
+
includeOccurrences?: boolean;
|
|
28
30
|
};
|
|
29
31
|
/** Fee information for an asset */
|
|
30
32
|
export type V3AssetFees = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../../src/api/tokens/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,6CAA6C;AAC7C,MAAM,MAAM,gCAAgC,GAAG;IAC7C,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,wEAAwE;AACxE,MAAM,MAAM,gCAAgC,GAAG;IAC7C,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC;AAMF,2CAA2C;AAC3C,MAAM,MAAM,oBAAoB,GAAG;IACjC,mCAAmC;IACnC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mCAAmC;IACnC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iCAAiC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mCAAmC;IACnC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAMF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AM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sBAAsB;IACtB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,gCAAgC;IAChC,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,+BAA+B;IAC/B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,uCAAuC;IACvC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oEAAoE;IACpE,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../../src/api/tokens/types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * Tokens API types for the API Platform Client.\n * API: tokens.api.cx.metamask.io\n */\n\n// ============================================================================\n// SUPPORTED NETWORKS TYPES\n// ============================================================================\n\n/** Token supported networks response (v1) */\nexport type V1TokenSupportedNetworksResponse = {\n fullSupport: string[];\n};\n\n/** Token supported networks response (v2) - includes partial support */\nexport type V2TokenSupportedNetworksResponse = {\n fullSupport: string[];\n partialSupport: string[];\n};\n\n// ============================================================================\n// ASSET TYPES\n// ============================================================================\n\n/** Query options for V3 Assets endpoint */\nexport type V3AssetsQueryOptions = {\n /** Include icon URL in response */\n includeIconUrl?: boolean;\n /** Include market data in response */\n includeMarketData?: boolean;\n /** Include metadata in response */\n includeMetadata?: boolean;\n /** Include labels in response */\n includeLabels?: boolean;\n /** Include RWA data in response */\n includeRwaData?: boolean;\n /** Include DEX/aggregator integrations in response */\n includeAggregators?: boolean;\n};\n\n// ============================================================================\n// V3 ASSET RESPONSE TYPES\n// ============================================================================\n\n/** Fee information for an asset */\nexport type V3AssetFees = {\n avgFee: number;\n maxFee: number;\n minFee: number;\n};\n\n/** Honeypot detection status */\nexport type V3AssetHoneypotStatus = {\n honeypotIs: boolean;\n goPlus?: boolean;\n};\n\n/** Storage slot information for the contract */\nexport type V3AssetStorage = {\n balance: number;\n approval: number;\n};\n\n/** Localized description */\nexport type V3AssetDescription = {\n en: string;\n};\n\n/**\n * Asset response from V3 Assets endpoint.\n * All fields are stored in state (FungibleAssetMetadata).\n */\nexport type V3AssetResponse = {\n /** CAIP-19 asset ID (e.g., \"eip155:1/erc20:0x...\") */\n assetId: string;\n /** Asset display name */\n name: string;\n /** Asset symbol */\n symbol: string;\n /** Decimal places */\n decimals: number;\n /** Icon URL (maps to `image` in state) */\n iconUrl?: string;\n /** CoinGecko ID for price lookups */\n coingeckoId?: string;\n /** Number of token list occurrences */\n occurrences?: number;\n /** DEX/aggregator integrations */\n aggregators?: string[];\n /** Asset labels/tags (e.g., \"stable_coin\") */\n labels?: string[];\n /** Whether the token supports ERC-20 permit */\n erc20Permit?: boolean;\n /** Fee information */\n fees?: V3AssetFees;\n /** Honeypot detection status */\n honeypotStatus?: V3AssetHoneypotStatus;\n /** Storage slot information */\n storage?: V3AssetStorage;\n /** Whether the contract is verified */\n isContractVerified?: boolean;\n /** Localized description (maps to metadata.description in state) */\n description?: V3AssetDescription;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../../src/api/tokens/types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * Tokens API types for the API Platform Client.\n * API: tokens.api.cx.metamask.io\n */\n\n// ============================================================================\n// SUPPORTED NETWORKS TYPES\n// ============================================================================\n\n/** Token supported networks response (v1) */\nexport type V1TokenSupportedNetworksResponse = {\n fullSupport: string[];\n};\n\n/** Token supported networks response (v2) - includes partial support */\nexport type V2TokenSupportedNetworksResponse = {\n fullSupport: string[];\n partialSupport: string[];\n};\n\n// ============================================================================\n// ASSET TYPES\n// ============================================================================\n\n/** Query options for V3 Assets endpoint */\nexport type V3AssetsQueryOptions = {\n /** Include icon URL in response */\n includeIconUrl?: boolean;\n /** Include market data in response */\n includeMarketData?: boolean;\n /** Include metadata in response */\n includeMetadata?: boolean;\n /** Include labels in response */\n includeLabels?: boolean;\n /** Include RWA data in response */\n includeRwaData?: boolean;\n /** Include DEX/aggregator integrations in response */\n includeAggregators?: boolean;\n /** Include token list occurrences in response */\n includeOccurrences?: boolean;\n};\n\n// ============================================================================\n// V3 ASSET RESPONSE TYPES\n// ============================================================================\n\n/** Fee information for an asset */\nexport type V3AssetFees = {\n avgFee: number;\n maxFee: number;\n minFee: number;\n};\n\n/** Honeypot detection status */\nexport type V3AssetHoneypotStatus = {\n honeypotIs: boolean;\n goPlus?: boolean;\n};\n\n/** Storage slot information for the contract */\nexport type V3AssetStorage = {\n balance: number;\n approval: number;\n};\n\n/** Localized description */\nexport type V3AssetDescription = {\n en: string;\n};\n\n/**\n * Asset response from V3 Assets endpoint.\n * All fields are stored in state (FungibleAssetMetadata).\n */\nexport type V3AssetResponse = {\n /** CAIP-19 asset ID (e.g., \"eip155:1/erc20:0x...\") */\n assetId: string;\n /** Asset display name */\n name: string;\n /** Asset symbol */\n symbol: string;\n /** Decimal places */\n decimals: number;\n /** Icon URL (maps to `image` in state) */\n iconUrl?: string;\n /** CoinGecko ID for price lookups */\n coingeckoId?: string;\n /** Number of token list occurrences */\n occurrences?: number;\n /** DEX/aggregator integrations */\n aggregators?: string[];\n /** Asset labels/tags (e.g., \"stable_coin\") */\n labels?: string[];\n /** Whether the token supports ERC-20 permit */\n erc20Permit?: boolean;\n /** Fee information */\n fees?: V3AssetFees;\n /** Honeypot detection status */\n honeypotStatus?: V3AssetHoneypotStatus;\n /** Storage slot information */\n storage?: V3AssetStorage;\n /** Whether the contract is verified */\n isContractVerified?: boolean;\n /** Localized description (maps to metadata.description in state) */\n description?: V3AssetDescription;\n};\n"]}
|