@metamask-previews/bridge-controller 16.0.0-preview-72122b6f → 16.0.0-preview-9a7893fb
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 +6 -0
- package/dist/bridge-controller.cjs +131 -11
- package/dist/bridge-controller.cjs.map +1 -1
- package/dist/bridge-controller.d.cts +26 -3
- package/dist/bridge-controller.d.cts.map +1 -1
- package/dist/bridge-controller.d.mts +26 -3
- package/dist/bridge-controller.d.mts.map +1 -1
- package/dist/bridge-controller.mjs +131 -11
- package/dist/bridge-controller.mjs.map +1 -1
- package/dist/index.cjs +24 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/dist/selectors.cjs +3 -2
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.d.cts +486 -486
- package/dist/selectors.d.cts.map +1 -1
- package/dist/selectors.d.mts +486 -486
- package/dist/selectors.d.mts.map +1 -1
- package/dist/selectors.mjs +3 -2
- package/dist/selectors.mjs.map +1 -1
- package/dist/types.cjs +9 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +9 -2
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +9 -2
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +8 -0
- package/dist/types.mjs.map +1 -1
- package/dist/utils/metrics/constants.cjs +43 -0
- package/dist/utils/metrics/constants.cjs.map +1 -0
- package/dist/utils/metrics/constants.d.cts +36 -0
- package/dist/utils/metrics/constants.d.cts.map +1 -0
- package/dist/utils/metrics/constants.d.mts +36 -0
- package/dist/utils/metrics/constants.d.mts.map +1 -0
- package/dist/utils/metrics/constants.mjs +40 -0
- package/dist/utils/metrics/constants.mjs.map +1 -0
- package/dist/utils/metrics/properties.cjs +77 -0
- package/dist/utils/metrics/properties.cjs.map +1 -0
- package/dist/utils/metrics/properties.d.cts +22 -0
- package/dist/utils/metrics/properties.d.cts.map +1 -0
- package/dist/utils/metrics/properties.d.mts +22 -0
- package/dist/utils/metrics/properties.d.mts.map +1 -0
- package/dist/utils/metrics/properties.mjs +66 -0
- package/dist/utils/metrics/properties.mjs.map +1 -0
- package/dist/utils/metrics/types.cjs +3 -0
- package/dist/utils/metrics/types.cjs.map +1 -0
- package/dist/utils/metrics/types.d.cts +156 -0
- package/dist/utils/metrics/types.d.cts.map +1 -0
- package/dist/utils/metrics/types.d.mts +156 -0
- package/dist/utils/metrics/types.d.mts.map +1 -0
- package/dist/utils/metrics/types.mjs +2 -0
- package/dist/utils/metrics/types.mjs.map +1 -0
- package/package.json +1 -1
package/dist/selectors.d.mts
CHANGED
@@ -129,8 +129,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
129
129
|
participateInMetaMetrics: boolean;
|
130
130
|
}, params_0: BridgeQuotesClientParams) => {
|
131
131
|
sortedQuotes: (QuoteResponse & QuoteMetadata)[];
|
132
|
-
recommendedQuote: QuoteResponse & QuoteMetadata;
|
133
|
-
activeQuote: QuoteResponse & QuoteMetadata;
|
132
|
+
recommendedQuote: (QuoteResponse & QuoteMetadata) | null;
|
133
|
+
activeQuote: (QuoteResponse & QuoteMetadata) | null;
|
134
134
|
quotesLastFetchedMs: number | null;
|
135
135
|
isLoading: boolean;
|
136
136
|
quoteFetchError: string | null;
|
@@ -142,10 +142,10 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
142
142
|
resultsCount: () => number;
|
143
143
|
resetResultsCount: () => void;
|
144
144
|
} & {
|
145
|
-
resultFunc: (resultFuncArgs_0: string | null, resultFuncArgs_1: number, resultFuncArgs_2: QuoteResponse & QuoteMetadata, resultFuncArgs_3: (QuoteResponse & QuoteMetadata)
|
145
|
+
resultFunc: (resultFuncArgs_0: string | null, resultFuncArgs_1: number, resultFuncArgs_2: (QuoteResponse & QuoteMetadata)[], resultFuncArgs_3: (QuoteResponse & QuoteMetadata) | null, resultFuncArgs_4: (QuoteResponse & QuoteMetadata) | null, resultFuncArgs_5: number | null, resultFuncArgs_6: boolean, resultFuncArgs_7: number | null, resultFuncArgs_8: boolean) => {
|
146
146
|
sortedQuotes: (QuoteResponse & QuoteMetadata)[];
|
147
|
-
recommendedQuote: QuoteResponse & QuoteMetadata;
|
148
|
-
activeQuote: QuoteResponse & QuoteMetadata;
|
147
|
+
recommendedQuote: (QuoteResponse & QuoteMetadata) | null;
|
148
|
+
activeQuote: (QuoteResponse & QuoteMetadata) | null;
|
149
149
|
quotesLastFetchedMs: number | null;
|
150
150
|
isLoading: boolean;
|
151
151
|
quoteFetchError: string | null;
|
@@ -153,10 +153,10 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
153
153
|
quotesInitialLoadTimeMs: number | null;
|
154
154
|
isQuoteGoingToRefresh: boolean;
|
155
155
|
};
|
156
|
-
memoizedResultFunc: ((resultFuncArgs_0: string | null, resultFuncArgs_1: number, resultFuncArgs_2: QuoteResponse & QuoteMetadata, resultFuncArgs_3: (QuoteResponse & QuoteMetadata)
|
156
|
+
memoizedResultFunc: ((resultFuncArgs_0: string | null, resultFuncArgs_1: number, resultFuncArgs_2: (QuoteResponse & QuoteMetadata)[], resultFuncArgs_3: (QuoteResponse & QuoteMetadata) | null, resultFuncArgs_4: (QuoteResponse & QuoteMetadata) | null, resultFuncArgs_5: number | null, resultFuncArgs_6: boolean, resultFuncArgs_7: number | null, resultFuncArgs_8: boolean) => {
|
157
157
|
sortedQuotes: (QuoteResponse & QuoteMetadata)[];
|
158
|
-
recommendedQuote: QuoteResponse & QuoteMetadata;
|
159
|
-
activeQuote: QuoteResponse & QuoteMetadata;
|
158
|
+
recommendedQuote: (QuoteResponse & QuoteMetadata) | null;
|
159
|
+
activeQuote: (QuoteResponse & QuoteMetadata) | null;
|
160
160
|
quotesLastFetchedMs: number | null;
|
161
161
|
isLoading: boolean;
|
162
162
|
quoteFetchError: string | null;
|
@@ -170,8 +170,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
170
170
|
};
|
171
171
|
lastResult: () => {
|
172
172
|
sortedQuotes: (QuoteResponse & QuoteMetadata)[];
|
173
|
-
recommendedQuote: QuoteResponse & QuoteMetadata;
|
174
|
-
activeQuote: QuoteResponse & QuoteMetadata;
|
173
|
+
recommendedQuote: (QuoteResponse & QuoteMetadata) | null;
|
174
|
+
activeQuote: (QuoteResponse & QuoteMetadata) | null;
|
175
175
|
quotesLastFetchedMs: number | null;
|
176
176
|
isLoading: boolean;
|
177
177
|
quoteFetchError: string | null;
|
@@ -183,28 +183,155 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
183
183
|
gasFeeEstimates: GasFeeEstimates;
|
184
184
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
185
185
|
participateInMetaMetrics: boolean;
|
186
|
-
}, params_0: BridgeQuotesClientParams) => QuoteResponse & QuoteMetadata) & {
|
186
|
+
}, params_0: BridgeQuotesClientParams) => (QuoteResponse & QuoteMetadata)[]) & {
|
187
187
|
clearCache: () => void;
|
188
188
|
resultsCount: () => number;
|
189
189
|
resetResultsCount: () => void;
|
190
190
|
} & {
|
191
|
-
resultFunc: (resultFuncArgs_0:
|
192
|
-
|
191
|
+
resultFunc: (resultFuncArgs_0: {
|
192
|
+
sentAmount: {
|
193
|
+
amount: string;
|
194
|
+
valueInCurrency: string | null;
|
195
|
+
usd: string | null;
|
196
|
+
};
|
197
|
+
toTokenAmount: {
|
198
|
+
amount: string;
|
199
|
+
valueInCurrency: string | null;
|
200
|
+
usd: string | null;
|
201
|
+
};
|
202
|
+
swapRate: string;
|
203
|
+
totalNetworkFee: {
|
204
|
+
amount: string;
|
205
|
+
valueInCurrency: string | null;
|
206
|
+
usd: string | null;
|
207
|
+
};
|
208
|
+
totalMaxNetworkFee: {
|
209
|
+
amount: string;
|
210
|
+
valueInCurrency: string | null;
|
211
|
+
usd: string | null;
|
212
|
+
};
|
213
|
+
gasFee: {
|
214
|
+
amount: string;
|
215
|
+
valueInCurrency: string | null;
|
216
|
+
usd: string | null;
|
217
|
+
};
|
218
|
+
adjustedReturn: {
|
219
|
+
valueInCurrency: string | null;
|
220
|
+
usd: string | null;
|
221
|
+
};
|
222
|
+
cost: {
|
223
|
+
valueInCurrency: string | null;
|
224
|
+
usd: string | null;
|
225
|
+
};
|
226
|
+
quote: import("./types.mjs").Quote;
|
227
|
+
approval?: import("./types.mjs").TxData | null | undefined;
|
228
|
+
trade: import("./types.mjs").TxData;
|
229
|
+
estimatedProcessingTimeInSeconds: number;
|
230
|
+
l1GasFeesInHexWei?: string | undefined;
|
231
|
+
solanaFeesInLamports?: string | undefined;
|
232
|
+
}[], resultFuncArgs_1: SortOrder) => (QuoteResponse & QuoteMetadata)[];
|
233
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
234
|
+
sentAmount: {
|
235
|
+
amount: string;
|
236
|
+
valueInCurrency: string | null;
|
237
|
+
usd: string | null;
|
238
|
+
};
|
239
|
+
toTokenAmount: {
|
240
|
+
amount: string;
|
241
|
+
valueInCurrency: string | null;
|
242
|
+
usd: string | null;
|
243
|
+
};
|
244
|
+
swapRate: string;
|
245
|
+
totalNetworkFee: {
|
246
|
+
amount: string;
|
247
|
+
valueInCurrency: string | null;
|
248
|
+
usd: string | null;
|
249
|
+
};
|
250
|
+
totalMaxNetworkFee: {
|
251
|
+
amount: string;
|
252
|
+
valueInCurrency: string | null;
|
253
|
+
usd: string | null;
|
254
|
+
};
|
255
|
+
gasFee: {
|
256
|
+
amount: string;
|
257
|
+
valueInCurrency: string | null;
|
258
|
+
usd: string | null;
|
259
|
+
};
|
260
|
+
adjustedReturn: {
|
261
|
+
valueInCurrency: string | null;
|
262
|
+
usd: string | null;
|
263
|
+
};
|
264
|
+
cost: {
|
265
|
+
valueInCurrency: string | null;
|
266
|
+
usd: string | null;
|
267
|
+
};
|
268
|
+
quote: import("./types.mjs").Quote;
|
269
|
+
approval?: import("./types.mjs").TxData | null | undefined;
|
270
|
+
trade: import("./types.mjs").TxData;
|
271
|
+
estimatedProcessingTimeInSeconds: number;
|
272
|
+
l1GasFeesInHexWei?: string | undefined;
|
273
|
+
solanaFeesInLamports?: string | undefined;
|
274
|
+
}[], resultFuncArgs_1: SortOrder) => (QuoteResponse & QuoteMetadata)[]) & {
|
193
275
|
clearCache: () => void;
|
194
276
|
resultsCount: () => number;
|
195
277
|
resetResultsCount: () => void;
|
196
278
|
};
|
197
|
-
lastResult: () => QuoteResponse & QuoteMetadata;
|
279
|
+
lastResult: () => (QuoteResponse & QuoteMetadata)[];
|
198
280
|
dependencies: [((state: BridgeControllerState & {
|
199
281
|
gasFeeEstimates: GasFeeEstimates;
|
200
282
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
201
283
|
participateInMetaMetrics: boolean;
|
202
|
-
}
|
284
|
+
}) => {
|
285
|
+
sentAmount: {
|
286
|
+
amount: string;
|
287
|
+
valueInCurrency: string | null;
|
288
|
+
usd: string | null;
|
289
|
+
};
|
290
|
+
toTokenAmount: {
|
291
|
+
amount: string;
|
292
|
+
valueInCurrency: string | null;
|
293
|
+
usd: string | null;
|
294
|
+
};
|
295
|
+
swapRate: string;
|
296
|
+
totalNetworkFee: {
|
297
|
+
amount: string;
|
298
|
+
valueInCurrency: string | null;
|
299
|
+
usd: string | null;
|
300
|
+
};
|
301
|
+
totalMaxNetworkFee: {
|
302
|
+
amount: string;
|
303
|
+
valueInCurrency: string | null;
|
304
|
+
usd: string | null;
|
305
|
+
};
|
306
|
+
gasFee: {
|
307
|
+
amount: string;
|
308
|
+
valueInCurrency: string | null;
|
309
|
+
usd: string | null;
|
310
|
+
};
|
311
|
+
adjustedReturn: {
|
312
|
+
valueInCurrency: string | null;
|
313
|
+
usd: string | null;
|
314
|
+
};
|
315
|
+
cost: {
|
316
|
+
valueInCurrency: string | null;
|
317
|
+
usd: string | null;
|
318
|
+
};
|
319
|
+
quote: import("./types.mjs").Quote;
|
320
|
+
approval?: import("./types.mjs").TxData | null | undefined;
|
321
|
+
trade: import("./types.mjs").TxData;
|
322
|
+
estimatedProcessingTimeInSeconds: number;
|
323
|
+
l1GasFeesInHexWei?: string | undefined;
|
324
|
+
solanaFeesInLamports?: string | undefined;
|
325
|
+
}[]) & {
|
203
326
|
clearCache: () => void;
|
204
327
|
resultsCount: () => number;
|
205
328
|
resetResultsCount: () => void;
|
206
329
|
} & {
|
207
|
-
resultFunc: (resultFuncArgs_0: {
|
330
|
+
resultFunc: (resultFuncArgs_0: (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], resultFuncArgs_1: {
|
331
|
+
estimatedBaseFeeInDecGwei: string;
|
332
|
+
maxPriorityFeePerGasInDecGwei: string;
|
333
|
+
maxFeePerGasInDecGwei: string;
|
334
|
+
}, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
|
208
335
|
sentAmount: {
|
209
336
|
amount: string;
|
210
337
|
valueInCurrency: string | null;
|
@@ -245,8 +372,12 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
245
372
|
estimatedProcessingTimeInSeconds: number;
|
246
373
|
l1GasFeesInHexWei?: string | undefined;
|
247
374
|
solanaFeesInLamports?: string | undefined;
|
248
|
-
}[]
|
249
|
-
memoizedResultFunc: ((resultFuncArgs_0: {
|
375
|
+
}[];
|
376
|
+
memoizedResultFunc: ((resultFuncArgs_0: (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], resultFuncArgs_1: {
|
377
|
+
estimatedBaseFeeInDecGwei: string;
|
378
|
+
maxPriorityFeePerGasInDecGwei: string;
|
379
|
+
maxFeePerGasInDecGwei: string;
|
380
|
+
}, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
|
250
381
|
sentAmount: {
|
251
382
|
amount: string;
|
252
383
|
valueInCurrency: string | null;
|
@@ -287,17 +418,12 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
287
418
|
estimatedProcessingTimeInSeconds: number;
|
288
419
|
l1GasFeesInHexWei?: string | undefined;
|
289
420
|
solanaFeesInLamports?: string | undefined;
|
290
|
-
}[]
|
421
|
+
}[]) & {
|
291
422
|
clearCache: () => void;
|
292
423
|
resultsCount: () => number;
|
293
424
|
resetResultsCount: () => void;
|
294
425
|
};
|
295
|
-
lastResult: () =>
|
296
|
-
dependencies: [((state: BridgeControllerState & {
|
297
|
-
gasFeeEstimates: GasFeeEstimates;
|
298
|
-
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
299
|
-
participateInMetaMetrics: boolean;
|
300
|
-
}) => {
|
426
|
+
lastResult: () => {
|
301
427
|
sentAmount: {
|
302
428
|
amount: string;
|
303
429
|
valueInCurrency: string | null;
|
@@ -338,262 +464,112 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
338
464
|
estimatedProcessingTimeInSeconds: number;
|
339
465
|
l1GasFeesInHexWei?: string | undefined;
|
340
466
|
solanaFeesInLamports?: string | undefined;
|
341
|
-
}[]
|
467
|
+
}[];
|
468
|
+
dependencies: [({ quotes }: BridgeAppState) => (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], ((state: BridgeControllerState & {
|
469
|
+
gasFeeEstimates: GasFeeEstimates;
|
470
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
471
|
+
participateInMetaMetrics: boolean;
|
472
|
+
}) => {
|
473
|
+
estimatedBaseFeeInDecGwei: string;
|
474
|
+
maxPriorityFeePerGasInDecGwei: string;
|
475
|
+
maxFeePerGasInDecGwei: string;
|
476
|
+
}) & {
|
342
477
|
clearCache: () => void;
|
343
478
|
resultsCount: () => number;
|
344
479
|
resetResultsCount: () => void;
|
345
480
|
} & {
|
346
|
-
resultFunc: (resultFuncArgs_0:
|
481
|
+
resultFunc: (resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
|
347
482
|
estimatedBaseFeeInDecGwei: string;
|
348
483
|
maxPriorityFeePerGasInDecGwei: string;
|
349
484
|
maxFeePerGasInDecGwei: string;
|
350
|
-
}
|
351
|
-
|
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: {
|
485
|
+
};
|
486
|
+
memoizedResultFunc: ((resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
|
393
487
|
estimatedBaseFeeInDecGwei: string;
|
394
488
|
maxPriorityFeePerGasInDecGwei: string;
|
395
489
|
maxFeePerGasInDecGwei: string;
|
396
|
-
}
|
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
|
-
}[]) & {
|
490
|
+
}) & {
|
438
491
|
clearCache: () => void;
|
439
492
|
resultsCount: () => number;
|
440
493
|
resetResultsCount: () => void;
|
441
494
|
};
|
442
495
|
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
496
|
estimatedBaseFeeInDecGwei: string;
|
490
497
|
maxPriorityFeePerGasInDecGwei: string;
|
491
498
|
maxFeePerGasInDecGwei: string;
|
492
|
-
}
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
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) & {
|
499
|
+
};
|
500
|
+
dependencies: [({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string];
|
501
|
+
recomputations: () => number;
|
502
|
+
resetRecomputations: () => void;
|
503
|
+
dependencyRecomputations: () => number;
|
504
|
+
resetDependencyRecomputations: () => void;
|
505
|
+
} & {
|
506
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
507
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
508
|
+
}, ((state: BridgeControllerState & {
|
509
|
+
gasFeeEstimates: GasFeeEstimates;
|
510
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
511
|
+
participateInMetaMetrics: boolean;
|
512
|
+
}) => ExchangeRate) & {
|
513
|
+
clearCache: () => void;
|
514
|
+
resultsCount: () => number;
|
515
|
+
resetResultsCount: () => void;
|
516
|
+
} & {
|
517
|
+
resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate;
|
518
|
+
memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate) & {
|
529
519
|
clearCache: () => void;
|
530
520
|
resultsCount: () => number;
|
531
521
|
resetResultsCount: () => void;
|
532
|
-
}
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
522
|
+
};
|
523
|
+
lastResult: () => ExchangeRate;
|
524
|
+
dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { srcChainId } }: BridgeAppState) => string | number | undefined, ({ quoteRequest: { srcTokenAddress } }: BridgeAppState) => string | undefined];
|
525
|
+
recomputations: () => number;
|
526
|
+
resetRecomputations: () => void;
|
527
|
+
dependencyRecomputations: () => number;
|
528
|
+
resetDependencyRecomputations: () => void;
|
529
|
+
} & {
|
530
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
531
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
532
|
+
}, ((state: BridgeControllerState & {
|
533
|
+
gasFeeEstimates: GasFeeEstimates;
|
534
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
535
|
+
participateInMetaMetrics: boolean;
|
536
|
+
}) => ExchangeRate) & {
|
537
|
+
clearCache: () => void;
|
538
|
+
resultsCount: () => number;
|
539
|
+
resetResultsCount: () => void;
|
540
|
+
} & {
|
541
|
+
resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate;
|
542
|
+
memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate) & {
|
553
543
|
clearCache: () => void;
|
554
544
|
resultsCount: () => number;
|
555
545
|
resetResultsCount: () => void;
|
556
|
-
}
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
546
|
+
};
|
547
|
+
lastResult: () => ExchangeRate;
|
548
|
+
dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { destChainId } }: BridgeAppState) => string | number | undefined, ({ quoteRequest: { destTokenAddress } }: BridgeAppState) => string | undefined];
|
549
|
+
recomputations: () => number;
|
550
|
+
resetRecomputations: () => void;
|
551
|
+
dependencyRecomputations: () => number;
|
552
|
+
resetDependencyRecomputations: () => void;
|
553
|
+
} & {
|
554
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
555
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
556
|
+
}, ((state: BridgeControllerState & {
|
557
|
+
gasFeeEstimates: GasFeeEstimates;
|
558
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
559
|
+
participateInMetaMetrics: boolean;
|
560
|
+
}) => ExchangeRate) & {
|
561
|
+
clearCache: () => void;
|
562
|
+
resultsCount: () => number;
|
563
|
+
resetResultsCount: () => void;
|
564
|
+
} & {
|
565
|
+
resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined) => ExchangeRate;
|
566
|
+
memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined) => ExchangeRate) & {
|
577
567
|
clearCache: () => void;
|
578
568
|
resultsCount: () => number;
|
579
569
|
resetResultsCount: () => void;
|
580
|
-
}
|
581
|
-
|
582
|
-
|
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
|
-
}];
|
570
|
+
};
|
571
|
+
lastResult: () => ExchangeRate;
|
572
|
+
dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { srcChainId } }: BridgeAppState) => string | number | undefined];
|
597
573
|
recomputations: () => number;
|
598
574
|
resetRecomputations: () => void;
|
599
575
|
dependencyRecomputations: () => number;
|
@@ -601,7 +577,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
601
577
|
} & {
|
602
578
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
603
579
|
memoize: typeof import("reselect").weakMapMemoize;
|
604
|
-
}
|
580
|
+
}];
|
605
581
|
recomputations: () => number;
|
606
582
|
resetRecomputations: () => void;
|
607
583
|
dependencyRecomputations: () => number;
|
@@ -609,7 +585,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
609
585
|
} & {
|
610
586
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
611
587
|
memoize: typeof import("reselect").weakMapMemoize;
|
612
|
-
}];
|
588
|
+
}, (_: BridgeAppState, { sortOrder }: BridgeQuotesClientParams) => SortOrder];
|
613
589
|
recomputations: () => number;
|
614
590
|
resetRecomputations: () => void;
|
615
591
|
dependencyRecomputations: () => number;
|
@@ -621,155 +597,28 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
621
597
|
gasFeeEstimates: GasFeeEstimates;
|
622
598
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
623
599
|
participateInMetaMetrics: boolean;
|
624
|
-
}, params_0: BridgeQuotesClientParams) => (QuoteResponse & QuoteMetadata)
|
600
|
+
}, params_0: BridgeQuotesClientParams) => (QuoteResponse & QuoteMetadata) | null) & {
|
625
601
|
clearCache: () => void;
|
626
602
|
resultsCount: () => number;
|
627
603
|
resetResultsCount: () => void;
|
628
604
|
} & {
|
629
|
-
resultFunc: (resultFuncArgs_0:
|
630
|
-
|
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)[]) & {
|
605
|
+
resultFunc: (resultFuncArgs_0: (QuoteResponse & QuoteMetadata)[]) => (QuoteResponse & QuoteMetadata) | null;
|
606
|
+
memoizedResultFunc: ((resultFuncArgs_0: (QuoteResponse & QuoteMetadata)[]) => (QuoteResponse & QuoteMetadata) | null) & {
|
713
607
|
clearCache: () => void;
|
714
608
|
resultsCount: () => number;
|
715
609
|
resetResultsCount: () => void;
|
716
610
|
};
|
717
|
-
lastResult: () => (QuoteResponse & QuoteMetadata)
|
611
|
+
lastResult: () => (QuoteResponse & QuoteMetadata) | null;
|
718
612
|
dependencies: [((state: BridgeControllerState & {
|
719
613
|
gasFeeEstimates: GasFeeEstimates;
|
720
614
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
721
615
|
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
|
-
}[]) & {
|
616
|
+
}, params_0: BridgeQuotesClientParams) => (QuoteResponse & QuoteMetadata)[]) & {
|
764
617
|
clearCache: () => void;
|
765
618
|
resultsCount: () => number;
|
766
619
|
resetResultsCount: () => void;
|
767
620
|
} & {
|
768
|
-
resultFunc: (resultFuncArgs_0:
|
769
|
-
estimatedBaseFeeInDecGwei: string;
|
770
|
-
maxPriorityFeePerGasInDecGwei: string;
|
771
|
-
maxFeePerGasInDecGwei: string;
|
772
|
-
}, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
|
621
|
+
resultFunc: (resultFuncArgs_0: {
|
773
622
|
sentAmount: {
|
774
623
|
amount: string;
|
775
624
|
valueInCurrency: string | null;
|
@@ -810,12 +659,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
810
659
|
estimatedProcessingTimeInSeconds: number;
|
811
660
|
l1GasFeesInHexWei?: string | undefined;
|
812
661
|
solanaFeesInLamports?: string | undefined;
|
813
|
-
}[];
|
814
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
815
|
-
estimatedBaseFeeInDecGwei: string;
|
816
|
-
maxPriorityFeePerGasInDecGwei: string;
|
817
|
-
maxFeePerGasInDecGwei: string;
|
818
|
-
}, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
|
662
|
+
}[], resultFuncArgs_1: SortOrder) => (QuoteResponse & QuoteMetadata)[];
|
663
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
819
664
|
sentAmount: {
|
820
665
|
amount: string;
|
821
666
|
valueInCurrency: string | null;
|
@@ -856,12 +701,17 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
856
701
|
estimatedProcessingTimeInSeconds: number;
|
857
702
|
l1GasFeesInHexWei?: string | undefined;
|
858
703
|
solanaFeesInLamports?: string | undefined;
|
859
|
-
}[]) & {
|
704
|
+
}[], resultFuncArgs_1: SortOrder) => (QuoteResponse & QuoteMetadata)[]) & {
|
860
705
|
clearCache: () => void;
|
861
706
|
resultsCount: () => number;
|
862
707
|
resetResultsCount: () => void;
|
863
708
|
};
|
864
|
-
lastResult: () =>
|
709
|
+
lastResult: () => (QuoteResponse & QuoteMetadata)[];
|
710
|
+
dependencies: [((state: BridgeControllerState & {
|
711
|
+
gasFeeEstimates: GasFeeEstimates;
|
712
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
713
|
+
participateInMetaMetrics: boolean;
|
714
|
+
}) => {
|
865
715
|
sentAmount: {
|
866
716
|
amount: string;
|
867
717
|
valueInCurrency: string | null;
|
@@ -902,112 +752,262 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
902
752
|
estimatedProcessingTimeInSeconds: number;
|
903
753
|
l1GasFeesInHexWei?: string | undefined;
|
904
754
|
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
|
-
}) & {
|
755
|
+
}[]) & {
|
915
756
|
clearCache: () => void;
|
916
757
|
resultsCount: () => number;
|
917
758
|
resetResultsCount: () => void;
|
918
759
|
} & {
|
919
|
-
resultFunc: (resultFuncArgs_0:
|
760
|
+
resultFunc: (resultFuncArgs_0: (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], resultFuncArgs_1: {
|
920
761
|
estimatedBaseFeeInDecGwei: string;
|
921
762
|
maxPriorityFeePerGasInDecGwei: string;
|
922
763
|
maxFeePerGasInDecGwei: string;
|
923
|
-
}
|
924
|
-
|
764
|
+
}, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
|
765
|
+
sentAmount: {
|
766
|
+
amount: string;
|
767
|
+
valueInCurrency: string | null;
|
768
|
+
usd: string | null;
|
769
|
+
};
|
770
|
+
toTokenAmount: {
|
771
|
+
amount: string;
|
772
|
+
valueInCurrency: string | null;
|
773
|
+
usd: string | null;
|
774
|
+
};
|
775
|
+
swapRate: string;
|
776
|
+
totalNetworkFee: {
|
777
|
+
amount: string;
|
778
|
+
valueInCurrency: string | null;
|
779
|
+
usd: string | null;
|
780
|
+
};
|
781
|
+
totalMaxNetworkFee: {
|
782
|
+
amount: string;
|
783
|
+
valueInCurrency: string | null;
|
784
|
+
usd: string | null;
|
785
|
+
};
|
786
|
+
gasFee: {
|
787
|
+
amount: string;
|
788
|
+
valueInCurrency: string | null;
|
789
|
+
usd: string | null;
|
790
|
+
};
|
791
|
+
adjustedReturn: {
|
792
|
+
valueInCurrency: string | null;
|
793
|
+
usd: string | null;
|
794
|
+
};
|
795
|
+
cost: {
|
796
|
+
valueInCurrency: string | null;
|
797
|
+
usd: string | null;
|
798
|
+
};
|
799
|
+
quote: import("./types.mjs").Quote;
|
800
|
+
approval?: import("./types.mjs").TxData | null | undefined;
|
801
|
+
trade: import("./types.mjs").TxData;
|
802
|
+
estimatedProcessingTimeInSeconds: number;
|
803
|
+
l1GasFeesInHexWei?: string | undefined;
|
804
|
+
solanaFeesInLamports?: string | undefined;
|
805
|
+
}[];
|
806
|
+
memoizedResultFunc: ((resultFuncArgs_0: (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], resultFuncArgs_1: {
|
925
807
|
estimatedBaseFeeInDecGwei: string;
|
926
808
|
maxPriorityFeePerGasInDecGwei: string;
|
927
809
|
maxFeePerGasInDecGwei: string;
|
928
|
-
})
|
810
|
+
}, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
|
811
|
+
sentAmount: {
|
812
|
+
amount: string;
|
813
|
+
valueInCurrency: string | null;
|
814
|
+
usd: string | null;
|
815
|
+
};
|
816
|
+
toTokenAmount: {
|
817
|
+
amount: string;
|
818
|
+
valueInCurrency: string | null;
|
819
|
+
usd: string | null;
|
820
|
+
};
|
821
|
+
swapRate: string;
|
822
|
+
totalNetworkFee: {
|
823
|
+
amount: string;
|
824
|
+
valueInCurrency: string | null;
|
825
|
+
usd: string | null;
|
826
|
+
};
|
827
|
+
totalMaxNetworkFee: {
|
828
|
+
amount: string;
|
829
|
+
valueInCurrency: string | null;
|
830
|
+
usd: string | null;
|
831
|
+
};
|
832
|
+
gasFee: {
|
833
|
+
amount: string;
|
834
|
+
valueInCurrency: string | null;
|
835
|
+
usd: string | null;
|
836
|
+
};
|
837
|
+
adjustedReturn: {
|
838
|
+
valueInCurrency: string | null;
|
839
|
+
usd: string | null;
|
840
|
+
};
|
841
|
+
cost: {
|
842
|
+
valueInCurrency: string | null;
|
843
|
+
usd: string | null;
|
844
|
+
};
|
845
|
+
quote: import("./types.mjs").Quote;
|
846
|
+
approval?: import("./types.mjs").TxData | null | undefined;
|
847
|
+
trade: import("./types.mjs").TxData;
|
848
|
+
estimatedProcessingTimeInSeconds: number;
|
849
|
+
l1GasFeesInHexWei?: string | undefined;
|
850
|
+
solanaFeesInLamports?: string | undefined;
|
851
|
+
}[]) & {
|
929
852
|
clearCache: () => void;
|
930
853
|
resultsCount: () => number;
|
931
854
|
resetResultsCount: () => void;
|
932
855
|
};
|
933
856
|
lastResult: () => {
|
857
|
+
sentAmount: {
|
858
|
+
amount: string;
|
859
|
+
valueInCurrency: string | null;
|
860
|
+
usd: string | null;
|
861
|
+
};
|
862
|
+
toTokenAmount: {
|
863
|
+
amount: string;
|
864
|
+
valueInCurrency: string | null;
|
865
|
+
usd: string | null;
|
866
|
+
};
|
867
|
+
swapRate: string;
|
868
|
+
totalNetworkFee: {
|
869
|
+
amount: string;
|
870
|
+
valueInCurrency: string | null;
|
871
|
+
usd: string | null;
|
872
|
+
};
|
873
|
+
totalMaxNetworkFee: {
|
874
|
+
amount: string;
|
875
|
+
valueInCurrency: string | null;
|
876
|
+
usd: string | null;
|
877
|
+
};
|
878
|
+
gasFee: {
|
879
|
+
amount: string;
|
880
|
+
valueInCurrency: string | null;
|
881
|
+
usd: string | null;
|
882
|
+
};
|
883
|
+
adjustedReturn: {
|
884
|
+
valueInCurrency: string | null;
|
885
|
+
usd: string | null;
|
886
|
+
};
|
887
|
+
cost: {
|
888
|
+
valueInCurrency: string | null;
|
889
|
+
usd: string | null;
|
890
|
+
};
|
891
|
+
quote: import("./types.mjs").Quote;
|
892
|
+
approval?: import("./types.mjs").TxData | null | undefined;
|
893
|
+
trade: import("./types.mjs").TxData;
|
894
|
+
estimatedProcessingTimeInSeconds: number;
|
895
|
+
l1GasFeesInHexWei?: string | undefined;
|
896
|
+
solanaFeesInLamports?: string | undefined;
|
897
|
+
}[];
|
898
|
+
dependencies: [({ quotes }: BridgeAppState) => (QuoteResponse<import("./types.mjs").TxData, import("./types.mjs").TxData | null> & import("./types.mjs").L1GasFees & import("./types.mjs").SolanaFees)[], ((state: BridgeControllerState & {
|
899
|
+
gasFeeEstimates: GasFeeEstimates;
|
900
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
901
|
+
participateInMetaMetrics: boolean;
|
902
|
+
}) => {
|
934
903
|
estimatedBaseFeeInDecGwei: string;
|
935
904
|
maxPriorityFeePerGasInDecGwei: string;
|
936
905
|
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) & {
|
906
|
+
}) & {
|
957
907
|
clearCache: () => void;
|
958
908
|
resultsCount: () => number;
|
959
909
|
resetResultsCount: () => void;
|
960
|
-
}
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
910
|
+
} & {
|
911
|
+
resultFunc: (resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
|
912
|
+
estimatedBaseFeeInDecGwei: string;
|
913
|
+
maxPriorityFeePerGasInDecGwei: string;
|
914
|
+
maxFeePerGasInDecGwei: string;
|
915
|
+
};
|
916
|
+
memoizedResultFunc: ((resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
|
917
|
+
estimatedBaseFeeInDecGwei: string;
|
918
|
+
maxPriorityFeePerGasInDecGwei: string;
|
919
|
+
maxFeePerGasInDecGwei: string;
|
920
|
+
}) & {
|
921
|
+
clearCache: () => void;
|
922
|
+
resultsCount: () => number;
|
923
|
+
resetResultsCount: () => void;
|
924
|
+
};
|
925
|
+
lastResult: () => {
|
926
|
+
estimatedBaseFeeInDecGwei: string;
|
927
|
+
maxPriorityFeePerGasInDecGwei: string;
|
928
|
+
maxFeePerGasInDecGwei: string;
|
929
|
+
};
|
930
|
+
dependencies: [({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string];
|
931
|
+
recomputations: () => number;
|
932
|
+
resetRecomputations: () => void;
|
933
|
+
dependencyRecomputations: () => number;
|
934
|
+
resetDependencyRecomputations: () => void;
|
935
|
+
} & {
|
936
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
937
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
938
|
+
}, ((state: BridgeControllerState & {
|
939
|
+
gasFeeEstimates: GasFeeEstimates;
|
940
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
941
|
+
participateInMetaMetrics: boolean;
|
942
|
+
}) => ExchangeRate) & {
|
981
943
|
clearCache: () => void;
|
982
944
|
resultsCount: () => number;
|
983
945
|
resetResultsCount: () => void;
|
984
|
-
}
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
946
|
+
} & {
|
947
|
+
resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate;
|
948
|
+
memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate) & {
|
949
|
+
clearCache: () => void;
|
950
|
+
resultsCount: () => number;
|
951
|
+
resetResultsCount: () => void;
|
952
|
+
};
|
953
|
+
lastResult: () => ExchangeRate;
|
954
|
+
dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { srcChainId } }: BridgeAppState) => string | number | undefined, ({ quoteRequest: { srcTokenAddress } }: BridgeAppState) => string | undefined];
|
955
|
+
recomputations: () => number;
|
956
|
+
resetRecomputations: () => void;
|
957
|
+
dependencyRecomputations: () => number;
|
958
|
+
resetDependencyRecomputations: () => void;
|
959
|
+
} & {
|
960
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
961
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
962
|
+
}, ((state: BridgeControllerState & {
|
963
|
+
gasFeeEstimates: GasFeeEstimates;
|
964
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
965
|
+
participateInMetaMetrics: boolean;
|
966
|
+
}) => ExchangeRate) & {
|
1005
967
|
clearCache: () => void;
|
1006
968
|
resultsCount: () => number;
|
1007
969
|
resetResultsCount: () => void;
|
1008
|
-
}
|
1009
|
-
|
1010
|
-
|
970
|
+
} & {
|
971
|
+
resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate;
|
972
|
+
memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate) & {
|
973
|
+
clearCache: () => void;
|
974
|
+
resultsCount: () => number;
|
975
|
+
resetResultsCount: () => void;
|
976
|
+
};
|
977
|
+
lastResult: () => ExchangeRate;
|
978
|
+
dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { destChainId } }: BridgeAppState) => string | number | undefined, ({ quoteRequest: { destTokenAddress } }: BridgeAppState) => string | undefined];
|
979
|
+
recomputations: () => number;
|
980
|
+
resetRecomputations: () => void;
|
981
|
+
dependencyRecomputations: () => number;
|
982
|
+
resetDependencyRecomputations: () => void;
|
983
|
+
} & {
|
984
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
985
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
986
|
+
}, ((state: BridgeControllerState & {
|
987
|
+
gasFeeEstimates: GasFeeEstimates;
|
988
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
989
|
+
participateInMetaMetrics: boolean;
|
990
|
+
}) => ExchangeRate) & {
|
991
|
+
clearCache: () => void;
|
992
|
+
resultsCount: () => number;
|
993
|
+
resetResultsCount: () => void;
|
994
|
+
} & {
|
995
|
+
resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined) => ExchangeRate;
|
996
|
+
memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined) => ExchangeRate) & {
|
997
|
+
clearCache: () => void;
|
998
|
+
resultsCount: () => number;
|
999
|
+
resetResultsCount: () => void;
|
1000
|
+
};
|
1001
|
+
lastResult: () => ExchangeRate;
|
1002
|
+
dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { srcChainId } }: BridgeAppState) => string | number | undefined];
|
1003
|
+
recomputations: () => number;
|
1004
|
+
resetRecomputations: () => void;
|
1005
|
+
dependencyRecomputations: () => number;
|
1006
|
+
resetDependencyRecomputations: () => void;
|
1007
|
+
} & {
|
1008
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
1009
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
1010
|
+
}];
|
1011
1011
|
recomputations: () => number;
|
1012
1012
|
resetRecomputations: () => void;
|
1013
1013
|
dependencyRecomputations: () => number;
|
@@ -1015,7 +1015,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
1015
1015
|
} & {
|
1016
1016
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
1017
1017
|
memoize: typeof import("reselect").weakMapMemoize;
|
1018
|
-
}];
|
1018
|
+
}, (_: BridgeAppState, { sortOrder }: BridgeQuotesClientParams) => SortOrder];
|
1019
1019
|
recomputations: () => number;
|
1020
1020
|
resetRecomputations: () => void;
|
1021
1021
|
dependencyRecomputations: () => number;
|
@@ -1023,7 +1023,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
1023
1023
|
} & {
|
1024
1024
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
1025
1025
|
memoize: typeof import("reselect").weakMapMemoize;
|
1026
|
-
}
|
1026
|
+
}];
|
1027
1027
|
recomputations: () => number;
|
1028
1028
|
resetRecomputations: () => void;
|
1029
1029
|
dependencyRecomputations: () => number;
|
@@ -1035,34 +1035,34 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
1035
1035
|
gasFeeEstimates: GasFeeEstimates;
|
1036
1036
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
1037
1037
|
participateInMetaMetrics: boolean;
|
1038
|
-
}, params_0: BridgeQuotesClientParams) => QuoteResponse & QuoteMetadata) & {
|
1038
|
+
}, params_0: BridgeQuotesClientParams) => (QuoteResponse & QuoteMetadata) | null) & {
|
1039
1039
|
clearCache: () => void;
|
1040
1040
|
resultsCount: () => number;
|
1041
1041
|
resetResultsCount: () => void;
|
1042
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) & {
|
1043
|
+
resultFunc: (resultFuncArgs_0: (QuoteResponse & QuoteMetadata) | null, resultFuncArgs_1: (QuoteResponse & QuoteMetadata) | null) => (QuoteResponse & QuoteMetadata) | null;
|
1044
|
+
memoizedResultFunc: ((resultFuncArgs_0: (QuoteResponse & QuoteMetadata) | null, resultFuncArgs_1: (QuoteResponse & QuoteMetadata) | null) => (QuoteResponse & QuoteMetadata) | null) & {
|
1045
1045
|
clearCache: () => void;
|
1046
1046
|
resultsCount: () => number;
|
1047
1047
|
resetResultsCount: () => void;
|
1048
1048
|
};
|
1049
|
-
lastResult: () => QuoteResponse & QuoteMetadata;
|
1049
|
+
lastResult: () => (QuoteResponse & QuoteMetadata) | null;
|
1050
1050
|
dependencies: [((state: BridgeControllerState & {
|
1051
1051
|
gasFeeEstimates: GasFeeEstimates;
|
1052
1052
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
1053
1053
|
participateInMetaMetrics: boolean;
|
1054
|
-
}, params_0: BridgeQuotesClientParams) => QuoteResponse & QuoteMetadata) & {
|
1054
|
+
}, params_0: BridgeQuotesClientParams) => (QuoteResponse & QuoteMetadata) | null) & {
|
1055
1055
|
clearCache: () => void;
|
1056
1056
|
resultsCount: () => number;
|
1057
1057
|
resetResultsCount: () => void;
|
1058
1058
|
} & {
|
1059
|
-
resultFunc: (resultFuncArgs_0: (QuoteResponse & QuoteMetadata)[]) => QuoteResponse & QuoteMetadata;
|
1060
|
-
memoizedResultFunc: ((resultFuncArgs_0: (QuoteResponse & QuoteMetadata)[]) => QuoteResponse & QuoteMetadata) & {
|
1059
|
+
resultFunc: (resultFuncArgs_0: (QuoteResponse & QuoteMetadata)[]) => (QuoteResponse & QuoteMetadata) | null;
|
1060
|
+
memoizedResultFunc: ((resultFuncArgs_0: (QuoteResponse & QuoteMetadata)[]) => (QuoteResponse & QuoteMetadata) | null) & {
|
1061
1061
|
clearCache: () => void;
|
1062
1062
|
resultsCount: () => number;
|
1063
1063
|
resetResultsCount: () => void;
|
1064
1064
|
};
|
1065
|
-
lastResult: () => QuoteResponse & QuoteMetadata;
|
1065
|
+
lastResult: () => (QuoteResponse & QuoteMetadata) | null;
|
1066
1066
|
dependencies: [((state: BridgeControllerState & {
|
1067
1067
|
gasFeeEstimates: GasFeeEstimates;
|
1068
1068
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|