@metamask-previews/bridge-controller 13.0.0-preview-13a1c613 → 14.0.0-preview-f919f9b0

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +21 -3
  2. package/dist/bridge-controller.cjs +59 -4
  3. package/dist/bridge-controller.cjs.map +1 -1
  4. package/dist/bridge-controller.d.cts +2 -3
  5. package/dist/bridge-controller.d.cts.map +1 -1
  6. package/dist/bridge-controller.d.mts +2 -3
  7. package/dist/bridge-controller.d.mts.map +1 -1
  8. package/dist/bridge-controller.mjs +60 -5
  9. package/dist/bridge-controller.mjs.map +1 -1
  10. package/dist/constants/bridge.cjs +1 -0
  11. package/dist/constants/bridge.cjs.map +1 -1
  12. package/dist/constants/bridge.d.cts.map +1 -1
  13. package/dist/constants/bridge.d.mts.map +1 -1
  14. package/dist/constants/bridge.mjs +1 -0
  15. package/dist/constants/bridge.mjs.map +1 -1
  16. package/dist/index.cjs +13 -1
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +10 -1
  19. package/dist/index.d.cts.map +1 -1
  20. package/dist/index.d.mts +10 -1
  21. package/dist/index.d.mts.map +1 -1
  22. package/dist/index.mjs +10 -1
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/selectors.cjs +224 -0
  25. package/dist/selectors.cjs.map +1 -0
  26. package/dist/selectors.d.cts +1506 -0
  27. package/dist/selectors.d.cts.map +1 -0
  28. package/dist/selectors.d.mts +1506 -0
  29. package/dist/selectors.d.mts.map +1 -0
  30. package/dist/selectors.mjs +220 -0
  31. package/dist/selectors.mjs.map +1 -0
  32. package/dist/types.cjs.map +1 -1
  33. package/dist/types.d.cts +44 -14
  34. package/dist/types.d.cts.map +1 -1
  35. package/dist/types.d.mts +44 -14
  36. package/dist/types.d.mts.map +1 -1
  37. package/dist/types.mjs.map +1 -1
  38. package/dist/utils/assets.cjs +30 -0
  39. package/dist/utils/assets.cjs.map +1 -0
  40. package/dist/utils/assets.d.cts +9 -0
  41. package/dist/utils/assets.d.cts.map +1 -0
  42. package/dist/utils/assets.d.mts +9 -0
  43. package/dist/utils/assets.d.mts.map +1 -0
  44. package/dist/utils/assets.mjs +25 -0
  45. package/dist/utils/assets.mjs.map +1 -0
  46. package/dist/utils/caip-formatters.cjs +25 -1
  47. package/dist/utils/caip-formatters.cjs.map +1 -1
  48. package/dist/utils/caip-formatters.d.cts +10 -0
  49. package/dist/utils/caip-formatters.d.cts.map +1 -1
  50. package/dist/utils/caip-formatters.d.mts +10 -0
  51. package/dist/utils/caip-formatters.d.mts.map +1 -1
  52. package/dist/utils/caip-formatters.mjs +25 -2
  53. package/dist/utils/caip-formatters.mjs.map +1 -1
  54. package/dist/utils/fetch.cjs +61 -1
  55. package/dist/utils/fetch.cjs.map +1 -1
  56. package/dist/utils/fetch.d.cts +21 -1
  57. package/dist/utils/fetch.d.cts.map +1 -1
  58. package/dist/utils/fetch.d.mts +21 -1
  59. package/dist/utils/fetch.d.mts.map +1 -1
  60. package/dist/utils/fetch.mjs +59 -0
  61. package/dist/utils/fetch.mjs.map +1 -1
  62. package/dist/utils/quote.cjs +177 -1
  63. package/dist/utils/quote.cjs.map +1 -1
  64. package/dist/utils/quote.d.cts +62 -1
  65. package/dist/utils/quote.d.cts.map +1 -1
  66. package/dist/utils/quote.d.mts +62 -1
  67. package/dist/utils/quote.d.mts.map +1 -1
  68. package/dist/utils/quote.mjs +164 -0
  69. package/dist/utils/quote.mjs.map +1 -1
  70. package/package.json +9 -5
@@ -0,0 +1,1506 @@
1
+ import type { CurrencyRateState, MultichainAssetsRatesControllerState, TokenRatesControllerState } from "@metamask/assets-controllers";
2
+ import type { GasFeeEstimates } from "@metamask/gas-fee-controller";
3
+ import type { BridgeControllerState, BridgeFeatureFlagsKey, ExchangeRate, GenericQuoteRequest, QuoteMetadata, QuoteResponse } from "./types.mjs";
4
+ import { SortOrder } from "./types.mjs";
5
+ /**
6
+ * The controller states that provide exchange rates
7
+ */
8
+ type ExchangeRateControllerState = MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, 'assetExchangeRates'>;
9
+ /**
10
+ * The state of the bridge controller and all its dependency controllers
11
+ */
12
+ export type BridgeAppState = BridgeControllerState & {
13
+ gasFeeEstimates: GasFeeEstimates;
14
+ } & ExchangeRateControllerState & {
15
+ participateInMetaMetrics: boolean;
16
+ };
17
+ /**
18
+ * Required parameters that clients must provide for the bridge quotes selector
19
+ */
20
+ type BridgeQuotesClientParams = {
21
+ sortOrder: SortOrder;
22
+ selectedQuote: (QuoteResponse & QuoteMetadata) | null;
23
+ featureFlagsKey: BridgeFeatureFlagsKey;
24
+ };
25
+ /**
26
+ * Selects the asset exchange rate for a given chain and address
27
+ *
28
+ * @param state The state of the bridge controller and its dependency controllers
29
+ * @param chainId The chain ID of the asset
30
+ * @param address The address of the asset
31
+ * @returns The asset exchange rate for the given chain and address
32
+ */
33
+ export declare const selectExchangeRateByChainIdAndAddress: (state: BridgeAppState, chainId?: GenericQuoteRequest['srcChainId'], address?: GenericQuoteRequest['srcTokenAddress']) => ExchangeRate;
34
+ /**
35
+ * Checks whether an exchange rate is available for a given chain and address
36
+ *
37
+ * @param params The parameters to pass to {@link getExchangeRateByChainIdAndAddress}
38
+ * @returns Whether an exchange rate is available for the given chain and address
39
+ */
40
+ export declare const selectIsAssetExchangeRateInState: (exchangeRateSources: ExchangeRateControllerState, chainId?: string | number | undefined, address?: string | undefined) => boolean;
41
+ export declare const selectIsQuoteExpired: ((state: BridgeControllerState & {
42
+ gasFeeEstimates: GasFeeEstimates;
43
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
44
+ participateInMetaMetrics: boolean;
45
+ }, __: any, currentTimeInMs: number) => boolean) & {
46
+ clearCache: () => void;
47
+ resultsCount: () => number;
48
+ resetResultsCount: () => void;
49
+ } & {
50
+ resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: number | null, resultFuncArgs_2: number, resultFuncArgs_3: number) => boolean;
51
+ memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: number | null, resultFuncArgs_2: number, resultFuncArgs_3: number) => boolean) & {
52
+ clearCache: () => void;
53
+ resultsCount: () => number;
54
+ resetResultsCount: () => void;
55
+ };
56
+ lastResult: () => boolean;
57
+ dependencies: [(state: BridgeAppState, { featureFlagsKey }: BridgeQuotesClientParams) => boolean, ({ quotesLastFetched }: BridgeAppState) => number | null, ((state: BridgeControllerState & {
58
+ gasFeeEstimates: GasFeeEstimates;
59
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
60
+ participateInMetaMetrics: boolean;
61
+ }, params_0: BridgeQuotesClientParams) => number) & {
62
+ clearCache: () => void;
63
+ resultsCount: () => number;
64
+ resetResultsCount: () => void;
65
+ } & {
66
+ resultFunc: (resultFuncArgs_0: {
67
+ refreshRate: number;
68
+ maxRefreshCount: number;
69
+ support: boolean;
70
+ chains: Record<`${string}:${string}`, import("./types.mjs").ChainConfiguration>;
71
+ }, resultFuncArgs_1: string | number | undefined) => number;
72
+ memoizedResultFunc: ((resultFuncArgs_0: {
73
+ refreshRate: number;
74
+ maxRefreshCount: number;
75
+ support: boolean;
76
+ chains: Record<`${string}:${string}`, import("./types.mjs").ChainConfiguration>;
77
+ }, resultFuncArgs_1: string | number | undefined) => number) & {
78
+ clearCache: () => void;
79
+ resultsCount: () => number;
80
+ resetResultsCount: () => void;
81
+ };
82
+ lastResult: () => number;
83
+ dependencies: [({ bridgeFeatureFlags }: BridgeAppState, { featureFlagsKey }: BridgeQuotesClientParams) => {
84
+ refreshRate: number;
85
+ maxRefreshCount: number;
86
+ support: boolean;
87
+ chains: Record<`${string}:${string}`, import("./types.mjs").ChainConfiguration>;
88
+ }, (state: BridgeAppState) => string | number | undefined];
89
+ recomputations: () => number;
90
+ resetRecomputations: () => void;
91
+ dependencyRecomputations: () => number;
92
+ resetDependencyRecomputations: () => void;
93
+ } & {
94
+ argsMemoize: typeof import("reselect").weakMapMemoize;
95
+ memoize: typeof import("reselect").weakMapMemoize;
96
+ }, (_: BridgeAppState, __: any, currentTimeInMs: number) => number];
97
+ recomputations: () => number;
98
+ resetRecomputations: () => void;
99
+ dependencyRecomputations: () => number;
100
+ resetDependencyRecomputations: () => void;
101
+ } & {
102
+ argsMemoize: typeof import("reselect").weakMapMemoize;
103
+ memoize: typeof import("reselect").weakMapMemoize;
104
+ };
105
+ /**
106
+ * Selects sorted cross-chain swap quotes. By default, the quotes are sorted by cost in ascending order.
107
+ *
108
+ * @param state - The state of the bridge controller and its dependency controllers
109
+ * @param sortOrder - The sort order of the quotes
110
+ * @param selectedQuote - The quote that is currently selected by the user, should be cleared by clients when the req params change
111
+ * @param featureFlagsKey - The feature flags key for the client (e.g. `BridgeFeatureFlagsKey.EXTENSION_CONFIG`
112
+ * @returns The activeQuote, recommendedQuote, sortedQuotes, and other quote fetching metadata
113
+ *
114
+ * @example
115
+ * ```ts
116
+ * const quotes = useSelector(state => selectBridgeQuotes(
117
+ * state.metamask,
118
+ * {
119
+ * sortOrder: state.bridge.sortOrder,
120
+ * selectedQuote: state.bridge.selectedQuote,
121
+ * featureFlagsKey: BridgeFeatureFlagsKey.EXTENSION_CONFIG,
122
+ * }
123
+ * ));
124
+ * ```
125
+ */
126
+ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
127
+ gasFeeEstimates: GasFeeEstimates;
128
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
129
+ participateInMetaMetrics: boolean;
130
+ }, params_0: BridgeQuotesClientParams) => {
131
+ sortedQuotes: (QuoteResponse & QuoteMetadata)[];
132
+ recommendedQuote: QuoteResponse & QuoteMetadata;
133
+ activeQuote: QuoteResponse & QuoteMetadata;
134
+ quotesLastFetchedMs: number | null;
135
+ isLoading: boolean;
136
+ quoteFetchError: string | null;
137
+ quotesRefreshCount: number;
138
+ quotesInitialLoadTimeMs: number | null;
139
+ isQuoteGoingToRefresh: boolean;
140
+ }) & {
141
+ clearCache: () => void;
142
+ resultsCount: () => number;
143
+ resetResultsCount: () => void;
144
+ } & {
145
+ resultFunc: (resultFuncArgs_0: string | null, resultFuncArgs_1: number, resultFuncArgs_2: QuoteResponse & QuoteMetadata, resultFuncArgs_3: (QuoteResponse & QuoteMetadata)[], resultFuncArgs_4: QuoteResponse & QuoteMetadata, resultFuncArgs_5: number | null, resultFuncArgs_6: boolean, resultFuncArgs_7: number | null, resultFuncArgs_8: boolean) => {
146
+ sortedQuotes: (QuoteResponse & QuoteMetadata)[];
147
+ recommendedQuote: QuoteResponse & QuoteMetadata;
148
+ activeQuote: QuoteResponse & QuoteMetadata;
149
+ quotesLastFetchedMs: number | null;
150
+ isLoading: boolean;
151
+ quoteFetchError: string | null;
152
+ quotesRefreshCount: number;
153
+ quotesInitialLoadTimeMs: number | null;
154
+ isQuoteGoingToRefresh: boolean;
155
+ };
156
+ memoizedResultFunc: ((resultFuncArgs_0: string | null, resultFuncArgs_1: number, resultFuncArgs_2: QuoteResponse & QuoteMetadata, resultFuncArgs_3: (QuoteResponse & QuoteMetadata)[], resultFuncArgs_4: QuoteResponse & QuoteMetadata, resultFuncArgs_5: number | null, resultFuncArgs_6: boolean, resultFuncArgs_7: number | null, resultFuncArgs_8: boolean) => {
157
+ sortedQuotes: (QuoteResponse & QuoteMetadata)[];
158
+ recommendedQuote: QuoteResponse & QuoteMetadata;
159
+ activeQuote: QuoteResponse & QuoteMetadata;
160
+ quotesLastFetchedMs: number | null;
161
+ isLoading: boolean;
162
+ quoteFetchError: string | null;
163
+ quotesRefreshCount: number;
164
+ quotesInitialLoadTimeMs: number | null;
165
+ isQuoteGoingToRefresh: boolean;
166
+ }) & {
167
+ clearCache: () => void;
168
+ resultsCount: () => number;
169
+ resetResultsCount: () => void;
170
+ };
171
+ lastResult: () => {
172
+ sortedQuotes: (QuoteResponse & QuoteMetadata)[];
173
+ recommendedQuote: QuoteResponse & QuoteMetadata;
174
+ activeQuote: QuoteResponse & QuoteMetadata;
175
+ quotesLastFetchedMs: number | null;
176
+ isLoading: boolean;
177
+ quoteFetchError: string | null;
178
+ quotesRefreshCount: number;
179
+ quotesInitialLoadTimeMs: number | null;
180
+ isQuoteGoingToRefresh: boolean;
181
+ };
182
+ dependencies: [(state: BridgeAppState) => string | null, (state: BridgeAppState) => number, ((state: BridgeControllerState & {
183
+ gasFeeEstimates: GasFeeEstimates;
184
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
185
+ participateInMetaMetrics: boolean;
186
+ }, params_0: BridgeQuotesClientParams) => QuoteResponse & QuoteMetadata) & {
187
+ clearCache: () => void;
188
+ resultsCount: () => number;
189
+ resetResultsCount: () => void;
190
+ } & {
191
+ resultFunc: (resultFuncArgs_0: (QuoteResponse & QuoteMetadata)[]) => QuoteResponse & QuoteMetadata;
192
+ memoizedResultFunc: ((resultFuncArgs_0: (QuoteResponse & QuoteMetadata)[]) => QuoteResponse & QuoteMetadata) & {
193
+ clearCache: () => void;
194
+ resultsCount: () => number;
195
+ resetResultsCount: () => void;
196
+ };
197
+ lastResult: () => QuoteResponse & QuoteMetadata;
198
+ dependencies: [((state: BridgeControllerState & {
199
+ gasFeeEstimates: GasFeeEstimates;
200
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
201
+ participateInMetaMetrics: boolean;
202
+ }, params_0: BridgeQuotesClientParams) => (QuoteResponse & QuoteMetadata)[]) & {
203
+ clearCache: () => void;
204
+ resultsCount: () => number;
205
+ resetResultsCount: () => void;
206
+ } & {
207
+ resultFunc: (resultFuncArgs_0: {
208
+ sentAmount: {
209
+ amount: string;
210
+ valueInCurrency: string | null;
211
+ usd: string | null;
212
+ };
213
+ toTokenAmount: {
214
+ amount: string;
215
+ valueInCurrency: string | null;
216
+ usd: string | null;
217
+ };
218
+ swapRate: string;
219
+ totalNetworkFee: {
220
+ amount: string;
221
+ valueInCurrency: string | null;
222
+ usd: string | null;
223
+ };
224
+ totalMaxNetworkFee: {
225
+ amount: string;
226
+ valueInCurrency: string | null;
227
+ usd: string | null;
228
+ };
229
+ gasFee: {
230
+ amount: string;
231
+ valueInCurrency: string | null;
232
+ usd: string | null;
233
+ };
234
+ adjustedReturn: {
235
+ valueInCurrency: string | null;
236
+ usd: string | null;
237
+ };
238
+ cost: {
239
+ valueInCurrency: string | null;
240
+ usd: string | null;
241
+ };
242
+ quote: import("./types.mjs").Quote;
243
+ approval?: import("./types.mjs").TxData | null | undefined;
244
+ trade: import("./types.mjs").TxData;
245
+ estimatedProcessingTimeInSeconds: number;
246
+ l1GasFeesInHexWei?: string | undefined;
247
+ solanaFeesInLamports?: string | undefined;
248
+ }[], resultFuncArgs_1: SortOrder) => (QuoteResponse & QuoteMetadata)[];
249
+ memoizedResultFunc: ((resultFuncArgs_0: {
250
+ sentAmount: {
251
+ amount: string;
252
+ valueInCurrency: string | null;
253
+ usd: string | null;
254
+ };
255
+ toTokenAmount: {
256
+ amount: string;
257
+ valueInCurrency: string | null;
258
+ usd: string | null;
259
+ };
260
+ swapRate: string;
261
+ totalNetworkFee: {
262
+ amount: string;
263
+ valueInCurrency: string | null;
264
+ usd: string | null;
265
+ };
266
+ totalMaxNetworkFee: {
267
+ amount: string;
268
+ valueInCurrency: string | null;
269
+ usd: string | null;
270
+ };
271
+ gasFee: {
272
+ amount: string;
273
+ valueInCurrency: string | null;
274
+ usd: string | null;
275
+ };
276
+ adjustedReturn: {
277
+ valueInCurrency: string | null;
278
+ usd: string | null;
279
+ };
280
+ cost: {
281
+ valueInCurrency: string | null;
282
+ usd: string | null;
283
+ };
284
+ quote: import("./types.mjs").Quote;
285
+ approval?: import("./types.mjs").TxData | null | undefined;
286
+ trade: import("./types.mjs").TxData;
287
+ estimatedProcessingTimeInSeconds: number;
288
+ l1GasFeesInHexWei?: string | undefined;
289
+ solanaFeesInLamports?: string | undefined;
290
+ }[], resultFuncArgs_1: SortOrder) => (QuoteResponse & QuoteMetadata)[]) & {
291
+ clearCache: () => void;
292
+ resultsCount: () => number;
293
+ resetResultsCount: () => void;
294
+ };
295
+ lastResult: () => (QuoteResponse & QuoteMetadata)[];
296
+ dependencies: [((state: BridgeControllerState & {
297
+ gasFeeEstimates: GasFeeEstimates;
298
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
299
+ participateInMetaMetrics: boolean;
300
+ }) => {
301
+ sentAmount: {
302
+ amount: string;
303
+ valueInCurrency: string | null;
304
+ usd: string | null;
305
+ };
306
+ toTokenAmount: {
307
+ amount: string;
308
+ valueInCurrency: string | null;
309
+ usd: string | null;
310
+ };
311
+ swapRate: string;
312
+ totalNetworkFee: {
313
+ amount: string;
314
+ valueInCurrency: string | null;
315
+ usd: string | null;
316
+ };
317
+ totalMaxNetworkFee: {
318
+ amount: string;
319
+ valueInCurrency: string | null;
320
+ usd: string | null;
321
+ };
322
+ gasFee: {
323
+ amount: string;
324
+ valueInCurrency: string | null;
325
+ usd: string | null;
326
+ };
327
+ adjustedReturn: {
328
+ valueInCurrency: string | null;
329
+ usd: string | null;
330
+ };
331
+ cost: {
332
+ valueInCurrency: string | null;
333
+ usd: string | null;
334
+ };
335
+ quote: import("./types.mjs").Quote;
336
+ approval?: import("./types.mjs").TxData | null | undefined;
337
+ trade: import("./types.mjs").TxData;
338
+ estimatedProcessingTimeInSeconds: number;
339
+ l1GasFeesInHexWei?: string | undefined;
340
+ solanaFeesInLamports?: string | undefined;
341
+ }[]) & {
342
+ clearCache: () => void;
343
+ resultsCount: () => number;
344
+ resetResultsCount: () => void;
345
+ } & {
346
+ resultFunc: (resultFuncArgs_0: (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], resultFuncArgs_1: {
347
+ estimatedBaseFeeInDecGwei: string;
348
+ maxPriorityFeePerGasInDecGwei: string;
349
+ maxFeePerGasInDecGwei: string;
350
+ }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
351
+ sentAmount: {
352
+ amount: string;
353
+ valueInCurrency: string | null;
354
+ usd: string | null;
355
+ };
356
+ toTokenAmount: {
357
+ amount: string;
358
+ valueInCurrency: string | null;
359
+ usd: string | null;
360
+ };
361
+ swapRate: string;
362
+ totalNetworkFee: {
363
+ amount: string;
364
+ valueInCurrency: string | null;
365
+ usd: string | null;
366
+ };
367
+ totalMaxNetworkFee: {
368
+ amount: string;
369
+ valueInCurrency: string | null;
370
+ usd: string | null;
371
+ };
372
+ gasFee: {
373
+ amount: string;
374
+ valueInCurrency: string | null;
375
+ usd: string | null;
376
+ };
377
+ adjustedReturn: {
378
+ valueInCurrency: string | null;
379
+ usd: string | null;
380
+ };
381
+ cost: {
382
+ valueInCurrency: string | null;
383
+ usd: string | null;
384
+ };
385
+ quote: import("./types.mjs").Quote;
386
+ approval?: import("./types.mjs").TxData | null | undefined;
387
+ trade: import("./types.mjs").TxData;
388
+ estimatedProcessingTimeInSeconds: number;
389
+ l1GasFeesInHexWei?: string | undefined;
390
+ solanaFeesInLamports?: string | undefined;
391
+ }[];
392
+ memoizedResultFunc: ((resultFuncArgs_0: (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], resultFuncArgs_1: {
393
+ estimatedBaseFeeInDecGwei: string;
394
+ maxPriorityFeePerGasInDecGwei: string;
395
+ maxFeePerGasInDecGwei: string;
396
+ }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
397
+ sentAmount: {
398
+ amount: string;
399
+ valueInCurrency: string | null;
400
+ usd: string | null;
401
+ };
402
+ toTokenAmount: {
403
+ amount: string;
404
+ valueInCurrency: string | null;
405
+ usd: string | null;
406
+ };
407
+ swapRate: string;
408
+ totalNetworkFee: {
409
+ amount: string;
410
+ valueInCurrency: string | null;
411
+ usd: string | null;
412
+ };
413
+ totalMaxNetworkFee: {
414
+ amount: string;
415
+ valueInCurrency: string | null;
416
+ usd: string | null;
417
+ };
418
+ gasFee: {
419
+ amount: string;
420
+ valueInCurrency: string | null;
421
+ usd: string | null;
422
+ };
423
+ adjustedReturn: {
424
+ valueInCurrency: string | null;
425
+ usd: string | null;
426
+ };
427
+ cost: {
428
+ valueInCurrency: string | null;
429
+ usd: string | null;
430
+ };
431
+ quote: import("./types.mjs").Quote;
432
+ approval?: import("./types.mjs").TxData | null | undefined;
433
+ trade: import("./types.mjs").TxData;
434
+ estimatedProcessingTimeInSeconds: number;
435
+ l1GasFeesInHexWei?: string | undefined;
436
+ solanaFeesInLamports?: string | undefined;
437
+ }[]) & {
438
+ clearCache: () => void;
439
+ resultsCount: () => number;
440
+ resetResultsCount: () => void;
441
+ };
442
+ lastResult: () => {
443
+ sentAmount: {
444
+ amount: string;
445
+ valueInCurrency: string | null;
446
+ usd: string | null;
447
+ };
448
+ toTokenAmount: {
449
+ amount: string;
450
+ valueInCurrency: string | null;
451
+ usd: string | null;
452
+ };
453
+ swapRate: string;
454
+ totalNetworkFee: {
455
+ amount: string;
456
+ valueInCurrency: string | null;
457
+ usd: string | null;
458
+ };
459
+ totalMaxNetworkFee: {
460
+ amount: string;
461
+ valueInCurrency: string | null;
462
+ usd: string | null;
463
+ };
464
+ gasFee: {
465
+ amount: string;
466
+ valueInCurrency: string | null;
467
+ usd: string | null;
468
+ };
469
+ adjustedReturn: {
470
+ valueInCurrency: string | null;
471
+ usd: string | null;
472
+ };
473
+ cost: {
474
+ valueInCurrency: string | null;
475
+ usd: string | null;
476
+ };
477
+ quote: import("./types.mjs").Quote;
478
+ approval?: import("./types.mjs").TxData | null | undefined;
479
+ trade: import("./types.mjs").TxData;
480
+ estimatedProcessingTimeInSeconds: number;
481
+ l1GasFeesInHexWei?: string | undefined;
482
+ solanaFeesInLamports?: string | undefined;
483
+ }[];
484
+ dependencies: [({ quotes }: BridgeAppState) => (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], ((state: BridgeControllerState & {
485
+ gasFeeEstimates: GasFeeEstimates;
486
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
487
+ participateInMetaMetrics: boolean;
488
+ }) => {
489
+ estimatedBaseFeeInDecGwei: string;
490
+ maxPriorityFeePerGasInDecGwei: string;
491
+ maxFeePerGasInDecGwei: string;
492
+ }) & {
493
+ clearCache: () => void;
494
+ resultsCount: () => number;
495
+ resetResultsCount: () => void;
496
+ } & {
497
+ resultFunc: (resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
498
+ estimatedBaseFeeInDecGwei: string;
499
+ maxPriorityFeePerGasInDecGwei: string;
500
+ maxFeePerGasInDecGwei: string;
501
+ };
502
+ memoizedResultFunc: ((resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
503
+ estimatedBaseFeeInDecGwei: string;
504
+ maxPriorityFeePerGasInDecGwei: string;
505
+ maxFeePerGasInDecGwei: string;
506
+ }) & {
507
+ clearCache: () => void;
508
+ resultsCount: () => number;
509
+ resetResultsCount: () => void;
510
+ };
511
+ lastResult: () => {
512
+ estimatedBaseFeeInDecGwei: string;
513
+ maxPriorityFeePerGasInDecGwei: string;
514
+ maxFeePerGasInDecGwei: string;
515
+ };
516
+ dependencies: [({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string];
517
+ recomputations: () => number;
518
+ resetRecomputations: () => void;
519
+ dependencyRecomputations: () => number;
520
+ resetDependencyRecomputations: () => void;
521
+ } & {
522
+ argsMemoize: typeof import("reselect").weakMapMemoize;
523
+ memoize: typeof import("reselect").weakMapMemoize;
524
+ }, ((state: BridgeControllerState & {
525
+ gasFeeEstimates: GasFeeEstimates;
526
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
527
+ participateInMetaMetrics: boolean;
528
+ }) => ExchangeRate) & {
529
+ clearCache: () => void;
530
+ resultsCount: () => number;
531
+ resetResultsCount: () => void;
532
+ } & {
533
+ resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate;
534
+ memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate) & {
535
+ clearCache: () => void;
536
+ resultsCount: () => number;
537
+ resetResultsCount: () => void;
538
+ };
539
+ lastResult: () => ExchangeRate;
540
+ dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { srcChainId } }: BridgeAppState) => string | number | undefined, ({ quoteRequest: { srcTokenAddress } }: BridgeAppState) => string | undefined];
541
+ recomputations: () => number;
542
+ resetRecomputations: () => void;
543
+ dependencyRecomputations: () => number;
544
+ resetDependencyRecomputations: () => void;
545
+ } & {
546
+ argsMemoize: typeof import("reselect").weakMapMemoize;
547
+ memoize: typeof import("reselect").weakMapMemoize;
548
+ }, ((state: BridgeControllerState & {
549
+ gasFeeEstimates: GasFeeEstimates;
550
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
551
+ participateInMetaMetrics: boolean;
552
+ }) => ExchangeRate) & {
553
+ clearCache: () => void;
554
+ resultsCount: () => number;
555
+ resetResultsCount: () => void;
556
+ } & {
557
+ resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate;
558
+ memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate) & {
559
+ clearCache: () => void;
560
+ resultsCount: () => number;
561
+ resetResultsCount: () => void;
562
+ };
563
+ lastResult: () => ExchangeRate;
564
+ dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { destChainId } }: BridgeAppState) => string | number | undefined, ({ quoteRequest: { destTokenAddress } }: BridgeAppState) => string | undefined];
565
+ recomputations: () => number;
566
+ resetRecomputations: () => void;
567
+ dependencyRecomputations: () => number;
568
+ resetDependencyRecomputations: () => void;
569
+ } & {
570
+ argsMemoize: typeof import("reselect").weakMapMemoize;
571
+ memoize: typeof import("reselect").weakMapMemoize;
572
+ }, ((state: BridgeControllerState & {
573
+ gasFeeEstimates: GasFeeEstimates;
574
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
575
+ participateInMetaMetrics: boolean;
576
+ }) => ExchangeRate) & {
577
+ clearCache: () => void;
578
+ resultsCount: () => number;
579
+ resetResultsCount: () => void;
580
+ } & {
581
+ resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined) => ExchangeRate;
582
+ memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined) => ExchangeRate) & {
583
+ clearCache: () => void;
584
+ resultsCount: () => number;
585
+ resetResultsCount: () => void;
586
+ };
587
+ lastResult: () => ExchangeRate;
588
+ dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { srcChainId } }: BridgeAppState) => string | number | undefined];
589
+ recomputations: () => number;
590
+ resetRecomputations: () => void;
591
+ dependencyRecomputations: () => number;
592
+ resetDependencyRecomputations: () => void;
593
+ } & {
594
+ argsMemoize: typeof import("reselect").weakMapMemoize;
595
+ memoize: typeof import("reselect").weakMapMemoize;
596
+ }];
597
+ recomputations: () => number;
598
+ resetRecomputations: () => void;
599
+ dependencyRecomputations: () => number;
600
+ resetDependencyRecomputations: () => void;
601
+ } & {
602
+ argsMemoize: typeof import("reselect").weakMapMemoize;
603
+ memoize: typeof import("reselect").weakMapMemoize;
604
+ }, (_: BridgeAppState, { sortOrder }: BridgeQuotesClientParams) => SortOrder];
605
+ recomputations: () => number;
606
+ resetRecomputations: () => void;
607
+ dependencyRecomputations: () => number;
608
+ resetDependencyRecomputations: () => void;
609
+ } & {
610
+ argsMemoize: typeof import("reselect").weakMapMemoize;
611
+ memoize: typeof import("reselect").weakMapMemoize;
612
+ }];
613
+ recomputations: () => number;
614
+ resetRecomputations: () => void;
615
+ dependencyRecomputations: () => number;
616
+ resetDependencyRecomputations: () => void;
617
+ } & {
618
+ argsMemoize: typeof import("reselect").weakMapMemoize;
619
+ memoize: typeof import("reselect").weakMapMemoize;
620
+ }, ((state: BridgeControllerState & {
621
+ gasFeeEstimates: GasFeeEstimates;
622
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
623
+ participateInMetaMetrics: boolean;
624
+ }, params_0: BridgeQuotesClientParams) => (QuoteResponse & QuoteMetadata)[]) & {
625
+ clearCache: () => void;
626
+ resultsCount: () => number;
627
+ resetResultsCount: () => void;
628
+ } & {
629
+ resultFunc: (resultFuncArgs_0: {
630
+ sentAmount: {
631
+ amount: string;
632
+ valueInCurrency: string | null;
633
+ usd: string | null;
634
+ };
635
+ toTokenAmount: {
636
+ amount: string;
637
+ valueInCurrency: string | null;
638
+ usd: string | null;
639
+ };
640
+ swapRate: string;
641
+ totalNetworkFee: {
642
+ amount: string;
643
+ valueInCurrency: string | null;
644
+ usd: string | null;
645
+ };
646
+ totalMaxNetworkFee: {
647
+ amount: string;
648
+ valueInCurrency: string | null;
649
+ usd: string | null;
650
+ };
651
+ gasFee: {
652
+ amount: string;
653
+ valueInCurrency: string | null;
654
+ usd: string | null;
655
+ };
656
+ adjustedReturn: {
657
+ valueInCurrency: string | null;
658
+ usd: string | null;
659
+ };
660
+ cost: {
661
+ valueInCurrency: string | null;
662
+ usd: string | null;
663
+ };
664
+ quote: import("./types.mjs").Quote;
665
+ approval?: import("./types.mjs").TxData | null | undefined;
666
+ trade: import("./types.mjs").TxData;
667
+ estimatedProcessingTimeInSeconds: number;
668
+ l1GasFeesInHexWei?: string | undefined;
669
+ solanaFeesInLamports?: string | undefined;
670
+ }[], resultFuncArgs_1: SortOrder) => (QuoteResponse & QuoteMetadata)[];
671
+ memoizedResultFunc: ((resultFuncArgs_0: {
672
+ sentAmount: {
673
+ amount: string;
674
+ valueInCurrency: string | null;
675
+ usd: string | null;
676
+ };
677
+ toTokenAmount: {
678
+ amount: string;
679
+ valueInCurrency: string | null;
680
+ usd: string | null;
681
+ };
682
+ swapRate: string;
683
+ totalNetworkFee: {
684
+ amount: string;
685
+ valueInCurrency: string | null;
686
+ usd: string | null;
687
+ };
688
+ totalMaxNetworkFee: {
689
+ amount: string;
690
+ valueInCurrency: string | null;
691
+ usd: string | null;
692
+ };
693
+ gasFee: {
694
+ amount: string;
695
+ valueInCurrency: string | null;
696
+ usd: string | null;
697
+ };
698
+ adjustedReturn: {
699
+ valueInCurrency: string | null;
700
+ usd: string | null;
701
+ };
702
+ cost: {
703
+ valueInCurrency: string | null;
704
+ usd: string | null;
705
+ };
706
+ quote: import("./types.mjs").Quote;
707
+ approval?: import("./types.mjs").TxData | null | undefined;
708
+ trade: import("./types.mjs").TxData;
709
+ estimatedProcessingTimeInSeconds: number;
710
+ l1GasFeesInHexWei?: string | undefined;
711
+ solanaFeesInLamports?: string | undefined;
712
+ }[], resultFuncArgs_1: SortOrder) => (QuoteResponse & QuoteMetadata)[]) & {
713
+ clearCache: () => void;
714
+ resultsCount: () => number;
715
+ resetResultsCount: () => void;
716
+ };
717
+ lastResult: () => (QuoteResponse & QuoteMetadata)[];
718
+ dependencies: [((state: BridgeControllerState & {
719
+ gasFeeEstimates: GasFeeEstimates;
720
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
721
+ participateInMetaMetrics: boolean;
722
+ }) => {
723
+ sentAmount: {
724
+ amount: string;
725
+ valueInCurrency: string | null;
726
+ usd: string | null;
727
+ };
728
+ toTokenAmount: {
729
+ amount: string;
730
+ valueInCurrency: string | null;
731
+ usd: string | null;
732
+ };
733
+ swapRate: string;
734
+ totalNetworkFee: {
735
+ amount: string;
736
+ valueInCurrency: string | null;
737
+ usd: string | null;
738
+ };
739
+ totalMaxNetworkFee: {
740
+ amount: string;
741
+ valueInCurrency: string | null;
742
+ usd: string | null;
743
+ };
744
+ gasFee: {
745
+ amount: string;
746
+ valueInCurrency: string | null;
747
+ usd: string | null;
748
+ };
749
+ adjustedReturn: {
750
+ valueInCurrency: string | null;
751
+ usd: string | null;
752
+ };
753
+ cost: {
754
+ valueInCurrency: string | null;
755
+ usd: string | null;
756
+ };
757
+ quote: import("./types.mjs").Quote;
758
+ approval?: import("./types.mjs").TxData | null | undefined;
759
+ trade: import("./types.mjs").TxData;
760
+ estimatedProcessingTimeInSeconds: number;
761
+ l1GasFeesInHexWei?: string | undefined;
762
+ solanaFeesInLamports?: string | undefined;
763
+ }[]) & {
764
+ clearCache: () => void;
765
+ resultsCount: () => number;
766
+ resetResultsCount: () => void;
767
+ } & {
768
+ resultFunc: (resultFuncArgs_0: (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], resultFuncArgs_1: {
769
+ estimatedBaseFeeInDecGwei: string;
770
+ maxPriorityFeePerGasInDecGwei: string;
771
+ maxFeePerGasInDecGwei: string;
772
+ }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
773
+ sentAmount: {
774
+ amount: string;
775
+ valueInCurrency: string | null;
776
+ usd: string | null;
777
+ };
778
+ toTokenAmount: {
779
+ amount: string;
780
+ valueInCurrency: string | null;
781
+ usd: string | null;
782
+ };
783
+ swapRate: string;
784
+ totalNetworkFee: {
785
+ amount: string;
786
+ valueInCurrency: string | null;
787
+ usd: string | null;
788
+ };
789
+ totalMaxNetworkFee: {
790
+ amount: string;
791
+ valueInCurrency: string | null;
792
+ usd: string | null;
793
+ };
794
+ gasFee: {
795
+ amount: string;
796
+ valueInCurrency: string | null;
797
+ usd: string | null;
798
+ };
799
+ adjustedReturn: {
800
+ valueInCurrency: string | null;
801
+ usd: string | null;
802
+ };
803
+ cost: {
804
+ valueInCurrency: string | null;
805
+ usd: string | null;
806
+ };
807
+ quote: import("./types.mjs").Quote;
808
+ approval?: import("./types.mjs").TxData | null | undefined;
809
+ trade: import("./types.mjs").TxData;
810
+ estimatedProcessingTimeInSeconds: number;
811
+ l1GasFeesInHexWei?: string | undefined;
812
+ solanaFeesInLamports?: string | undefined;
813
+ }[];
814
+ memoizedResultFunc: ((resultFuncArgs_0: (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], resultFuncArgs_1: {
815
+ estimatedBaseFeeInDecGwei: string;
816
+ maxPriorityFeePerGasInDecGwei: string;
817
+ maxFeePerGasInDecGwei: string;
818
+ }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
819
+ sentAmount: {
820
+ amount: string;
821
+ valueInCurrency: string | null;
822
+ usd: string | null;
823
+ };
824
+ toTokenAmount: {
825
+ amount: string;
826
+ valueInCurrency: string | null;
827
+ usd: string | null;
828
+ };
829
+ swapRate: string;
830
+ totalNetworkFee: {
831
+ amount: string;
832
+ valueInCurrency: string | null;
833
+ usd: string | null;
834
+ };
835
+ totalMaxNetworkFee: {
836
+ amount: string;
837
+ valueInCurrency: string | null;
838
+ usd: string | null;
839
+ };
840
+ gasFee: {
841
+ amount: string;
842
+ valueInCurrency: string | null;
843
+ usd: string | null;
844
+ };
845
+ adjustedReturn: {
846
+ valueInCurrency: string | null;
847
+ usd: string | null;
848
+ };
849
+ cost: {
850
+ valueInCurrency: string | null;
851
+ usd: string | null;
852
+ };
853
+ quote: import("./types.mjs").Quote;
854
+ approval?: import("./types.mjs").TxData | null | undefined;
855
+ trade: import("./types.mjs").TxData;
856
+ estimatedProcessingTimeInSeconds: number;
857
+ l1GasFeesInHexWei?: string | undefined;
858
+ solanaFeesInLamports?: string | undefined;
859
+ }[]) & {
860
+ clearCache: () => void;
861
+ resultsCount: () => number;
862
+ resetResultsCount: () => void;
863
+ };
864
+ lastResult: () => {
865
+ sentAmount: {
866
+ amount: string;
867
+ valueInCurrency: string | null;
868
+ usd: string | null;
869
+ };
870
+ toTokenAmount: {
871
+ amount: string;
872
+ valueInCurrency: string | null;
873
+ usd: string | null;
874
+ };
875
+ swapRate: string;
876
+ totalNetworkFee: {
877
+ amount: string;
878
+ valueInCurrency: string | null;
879
+ usd: string | null;
880
+ };
881
+ totalMaxNetworkFee: {
882
+ amount: string;
883
+ valueInCurrency: string | null;
884
+ usd: string | null;
885
+ };
886
+ gasFee: {
887
+ amount: string;
888
+ valueInCurrency: string | null;
889
+ usd: string | null;
890
+ };
891
+ adjustedReturn: {
892
+ valueInCurrency: string | null;
893
+ usd: string | null;
894
+ };
895
+ cost: {
896
+ valueInCurrency: string | null;
897
+ usd: string | null;
898
+ };
899
+ quote: import("./types.mjs").Quote;
900
+ approval?: import("./types.mjs").TxData | null | undefined;
901
+ trade: import("./types.mjs").TxData;
902
+ estimatedProcessingTimeInSeconds: number;
903
+ l1GasFeesInHexWei?: string | undefined;
904
+ solanaFeesInLamports?: string | undefined;
905
+ }[];
906
+ dependencies: [({ quotes }: BridgeAppState) => (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], ((state: BridgeControllerState & {
907
+ gasFeeEstimates: GasFeeEstimates;
908
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
909
+ participateInMetaMetrics: boolean;
910
+ }) => {
911
+ estimatedBaseFeeInDecGwei: string;
912
+ maxPriorityFeePerGasInDecGwei: string;
913
+ maxFeePerGasInDecGwei: string;
914
+ }) & {
915
+ clearCache: () => void;
916
+ resultsCount: () => number;
917
+ resetResultsCount: () => void;
918
+ } & {
919
+ resultFunc: (resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
920
+ estimatedBaseFeeInDecGwei: string;
921
+ maxPriorityFeePerGasInDecGwei: string;
922
+ maxFeePerGasInDecGwei: string;
923
+ };
924
+ memoizedResultFunc: ((resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
925
+ estimatedBaseFeeInDecGwei: string;
926
+ maxPriorityFeePerGasInDecGwei: string;
927
+ maxFeePerGasInDecGwei: string;
928
+ }) & {
929
+ clearCache: () => void;
930
+ resultsCount: () => number;
931
+ resetResultsCount: () => void;
932
+ };
933
+ lastResult: () => {
934
+ estimatedBaseFeeInDecGwei: string;
935
+ maxPriorityFeePerGasInDecGwei: string;
936
+ maxFeePerGasInDecGwei: string;
937
+ };
938
+ dependencies: [({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string];
939
+ recomputations: () => number;
940
+ resetRecomputations: () => void;
941
+ dependencyRecomputations: () => number;
942
+ resetDependencyRecomputations: () => void;
943
+ } & {
944
+ argsMemoize: typeof import("reselect").weakMapMemoize;
945
+ memoize: typeof import("reselect").weakMapMemoize;
946
+ }, ((state: BridgeControllerState & {
947
+ gasFeeEstimates: GasFeeEstimates;
948
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
949
+ participateInMetaMetrics: boolean;
950
+ }) => ExchangeRate) & {
951
+ clearCache: () => void;
952
+ resultsCount: () => number;
953
+ resetResultsCount: () => void;
954
+ } & {
955
+ resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate;
956
+ memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate) & {
957
+ clearCache: () => void;
958
+ resultsCount: () => number;
959
+ resetResultsCount: () => void;
960
+ };
961
+ lastResult: () => ExchangeRate;
962
+ dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { srcChainId } }: BridgeAppState) => string | number | undefined, ({ quoteRequest: { srcTokenAddress } }: BridgeAppState) => string | undefined];
963
+ recomputations: () => number;
964
+ resetRecomputations: () => void;
965
+ dependencyRecomputations: () => number;
966
+ resetDependencyRecomputations: () => void;
967
+ } & {
968
+ argsMemoize: typeof import("reselect").weakMapMemoize;
969
+ memoize: typeof import("reselect").weakMapMemoize;
970
+ }, ((state: BridgeControllerState & {
971
+ gasFeeEstimates: GasFeeEstimates;
972
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
973
+ participateInMetaMetrics: boolean;
974
+ }) => ExchangeRate) & {
975
+ clearCache: () => void;
976
+ resultsCount: () => number;
977
+ resetResultsCount: () => void;
978
+ } & {
979
+ resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate;
980
+ memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate) & {
981
+ clearCache: () => void;
982
+ resultsCount: () => number;
983
+ resetResultsCount: () => void;
984
+ };
985
+ lastResult: () => ExchangeRate;
986
+ dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { destChainId } }: BridgeAppState) => string | number | undefined, ({ quoteRequest: { destTokenAddress } }: BridgeAppState) => string | undefined];
987
+ recomputations: () => number;
988
+ resetRecomputations: () => void;
989
+ dependencyRecomputations: () => number;
990
+ resetDependencyRecomputations: () => void;
991
+ } & {
992
+ argsMemoize: typeof import("reselect").weakMapMemoize;
993
+ memoize: typeof import("reselect").weakMapMemoize;
994
+ }, ((state: BridgeControllerState & {
995
+ gasFeeEstimates: GasFeeEstimates;
996
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
997
+ participateInMetaMetrics: boolean;
998
+ }) => ExchangeRate) & {
999
+ clearCache: () => void;
1000
+ resultsCount: () => number;
1001
+ resetResultsCount: () => void;
1002
+ } & {
1003
+ resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined) => ExchangeRate;
1004
+ memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined) => ExchangeRate) & {
1005
+ clearCache: () => void;
1006
+ resultsCount: () => number;
1007
+ resetResultsCount: () => void;
1008
+ };
1009
+ lastResult: () => ExchangeRate;
1010
+ dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { srcChainId } }: BridgeAppState) => string | number | undefined];
1011
+ recomputations: () => number;
1012
+ resetRecomputations: () => void;
1013
+ dependencyRecomputations: () => number;
1014
+ resetDependencyRecomputations: () => void;
1015
+ } & {
1016
+ argsMemoize: typeof import("reselect").weakMapMemoize;
1017
+ memoize: typeof import("reselect").weakMapMemoize;
1018
+ }];
1019
+ recomputations: () => number;
1020
+ resetRecomputations: () => void;
1021
+ dependencyRecomputations: () => number;
1022
+ resetDependencyRecomputations: () => void;
1023
+ } & {
1024
+ argsMemoize: typeof import("reselect").weakMapMemoize;
1025
+ memoize: typeof import("reselect").weakMapMemoize;
1026
+ }, (_: BridgeAppState, { sortOrder }: BridgeQuotesClientParams) => SortOrder];
1027
+ recomputations: () => number;
1028
+ resetRecomputations: () => void;
1029
+ dependencyRecomputations: () => number;
1030
+ resetDependencyRecomputations: () => void;
1031
+ } & {
1032
+ argsMemoize: typeof import("reselect").weakMapMemoize;
1033
+ memoize: typeof import("reselect").weakMapMemoize;
1034
+ }, ((state: BridgeControllerState & {
1035
+ gasFeeEstimates: GasFeeEstimates;
1036
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
1037
+ participateInMetaMetrics: boolean;
1038
+ }, params_0: BridgeQuotesClientParams) => QuoteResponse & QuoteMetadata) & {
1039
+ clearCache: () => void;
1040
+ resultsCount: () => number;
1041
+ resetResultsCount: () => void;
1042
+ } & {
1043
+ resultFunc: (resultFuncArgs_0: QuoteResponse & QuoteMetadata, resultFuncArgs_1: (QuoteResponse & QuoteMetadata) | null) => QuoteResponse & QuoteMetadata;
1044
+ memoizedResultFunc: ((resultFuncArgs_0: QuoteResponse & QuoteMetadata, resultFuncArgs_1: (QuoteResponse & QuoteMetadata) | null) => QuoteResponse & QuoteMetadata) & {
1045
+ clearCache: () => void;
1046
+ resultsCount: () => number;
1047
+ resetResultsCount: () => void;
1048
+ };
1049
+ lastResult: () => QuoteResponse & QuoteMetadata;
1050
+ dependencies: [((state: BridgeControllerState & {
1051
+ gasFeeEstimates: GasFeeEstimates;
1052
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
1053
+ participateInMetaMetrics: boolean;
1054
+ }, params_0: BridgeQuotesClientParams) => QuoteResponse & QuoteMetadata) & {
1055
+ clearCache: () => void;
1056
+ resultsCount: () => number;
1057
+ resetResultsCount: () => void;
1058
+ } & {
1059
+ resultFunc: (resultFuncArgs_0: (QuoteResponse & QuoteMetadata)[]) => QuoteResponse & QuoteMetadata;
1060
+ memoizedResultFunc: ((resultFuncArgs_0: (QuoteResponse & QuoteMetadata)[]) => QuoteResponse & QuoteMetadata) & {
1061
+ clearCache: () => void;
1062
+ resultsCount: () => number;
1063
+ resetResultsCount: () => void;
1064
+ };
1065
+ lastResult: () => QuoteResponse & QuoteMetadata;
1066
+ dependencies: [((state: BridgeControllerState & {
1067
+ gasFeeEstimates: GasFeeEstimates;
1068
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
1069
+ participateInMetaMetrics: boolean;
1070
+ }, params_0: BridgeQuotesClientParams) => (QuoteResponse & QuoteMetadata)[]) & {
1071
+ clearCache: () => void;
1072
+ resultsCount: () => number;
1073
+ resetResultsCount: () => void;
1074
+ } & {
1075
+ resultFunc: (resultFuncArgs_0: {
1076
+ sentAmount: {
1077
+ amount: string;
1078
+ valueInCurrency: string | null;
1079
+ usd: string | null;
1080
+ };
1081
+ toTokenAmount: {
1082
+ amount: string;
1083
+ valueInCurrency: string | null;
1084
+ usd: string | null;
1085
+ };
1086
+ swapRate: string;
1087
+ totalNetworkFee: {
1088
+ amount: string;
1089
+ valueInCurrency: string | null;
1090
+ usd: string | null;
1091
+ };
1092
+ totalMaxNetworkFee: {
1093
+ amount: string;
1094
+ valueInCurrency: string | null;
1095
+ usd: string | null;
1096
+ };
1097
+ gasFee: {
1098
+ amount: string;
1099
+ valueInCurrency: string | null;
1100
+ usd: string | null;
1101
+ };
1102
+ adjustedReturn: {
1103
+ valueInCurrency: string | null;
1104
+ usd: string | null;
1105
+ };
1106
+ cost: {
1107
+ valueInCurrency: string | null;
1108
+ usd: string | null;
1109
+ };
1110
+ quote: import("./types.mjs").Quote;
1111
+ approval?: import("./types.mjs").TxData | null | undefined;
1112
+ trade: import("./types.mjs").TxData;
1113
+ estimatedProcessingTimeInSeconds: number;
1114
+ l1GasFeesInHexWei?: string | undefined;
1115
+ solanaFeesInLamports?: string | undefined;
1116
+ }[], resultFuncArgs_1: SortOrder) => (QuoteResponse & QuoteMetadata)[];
1117
+ memoizedResultFunc: ((resultFuncArgs_0: {
1118
+ sentAmount: {
1119
+ amount: string;
1120
+ valueInCurrency: string | null;
1121
+ usd: string | null;
1122
+ };
1123
+ toTokenAmount: {
1124
+ amount: string;
1125
+ valueInCurrency: string | null;
1126
+ usd: string | null;
1127
+ };
1128
+ swapRate: string;
1129
+ totalNetworkFee: {
1130
+ amount: string;
1131
+ valueInCurrency: string | null;
1132
+ usd: string | null;
1133
+ };
1134
+ totalMaxNetworkFee: {
1135
+ amount: string;
1136
+ valueInCurrency: string | null;
1137
+ usd: string | null;
1138
+ };
1139
+ gasFee: {
1140
+ amount: string;
1141
+ valueInCurrency: string | null;
1142
+ usd: string | null;
1143
+ };
1144
+ adjustedReturn: {
1145
+ valueInCurrency: string | null;
1146
+ usd: string | null;
1147
+ };
1148
+ cost: {
1149
+ valueInCurrency: string | null;
1150
+ usd: string | null;
1151
+ };
1152
+ quote: import("./types.mjs").Quote;
1153
+ approval?: import("./types.mjs").TxData | null | undefined;
1154
+ trade: import("./types.mjs").TxData;
1155
+ estimatedProcessingTimeInSeconds: number;
1156
+ l1GasFeesInHexWei?: string | undefined;
1157
+ solanaFeesInLamports?: string | undefined;
1158
+ }[], resultFuncArgs_1: SortOrder) => (QuoteResponse & QuoteMetadata)[]) & {
1159
+ clearCache: () => void;
1160
+ resultsCount: () => number;
1161
+ resetResultsCount: () => void;
1162
+ };
1163
+ lastResult: () => (QuoteResponse & QuoteMetadata)[];
1164
+ dependencies: [((state: BridgeControllerState & {
1165
+ gasFeeEstimates: GasFeeEstimates;
1166
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
1167
+ participateInMetaMetrics: boolean;
1168
+ }) => {
1169
+ sentAmount: {
1170
+ amount: string;
1171
+ valueInCurrency: string | null;
1172
+ usd: string | null;
1173
+ };
1174
+ toTokenAmount: {
1175
+ amount: string;
1176
+ valueInCurrency: string | null;
1177
+ usd: string | null;
1178
+ };
1179
+ swapRate: string;
1180
+ totalNetworkFee: {
1181
+ amount: string;
1182
+ valueInCurrency: string | null;
1183
+ usd: string | null;
1184
+ };
1185
+ totalMaxNetworkFee: {
1186
+ amount: string;
1187
+ valueInCurrency: string | null;
1188
+ usd: string | null;
1189
+ };
1190
+ gasFee: {
1191
+ amount: string;
1192
+ valueInCurrency: string | null;
1193
+ usd: string | null;
1194
+ };
1195
+ adjustedReturn: {
1196
+ valueInCurrency: string | null;
1197
+ usd: string | null;
1198
+ };
1199
+ cost: {
1200
+ valueInCurrency: string | null;
1201
+ usd: string | null;
1202
+ };
1203
+ quote: import("./types.mjs").Quote;
1204
+ approval?: import("./types.mjs").TxData | null | undefined;
1205
+ trade: import("./types.mjs").TxData;
1206
+ estimatedProcessingTimeInSeconds: number;
1207
+ l1GasFeesInHexWei?: string | undefined;
1208
+ solanaFeesInLamports?: string | undefined;
1209
+ }[]) & {
1210
+ clearCache: () => void;
1211
+ resultsCount: () => number;
1212
+ resetResultsCount: () => void;
1213
+ } & {
1214
+ resultFunc: (resultFuncArgs_0: (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], resultFuncArgs_1: {
1215
+ estimatedBaseFeeInDecGwei: string;
1216
+ maxPriorityFeePerGasInDecGwei: string;
1217
+ maxFeePerGasInDecGwei: string;
1218
+ }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
1219
+ sentAmount: {
1220
+ amount: string;
1221
+ valueInCurrency: string | null;
1222
+ usd: string | null;
1223
+ };
1224
+ toTokenAmount: {
1225
+ amount: string;
1226
+ valueInCurrency: string | null;
1227
+ usd: string | null;
1228
+ };
1229
+ swapRate: string;
1230
+ totalNetworkFee: {
1231
+ amount: string;
1232
+ valueInCurrency: string | null;
1233
+ usd: string | null;
1234
+ };
1235
+ totalMaxNetworkFee: {
1236
+ amount: string;
1237
+ valueInCurrency: string | null;
1238
+ usd: string | null;
1239
+ };
1240
+ gasFee: {
1241
+ amount: string;
1242
+ valueInCurrency: string | null;
1243
+ usd: string | null;
1244
+ };
1245
+ adjustedReturn: {
1246
+ valueInCurrency: string | null;
1247
+ usd: string | null;
1248
+ };
1249
+ cost: {
1250
+ valueInCurrency: string | null;
1251
+ usd: string | null;
1252
+ };
1253
+ quote: import("./types.mjs").Quote;
1254
+ approval?: import("./types.mjs").TxData | null | undefined;
1255
+ trade: import("./types.mjs").TxData;
1256
+ estimatedProcessingTimeInSeconds: number;
1257
+ l1GasFeesInHexWei?: string | undefined;
1258
+ solanaFeesInLamports?: string | undefined;
1259
+ }[];
1260
+ memoizedResultFunc: ((resultFuncArgs_0: (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], resultFuncArgs_1: {
1261
+ estimatedBaseFeeInDecGwei: string;
1262
+ maxPriorityFeePerGasInDecGwei: string;
1263
+ maxFeePerGasInDecGwei: string;
1264
+ }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
1265
+ sentAmount: {
1266
+ amount: string;
1267
+ valueInCurrency: string | null;
1268
+ usd: string | null;
1269
+ };
1270
+ toTokenAmount: {
1271
+ amount: string;
1272
+ valueInCurrency: string | null;
1273
+ usd: string | null;
1274
+ };
1275
+ swapRate: string;
1276
+ totalNetworkFee: {
1277
+ amount: string;
1278
+ valueInCurrency: string | null;
1279
+ usd: string | null;
1280
+ };
1281
+ totalMaxNetworkFee: {
1282
+ amount: string;
1283
+ valueInCurrency: string | null;
1284
+ usd: string | null;
1285
+ };
1286
+ gasFee: {
1287
+ amount: string;
1288
+ valueInCurrency: string | null;
1289
+ usd: string | null;
1290
+ };
1291
+ adjustedReturn: {
1292
+ valueInCurrency: string | null;
1293
+ usd: string | null;
1294
+ };
1295
+ cost: {
1296
+ valueInCurrency: string | null;
1297
+ usd: string | null;
1298
+ };
1299
+ quote: import("./types.mjs").Quote;
1300
+ approval?: import("./types.mjs").TxData | null | undefined;
1301
+ trade: import("./types.mjs").TxData;
1302
+ estimatedProcessingTimeInSeconds: number;
1303
+ l1GasFeesInHexWei?: string | undefined;
1304
+ solanaFeesInLamports?: string | undefined;
1305
+ }[]) & {
1306
+ clearCache: () => void;
1307
+ resultsCount: () => number;
1308
+ resetResultsCount: () => void;
1309
+ };
1310
+ lastResult: () => {
1311
+ sentAmount: {
1312
+ amount: string;
1313
+ valueInCurrency: string | null;
1314
+ usd: string | null;
1315
+ };
1316
+ toTokenAmount: {
1317
+ amount: string;
1318
+ valueInCurrency: string | null;
1319
+ usd: string | null;
1320
+ };
1321
+ swapRate: string;
1322
+ totalNetworkFee: {
1323
+ amount: string;
1324
+ valueInCurrency: string | null;
1325
+ usd: string | null;
1326
+ };
1327
+ totalMaxNetworkFee: {
1328
+ amount: string;
1329
+ valueInCurrency: string | null;
1330
+ usd: string | null;
1331
+ };
1332
+ gasFee: {
1333
+ amount: string;
1334
+ valueInCurrency: string | null;
1335
+ usd: string | null;
1336
+ };
1337
+ adjustedReturn: {
1338
+ valueInCurrency: string | null;
1339
+ usd: string | null;
1340
+ };
1341
+ cost: {
1342
+ valueInCurrency: string | null;
1343
+ usd: string | null;
1344
+ };
1345
+ quote: import("./types.mjs").Quote;
1346
+ approval?: import("./types.mjs").TxData | null | undefined;
1347
+ trade: import("./types.mjs").TxData;
1348
+ estimatedProcessingTimeInSeconds: number;
1349
+ l1GasFeesInHexWei?: string | undefined;
1350
+ solanaFeesInLamports?: string | undefined;
1351
+ }[];
1352
+ dependencies: [({ quotes }: BridgeAppState) => (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], ((state: BridgeControllerState & {
1353
+ gasFeeEstimates: GasFeeEstimates;
1354
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
1355
+ participateInMetaMetrics: boolean;
1356
+ }) => {
1357
+ estimatedBaseFeeInDecGwei: string;
1358
+ maxPriorityFeePerGasInDecGwei: string;
1359
+ maxFeePerGasInDecGwei: string;
1360
+ }) & {
1361
+ clearCache: () => void;
1362
+ resultsCount: () => number;
1363
+ resetResultsCount: () => void;
1364
+ } & {
1365
+ resultFunc: (resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
1366
+ estimatedBaseFeeInDecGwei: string;
1367
+ maxPriorityFeePerGasInDecGwei: string;
1368
+ maxFeePerGasInDecGwei: string;
1369
+ };
1370
+ memoizedResultFunc: ((resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
1371
+ estimatedBaseFeeInDecGwei: string;
1372
+ maxPriorityFeePerGasInDecGwei: string;
1373
+ maxFeePerGasInDecGwei: string;
1374
+ }) & {
1375
+ clearCache: () => void;
1376
+ resultsCount: () => number;
1377
+ resetResultsCount: () => void;
1378
+ };
1379
+ lastResult: () => {
1380
+ estimatedBaseFeeInDecGwei: string;
1381
+ maxPriorityFeePerGasInDecGwei: string;
1382
+ maxFeePerGasInDecGwei: string;
1383
+ };
1384
+ dependencies: [({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string];
1385
+ recomputations: () => number;
1386
+ resetRecomputations: () => void;
1387
+ dependencyRecomputations: () => number;
1388
+ resetDependencyRecomputations: () => void;
1389
+ } & {
1390
+ argsMemoize: typeof import("reselect").weakMapMemoize;
1391
+ memoize: typeof import("reselect").weakMapMemoize;
1392
+ }, ((state: BridgeControllerState & {
1393
+ gasFeeEstimates: GasFeeEstimates;
1394
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
1395
+ participateInMetaMetrics: boolean;
1396
+ }) => ExchangeRate) & {
1397
+ clearCache: () => void;
1398
+ resultsCount: () => number;
1399
+ resetResultsCount: () => void;
1400
+ } & {
1401
+ resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate;
1402
+ memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate) & {
1403
+ clearCache: () => void;
1404
+ resultsCount: () => number;
1405
+ resetResultsCount: () => void;
1406
+ };
1407
+ lastResult: () => ExchangeRate;
1408
+ dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { srcChainId } }: BridgeAppState) => string | number | undefined, ({ quoteRequest: { srcTokenAddress } }: BridgeAppState) => string | undefined];
1409
+ recomputations: () => number;
1410
+ resetRecomputations: () => void;
1411
+ dependencyRecomputations: () => number;
1412
+ resetDependencyRecomputations: () => void;
1413
+ } & {
1414
+ argsMemoize: typeof import("reselect").weakMapMemoize;
1415
+ memoize: typeof import("reselect").weakMapMemoize;
1416
+ }, ((state: BridgeControllerState & {
1417
+ gasFeeEstimates: GasFeeEstimates;
1418
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
1419
+ participateInMetaMetrics: boolean;
1420
+ }) => ExchangeRate) & {
1421
+ clearCache: () => void;
1422
+ resultsCount: () => number;
1423
+ resetResultsCount: () => void;
1424
+ } & {
1425
+ resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate;
1426
+ memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate) & {
1427
+ clearCache: () => void;
1428
+ resultsCount: () => number;
1429
+ resetResultsCount: () => void;
1430
+ };
1431
+ lastResult: () => ExchangeRate;
1432
+ dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { destChainId } }: BridgeAppState) => string | number | undefined, ({ quoteRequest: { destTokenAddress } }: BridgeAppState) => string | undefined];
1433
+ recomputations: () => number;
1434
+ resetRecomputations: () => void;
1435
+ dependencyRecomputations: () => number;
1436
+ resetDependencyRecomputations: () => void;
1437
+ } & {
1438
+ argsMemoize: typeof import("reselect").weakMapMemoize;
1439
+ memoize: typeof import("reselect").weakMapMemoize;
1440
+ }, ((state: BridgeControllerState & {
1441
+ gasFeeEstimates: GasFeeEstimates;
1442
+ } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
1443
+ participateInMetaMetrics: boolean;
1444
+ }) => ExchangeRate) & {
1445
+ clearCache: () => void;
1446
+ resultsCount: () => number;
1447
+ resetResultsCount: () => void;
1448
+ } & {
1449
+ resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined) => ExchangeRate;
1450
+ memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined) => ExchangeRate) & {
1451
+ clearCache: () => void;
1452
+ resultsCount: () => number;
1453
+ resetResultsCount: () => void;
1454
+ };
1455
+ lastResult: () => ExchangeRate;
1456
+ dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { srcChainId } }: BridgeAppState) => string | number | undefined];
1457
+ recomputations: () => number;
1458
+ resetRecomputations: () => void;
1459
+ dependencyRecomputations: () => number;
1460
+ resetDependencyRecomputations: () => void;
1461
+ } & {
1462
+ argsMemoize: typeof import("reselect").weakMapMemoize;
1463
+ memoize: typeof import("reselect").weakMapMemoize;
1464
+ }];
1465
+ recomputations: () => number;
1466
+ resetRecomputations: () => void;
1467
+ dependencyRecomputations: () => number;
1468
+ resetDependencyRecomputations: () => void;
1469
+ } & {
1470
+ argsMemoize: typeof import("reselect").weakMapMemoize;
1471
+ memoize: typeof import("reselect").weakMapMemoize;
1472
+ }, (_: BridgeAppState, { sortOrder }: BridgeQuotesClientParams) => SortOrder];
1473
+ recomputations: () => number;
1474
+ resetRecomputations: () => void;
1475
+ dependencyRecomputations: () => number;
1476
+ resetDependencyRecomputations: () => void;
1477
+ } & {
1478
+ argsMemoize: typeof import("reselect").weakMapMemoize;
1479
+ memoize: typeof import("reselect").weakMapMemoize;
1480
+ }];
1481
+ recomputations: () => number;
1482
+ resetRecomputations: () => void;
1483
+ dependencyRecomputations: () => number;
1484
+ resetDependencyRecomputations: () => void;
1485
+ } & {
1486
+ argsMemoize: typeof import("reselect").weakMapMemoize;
1487
+ memoize: typeof import("reselect").weakMapMemoize;
1488
+ }, (_: BridgeAppState, { selectedQuote }: BridgeQuotesClientParams) => (QuoteResponse & QuoteMetadata) | null];
1489
+ recomputations: () => number;
1490
+ resetRecomputations: () => void;
1491
+ dependencyRecomputations: () => number;
1492
+ resetDependencyRecomputations: () => void;
1493
+ } & {
1494
+ argsMemoize: typeof import("reselect").weakMapMemoize;
1495
+ memoize: typeof import("reselect").weakMapMemoize;
1496
+ }, (state: BridgeAppState) => number | null, (state: BridgeAppState) => boolean, (state: BridgeAppState) => number | null, (state: BridgeAppState, { featureFlagsKey }: BridgeQuotesClientParams) => boolean];
1497
+ recomputations: () => number;
1498
+ resetRecomputations: () => void;
1499
+ dependencyRecomputations: () => number;
1500
+ resetDependencyRecomputations: () => void;
1501
+ } & {
1502
+ argsMemoize: typeof import("reselect").weakMapMemoize;
1503
+ memoize: typeof import("reselect").weakMapMemoize;
1504
+ };
1505
+ export {};
1506
+ //# sourceMappingURL=selectors.d.mts.map