@metamask-previews/core-backend 11.0.0-preview-576eebcfe → 11.0.0-preview-378f5fcf7

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 CHANGED
@@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Changed
11
11
 
12
- - **BREAKING:** `PriceSupportedNetworksResponse` now matches the real `/v2/supportedNetworks` response, with `partialSupport` typed as `{ spotPricesV2: string[]; spotPricesV3: string[] }` instead of `string[]` ([#10582](https://github.com/MetaMask/core/pull/10582))
13
12
  - Bump `uuid` from `^9.0.1` to `^11.1.1` ([#10243](https://github.com/MetaMask/core/pull/10243))
14
13
  - Bump `@metamask/profile-sync-controller` from `^32.1.1` to `^33.0.0` ([#10348](https://github.com/MetaMask/core/pull/10348), [#10409](https://github.com/MetaMask/core/pull/10409), [#10418](https://github.com/MetaMask/core/pull/10418), [#10459](https://github.com/MetaMask/core/pull/10459))
15
14
  - Bump `@tanstack/query-core` from `^5.62.16` to `^5.103.2` ([#9324](https://github.com/MetaMask/core/pull/9324), [#10511](https://github.com/MetaMask/core/pull/10511))
@@ -17,10 +16,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
16
  - Bump `cockatiel` from `^3.1.2` to `^3.2.1` ([#10436](https://github.com/MetaMask/core/pull/10436))
18
17
  - Bump `@metamask/account-tree-controller` from `^10.0.1` to `^11.0.0` ([#10459](https://github.com/MetaMask/core/pull/10459))
19
18
 
20
- ### Deprecated
21
-
22
- - Deprecate `PriceSupportedNetworksResponse` in favor of `PriceV2SupportedNetworksResponse` ([#10582](https://github.com/MetaMask/core/pull/10582))
23
-
24
19
  ## [11.0.0]
25
20
 
26
21
  ### Added
package/README.md CHANGED
@@ -480,7 +480,7 @@ Handles price-related operations including spot prices, exchange rates, and hist
480
480
 
481
481
  | Method | Description |
482
482
  | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
483
- | `fetchPriceV1SupportedNetworks(options?)` | Get price-supported networks (v1, decimal IDs) |
483
+ | `fetchPriceV1SupportedNetworks(options?)` | Get price-supported networks (v1) |
484
484
  | `fetchPriceV2SupportedNetworks(options?)` | Get price-supported networks in CAIP format (v2) |
485
485
  | `fetchV1ExchangeRates(baseCurrency, options?)` | Get exchange rates for base currency |
486
486
  | `fetchV1FiatExchangeRates(options?)` | Get fiat exchange rates |
@@ -500,8 +500,6 @@ Handles price-related operations including spot prices, exchange rates, and hist
500
500
  | `getPriceV1SupportedNetworksQueryOptions(options?)` … `getV1HistoricalPriceGraphByTokenAddressQueryOptions(...)` | Return TanStack Query options for each fetch |
501
501
  | `invalidatePrices()` | Invalidate all price cache |
502
502
 
503
- > **Note:** For both supported-networks endpoints, `partialSupport` is an object keyed by spot-price endpoint, not a flat array: `/v1` returns `{ spotPricesV2: number[] }` and `/v2` returns `{ spotPricesV2: string[]; spotPricesV3: string[] }`. Pick the key that matches the spot-prices endpoint you call (e.g. `fullSupport` + `partialSupport.spotPricesV3` for `/v3/spot-prices`).
504
-
505
503
  #### TokenApiClient
506
504
 
507
505
  Handles token metadata, lists, and trending/popular token discovery.
@@ -7,7 +7,7 @@ export { API_URLS, STALE_TIMES, GC_TIMES, DEFAULT_AUTH_TOKEN_TIMEOUT, RETRY_CONF
7
7
  export { AccountsApiClient, V6_DEFI_POSITION_TYPES } from './accounts/index.js';
8
8
  export type { V5BalanceItem, V5BalancesResponse, V2BalanceItem, V2BalancesResponse, V4BalancesResponse, V6VsCurrency, V6DeFiPositionType, V6BalanceMetadata, V6StellarTokenBalanceMetadata, V6TokenBalanceMetadata, V6BalanceItem, V6BalancesResponse, V1SupportedNetworksResponse, V2SupportedNetworksResponse, V2ActiveNetworksResponse, V1TransactionByHashResponse, V1AccountTransactionsResponse, V4MultiAccountTransactionsResponse, ValueTransfer, V1AccountRelationshipResult, NftItem, V2NftsResponse, TokenDiscoveryItem, V2TokensResponse, } from './accounts/index.js';
9
9
  export { PricesApiClient } from './prices/index.js';
10
- export type { V3SpotPricesResponse, CoinGeckoSpotPrice, ExchangeRateInfo, V1ExchangeRatesResponse, PriceSupportedNetworksResponse, PriceV1SupportedNetworksResponse, PriceV2SupportedNetworksResponse, V1HistoricalPricesResponse, V3HistoricalPricesResponse, } from './prices/index.js';
10
+ export type { V3SpotPricesResponse, CoinGeckoSpotPrice, ExchangeRateInfo, V1ExchangeRatesResponse, PriceSupportedNetworksResponse, V1HistoricalPricesResponse, V3HistoricalPricesResponse, } from './prices/index.js';
11
11
  export { TokenApiClient } from './token/index.js';
12
12
  export type { TokenMetadata, V1TokenDescriptionResponse, NetworkInfo, TopAsset, TrendingSortBy, TrendingToken, TopGainersSortOption, TrendingSortOption, V1SuggestedOccurrenceFloorsResponse, } from './token/index.js';
13
13
  export { TokensApiClient } from './tokens/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,EACV,QAAQ,EACR,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,OAAO,EACP,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,0BAA0B,EAC1B,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,WAAW,EACX,SAAS,GACV,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAChF,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,6BAA6B,EAC7B,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,6BAA6B,EAC7B,kCAA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ACR,0BAA0B,EAC1B,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,WAAW,EACX,SAAS,GACV,MAAM,mBAAmB,CAAC;AAE3B,eAAe;AACf,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AA4BhF,aAAa;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAapD,YAAY;AACZ,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAalD,aAAa;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOpD,cAAc;AACd,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,uCAAuC;AACvC,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC","sourcesContent":["/**\n * API barrel export.\n * Re-exports all types and clients from the API folder.\n */\n\n// Shared types and utilities\nexport type {\n PageInfo,\n SupportedCurrency,\n MarketDataDetails,\n ApiPlatformClientOptions,\n ApiUrls,\n FetchOptions,\n} from './shared-types.js';\nexport {\n API_URLS,\n STALE_TIMES,\n GC_TIMES,\n DEFAULT_AUTH_TOKEN_TIMEOUT,\n RETRY_CONFIG,\n calculateRetryDelay,\n getQueryOptionsOverrides,\n shouldRetry,\n HttpError,\n} from './shared-types.js';\n\n// Accounts API\nexport { AccountsApiClient, V6_DEFI_POSITION_TYPES } from './accounts/index.js';\nexport type {\n V5BalanceItem,\n V5BalancesResponse,\n V2BalanceItem,\n V2BalancesResponse,\n V4BalancesResponse,\n V6VsCurrency,\n V6DeFiPositionType,\n V6BalanceMetadata,\n V6StellarTokenBalanceMetadata,\n V6TokenBalanceMetadata,\n V6BalanceItem,\n V6BalancesResponse,\n V1SupportedNetworksResponse,\n V2SupportedNetworksResponse,\n V2ActiveNetworksResponse,\n V1TransactionByHashResponse,\n V1AccountTransactionsResponse,\n V4MultiAccountTransactionsResponse,\n ValueTransfer,\n V1AccountRelationshipResult,\n NftItem,\n V2NftsResponse,\n TokenDiscoveryItem,\n V2TokensResponse,\n} from './accounts/index.js';\n\n// Prices API\nexport { PricesApiClient } from './prices/index.js';\nexport type {\n V3SpotPricesResponse,\n CoinGeckoSpotPrice,\n ExchangeRateInfo,\n V1ExchangeRatesResponse,\n PriceSupportedNetworksResponse,\n PriceV1SupportedNetworksResponse,\n PriceV2SupportedNetworksResponse,\n V1HistoricalPricesResponse,\n V3HistoricalPricesResponse,\n} from './prices/index.js';\n\n// Token API\nexport { TokenApiClient } from './token/index.js';\nexport type {\n TokenMetadata,\n V1TokenDescriptionResponse,\n NetworkInfo,\n TopAsset,\n TrendingSortBy,\n TrendingToken,\n TopGainersSortOption,\n TrendingSortOption,\n V1SuggestedOccurrenceFloorsResponse,\n} from './token/index.js';\n\n// Tokens API\nexport { TokensApiClient } from './tokens/index.js';\nexport type {\n V1TokenSupportedNetworksResponse,\n V2TokenSupportedNetworksResponse,\n V3AssetResponse,\n} from './tokens/index.js';\n\n// Base client\nexport { BaseApiClient } from './base-client.js';\nexport type { InternalFetchOptions } from './base-client.js';\n\n// API Platform Client (unified client)\nexport {\n ApiPlatformClient,\n createApiPlatformClient,\n} from './ApiPlatformClient.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,OAAO,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,0BAA0B,EAC1B,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,WAAW,EACX,SAAS,GACV,MAAM,mBAAmB,CAAC;AAE3B,eAAe;AACf,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AA4BhF,aAAa;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAWpD,YAAY;AACZ,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAalD,aAAa;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOpD,cAAc;AACd,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,uCAAuC;AACvC,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC","sourcesContent":["/**\n * API barrel export.\n * Re-exports all types and clients from the API folder.\n */\n\n// Shared types and utilities\nexport type {\n PageInfo,\n SupportedCurrency,\n MarketDataDetails,\n ApiPlatformClientOptions,\n ApiUrls,\n FetchOptions,\n} from './shared-types.js';\nexport {\n API_URLS,\n STALE_TIMES,\n GC_TIMES,\n DEFAULT_AUTH_TOKEN_TIMEOUT,\n RETRY_CONFIG,\n calculateRetryDelay,\n getQueryOptionsOverrides,\n shouldRetry,\n HttpError,\n} from './shared-types.js';\n\n// Accounts API\nexport { AccountsApiClient, V6_DEFI_POSITION_TYPES } from './accounts/index.js';\nexport type {\n V5BalanceItem,\n V5BalancesResponse,\n V2BalanceItem,\n V2BalancesResponse,\n V4BalancesResponse,\n V6VsCurrency,\n V6DeFiPositionType,\n V6BalanceMetadata,\n V6StellarTokenBalanceMetadata,\n V6TokenBalanceMetadata,\n V6BalanceItem,\n V6BalancesResponse,\n V1SupportedNetworksResponse,\n V2SupportedNetworksResponse,\n V2ActiveNetworksResponse,\n V1TransactionByHashResponse,\n V1AccountTransactionsResponse,\n V4MultiAccountTransactionsResponse,\n ValueTransfer,\n V1AccountRelationshipResult,\n NftItem,\n V2NftsResponse,\n TokenDiscoveryItem,\n V2TokensResponse,\n} from './accounts/index.js';\n\n// Prices API\nexport { PricesApiClient } from './prices/index.js';\nexport type {\n V3SpotPricesResponse,\n CoinGeckoSpotPrice,\n ExchangeRateInfo,\n V1ExchangeRatesResponse,\n PriceSupportedNetworksResponse,\n V1HistoricalPricesResponse,\n V3HistoricalPricesResponse,\n} from './prices/index.js';\n\n// Token API\nexport { TokenApiClient } from './token/index.js';\nexport type {\n TokenMetadata,\n V1TokenDescriptionResponse,\n NetworkInfo,\n TopAsset,\n TrendingSortBy,\n TrendingToken,\n TopGainersSortOption,\n TrendingSortOption,\n V1SuggestedOccurrenceFloorsResponse,\n} from './token/index.js';\n\n// Tokens API\nexport { TokensApiClient } from './tokens/index.js';\nexport type {\n V1TokenSupportedNetworksResponse,\n V2TokenSupportedNetworksResponse,\n V3AssetResponse,\n} from './tokens/index.js';\n\n// Base client\nexport { BaseApiClient } from './base-client.js';\nexport type { InternalFetchOptions } from './base-client.js';\n\n// API Platform Client (unified client)\nexport {\n ApiPlatformClient,\n createApiPlatformClient,\n} from './ApiPlatformClient.js';\n"]}
@@ -11,7 +11,7 @@
11
11
  import type { FetchQueryOptions } from '@tanstack/query-core';
12
12
  import { BaseApiClient } from '../base-client.js';
13
13
  import type { FetchOptions, MarketDataDetails, SupportedCurrency } from '../shared-types.js';
14
- import type { CoinGeckoSpotPrice, V1ExchangeRatesResponse, PriceV1SupportedNetworksResponse, PriceV2SupportedNetworksResponse, V1HistoricalPricesResponse, V3SpotPricesResponse, V3HistoricalPricesResponse } from './types.js';
14
+ import type { CoinGeckoSpotPrice, V1ExchangeRatesResponse, PriceSupportedNetworksResponse, V1HistoricalPricesResponse, V3SpotPricesResponse, V3HistoricalPricesResponse } from './types.js';
15
15
  /**
16
16
  * Prices API Client.
17
17
  * Provides methods for interacting with the Price API.
@@ -27,31 +27,28 @@ export declare class PricesApiClient extends BaseApiClient {
27
27
  * @param options - Fetch options including cache settings.
28
28
  * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.
29
29
  */
30
- getPriceV1SupportedNetworksQueryOptions(options?: FetchOptions): FetchQueryOptions<PriceV1SupportedNetworksResponse>;
30
+ getPriceV1SupportedNetworksQueryOptions(options?: FetchOptions): FetchQueryOptions<PriceSupportedNetworksResponse>;
31
31
  /**
32
32
  * Get price supported networks (v1 endpoint).
33
33
  *
34
34
  * @param options - Fetch options including cache settings.
35
35
  * @returns The supported networks response.
36
36
  */
37
- fetchPriceV1SupportedNetworks(options?: FetchOptions): Promise<PriceV1SupportedNetworksResponse>;
37
+ fetchPriceV1SupportedNetworks(options?: FetchOptions): Promise<PriceSupportedNetworksResponse>;
38
38
  /**
39
39
  * Returns the TanStack Query options object for price v2 supported networks.
40
40
  *
41
41
  * @param options - Fetch options including cache settings.
42
42
  * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.
43
43
  */
44
- getPriceV2SupportedNetworksQueryOptions(options?: FetchOptions): FetchQueryOptions<PriceV2SupportedNetworksResponse>;
44
+ getPriceV2SupportedNetworksQueryOptions(options?: FetchOptions): FetchQueryOptions<PriceSupportedNetworksResponse>;
45
45
  /**
46
46
  * Get price supported networks in CAIP format (v2 endpoint).
47
47
  *
48
- * `partialSupport` is an object keyed by spot price endpoint
49
- * (`spotPricesV2`, `spotPricesV3`), not a flat array.
50
- *
51
48
  * @param options - Fetch options including cache settings.
52
49
  * @returns The supported networks response.
53
50
  */
54
- fetchPriceV2SupportedNetworks(options?: FetchOptions): Promise<PriceV2SupportedNetworksResponse>;
51
+ fetchPriceV2SupportedNetworks(options?: FetchOptions): Promise<PriceSupportedNetworksResponse>;
55
52
  /**
56
53
  * Returns the TanStack Query options object for v1 exchange rates.
57
54
  *
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/api/prices/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,aAAa,EAAyB,MAAM,mBAAmB,CAAC;AAEzE,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,kBAAkB,EAClB,uBAAuB,EACvB,gCAAgC,EAChC,gCAAgC,EAChC,0BAA0B,EAC1B,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,aAAa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AiB,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,EACtE,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,0BAA0B,CAAC,CASrC;CACF"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/api/prices/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,aAAa,EAAyB,MAAM,mBAAmB,CAAC;AAEzE,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,kBAAkB,EAClB,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,aAAa;IAKhD;;OAEG;IACG,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAItC;IAMD;;;;;OAKG;IACH,uCAAuC,CACrC,OAAO,CAAC,EAAE,YAAY,GACrB,iBAAiB,CAAC,8BAA8B,CAAC,CAanD;IAED;;;;;OAKG;IACG,6BAA6B,CACjC,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,8BAA8B,CAAC,CAIzC;IAED;;;;;OAKG;IACH,uCAAuC,CACrC,OAAO,CAAC,EAAE,YAAY,GACrB,iBAAiB,CAAC,8BAA8B,CAAC,CAanD;IAED;;;;;OAKG;IACG,6BAA6B,CACjC,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,8BAA8B,CAAC,CAIzC;IAMD;;;;;;OAMG;IACH,8BAA8B,CAC5B,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,YAAY,GACrB,iBAAiB,CAAC,uBAAuB,CAAC,CAsB5C;IAED;;;;;;OAMG;IACG,oBAAoB,CACxB,YAAY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ACvC,MAAM,EAAE,MAAM,EACd,YAAY,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,iBAAiB,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,EACtE,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,0BAA0B,CAAC,CAQrC;IAED;;;;;;;;;;OAUG;IACH,mDAAmD,CACjD,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,YAAY,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,iBAAiB,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,EACtE,OAAO,CAAC,EAAE,YAAY,GACrB,iBAAiB,CAAC,0BAA0B,CAAC,CA6B/C;IAED;;;;;;;;;;OAUG;IACG,yCAAyC,CAC7C,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,YAAY,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,iBAAiB,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,EACtE,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,0BAA0B,CAAC,CASrC;CACF"}
@@ -71,9 +71,6 @@ export class PricesApiClient extends BaseApiClient {
71
71
  /**
72
72
  * Get price supported networks in CAIP format (v2 endpoint).
73
73
  *
74
- * `partialSupport` is an object keyed by spot price endpoint
75
- * (`spotPricesV2`, `spotPricesV3`), not a flat array.
76
- *
77
74
  * @param options - Fetch options including cache settings.
78
75
  * @returns The supported networks response.
79
76
  */
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/api/prices/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAgB9D;;;GAGG;AACH,MAAM,OAAO,eAAgB,SAAQ,a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AAO,CACR,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,mDAAmD,CACjD,OAAe,EACf,YAAoB,EACpB,YAAsE,EACtE,OAAsB;QAEtB,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAC7C,MAAM,QAAQ,GAAG,YAAY,EAAE,QAAQ,IAAI,KAAK,CAAC;QACjD,MAAM,WAAW,GAAG,YAAY,EAAE,WAAW,IAAI,KAAK,CAAC;QACvD,OAAO;YACL,QAAQ,EAAE;gBACR,QAAQ;gBACR,uBAAuB;gBACvB,OAAO;gBACP,YAAY;gBACZ,QAAQ;gBACR,WAAW;aACZ;YACD,OAAO,EAAE,CAAC,EAAE,MAAM,EAAwB,EAAE,EAAE,CAC5C,IAAI,CAAC,KAAK,CACR,IAAI,CAAC,OAAO,CAAC,MAAM,EACnB,cAAc,cAAc,4BAA4B,YAAY,EAAE,EACtE;gBACE,MAAM;gBACN,MAAM,EAAE;oBACN,UAAU,EAAE,QAAQ;oBACpB,WAAW;iBACZ;aACF,CACF;YACH,GAAG,wBAAwB,CAAC,OAAO,CAAC;YACpC,SAAS,EAAE,OAAO,EAAE,SAAS,IAAI,WAAW,CAAC,MAAM;YACnD,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,QAAQ,CAAC,OAAO;SAC5C,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,yCAAyC,CAC7C,OAAe,EACf,YAAoB,EACpB,YAAsE,EACtE,OAAsB;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAChC,IAAI,CAAC,mDAAmD,CACtD,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,CACR,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/**\n * Prices API Client - price.api.cx.metamask.io\n *\n * Handles all price-related API calls including:\n * - Supported networks\n * - Exchange rates\n * - Spot prices (v1, v2, v3)\n * - Historical prices\n * - Price graphs\n */\n\nimport type {\n FetchQueryOptions,\n QueryFunctionContext,\n} from '@tanstack/query-core';\n\nimport { BaseApiClient, STALE_TIMES, GC_TIMES } from '../base-client.js';\nimport { getQueryOptionsOverrides } from '../shared-types.js';\nimport type {\n FetchOptions,\n MarketDataDetails,\n SupportedCurrency,\n} from '../shared-types.js';\nimport type {\n CoinGeckoSpotPrice,\n V1ExchangeRatesResponse,\n PriceV1SupportedNetworksResponse,\n PriceV2SupportedNetworksResponse,\n V1HistoricalPricesResponse,\n V3SpotPricesResponse,\n V3HistoricalPricesResponse,\n} from './types.js';\n\n/**\n * Prices API Client.\n * Provides methods for interacting with the Price API.\n */\nexport class PricesApiClient extends BaseApiClient {\n // ==========================================================================\n // CACHE MANAGEMENT\n // ==========================================================================\n\n /**\n * Invalidate all price queries.\n */\n async invalidatePrices(): Promise<void> {\n await this.queryClient.invalidateQueries({\n queryKey: ['prices'],\n });\n }\n\n // ==========================================================================\n // SUPPORTED NETWORKS\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for price v1 supported networks.\n *\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getPriceV1SupportedNetworksQueryOptions(\n options?: FetchOptions,\n ): FetchQueryOptions<PriceV1SupportedNetworksResponse> {\n return {\n queryKey: ['prices', 'v1SupportedNetworks'],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<PriceV1SupportedNetworksResponse>(\n this.apiUrls.PRICES,\n '/v1/supportedNetworks',\n { signal },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.SUPPORTED_NETWORKS,\n gcTime: options?.gcTime ?? GC_TIMES.EXTENDED,\n };\n }\n\n /**\n * Get price supported networks (v1 endpoint).\n *\n * @param options - Fetch options including cache settings.\n * @returns The supported networks response.\n */\n async fetchPriceV1SupportedNetworks(\n options?: FetchOptions,\n ): Promise<PriceV1SupportedNetworksResponse> {\n return this.queryClient.fetchQuery(\n this.getPriceV1SupportedNetworksQueryOptions(options),\n );\n }\n\n /**\n * Returns the TanStack Query options object for price v2 supported networks.\n *\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getPriceV2SupportedNetworksQueryOptions(\n options?: FetchOptions,\n ): FetchQueryOptions<PriceV2SupportedNetworksResponse> {\n return {\n queryKey: ['prices', 'v2SupportedNetworks'],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<PriceV2SupportedNetworksResponse>(\n this.apiUrls.PRICES,\n '/v2/supportedNetworks',\n { signal },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.SUPPORTED_NETWORKS,\n gcTime: options?.gcTime ?? GC_TIMES.EXTENDED,\n };\n }\n\n /**\n * Get price supported networks in CAIP format (v2 endpoint).\n *\n * `partialSupport` is an object keyed by spot price endpoint\n * (`spotPricesV2`, `spotPricesV3`), not a flat array.\n *\n * @param options - Fetch options including cache settings.\n * @returns The supported networks response.\n */\n async fetchPriceV2SupportedNetworks(\n options?: FetchOptions,\n ): Promise<PriceV2SupportedNetworksResponse> {\n return this.queryClient.fetchQuery(\n this.getPriceV2SupportedNetworksQueryOptions(options),\n );\n }\n\n // ==========================================================================\n // EXCHANGE RATES\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v1 exchange rates.\n *\n * @param baseCurrency - The base currency code.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1ExchangeRatesQueryOptions(\n baseCurrency: string,\n options?: FetchOptions,\n ): FetchQueryOptions<V1ExchangeRatesResponse> {\n return {\n queryKey: ['prices', 'v1ExchangeRates', baseCurrency],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<V1ExchangeRatesResponse> => {\n if (baseCurrency === '') {\n return {};\n }\n return this.fetch<V1ExchangeRatesResponse>(\n this.apiUrls.PRICES,\n '/v1/exchange-rates',\n {\n signal,\n params: { baseCurrency },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.EXCHANGE_RATES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get all exchange rates for a base currency (v1 endpoint).\n *\n * @param baseCurrency - The base currency code.\n * @param options - Fetch options including cache settings.\n * @returns The exchange rates response.\n */\n async fetchV1ExchangeRates(\n baseCurrency: string,\n options?: FetchOptions,\n ): Promise<V1ExchangeRatesResponse> {\n if (baseCurrency === '') {\n return {};\n }\n return this.queryClient.fetchQuery(\n this.getV1ExchangeRatesQueryOptions(baseCurrency, options),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 fiat exchange rates.\n *\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1FiatExchangeRatesQueryOptions(\n options?: FetchOptions,\n ): FetchQueryOptions<V1ExchangeRatesResponse> {\n return {\n queryKey: ['prices', 'v1FiatExchangeRates'],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V1ExchangeRatesResponse>(\n this.apiUrls.PRICES,\n '/v1/exchange-rates/fiat',\n { signal },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.EXCHANGE_RATES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get fiat exchange rates (v1 endpoint).\n *\n * @param options - Fetch options including cache settings.\n * @returns The exchange rates response.\n */\n async fetchV1FiatExchangeRates(\n options?: FetchOptions,\n ): Promise<V1ExchangeRatesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1FiatExchangeRatesQueryOptions(options),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 crypto exchange rates.\n *\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1CryptoExchangeRatesQueryOptions(\n options?: FetchOptions,\n ): FetchQueryOptions<V1ExchangeRatesResponse> {\n return {\n queryKey: ['prices', 'v1CryptoExchangeRates'],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V1ExchangeRatesResponse>(\n this.apiUrls.PRICES,\n '/v1/exchange-rates/crypto',\n { signal },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.EXCHANGE_RATES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get crypto exchange rates (v1 endpoint).\n *\n * @param options - Fetch options including cache settings.\n * @returns The exchange rates response.\n */\n async fetchV1CryptoExchangeRates(\n options?: FetchOptions,\n ): Promise<V1ExchangeRatesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1CryptoExchangeRatesQueryOptions(options),\n );\n }\n\n // ==========================================================================\n // V1 SPOT PRICES (CoinGecko ID based)\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v1 spot prices by coin IDs.\n *\n * @param coinIds - Array of CoinGecko coin IDs.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1SpotPricesByCoinIdsQueryOptions(\n coinIds: string[],\n options?: FetchOptions,\n ): FetchQueryOptions<Record<string, CoinGeckoSpotPrice>> {\n return {\n queryKey: [\n 'prices',\n 'v1SpotPricesByCoinIds',\n { coinIds: [...coinIds].sort() },\n ],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<Record<string, CoinGeckoSpotPrice>> => {\n if (coinIds.length === 0) {\n return {};\n }\n return this.fetch<Record<string, CoinGeckoSpotPrice>>(\n this.apiUrls.PRICES,\n '/v1/spot-prices',\n {\n signal,\n params: { coinIds },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get spot prices by CoinGecko coin IDs (v1 endpoint).\n *\n * @param coinIds - Array of CoinGecko coin IDs.\n * @param options - Fetch options including cache settings.\n * @returns The spot prices by coin ID.\n */\n async fetchV1SpotPricesByCoinIds(\n coinIds: string[],\n options?: FetchOptions,\n ): Promise<Record<string, CoinGeckoSpotPrice>> {\n if (coinIds.length === 0) {\n return {};\n }\n return this.queryClient.fetchQuery(\n this.getV1SpotPricesByCoinIdsQueryOptions(coinIds, options),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 spot price by coin ID.\n *\n * @param coinId - The CoinGecko coin ID.\n * @param currency - The currency for prices.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1SpotPriceByCoinIdQueryOptions(\n coinId: string,\n currency: SupportedCurrency = 'usd',\n options?: FetchOptions,\n ): FetchQueryOptions<CoinGeckoSpotPrice> {\n return {\n queryKey: ['prices', 'v1SpotPriceByCoinId', coinId, currency],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<CoinGeckoSpotPrice> => {\n if (coinId === '') {\n return { id: '', price: 0 };\n }\n return this.fetch<CoinGeckoSpotPrice>(\n this.apiUrls.PRICES,\n `/v1/spot-prices/${coinId}`,\n {\n signal,\n params: { vsCurrency: currency },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get spot price for a single CoinGecko coin ID (v1 endpoint).\n *\n * @param coinId - The CoinGecko coin ID.\n * @param currency - The currency for prices.\n * @param options - Fetch options including cache settings.\n * @returns The spot price data.\n */\n async fetchV1SpotPriceByCoinId(\n coinId: string,\n currency: SupportedCurrency = 'usd',\n options?: FetchOptions,\n ): Promise<CoinGeckoSpotPrice> {\n return this.queryClient.fetchQuery(\n this.getV1SpotPriceByCoinIdQueryOptions(coinId, currency, options),\n );\n }\n\n // ==========================================================================\n // V1 SPOT PRICES (Token Address based)\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v1 token prices.\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddresses - Array of token addresses.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeMarketData - Whether to include market data.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1TokenPricesQueryOptions(\n chainId: string,\n tokenAddresses: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n includeMarketData?: boolean;\n },\n options?: FetchOptions,\n ): FetchQueryOptions<Record<string, Record<string, number>>> {\n const chainIdDecimal = parseInt(chainId, 16);\n const currency = queryOptions?.currency ?? 'usd';\n return {\n queryKey: [\n 'prices',\n 'v1TokenPrices',\n {\n chainId,\n tokenAddresses: [...tokenAddresses].sort(),\n currency,\n includeMarketData: queryOptions?.includeMarketData,\n },\n ],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<\n Record<string, Record<string, number>>\n > => {\n if (chainId === '' || tokenAddresses.length === 0) {\n return {};\n }\n return this.fetch<Record<string, Record<string, number>>>(\n this.apiUrls.PRICES,\n `/v1/chains/${chainIdDecimal}/spot-prices`,\n {\n signal,\n params: {\n tokenAddresses,\n vsCurrency: currency,\n includeMarketData: queryOptions?.includeMarketData,\n },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get spot prices for tokens on a chain (v1 endpoint).\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddresses - Array of token addresses.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeMarketData - Whether to include market data.\n * @param options - Fetch options including cache settings.\n * @returns The token prices by address.\n */\n async fetchV1TokenPrices(\n chainId: string,\n tokenAddresses: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n includeMarketData?: boolean;\n },\n options?: FetchOptions,\n ): Promise<Record<string, Record<string, number>>> {\n if (chainId === '' || tokenAddresses.length === 0) {\n return {};\n }\n return this.queryClient.fetchQuery(\n this.getV1TokenPricesQueryOptions(\n chainId,\n tokenAddresses,\n queryOptions,\n options,\n ),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 token price.\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddress - The token address.\n * @param currency - The currency for prices.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1TokenPriceQueryOptions(\n chainId: string,\n tokenAddress: string,\n currency: SupportedCurrency = 'usd',\n options?: FetchOptions,\n ): FetchQueryOptions<MarketDataDetails> {\n const chainIdDecimal = parseInt(chainId, 16);\n return {\n queryKey: ['prices', 'v1TokenPrice', chainId, tokenAddress, currency],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<MarketDataDetails> => {\n return this.fetch<MarketDataDetails>(\n this.apiUrls.PRICES,\n `/v1/chains/${chainIdDecimal}/spot-prices/${tokenAddress}`,\n {\n signal,\n params: { vsCurrency: currency },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get spot price for a single token (v1 endpoint).\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddress - The token address.\n * @param currency - The currency for prices.\n * @param options - Fetch options including cache settings.\n * @returns The market data.\n */\n async fetchV1TokenPrice(\n chainId: string,\n tokenAddress: string,\n currency: SupportedCurrency = 'usd',\n options?: FetchOptions,\n ): Promise<MarketDataDetails> {\n return this.queryClient.fetchQuery(\n this.getV1TokenPriceQueryOptions(\n chainId,\n tokenAddress,\n currency,\n options,\n ),\n );\n }\n\n // ==========================================================================\n // V2 SPOT PRICES\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v2 spot prices.\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddresses - Array of token addresses.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeMarketData - Whether to include market data.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV2SpotPricesQueryOptions(\n chainId: string,\n tokenAddresses: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n includeMarketData?: boolean;\n },\n options?: FetchOptions,\n ): FetchQueryOptions<Record<string, MarketDataDetails>> {\n const chainIdDecimal = parseInt(chainId, 16);\n const currency = queryOptions?.currency ?? 'usd';\n const includeMarketData = queryOptions?.includeMarketData ?? true;\n return {\n queryKey: [\n 'prices',\n 'v2SpotPrices',\n {\n chainId,\n tokenAddresses: [...tokenAddresses].sort(),\n currency,\n includeMarketData,\n },\n ],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<Record<string, MarketDataDetails>> => {\n if (chainId === '' || tokenAddresses.length === 0) {\n return {};\n }\n return this.fetch<Record<string, MarketDataDetails>>(\n this.apiUrls.PRICES,\n `/v2/chains/${chainIdDecimal}/spot-prices`,\n {\n signal,\n params: {\n tokenAddresses,\n vsCurrency: currency,\n includeMarketData: queryOptions?.includeMarketData ?? true,\n },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get spot prices for tokens on a chain with market data (v2 endpoint).\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddresses - Array of token addresses.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeMarketData - Whether to include market data.\n * @param options - Fetch options including cache settings.\n * @returns The spot prices with market data.\n */\n async fetchV2SpotPrices(\n chainId: string,\n tokenAddresses: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n includeMarketData?: boolean;\n },\n options?: FetchOptions,\n ): Promise<Record<string, MarketDataDetails>> {\n if (chainId === '' || tokenAddresses.length === 0) {\n return {};\n }\n return this.queryClient.fetchQuery(\n this.getV2SpotPricesQueryOptions(\n chainId,\n tokenAddresses,\n queryOptions,\n options,\n ),\n );\n }\n\n // ==========================================================================\n // V3 SPOT PRICES (CAIP-19 based)\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v3 spot prices.\n *\n * @param assetIds - Array of CAIP-19 asset IDs.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeMarketData - Whether to include market data.\n * @param queryOptions.cacheOnly - Whether to use cache only.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV3SpotPricesQueryOptions(\n assetIds: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n includeMarketData?: boolean;\n cacheOnly?: boolean;\n },\n options?: FetchOptions,\n ): FetchQueryOptions<V3SpotPricesResponse> {\n const currency = queryOptions?.currency ?? 'usd';\n const includeMarketData = queryOptions?.includeMarketData ?? true;\n const cacheOnly = queryOptions?.cacheOnly ?? false;\n return {\n queryKey: [\n 'prices',\n 'v3SpotPrices',\n {\n assetIds: [...assetIds].sort(),\n currency,\n includeMarketData,\n cacheOnly,\n },\n ],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<V3SpotPricesResponse> => {\n if (assetIds.length === 0) {\n return {};\n }\n return this.fetch<V3SpotPricesResponse>(\n this.apiUrls.PRICES,\n '/v3/spot-prices',\n {\n signal,\n params: {\n assetIds,\n vsCurrency: currency,\n includeMarketData,\n cacheOnly,\n },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get spot prices by CAIP-19 asset IDs (v3 endpoint).\n *\n * @param assetIds - Array of CAIP-19 asset IDs.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeMarketData - Whether to include market data.\n * @param queryOptions.cacheOnly - Whether to use cache only.\n * @param options - Fetch options including cache settings.\n * @returns The spot prices response.\n */\n async fetchV3SpotPrices(\n assetIds: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n includeMarketData?: boolean;\n cacheOnly?: boolean;\n },\n options?: FetchOptions,\n ): Promise<V3SpotPricesResponse> {\n if (assetIds.length === 0) {\n return {};\n }\n return this.queryClient.fetchQuery(\n this.getV3SpotPricesQueryOptions(assetIds, queryOptions, options),\n );\n }\n\n // ==========================================================================\n // V1 HISTORICAL PRICES\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v1 historical prices by coin ID.\n *\n * @param coinId - The CoinGecko coin ID.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timePeriod - The time period.\n * @param queryOptions.from - Start timestamp.\n * @param queryOptions.to - End timestamp.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1HistoricalPricesByCoinIdQueryOptions(\n coinId: string,\n queryOptions?: {\n currency?: SupportedCurrency;\n timePeriod?: string;\n from?: number;\n to?: number;\n },\n options?: FetchOptions,\n ): FetchQueryOptions<V1HistoricalPricesResponse> {\n return {\n queryKey: ['prices', 'v1HistoricalByCoinId', coinId, queryOptions],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V1HistoricalPricesResponse>(\n this.apiUrls.PRICES,\n `/v1/historical-prices/${coinId}`,\n {\n signal,\n params: {\n vsCurrency: queryOptions?.currency,\n timePeriod: queryOptions?.timePeriod,\n from: queryOptions?.from,\n to: queryOptions?.to,\n },\n },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get historical prices by CoinGecko coin ID (v1 endpoint).\n *\n * @param coinId - The CoinGecko coin ID.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timePeriod - The time period.\n * @param queryOptions.from - Start timestamp.\n * @param queryOptions.to - End timestamp.\n * @param options - Fetch options including cache settings.\n * @returns The historical prices response.\n */\n async fetchV1HistoricalPricesByCoinId(\n coinId: string,\n queryOptions?: {\n currency?: SupportedCurrency;\n timePeriod?: string;\n from?: number;\n to?: number;\n },\n options?: FetchOptions,\n ): Promise<V1HistoricalPricesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1HistoricalPricesByCoinIdQueryOptions(\n coinId,\n queryOptions,\n options,\n ),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 historical prices by token addresses.\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddresses - Array of token addresses.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timePeriod - The time period.\n * @param queryOptions.from - Start timestamp.\n * @param queryOptions.to - End timestamp.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1HistoricalPricesByTokenAddressesQueryOptions(\n chainId: string,\n tokenAddresses: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n timePeriod?: string;\n from?: number;\n to?: number;\n },\n options?: FetchOptions,\n ): FetchQueryOptions<V1HistoricalPricesResponse> {\n const chainIdDecimal = parseInt(chainId, 16);\n return {\n queryKey: [\n 'prices',\n 'v1HistoricalByTokenAddresses',\n {\n chainId,\n tokenAddresses: [...tokenAddresses].sort(),\n options: queryOptions,\n },\n ],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V1HistoricalPricesResponse>(\n this.apiUrls.PRICES,\n `/v1/chains/${chainIdDecimal}/historical-prices`,\n {\n signal,\n params: {\n tokenAddresses,\n vsCurrency: queryOptions?.currency,\n timePeriod: queryOptions?.timePeriod,\n from: queryOptions?.from,\n to: queryOptions?.to,\n },\n },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get historical prices for tokens on a chain (v1 endpoint).\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddresses - Array of token addresses.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timePeriod - The time period.\n * @param queryOptions.from - Start timestamp.\n * @param queryOptions.to - End timestamp.\n * @param options - Fetch options including cache settings.\n * @returns The historical prices response.\n */\n async fetchV1HistoricalPricesByTokenAddresses(\n chainId: string,\n tokenAddresses: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n timePeriod?: string;\n from?: number;\n to?: number;\n },\n options?: FetchOptions,\n ): Promise<V1HistoricalPricesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1HistoricalPricesByTokenAddressesQueryOptions(\n chainId,\n tokenAddresses,\n queryOptions,\n options,\n ),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 historical prices.\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddress - The token address.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timeRange - The time range.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1HistoricalPricesQueryOptions(\n chainId: string,\n tokenAddress: string,\n queryOptions?: { currency?: SupportedCurrency; timeRange?: string },\n options?: FetchOptions,\n ): FetchQueryOptions<V1HistoricalPricesResponse> {\n const chainIdDecimal = parseInt(chainId, 16);\n const currency = queryOptions?.currency ?? 'usd';\n const timeRange = queryOptions?.timeRange ?? '7d';\n return {\n queryKey: [\n 'prices',\n 'v1Historical',\n chainId,\n tokenAddress,\n currency,\n timeRange,\n ],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V1HistoricalPricesResponse>(\n this.apiUrls.PRICES,\n `/v1/chains/${chainIdDecimal}/historical-prices/${tokenAddress}`,\n {\n signal,\n params: {\n vsCurrency: currency,\n timePeriod: timeRange,\n },\n },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get historical prices for a single token (v1 endpoint).\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddress - The token address.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timeRange - The time range.\n * @param options - Fetch options including cache settings.\n * @returns The historical prices response.\n */\n async fetchV1HistoricalPrices(\n chainId: string,\n tokenAddress: string,\n queryOptions?: { currency?: SupportedCurrency; timeRange?: string },\n options?: FetchOptions,\n ): Promise<V1HistoricalPricesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1HistoricalPricesQueryOptions(\n chainId,\n tokenAddress,\n queryOptions,\n options,\n ),\n );\n }\n\n // ==========================================================================\n // V3 HISTORICAL PRICES\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v3 historical prices.\n *\n * @param chainId - The CAIP-2 chain ID.\n * @param assetType - The asset type portion of CAIP-19.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timePeriod - The time period.\n * @param queryOptions.from - Start timestamp.\n * @param queryOptions.to - End timestamp.\n * @param queryOptions.interval - Data interval.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV3HistoricalPricesQueryOptions(\n chainId: string,\n assetType: string,\n queryOptions?: {\n currency?: SupportedCurrency;\n timePeriod?: string;\n from?: number;\n to?: number;\n interval?: '5m' | 'hourly' | 'daily';\n },\n options?: FetchOptions,\n ): FetchQueryOptions<V3HistoricalPricesResponse> {\n return {\n queryKey: ['prices', 'v3Historical', chainId, assetType, queryOptions],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V3HistoricalPricesResponse>(\n this.apiUrls.PRICES,\n `/v3/historical-prices/${chainId}/${assetType}`,\n {\n signal,\n params: {\n vsCurrency: queryOptions?.currency,\n timePeriod: queryOptions?.timePeriod,\n from: queryOptions?.from,\n to: queryOptions?.to,\n interval: queryOptions?.interval,\n },\n },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get historical prices by CAIP-19 asset ID (v3 endpoint).\n *\n * @param chainId - The CAIP-2 chain ID.\n * @param assetType - The asset type portion of CAIP-19.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timePeriod - The time period.\n * @param queryOptions.from - Start timestamp.\n * @param queryOptions.to - End timestamp.\n * @param queryOptions.interval - Data interval.\n * @param options - Fetch options including cache settings.\n * @returns The historical prices response.\n */\n async fetchV3HistoricalPrices(\n chainId: string,\n assetType: string,\n queryOptions?: {\n currency?: SupportedCurrency;\n timePeriod?: string;\n from?: number;\n to?: number;\n interval?: '5m' | 'hourly' | 'daily';\n },\n options?: FetchOptions,\n ): Promise<V3HistoricalPricesResponse> {\n return this.queryClient.fetchQuery(\n this.getV3HistoricalPricesQueryOptions(\n chainId,\n assetType,\n queryOptions,\n options,\n ),\n );\n }\n\n // ==========================================================================\n // V1 HISTORICAL PRICE GRAPH\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v1 historical price graph by coin ID.\n *\n * @param coinId - The CoinGecko coin ID.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeOHLC - Whether to include OHLC data.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1HistoricalPriceGraphByCoinIdQueryOptions(\n coinId: string,\n queryOptions?: { currency?: SupportedCurrency; includeOHLC?: boolean },\n options?: FetchOptions,\n ): FetchQueryOptions<V3HistoricalPricesResponse> {\n const currency = queryOptions?.currency ?? 'usd';\n const includeOHLC = queryOptions?.includeOHLC ?? false;\n return {\n queryKey: ['prices', 'v1GraphByCoinId', coinId, currency, includeOHLC],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V3HistoricalPricesResponse>(\n this.apiUrls.PRICES,\n `/v1/historical-prices-graph/${coinId}`,\n {\n signal,\n params: {\n vsCurrency: currency,\n includeOHLC,\n },\n },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get historical price graph data by CoinGecko coin ID (v1 endpoint).\n *\n * @param coinId - The CoinGecko coin ID.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeOHLC - Whether to include OHLC data.\n * @param options - Fetch options including cache settings.\n * @returns The historical price graph response.\n */\n async fetchV1HistoricalPriceGraphByCoinId(\n coinId: string,\n queryOptions?: { currency?: SupportedCurrency; includeOHLC?: boolean },\n options?: FetchOptions,\n ): Promise<V3HistoricalPricesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1HistoricalPriceGraphByCoinIdQueryOptions(\n coinId,\n queryOptions,\n options,\n ),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 historical price graph by token address.\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddress - The token address.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeOHLC - Whether to include OHLC data.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1HistoricalPriceGraphByTokenAddressQueryOptions(\n chainId: string,\n tokenAddress: string,\n queryOptions?: { currency?: SupportedCurrency; includeOHLC?: boolean },\n options?: FetchOptions,\n ): FetchQueryOptions<V3HistoricalPricesResponse> {\n const chainIdDecimal = parseInt(chainId, 16);\n const currency = queryOptions?.currency ?? 'usd';\n const includeOHLC = queryOptions?.includeOHLC ?? false;\n return {\n queryKey: [\n 'prices',\n 'v1GraphByTokenAddress',\n chainId,\n tokenAddress,\n currency,\n includeOHLC,\n ],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V3HistoricalPricesResponse>(\n this.apiUrls.PRICES,\n `/v1/chains/${chainIdDecimal}/historical-prices-graph/${tokenAddress}`,\n {\n signal,\n params: {\n vsCurrency: currency,\n includeOHLC,\n },\n },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get historical price graph data by token address (v1 endpoint).\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddress - The token address.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeOHLC - Whether to include OHLC data.\n * @param options - Fetch options including cache settings.\n * @returns The historical price graph response.\n */\n async fetchV1HistoricalPriceGraphByTokenAddress(\n chainId: string,\n tokenAddress: string,\n queryOptions?: { currency?: SupportedCurrency; includeOHLC?: boolean },\n options?: FetchOptions,\n ): Promise<V3HistoricalPricesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1HistoricalPriceGraphByTokenAddressQueryOptions(\n chainId,\n tokenAddress,\n queryOptions,\n options,\n ),\n );\n }\n}\n"]}
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/api/prices/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAe9D;;;GAGG;AACH,MAAM,OAAO,eAAgB,SAAQ,aAAa;IAChD,6EAA6E;IAC7E,mBAAmB;IACnB,6EAA6E;IAE7E;;OAEG;IACH,KAAK,CAAC,gBAAgB;QACpB,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC;YACvC,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB,CAAC,CAAC;IACL,CAAC;IAED,6EAA6E;IAC7E,qBAAq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,KAAK,CAAC;QACjD,MAAM,WAAW,GAAG,YAAY,EAAE,WAAW,IAAI,KAAK,CAAC;QACvD,OAAO;YACL,QAAQ,EAAE;gBACR,QAAQ;gBACR,uBAAuB;gBACvB,OAAO;gBACP,YAAY;gBACZ,QAAQ;gBACR,WAAW;aACZ;YACD,OAAO,EAAE,CAAC,EAAE,MAAM,EAAwB,EAAE,EAAE,CAC5C,IAAI,CAAC,KAAK,CACR,IAAI,CAAC,OAAO,CAAC,MAAM,EACnB,cAAc,cAAc,4BAA4B,YAAY,EAAE,EACtE;gBACE,MAAM;gBACN,MAAM,EAAE;oBACN,UAAU,EAAE,QAAQ;oBACpB,WAAW;iBACZ;aACF,CACF;YACH,GAAG,wBAAwB,CAAC,OAAO,CAAC;YACpC,SAAS,EAAE,OAAO,EAAE,SAAS,IAAI,WAAW,CAAC,MAAM;YACnD,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,QAAQ,CAAC,OAAO;SAC5C,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,yCAAyC,CAC7C,OAAe,EACf,YAAoB,EACpB,YAAsE,EACtE,OAAsB;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAChC,IAAI,CAAC,mDAAmD,CACtD,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,CACR,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/**\n * Prices API Client - price.api.cx.metamask.io\n *\n * Handles all price-related API calls including:\n * - Supported networks\n * - Exchange rates\n * - Spot prices (v1, v2, v3)\n * - Historical prices\n * - Price graphs\n */\n\nimport type {\n FetchQueryOptions,\n QueryFunctionContext,\n} from '@tanstack/query-core';\n\nimport { BaseApiClient, STALE_TIMES, GC_TIMES } from '../base-client.js';\nimport { getQueryOptionsOverrides } from '../shared-types.js';\nimport type {\n FetchOptions,\n MarketDataDetails,\n SupportedCurrency,\n} from '../shared-types.js';\nimport type {\n CoinGeckoSpotPrice,\n V1ExchangeRatesResponse,\n PriceSupportedNetworksResponse,\n V1HistoricalPricesResponse,\n V3SpotPricesResponse,\n V3HistoricalPricesResponse,\n} from './types.js';\n\n/**\n * Prices API Client.\n * Provides methods for interacting with the Price API.\n */\nexport class PricesApiClient extends BaseApiClient {\n // ==========================================================================\n // CACHE MANAGEMENT\n // ==========================================================================\n\n /**\n * Invalidate all price queries.\n */\n async invalidatePrices(): Promise<void> {\n await this.queryClient.invalidateQueries({\n queryKey: ['prices'],\n });\n }\n\n // ==========================================================================\n // SUPPORTED NETWORKS\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for price v1 supported networks.\n *\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getPriceV1SupportedNetworksQueryOptions(\n options?: FetchOptions,\n ): FetchQueryOptions<PriceSupportedNetworksResponse> {\n return {\n queryKey: ['prices', 'v1SupportedNetworks'],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<PriceSupportedNetworksResponse>(\n this.apiUrls.PRICES,\n '/v1/supportedNetworks',\n { signal },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.SUPPORTED_NETWORKS,\n gcTime: options?.gcTime ?? GC_TIMES.EXTENDED,\n };\n }\n\n /**\n * Get price supported networks (v1 endpoint).\n *\n * @param options - Fetch options including cache settings.\n * @returns The supported networks response.\n */\n async fetchPriceV1SupportedNetworks(\n options?: FetchOptions,\n ): Promise<PriceSupportedNetworksResponse> {\n return this.queryClient.fetchQuery(\n this.getPriceV1SupportedNetworksQueryOptions(options),\n );\n }\n\n /**\n * Returns the TanStack Query options object for price v2 supported networks.\n *\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getPriceV2SupportedNetworksQueryOptions(\n options?: FetchOptions,\n ): FetchQueryOptions<PriceSupportedNetworksResponse> {\n return {\n queryKey: ['prices', 'v2SupportedNetworks'],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<PriceSupportedNetworksResponse>(\n this.apiUrls.PRICES,\n '/v2/supportedNetworks',\n { signal },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.SUPPORTED_NETWORKS,\n gcTime: options?.gcTime ?? GC_TIMES.EXTENDED,\n };\n }\n\n /**\n * Get price supported networks in CAIP format (v2 endpoint).\n *\n * @param options - Fetch options including cache settings.\n * @returns The supported networks response.\n */\n async fetchPriceV2SupportedNetworks(\n options?: FetchOptions,\n ): Promise<PriceSupportedNetworksResponse> {\n return this.queryClient.fetchQuery(\n this.getPriceV2SupportedNetworksQueryOptions(options),\n );\n }\n\n // ==========================================================================\n // EXCHANGE RATES\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v1 exchange rates.\n *\n * @param baseCurrency - The base currency code.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1ExchangeRatesQueryOptions(\n baseCurrency: string,\n options?: FetchOptions,\n ): FetchQueryOptions<V1ExchangeRatesResponse> {\n return {\n queryKey: ['prices', 'v1ExchangeRates', baseCurrency],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<V1ExchangeRatesResponse> => {\n if (baseCurrency === '') {\n return {};\n }\n return this.fetch<V1ExchangeRatesResponse>(\n this.apiUrls.PRICES,\n '/v1/exchange-rates',\n {\n signal,\n params: { baseCurrency },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.EXCHANGE_RATES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get all exchange rates for a base currency (v1 endpoint).\n *\n * @param baseCurrency - The base currency code.\n * @param options - Fetch options including cache settings.\n * @returns The exchange rates response.\n */\n async fetchV1ExchangeRates(\n baseCurrency: string,\n options?: FetchOptions,\n ): Promise<V1ExchangeRatesResponse> {\n if (baseCurrency === '') {\n return {};\n }\n return this.queryClient.fetchQuery(\n this.getV1ExchangeRatesQueryOptions(baseCurrency, options),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 fiat exchange rates.\n *\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1FiatExchangeRatesQueryOptions(\n options?: FetchOptions,\n ): FetchQueryOptions<V1ExchangeRatesResponse> {\n return {\n queryKey: ['prices', 'v1FiatExchangeRates'],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V1ExchangeRatesResponse>(\n this.apiUrls.PRICES,\n '/v1/exchange-rates/fiat',\n { signal },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.EXCHANGE_RATES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get fiat exchange rates (v1 endpoint).\n *\n * @param options - Fetch options including cache settings.\n * @returns The exchange rates response.\n */\n async fetchV1FiatExchangeRates(\n options?: FetchOptions,\n ): Promise<V1ExchangeRatesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1FiatExchangeRatesQueryOptions(options),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 crypto exchange rates.\n *\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1CryptoExchangeRatesQueryOptions(\n options?: FetchOptions,\n ): FetchQueryOptions<V1ExchangeRatesResponse> {\n return {\n queryKey: ['prices', 'v1CryptoExchangeRates'],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V1ExchangeRatesResponse>(\n this.apiUrls.PRICES,\n '/v1/exchange-rates/crypto',\n { signal },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.EXCHANGE_RATES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get crypto exchange rates (v1 endpoint).\n *\n * @param options - Fetch options including cache settings.\n * @returns The exchange rates response.\n */\n async fetchV1CryptoExchangeRates(\n options?: FetchOptions,\n ): Promise<V1ExchangeRatesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1CryptoExchangeRatesQueryOptions(options),\n );\n }\n\n // ==========================================================================\n // V1 SPOT PRICES (CoinGecko ID based)\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v1 spot prices by coin IDs.\n *\n * @param coinIds - Array of CoinGecko coin IDs.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1SpotPricesByCoinIdsQueryOptions(\n coinIds: string[],\n options?: FetchOptions,\n ): FetchQueryOptions<Record<string, CoinGeckoSpotPrice>> {\n return {\n queryKey: [\n 'prices',\n 'v1SpotPricesByCoinIds',\n { coinIds: [...coinIds].sort() },\n ],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<Record<string, CoinGeckoSpotPrice>> => {\n if (coinIds.length === 0) {\n return {};\n }\n return this.fetch<Record<string, CoinGeckoSpotPrice>>(\n this.apiUrls.PRICES,\n '/v1/spot-prices',\n {\n signal,\n params: { coinIds },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get spot prices by CoinGecko coin IDs (v1 endpoint).\n *\n * @param coinIds - Array of CoinGecko coin IDs.\n * @param options - Fetch options including cache settings.\n * @returns The spot prices by coin ID.\n */\n async fetchV1SpotPricesByCoinIds(\n coinIds: string[],\n options?: FetchOptions,\n ): Promise<Record<string, CoinGeckoSpotPrice>> {\n if (coinIds.length === 0) {\n return {};\n }\n return this.queryClient.fetchQuery(\n this.getV1SpotPricesByCoinIdsQueryOptions(coinIds, options),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 spot price by coin ID.\n *\n * @param coinId - The CoinGecko coin ID.\n * @param currency - The currency for prices.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1SpotPriceByCoinIdQueryOptions(\n coinId: string,\n currency: SupportedCurrency = 'usd',\n options?: FetchOptions,\n ): FetchQueryOptions<CoinGeckoSpotPrice> {\n return {\n queryKey: ['prices', 'v1SpotPriceByCoinId', coinId, currency],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<CoinGeckoSpotPrice> => {\n if (coinId === '') {\n return { id: '', price: 0 };\n }\n return this.fetch<CoinGeckoSpotPrice>(\n this.apiUrls.PRICES,\n `/v1/spot-prices/${coinId}`,\n {\n signal,\n params: { vsCurrency: currency },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get spot price for a single CoinGecko coin ID (v1 endpoint).\n *\n * @param coinId - The CoinGecko coin ID.\n * @param currency - The currency for prices.\n * @param options - Fetch options including cache settings.\n * @returns The spot price data.\n */\n async fetchV1SpotPriceByCoinId(\n coinId: string,\n currency: SupportedCurrency = 'usd',\n options?: FetchOptions,\n ): Promise<CoinGeckoSpotPrice> {\n return this.queryClient.fetchQuery(\n this.getV1SpotPriceByCoinIdQueryOptions(coinId, currency, options),\n );\n }\n\n // ==========================================================================\n // V1 SPOT PRICES (Token Address based)\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v1 token prices.\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddresses - Array of token addresses.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeMarketData - Whether to include market data.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1TokenPricesQueryOptions(\n chainId: string,\n tokenAddresses: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n includeMarketData?: boolean;\n },\n options?: FetchOptions,\n ): FetchQueryOptions<Record<string, Record<string, number>>> {\n const chainIdDecimal = parseInt(chainId, 16);\n const currency = queryOptions?.currency ?? 'usd';\n return {\n queryKey: [\n 'prices',\n 'v1TokenPrices',\n {\n chainId,\n tokenAddresses: [...tokenAddresses].sort(),\n currency,\n includeMarketData: queryOptions?.includeMarketData,\n },\n ],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<\n Record<string, Record<string, number>>\n > => {\n if (chainId === '' || tokenAddresses.length === 0) {\n return {};\n }\n return this.fetch<Record<string, Record<string, number>>>(\n this.apiUrls.PRICES,\n `/v1/chains/${chainIdDecimal}/spot-prices`,\n {\n signal,\n params: {\n tokenAddresses,\n vsCurrency: currency,\n includeMarketData: queryOptions?.includeMarketData,\n },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get spot prices for tokens on a chain (v1 endpoint).\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddresses - Array of token addresses.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeMarketData - Whether to include market data.\n * @param options - Fetch options including cache settings.\n * @returns The token prices by address.\n */\n async fetchV1TokenPrices(\n chainId: string,\n tokenAddresses: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n includeMarketData?: boolean;\n },\n options?: FetchOptions,\n ): Promise<Record<string, Record<string, number>>> {\n if (chainId === '' || tokenAddresses.length === 0) {\n return {};\n }\n return this.queryClient.fetchQuery(\n this.getV1TokenPricesQueryOptions(\n chainId,\n tokenAddresses,\n queryOptions,\n options,\n ),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 token price.\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddress - The token address.\n * @param currency - The currency for prices.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1TokenPriceQueryOptions(\n chainId: string,\n tokenAddress: string,\n currency: SupportedCurrency = 'usd',\n options?: FetchOptions,\n ): FetchQueryOptions<MarketDataDetails> {\n const chainIdDecimal = parseInt(chainId, 16);\n return {\n queryKey: ['prices', 'v1TokenPrice', chainId, tokenAddress, currency],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<MarketDataDetails> => {\n return this.fetch<MarketDataDetails>(\n this.apiUrls.PRICES,\n `/v1/chains/${chainIdDecimal}/spot-prices/${tokenAddress}`,\n {\n signal,\n params: { vsCurrency: currency },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get spot price for a single token (v1 endpoint).\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddress - The token address.\n * @param currency - The currency for prices.\n * @param options - Fetch options including cache settings.\n * @returns The market data.\n */\n async fetchV1TokenPrice(\n chainId: string,\n tokenAddress: string,\n currency: SupportedCurrency = 'usd',\n options?: FetchOptions,\n ): Promise<MarketDataDetails> {\n return this.queryClient.fetchQuery(\n this.getV1TokenPriceQueryOptions(\n chainId,\n tokenAddress,\n currency,\n options,\n ),\n );\n }\n\n // ==========================================================================\n // V2 SPOT PRICES\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v2 spot prices.\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddresses - Array of token addresses.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeMarketData - Whether to include market data.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV2SpotPricesQueryOptions(\n chainId: string,\n tokenAddresses: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n includeMarketData?: boolean;\n },\n options?: FetchOptions,\n ): FetchQueryOptions<Record<string, MarketDataDetails>> {\n const chainIdDecimal = parseInt(chainId, 16);\n const currency = queryOptions?.currency ?? 'usd';\n const includeMarketData = queryOptions?.includeMarketData ?? true;\n return {\n queryKey: [\n 'prices',\n 'v2SpotPrices',\n {\n chainId,\n tokenAddresses: [...tokenAddresses].sort(),\n currency,\n includeMarketData,\n },\n ],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<Record<string, MarketDataDetails>> => {\n if (chainId === '' || tokenAddresses.length === 0) {\n return {};\n }\n return this.fetch<Record<string, MarketDataDetails>>(\n this.apiUrls.PRICES,\n `/v2/chains/${chainIdDecimal}/spot-prices`,\n {\n signal,\n params: {\n tokenAddresses,\n vsCurrency: currency,\n includeMarketData: queryOptions?.includeMarketData ?? true,\n },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get spot prices for tokens on a chain with market data (v2 endpoint).\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddresses - Array of token addresses.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeMarketData - Whether to include market data.\n * @param options - Fetch options including cache settings.\n * @returns The spot prices with market data.\n */\n async fetchV2SpotPrices(\n chainId: string,\n tokenAddresses: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n includeMarketData?: boolean;\n },\n options?: FetchOptions,\n ): Promise<Record<string, MarketDataDetails>> {\n if (chainId === '' || tokenAddresses.length === 0) {\n return {};\n }\n return this.queryClient.fetchQuery(\n this.getV2SpotPricesQueryOptions(\n chainId,\n tokenAddresses,\n queryOptions,\n options,\n ),\n );\n }\n\n // ==========================================================================\n // V3 SPOT PRICES (CAIP-19 based)\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v3 spot prices.\n *\n * @param assetIds - Array of CAIP-19 asset IDs.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeMarketData - Whether to include market data.\n * @param queryOptions.cacheOnly - Whether to use cache only.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV3SpotPricesQueryOptions(\n assetIds: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n includeMarketData?: boolean;\n cacheOnly?: boolean;\n },\n options?: FetchOptions,\n ): FetchQueryOptions<V3SpotPricesResponse> {\n const currency = queryOptions?.currency ?? 'usd';\n const includeMarketData = queryOptions?.includeMarketData ?? true;\n const cacheOnly = queryOptions?.cacheOnly ?? false;\n return {\n queryKey: [\n 'prices',\n 'v3SpotPrices',\n {\n assetIds: [...assetIds].sort(),\n currency,\n includeMarketData,\n cacheOnly,\n },\n ],\n queryFn: async ({\n signal,\n }: QueryFunctionContext): Promise<V3SpotPricesResponse> => {\n if (assetIds.length === 0) {\n return {};\n }\n return this.fetch<V3SpotPricesResponse>(\n this.apiUrls.PRICES,\n '/v3/spot-prices',\n {\n signal,\n params: {\n assetIds,\n vsCurrency: currency,\n includeMarketData,\n cacheOnly,\n },\n },\n );\n },\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get spot prices by CAIP-19 asset IDs (v3 endpoint).\n *\n * @param assetIds - Array of CAIP-19 asset IDs.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeMarketData - Whether to include market data.\n * @param queryOptions.cacheOnly - Whether to use cache only.\n * @param options - Fetch options including cache settings.\n * @returns The spot prices response.\n */\n async fetchV3SpotPrices(\n assetIds: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n includeMarketData?: boolean;\n cacheOnly?: boolean;\n },\n options?: FetchOptions,\n ): Promise<V3SpotPricesResponse> {\n if (assetIds.length === 0) {\n return {};\n }\n return this.queryClient.fetchQuery(\n this.getV3SpotPricesQueryOptions(assetIds, queryOptions, options),\n );\n }\n\n // ==========================================================================\n // V1 HISTORICAL PRICES\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v1 historical prices by coin ID.\n *\n * @param coinId - The CoinGecko coin ID.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timePeriod - The time period.\n * @param queryOptions.from - Start timestamp.\n * @param queryOptions.to - End timestamp.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1HistoricalPricesByCoinIdQueryOptions(\n coinId: string,\n queryOptions?: {\n currency?: SupportedCurrency;\n timePeriod?: string;\n from?: number;\n to?: number;\n },\n options?: FetchOptions,\n ): FetchQueryOptions<V1HistoricalPricesResponse> {\n return {\n queryKey: ['prices', 'v1HistoricalByCoinId', coinId, queryOptions],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V1HistoricalPricesResponse>(\n this.apiUrls.PRICES,\n `/v1/historical-prices/${coinId}`,\n {\n signal,\n params: {\n vsCurrency: queryOptions?.currency,\n timePeriod: queryOptions?.timePeriod,\n from: queryOptions?.from,\n to: queryOptions?.to,\n },\n },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get historical prices by CoinGecko coin ID (v1 endpoint).\n *\n * @param coinId - The CoinGecko coin ID.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timePeriod - The time period.\n * @param queryOptions.from - Start timestamp.\n * @param queryOptions.to - End timestamp.\n * @param options - Fetch options including cache settings.\n * @returns The historical prices response.\n */\n async fetchV1HistoricalPricesByCoinId(\n coinId: string,\n queryOptions?: {\n currency?: SupportedCurrency;\n timePeriod?: string;\n from?: number;\n to?: number;\n },\n options?: FetchOptions,\n ): Promise<V1HistoricalPricesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1HistoricalPricesByCoinIdQueryOptions(\n coinId,\n queryOptions,\n options,\n ),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 historical prices by token addresses.\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddresses - Array of token addresses.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timePeriod - The time period.\n * @param queryOptions.from - Start timestamp.\n * @param queryOptions.to - End timestamp.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1HistoricalPricesByTokenAddressesQueryOptions(\n chainId: string,\n tokenAddresses: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n timePeriod?: string;\n from?: number;\n to?: number;\n },\n options?: FetchOptions,\n ): FetchQueryOptions<V1HistoricalPricesResponse> {\n const chainIdDecimal = parseInt(chainId, 16);\n return {\n queryKey: [\n 'prices',\n 'v1HistoricalByTokenAddresses',\n {\n chainId,\n tokenAddresses: [...tokenAddresses].sort(),\n options: queryOptions,\n },\n ],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V1HistoricalPricesResponse>(\n this.apiUrls.PRICES,\n `/v1/chains/${chainIdDecimal}/historical-prices`,\n {\n signal,\n params: {\n tokenAddresses,\n vsCurrency: queryOptions?.currency,\n timePeriod: queryOptions?.timePeriod,\n from: queryOptions?.from,\n to: queryOptions?.to,\n },\n },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get historical prices for tokens on a chain (v1 endpoint).\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddresses - Array of token addresses.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timePeriod - The time period.\n * @param queryOptions.from - Start timestamp.\n * @param queryOptions.to - End timestamp.\n * @param options - Fetch options including cache settings.\n * @returns The historical prices response.\n */\n async fetchV1HistoricalPricesByTokenAddresses(\n chainId: string,\n tokenAddresses: string[],\n queryOptions?: {\n currency?: SupportedCurrency;\n timePeriod?: string;\n from?: number;\n to?: number;\n },\n options?: FetchOptions,\n ): Promise<V1HistoricalPricesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1HistoricalPricesByTokenAddressesQueryOptions(\n chainId,\n tokenAddresses,\n queryOptions,\n options,\n ),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 historical prices.\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddress - The token address.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timeRange - The time range.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1HistoricalPricesQueryOptions(\n chainId: string,\n tokenAddress: string,\n queryOptions?: { currency?: SupportedCurrency; timeRange?: string },\n options?: FetchOptions,\n ): FetchQueryOptions<V1HistoricalPricesResponse> {\n const chainIdDecimal = parseInt(chainId, 16);\n const currency = queryOptions?.currency ?? 'usd';\n const timeRange = queryOptions?.timeRange ?? '7d';\n return {\n queryKey: [\n 'prices',\n 'v1Historical',\n chainId,\n tokenAddress,\n currency,\n timeRange,\n ],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V1HistoricalPricesResponse>(\n this.apiUrls.PRICES,\n `/v1/chains/${chainIdDecimal}/historical-prices/${tokenAddress}`,\n {\n signal,\n params: {\n vsCurrency: currency,\n timePeriod: timeRange,\n },\n },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get historical prices for a single token (v1 endpoint).\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddress - The token address.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timeRange - The time range.\n * @param options - Fetch options including cache settings.\n * @returns The historical prices response.\n */\n async fetchV1HistoricalPrices(\n chainId: string,\n tokenAddress: string,\n queryOptions?: { currency?: SupportedCurrency; timeRange?: string },\n options?: FetchOptions,\n ): Promise<V1HistoricalPricesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1HistoricalPricesQueryOptions(\n chainId,\n tokenAddress,\n queryOptions,\n options,\n ),\n );\n }\n\n // ==========================================================================\n // V3 HISTORICAL PRICES\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v3 historical prices.\n *\n * @param chainId - The CAIP-2 chain ID.\n * @param assetType - The asset type portion of CAIP-19.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timePeriod - The time period.\n * @param queryOptions.from - Start timestamp.\n * @param queryOptions.to - End timestamp.\n * @param queryOptions.interval - Data interval.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV3HistoricalPricesQueryOptions(\n chainId: string,\n assetType: string,\n queryOptions?: {\n currency?: SupportedCurrency;\n timePeriod?: string;\n from?: number;\n to?: number;\n interval?: '5m' | 'hourly' | 'daily';\n },\n options?: FetchOptions,\n ): FetchQueryOptions<V3HistoricalPricesResponse> {\n return {\n queryKey: ['prices', 'v3Historical', chainId, assetType, queryOptions],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V3HistoricalPricesResponse>(\n this.apiUrls.PRICES,\n `/v3/historical-prices/${chainId}/${assetType}`,\n {\n signal,\n params: {\n vsCurrency: queryOptions?.currency,\n timePeriod: queryOptions?.timePeriod,\n from: queryOptions?.from,\n to: queryOptions?.to,\n interval: queryOptions?.interval,\n },\n },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get historical prices by CAIP-19 asset ID (v3 endpoint).\n *\n * @param chainId - The CAIP-2 chain ID.\n * @param assetType - The asset type portion of CAIP-19.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.timePeriod - The time period.\n * @param queryOptions.from - Start timestamp.\n * @param queryOptions.to - End timestamp.\n * @param queryOptions.interval - Data interval.\n * @param options - Fetch options including cache settings.\n * @returns The historical prices response.\n */\n async fetchV3HistoricalPrices(\n chainId: string,\n assetType: string,\n queryOptions?: {\n currency?: SupportedCurrency;\n timePeriod?: string;\n from?: number;\n to?: number;\n interval?: '5m' | 'hourly' | 'daily';\n },\n options?: FetchOptions,\n ): Promise<V3HistoricalPricesResponse> {\n return this.queryClient.fetchQuery(\n this.getV3HistoricalPricesQueryOptions(\n chainId,\n assetType,\n queryOptions,\n options,\n ),\n );\n }\n\n // ==========================================================================\n // V1 HISTORICAL PRICE GRAPH\n // ==========================================================================\n\n /**\n * Returns the TanStack Query options object for v1 historical price graph by coin ID.\n *\n * @param coinId - The CoinGecko coin ID.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeOHLC - Whether to include OHLC data.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1HistoricalPriceGraphByCoinIdQueryOptions(\n coinId: string,\n queryOptions?: { currency?: SupportedCurrency; includeOHLC?: boolean },\n options?: FetchOptions,\n ): FetchQueryOptions<V3HistoricalPricesResponse> {\n const currency = queryOptions?.currency ?? 'usd';\n const includeOHLC = queryOptions?.includeOHLC ?? false;\n return {\n queryKey: ['prices', 'v1GraphByCoinId', coinId, currency, includeOHLC],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V3HistoricalPricesResponse>(\n this.apiUrls.PRICES,\n `/v1/historical-prices-graph/${coinId}`,\n {\n signal,\n params: {\n vsCurrency: currency,\n includeOHLC,\n },\n },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get historical price graph data by CoinGecko coin ID (v1 endpoint).\n *\n * @param coinId - The CoinGecko coin ID.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeOHLC - Whether to include OHLC data.\n * @param options - Fetch options including cache settings.\n * @returns The historical price graph response.\n */\n async fetchV1HistoricalPriceGraphByCoinId(\n coinId: string,\n queryOptions?: { currency?: SupportedCurrency; includeOHLC?: boolean },\n options?: FetchOptions,\n ): Promise<V3HistoricalPricesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1HistoricalPriceGraphByCoinIdQueryOptions(\n coinId,\n queryOptions,\n options,\n ),\n );\n }\n\n /**\n * Returns the TanStack Query options object for v1 historical price graph by token address.\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddress - The token address.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeOHLC - Whether to include OHLC data.\n * @param options - Fetch options including cache settings.\n * @returns TanStack Query options for use with useQuery, useSuspenseQuery, etc.\n */\n getV1HistoricalPriceGraphByTokenAddressQueryOptions(\n chainId: string,\n tokenAddress: string,\n queryOptions?: { currency?: SupportedCurrency; includeOHLC?: boolean },\n options?: FetchOptions,\n ): FetchQueryOptions<V3HistoricalPricesResponse> {\n const chainIdDecimal = parseInt(chainId, 16);\n const currency = queryOptions?.currency ?? 'usd';\n const includeOHLC = queryOptions?.includeOHLC ?? false;\n return {\n queryKey: [\n 'prices',\n 'v1GraphByTokenAddress',\n chainId,\n tokenAddress,\n currency,\n includeOHLC,\n ],\n queryFn: ({ signal }: QueryFunctionContext) =>\n this.fetch<V3HistoricalPricesResponse>(\n this.apiUrls.PRICES,\n `/v1/chains/${chainIdDecimal}/historical-prices-graph/${tokenAddress}`,\n {\n signal,\n params: {\n vsCurrency: currency,\n includeOHLC,\n },\n },\n ),\n ...getQueryOptionsOverrides(options),\n staleTime: options?.staleTime ?? STALE_TIMES.PRICES,\n gcTime: options?.gcTime ?? GC_TIMES.DEFAULT,\n };\n }\n\n /**\n * Get historical price graph data by token address (v1 endpoint).\n *\n * @param chainId - The chain ID (hex format).\n * @param tokenAddress - The token address.\n * @param queryOptions - Query options.\n * @param queryOptions.currency - The currency for prices.\n * @param queryOptions.includeOHLC - Whether to include OHLC data.\n * @param options - Fetch options including cache settings.\n * @returns The historical price graph response.\n */\n async fetchV1HistoricalPriceGraphByTokenAddress(\n chainId: string,\n tokenAddress: string,\n queryOptions?: { currency?: SupportedCurrency; includeOHLC?: boolean },\n options?: FetchOptions,\n ): Promise<V3HistoricalPricesResponse> {\n return this.queryClient.fetchQuery(\n this.getV1HistoricalPriceGraphByTokenAddressQueryOptions(\n chainId,\n tokenAddress,\n queryOptions,\n options,\n ),\n );\n }\n}\n"]}
@@ -2,5 +2,5 @@
2
2
  * Prices API barrel export.
3
3
  */
4
4
  export { PricesApiClient } from './client.js';
5
- export type { V3SpotPricesResponse, CoinGeckoSpotPrice, ExchangeRateInfo, V1ExchangeRatesResponse, PriceSupportedNetworksResponse, PriceV1SupportedNetworksResponse, PriceV2SupportedNetworksResponse, V1HistoricalPricesResponse, V3HistoricalPricesResponse, } from './types.js';
5
+ export type { V3SpotPricesResponse, CoinGeckoSpotPrice, ExchangeRateInfo, V1ExchangeRatesResponse, PriceSupportedNetworksResponse, V1HistoricalPricesResponse, V3HistoricalPricesResponse, } from './types.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/prices/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,8BAA8B,EAC9B,gCAAgC,EAChC,gCAAgC,EAChC,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/prices/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/prices/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC","sourcesContent":["/**\n * Prices API barrel export.\n */\n\nexport { PricesApiClient } from './client.js';\nexport type {\n V3SpotPricesResponse,\n CoinGeckoSpotPrice,\n ExchangeRateInfo,\n V1ExchangeRatesResponse,\n PriceSupportedNetworksResponse,\n PriceV1SupportedNetworksResponse,\n PriceV2SupportedNetworksResponse,\n V1HistoricalPricesResponse,\n V3HistoricalPricesResponse,\n} from './types.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/prices/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC","sourcesContent":["/**\n * Prices API barrel export.\n */\n\nexport { PricesApiClient } from './client.js';\nexport type {\n V3SpotPricesResponse,\n CoinGeckoSpotPrice,\n ExchangeRateInfo,\n V1ExchangeRatesResponse,\n PriceSupportedNetworksResponse,\n V1HistoricalPricesResponse,\n V3HistoricalPricesResponse,\n} from './types.js';\n"]}
@@ -42,40 +42,11 @@ export type ExchangeRateInfo = {
42
42
  export type V1ExchangeRatesResponse = {
43
43
  [currency: string]: ExchangeRateInfo;
44
44
  };
45
- /**
46
- * Price v1 supported networks response (`/v1/supportedNetworks`).
47
- * Chain IDs are decimal numbers.
48
- */
49
- export type PriceV1SupportedNetworksResponse = {
50
- /** Chains supported by every spot price endpoint. */
51
- fullSupport: number[];
52
- /** Chains supported only by specific spot price endpoints. */
53
- partialSupport: {
54
- spotPricesV2: number[];
55
- };
56
- };
57
- /**
58
- * Price v2 supported networks response (`/v2/supportedNetworks`).
59
- * Chain IDs are CAIP-2 strings (e.g. `eip155:1`).
60
- *
61
- * Note: `partialSupport` is an object keyed by endpoint, not an array.
62
- */
63
- export type PriceV2SupportedNetworksResponse = {
64
- /** Chains supported by every spot price endpoint. */
45
+ /** Price supported networks response */
46
+ export type PriceSupportedNetworksResponse = {
65
47
  fullSupport: string[];
66
- /** Chains supported only by specific spot price endpoints. */
67
- partialSupport: {
68
- spotPricesV2: string[];
69
- spotPricesV3: string[];
70
- };
48
+ partialSupport: string[];
71
49
  };
72
- /**
73
- * Price supported networks response.
74
- *
75
- * @deprecated Use `PriceV2SupportedNetworksResponse` (or
76
- * `PriceV1SupportedNetworksResponse` for the v1 endpoint) instead.
77
- */
78
- export type PriceSupportedNetworksResponse = PriceV2SupportedNetworksResponse;
79
50
  /** V1 Historical prices response */
80
51
  export type V1HistoricalPricesResponse = {
81
52
  /** Array of price data points as [timestamp, price] tuples */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/api/prices/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,8BAA8B;AAC9B,MAAM,MAAM,oBAAoB,GAAG,MAAM,CACvC,MAAM,EACN;IACE,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CACT,CAAC;AAEF,2BAA2B;AAC3B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,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AAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAMF,yBAAyB;AACzB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,QAAQ,GAAG,MAAM,CAAC;CACjC,CAAC;AAEF,8BAA8B;AAC9B,MAAM,MAAM,uBAAuB,GAAG;IACpC,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,CAAC;CACtC,CAAC;AAMF,wCAAwC;AACxC,MAAM,MAAM,8BAA8B,GAAG;IAC3C,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC;AAMF,oCAAoC;AACpC,MAAM,MAAM,0BAA0B,GAAG;IACvC,8DAA8D;IAC9D,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;CAC5B,CAAC;AAEF,oCAAoC;AACpC,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;CACnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/api/prices/types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * Prices API types for the API Platform Client.\n * API: price.api.cx.metamask.io\n */\n\n// ============================================================================\n// SPOT PRICES TYPES\n// ============================================================================\n\n/** V3 Spot prices response */\nexport type V3SpotPricesResponse = Record<\n string,\n {\n price: number;\n pricePercentChange1d?: number;\n marketCap?: number;\n totalVolume?: number;\n } | null\n>;\n\n/** CoinGecko spot price */\nexport type CoinGeckoSpotPrice = {\n id: string;\n price: number;\n marketCap?: number;\n allTimeHigh?: number;\n allTimeLow?: number;\n totalVolume?: number;\n high1d?: number;\n low1d?: number;\n circulatingSupply?: number;\n dilutedMarketCap?: number;\n marketCapPercentChange1d?: number;\n priceChange1d?: number;\n pricePercentChange1h?: number;\n pricePercentChange1d?: number;\n pricePercentChange7d?: number;\n pricePercentChange14d?: number;\n pricePercentChange30d?: number;\n pricePercentChange200d?: number;\n pricePercentChange1y?: number;\n};\n\n// ============================================================================\n// EXCHANGE RATES TYPES\n// ============================================================================\n\n/** Exchange rate info */\nexport type ExchangeRateInfo = {\n name: string;\n ticker: string;\n value: number;\n currencyType: 'crypto' | 'fiat';\n};\n\n/** Exchange rates response */\nexport type V1ExchangeRatesResponse = {\n [currency: string]: ExchangeRateInfo;\n};\n\n// ============================================================================\n// SUPPORTED NETWORKS TYPES\n// ============================================================================\n\n/**\n * Price v1 supported networks response (`/v1/supportedNetworks`).\n * Chain IDs are decimal numbers.\n */\nexport type PriceV1SupportedNetworksResponse = {\n /** Chains supported by every spot price endpoint. */\n fullSupport: number[];\n /** Chains supported only by specific spot price endpoints. */\n partialSupport: {\n spotPricesV2: number[];\n };\n};\n\n/**\n * Price v2 supported networks response (`/v2/supportedNetworks`).\n * Chain IDs are CAIP-2 strings (e.g. `eip155:1`).\n *\n * Note: `partialSupport` is an object keyed by endpoint, not an array.\n */\nexport type PriceV2SupportedNetworksResponse = {\n /** Chains supported by every spot price endpoint. */\n fullSupport: string[];\n /** Chains supported only by specific spot price endpoints. */\n partialSupport: {\n spotPricesV2: string[];\n spotPricesV3: string[];\n };\n};\n\n/**\n * Price supported networks response.\n *\n * @deprecated Use `PriceV2SupportedNetworksResponse` (or\n * `PriceV1SupportedNetworksResponse` for the v1 endpoint) instead.\n */\nexport type PriceSupportedNetworksResponse = PriceV2SupportedNetworksResponse;\n\n// ============================================================================\n// HISTORICAL PRICES TYPES\n// ============================================================================\n\n/** V1 Historical prices response */\nexport type V1HistoricalPricesResponse = {\n /** Array of price data points as [timestamp, price] tuples */\n prices: [number, number][];\n};\n\n/** V3 Historical prices response */\nexport type V3HistoricalPricesResponse = {\n prices: [number, number][];\n marketCaps?: [number, number][];\n totalVolumes?: [number, number][];\n};\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/api/prices/types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * Prices API types for the API Platform Client.\n * API: price.api.cx.metamask.io\n */\n\n// ============================================================================\n// SPOT PRICES TYPES\n// ============================================================================\n\n/** V3 Spot prices response */\nexport type V3SpotPricesResponse = Record<\n string,\n {\n price: number;\n pricePercentChange1d?: number;\n marketCap?: number;\n totalVolume?: number;\n } | null\n>;\n\n/** CoinGecko spot price */\nexport type CoinGeckoSpotPrice = {\n id: string;\n price: number;\n marketCap?: number;\n allTimeHigh?: number;\n allTimeLow?: number;\n totalVolume?: number;\n high1d?: number;\n low1d?: number;\n circulatingSupply?: number;\n dilutedMarketCap?: number;\n marketCapPercentChange1d?: number;\n priceChange1d?: number;\n pricePercentChange1h?: number;\n pricePercentChange1d?: number;\n pricePercentChange7d?: number;\n pricePercentChange14d?: number;\n pricePercentChange30d?: number;\n pricePercentChange200d?: number;\n pricePercentChange1y?: number;\n};\n\n// ============================================================================\n// EXCHANGE RATES TYPES\n// ============================================================================\n\n/** Exchange rate info */\nexport type ExchangeRateInfo = {\n name: string;\n ticker: string;\n value: number;\n currencyType: 'crypto' | 'fiat';\n};\n\n/** Exchange rates response */\nexport type V1ExchangeRatesResponse = {\n [currency: string]: ExchangeRateInfo;\n};\n\n// ============================================================================\n// SUPPORTED NETWORKS TYPES\n// ============================================================================\n\n/** Price supported networks response */\nexport type PriceSupportedNetworksResponse = {\n fullSupport: string[];\n partialSupport: string[];\n};\n\n// ============================================================================\n// HISTORICAL PRICES TYPES\n// ============================================================================\n\n/** V1 Historical prices response */\nexport type V1HistoricalPricesResponse = {\n /** Array of price data points as [timestamp, price] tuples */\n prices: [number, number][];\n};\n\n/** V3 Historical prices response */\nexport type V3HistoricalPricesResponse = {\n prices: [number, number][];\n marketCaps?: [number, number][];\n totalVolumes?: [number, number][];\n};\n"]}
package/dist/index.d.ts CHANGED
@@ -8,5 +8,5 @@ export type { ApiPlatformClientServiceOptions, ApiPlatformClientServiceActions,
8
8
  export { OHLCVService, OHLCV_SERVICE_ALLOWED_ACTIONS, OHLCV_SERVICE_ALLOWED_EVENTS, } from './ws/ohlcv/index.js';
9
9
  export type { OHLCVBar, OHLCVSubscriptionOptions, OHLCVSystemNotificationData, OHLCVServiceOptions, OHLCVServiceActions, OHLCVServiceAllowedActions, OHLCVServiceBarUpdatedEvent, OHLCVServiceChainStatusChangedEvent, OHLCVServiceSubscriptionErrorEvent, OHLCVServiceEvents, OHLCVServiceAllowedEvents, OHLCVServiceMessenger, } from './ws/ohlcv/index.js';
10
10
  export { ApiPlatformClient, createApiPlatformClient, AccountsApiClient, PricesApiClient, TokenApiClient, TokensApiClient, API_URLS, STALE_TIMES, GC_TIMES, V6_DEFI_POSITION_TYPES, calculateRetryDelay, getQueryOptionsOverrides, shouldRetry, HttpError, } from './api/index.js';
11
- export type { ApiPlatformClientOptions, ApiUrls, FetchOptions, PageInfo, SupportedCurrency, MarketDataDetails, V5BalanceItem, V5BalancesResponse, V2BalanceItem, V2BalancesResponse, V4BalancesResponse, V6VsCurrency, V6DeFiPositionType, V6BalanceMetadata, V6StellarTokenBalanceMetadata, V6TokenBalanceMetadata, V6BalanceItem, V6BalancesResponse, V1SupportedNetworksResponse, V2SupportedNetworksResponse, V2ActiveNetworksResponse, V1TransactionByHashResponse, V1AccountTransactionsResponse, V4MultiAccountTransactionsResponse, ValueTransfer, V1AccountRelationshipResult, NftItem, V2NftsResponse, TokenDiscoveryItem, V2TokensResponse, V3SpotPricesResponse, CoinGeckoSpotPrice, ExchangeRateInfo, V1ExchangeRatesResponse, PriceSupportedNetworksResponse, PriceV1SupportedNetworksResponse, PriceV2SupportedNetworksResponse, V1HistoricalPricesResponse, V3HistoricalPricesResponse, TokenMetadata, V1TokenDescriptionResponse, NetworkInfo, TopAsset, TrendingSortBy, TrendingToken, TopGainersSortOption, TrendingSortOption, V1SuggestedOccurrenceFloorsResponse, V1TokenSupportedNetworksResponse, V2TokenSupportedNetworksResponse, V3AssetResponse, } from './api/index.js';
11
+ export type { ApiPlatformClientOptions, ApiUrls, FetchOptions, PageInfo, SupportedCurrency, MarketDataDetails, V5BalanceItem, V5BalancesResponse, V2BalanceItem, V2BalancesResponse, V4BalancesResponse, V6VsCurrency, V6DeFiPositionType, V6BalanceMetadata, V6StellarTokenBalanceMetadata, V6TokenBalanceMetadata, V6BalanceItem, V6BalancesResponse, V1SupportedNetworksResponse, V2SupportedNetworksResponse, V2ActiveNetworksResponse, V1TransactionByHashResponse, V1AccountTransactionsResponse, V4MultiAccountTransactionsResponse, ValueTransfer, V1AccountRelationshipResult, NftItem, V2NftsResponse, TokenDiscoveryItem, V2TokensResponse, V3SpotPricesResponse, CoinGeckoSpotPrice, ExchangeRateInfo, V1ExchangeRatesResponse, PriceSupportedNetworksResponse, V1HistoricalPricesResponse, V3HistoricalPricesResponse, TokenMetadata, V1TokenDescriptionResponse, NetworkInfo, TopAsset, TrendingSortBy, TrendingToken, TopGainersSortOption, TrendingSortOption, V1SuggestedOccurrenceFloorsResponse, V1TokenSupportedNetworksResponse, V2TokenSupportedNetworksResponse, V3AssetResponse, } from './api/index.js';
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,uBAAuB,EACvB,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,cAAc,EACd,eAAe,EAEf,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,sBAAsB,EAEtB,mBAAmB,EACnB,wBAAwB,EACxB,WAAW,EAEX,SAAS,GACV,MAAM,gBAAgB,CAAC;AAMxB,YAAY,EAEV,wBAAwB,EACxB,OAAO,EACP,YAAY,EAEZ,QAAQ,EACR,iBAAiB,EACjB,iBAAiB,EAEjB,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,6BAA6B,EAC7B,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,6BAA6B,EAC7B,kCAAkC,EAClC,aAAa,EACb,2BAA2B,EAC3B,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAEhB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,8BAA8B,EAC9B,gCAAgC,EAChC,gCAAgC,EAChC,0BAA0B,EAC1B,0BAA0B,EAE1B,aAAa,EACb,0BAA0B,EAC1B,WAAW,EACX,QAAQ,EACR,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,mCAAmC,EAEnC,gCAAgC,EAChC,gCAAgC,EAChC,eAAe,GAChB,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAEzC,YAAY,EACV,8BAA8B,EAC9B,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,8BAA8B,EAC9B,kDAAkD,EAClD,6BAA6B,EAC7B,gCAAgC,GACj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,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,6BAA6B,EAC7B,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,6BAA6B,EAC7B,kCAAkC,EAClC,aAAa,EACb,2BAA2B,EAC3B,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAEhB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAE1B,aAAa,EACb,0BAA0B,EAC1B,WAAW,EACX,QAAQ,EACR,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,mCAAmC,EAEnC,gCAAgC,EAChC,gCAAgC,EAChC,eAAe,GAChB,MAAM,gBAAgB,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAE/B,+EAA+E;AAC/E,4BAA4B;AAC5B,+EAA+E;AAE/E,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAiBzC,+EAA+E;AAC/E,2BAA2B;AAC3B,+EAA+E;AAE/E,OAAO,EACL,sBAAsB,EACtB,wCAAwC,EACxC,uCAAuC,GACxC,MAAM,gCAAgC,CAAC;AA8BxC,+EAA+E;AAC/E,8BAA8B;AAC9B,+EAA+E;AAE/E,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,+BAA+B,CAAC;AASvC,+EAA+E;AAC/E,gBAAgB;AAChB,+EAA+E;AAE/E,OAAO,EACL,YAAY,EACZ,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAiB7B,+EAA+E;AAC/E,sBAAsB;AACtB,+EAA+E;AAE/E,OAAO,EACL,iBAAiB,EACjB,uBAAuB;AACvB,yBAAyB;AACzB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe;AACf,YAAY;AACZ,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,sBAAsB;AACtB,UAAU;AACV,mBAAmB,EACnB,wBAAwB,EACxB,WAAW;AACX,SAAS;AACT,SAAS,GACV,MAAM,gBAAgB,CAAC","sourcesContent":["// Core Backend Package Exports\n\n// ============================================================================\n// BACKEND WEBSOCKET SERVICE\n// ============================================================================\n\nexport {\n BackendWebSocketService,\n getCloseReason,\n WebSocketState,\n WebSocketEventType,\n} from './ws/BackendWebSocketService.js';\n\nexport type {\n BackendWebSocketServiceOptions,\n ClientRequestMessage,\n ServerResponseMessage,\n ServerNotificationMessage,\n WebSocketMessage,\n ChannelCallback,\n WebSocketSubscription,\n WebSocketConnectionInfo,\n BackendWebSocketServiceActions,\n BackendWebSocketServiceConnectionStateChangedEvent,\n BackendWebSocketServiceEvents,\n BackendWebSocketServiceMessenger,\n} from './ws/BackendWebSocketService.js';\n\n// ============================================================================\n// ACCOUNT ACTIVITY SERVICE\n// ============================================================================\n\nexport {\n AccountActivityService,\n ACCOUNT_ACTIVITY_SERVICE_ALLOWED_ACTIONS,\n ACCOUNT_ACTIVITY_SERVICE_ALLOWED_EVENTS,\n} from './ws/AccountActivityService.js';\n\nexport type {\n SystemNotificationData,\n SubscriptionOptions,\n AccountActivityServiceOptions,\n AccountActivityServiceActions,\n AllowedActions as AccountActivityServiceAllowedActions,\n AccountActivityServiceTransactionUpdatedEvent,\n AccountActivityServiceBalanceUpdatedEvent,\n AccountActivityServiceSubscriptionErrorEvent,\n AccountActivityServiceStatusChangedEvent,\n AccountActivityServiceEvents,\n AllowedEvents as AccountActivityServiceAllowedEvents,\n AccountActivityServiceMessenger,\n} from './ws/AccountActivityService.js';\n\n// ============================================================================\n// SHARED TYPES\n// ============================================================================\n\nexport type {\n Transaction,\n Asset,\n Balance,\n Transfer,\n BalanceUpdate,\n AccountActivityMessage,\n} from './types.js';\n\n// ============================================================================\n// API PLATFORM CLIENT SERVICE\n// ============================================================================\n\nexport {\n ApiPlatformClientService,\n apiPlatformClientServiceName,\n} from './ApiPlatformClientService.js';\n\nexport type {\n ApiPlatformClientServiceOptions,\n ApiPlatformClientServiceActions,\n ApiPlatformClientServiceEvents,\n ApiPlatformClientServiceMessenger,\n} from './ApiPlatformClientService.js';\n\n// ============================================================================\n// OHLCV SERVICE\n// ============================================================================\n\nexport {\n OHLCVService,\n OHLCV_SERVICE_ALLOWED_ACTIONS,\n OHLCV_SERVICE_ALLOWED_EVENTS,\n} from './ws/ohlcv/index.js';\n\nexport type {\n OHLCVBar,\n OHLCVSubscriptionOptions,\n OHLCVSystemNotificationData,\n OHLCVServiceOptions,\n OHLCVServiceActions,\n OHLCVServiceAllowedActions,\n OHLCVServiceBarUpdatedEvent,\n OHLCVServiceChainStatusChangedEvent,\n OHLCVServiceSubscriptionErrorEvent,\n OHLCVServiceEvents,\n OHLCVServiceAllowedEvents,\n OHLCVServiceMessenger,\n} from './ws/ohlcv/index.js';\n\n// ============================================================================\n// API PLATFORM CLIENT\n// ============================================================================\n\nexport {\n ApiPlatformClient,\n createApiPlatformClient,\n // Individual API clients\n AccountsApiClient,\n PricesApiClient,\n TokenApiClient,\n TokensApiClient,\n // Constants\n API_URLS,\n STALE_TIMES,\n GC_TIMES,\n V6_DEFI_POSITION_TYPES,\n // Helpers\n calculateRetryDelay,\n getQueryOptionsOverrides,\n shouldRetry,\n // Errors\n HttpError,\n} from './api/index.js';\n\n// ============================================================================\n// API PLATFORM CLIENT TYPES\n// ============================================================================\n\nexport type {\n // Client options\n ApiPlatformClientOptions,\n ApiUrls,\n FetchOptions,\n // Shared types\n PageInfo,\n SupportedCurrency,\n MarketDataDetails,\n // Accounts API types\n V5BalanceItem,\n V5BalancesResponse,\n V2BalanceItem,\n V2BalancesResponse,\n V4BalancesResponse,\n V6VsCurrency,\n V6DeFiPositionType,\n V6BalanceMetadata,\n V6StellarTokenBalanceMetadata,\n V6TokenBalanceMetadata,\n V6BalanceItem,\n V6BalancesResponse,\n V1SupportedNetworksResponse,\n V2SupportedNetworksResponse,\n V2ActiveNetworksResponse,\n V1TransactionByHashResponse,\n V1AccountTransactionsResponse,\n V4MultiAccountTransactionsResponse,\n ValueTransfer,\n V1AccountRelationshipResult,\n NftItem,\n V2NftsResponse,\n TokenDiscoveryItem,\n V2TokensResponse,\n // Prices API types\n V3SpotPricesResponse,\n CoinGeckoSpotPrice,\n ExchangeRateInfo,\n V1ExchangeRatesResponse,\n PriceSupportedNetworksResponse,\n PriceV1SupportedNetworksResponse,\n PriceV2SupportedNetworksResponse,\n V1HistoricalPricesResponse,\n V3HistoricalPricesResponse,\n // Token API types\n TokenMetadata,\n V1TokenDescriptionResponse,\n NetworkInfo,\n TopAsset,\n TrendingSortBy,\n TrendingToken,\n TopGainersSortOption,\n TrendingSortOption,\n V1SuggestedOccurrenceFloorsResponse,\n // Tokens API types\n V1TokenSupportedNetworksResponse,\n V2TokenSupportedNetworksResponse,\n V3AssetResponse,\n} from './api/index.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAE/B,+EAA+E;AAC/E,4BAA4B;AAC5B,+EAA+E;AAE/E,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAiBzC,+EAA+E;AAC/E,2BAA2B;AAC3B,+EAA+E;AAE/E,OAAO,EACL,sBAAsB,EACtB,wCAAwC,EACxC,uCAAuC,GACxC,MAAM,gCAAgC,CAAC;AA8BxC,+EAA+E;AAC/E,8BAA8B;AAC9B,+EAA+E;AAE/E,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,+BAA+B,CAAC;AASvC,+EAA+E;AAC/E,gBAAgB;AAChB,+EAA+E;AAE/E,OAAO,EACL,YAAY,EACZ,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAiB7B,+EAA+E;AAC/E,sBAAsB;AACtB,+EAA+E;AAE/E,OAAO,EACL,iBAAiB,EACjB,uBAAuB;AACvB,yBAAyB;AACzB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe;AACf,YAAY;AACZ,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,sBAAsB;AACtB,UAAU;AACV,mBAAmB,EACnB,wBAAwB,EACxB,WAAW;AACX,SAAS;AACT,SAAS,GACV,MAAM,gBAAgB,CAAC","sourcesContent":["// Core Backend Package Exports\n\n// ============================================================================\n// BACKEND WEBSOCKET SERVICE\n// ============================================================================\n\nexport {\n BackendWebSocketService,\n getCloseReason,\n WebSocketState,\n WebSocketEventType,\n} from './ws/BackendWebSocketService.js';\n\nexport type {\n BackendWebSocketServiceOptions,\n ClientRequestMessage,\n ServerResponseMessage,\n ServerNotificationMessage,\n WebSocketMessage,\n ChannelCallback,\n WebSocketSubscription,\n WebSocketConnectionInfo,\n BackendWebSocketServiceActions,\n BackendWebSocketServiceConnectionStateChangedEvent,\n BackendWebSocketServiceEvents,\n BackendWebSocketServiceMessenger,\n} from './ws/BackendWebSocketService.js';\n\n// ============================================================================\n// ACCOUNT ACTIVITY SERVICE\n// ============================================================================\n\nexport {\n AccountActivityService,\n ACCOUNT_ACTIVITY_SERVICE_ALLOWED_ACTIONS,\n ACCOUNT_ACTIVITY_SERVICE_ALLOWED_EVENTS,\n} from './ws/AccountActivityService.js';\n\nexport type {\n SystemNotificationData,\n SubscriptionOptions,\n AccountActivityServiceOptions,\n AccountActivityServiceActions,\n AllowedActions as AccountActivityServiceAllowedActions,\n AccountActivityServiceTransactionUpdatedEvent,\n AccountActivityServiceBalanceUpdatedEvent,\n AccountActivityServiceSubscriptionErrorEvent,\n AccountActivityServiceStatusChangedEvent,\n AccountActivityServiceEvents,\n AllowedEvents as AccountActivityServiceAllowedEvents,\n AccountActivityServiceMessenger,\n} from './ws/AccountActivityService.js';\n\n// ============================================================================\n// SHARED TYPES\n// ============================================================================\n\nexport type {\n Transaction,\n Asset,\n Balance,\n Transfer,\n BalanceUpdate,\n AccountActivityMessage,\n} from './types.js';\n\n// ============================================================================\n// API PLATFORM CLIENT SERVICE\n// ============================================================================\n\nexport {\n ApiPlatformClientService,\n apiPlatformClientServiceName,\n} from './ApiPlatformClientService.js';\n\nexport type {\n ApiPlatformClientServiceOptions,\n ApiPlatformClientServiceActions,\n ApiPlatformClientServiceEvents,\n ApiPlatformClientServiceMessenger,\n} from './ApiPlatformClientService.js';\n\n// ============================================================================\n// OHLCV SERVICE\n// ============================================================================\n\nexport {\n OHLCVService,\n OHLCV_SERVICE_ALLOWED_ACTIONS,\n OHLCV_SERVICE_ALLOWED_EVENTS,\n} from './ws/ohlcv/index.js';\n\nexport type {\n OHLCVBar,\n OHLCVSubscriptionOptions,\n OHLCVSystemNotificationData,\n OHLCVServiceOptions,\n OHLCVServiceActions,\n OHLCVServiceAllowedActions,\n OHLCVServiceBarUpdatedEvent,\n OHLCVServiceChainStatusChangedEvent,\n OHLCVServiceSubscriptionErrorEvent,\n OHLCVServiceEvents,\n OHLCVServiceAllowedEvents,\n OHLCVServiceMessenger,\n} from './ws/ohlcv/index.js';\n\n// ============================================================================\n// API PLATFORM CLIENT\n// ============================================================================\n\nexport {\n ApiPlatformClient,\n createApiPlatformClient,\n // Individual API clients\n AccountsApiClient,\n PricesApiClient,\n TokenApiClient,\n TokensApiClient,\n // Constants\n API_URLS,\n STALE_TIMES,\n GC_TIMES,\n V6_DEFI_POSITION_TYPES,\n // Helpers\n calculateRetryDelay,\n getQueryOptionsOverrides,\n shouldRetry,\n // Errors\n HttpError,\n} from './api/index.js';\n\n// ============================================================================\n// API PLATFORM CLIENT TYPES\n// ============================================================================\n\nexport type {\n // Client options\n ApiPlatformClientOptions,\n ApiUrls,\n FetchOptions,\n // Shared types\n PageInfo,\n SupportedCurrency,\n MarketDataDetails,\n // Accounts API types\n V5BalanceItem,\n V5BalancesResponse,\n V2BalanceItem,\n V2BalancesResponse,\n V4BalancesResponse,\n V6VsCurrency,\n V6DeFiPositionType,\n V6BalanceMetadata,\n V6StellarTokenBalanceMetadata,\n V6TokenBalanceMetadata,\n V6BalanceItem,\n V6BalancesResponse,\n V1SupportedNetworksResponse,\n V2SupportedNetworksResponse,\n V2ActiveNetworksResponse,\n V1TransactionByHashResponse,\n V1AccountTransactionsResponse,\n V4MultiAccountTransactionsResponse,\n ValueTransfer,\n V1AccountRelationshipResult,\n NftItem,\n V2NftsResponse,\n TokenDiscoveryItem,\n V2TokensResponse,\n // Prices API types\n V3SpotPricesResponse,\n CoinGeckoSpotPrice,\n ExchangeRateInfo,\n V1ExchangeRatesResponse,\n PriceSupportedNetworksResponse,\n V1HistoricalPricesResponse,\n V3HistoricalPricesResponse,\n // Token API types\n TokenMetadata,\n V1TokenDescriptionResponse,\n NetworkInfo,\n TopAsset,\n TrendingSortBy,\n TrendingToken,\n TopGainersSortOption,\n TrendingSortOption,\n V1SuggestedOccurrenceFloorsResponse,\n // Tokens API types\n V1TokenSupportedNetworksResponse,\n V2TokenSupportedNetworksResponse,\n V3AssetResponse,\n} from './api/index.js';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/core-backend",
3
- "version": "11.0.0-preview-576eebcfe",
3
+ "version": "11.0.0-preview-378f5fcf7",
4
4
  "description": "Core backend services for MetaMask",
5
5
  "keywords": [
6
6
  "Ethereum",