@metamask-previews/bridge-controller 79.3.1-preview-e68ab1498 → 80.0.0-preview-4b37525
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 +21 -1
- package/dist/coercers/quote-response-v1-to-v2.cjs +4 -4
- package/dist/coercers/quote-response-v1-to-v2.cjs.map +1 -1
- package/dist/coercers/quote-response-v1-to-v2.mjs +4 -4
- package/dist/coercers/quote-response-v1-to-v2.mjs.map +1 -1
- package/dist/index.cjs +12 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/selectors.cjs +48 -4
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.d.cts +1200 -105
- package/dist/selectors.d.cts.map +1 -1
- package/dist/selectors.d.mts +1200 -105
- package/dist/selectors.d.mts.map +1 -1
- package/dist/selectors.mjs +48 -4
- package/dist/selectors.mjs.map +1 -1
- package/dist/utils/quote-metadata/calculators.cjs +7 -12
- package/dist/utils/quote-metadata/calculators.cjs.map +1 -1
- package/dist/utils/quote-metadata/calculators.d.cts.map +1 -1
- package/dist/utils/quote-metadata/calculators.d.mts.map +1 -1
- package/dist/utils/quote-metadata/calculators.mjs +8 -13
- package/dist/utils/quote-metadata/calculators.mjs.map +1 -1
- package/dist/utils/quote-metadata/include-if-truthy.cjs +21 -0
- package/dist/utils/quote-metadata/include-if-truthy.cjs.map +1 -0
- package/dist/utils/quote-metadata/include-if-truthy.d.cts +9 -0
- package/dist/utils/quote-metadata/include-if-truthy.d.cts.map +1 -0
- package/dist/utils/quote-metadata/include-if-truthy.d.mts +9 -0
- package/dist/utils/quote-metadata/include-if-truthy.d.mts.map +1 -0
- package/dist/utils/quote-metadata/include-if-truthy.mjs +17 -0
- package/dist/utils/quote-metadata/include-if-truthy.mjs.map +1 -0
- package/dist/utils/quote-metadata/merge.cjs +43 -10
- package/dist/utils/quote-metadata/merge.cjs.map +1 -1
- package/dist/utils/quote-metadata/merge.d.cts +6 -3
- package/dist/utils/quote-metadata/merge.d.cts.map +1 -1
- package/dist/utils/quote-metadata/merge.d.mts +6 -3
- package/dist/utils/quote-metadata/merge.d.mts.map +1 -1
- package/dist/utils/quote-metadata/merge.mjs +43 -10
- package/dist/utils/quote-metadata/merge.mjs.map +1 -1
- package/dist/utils/quote-metadata/to-currency-values.cjs +62 -0
- package/dist/utils/quote-metadata/to-currency-values.cjs.map +1 -0
- package/dist/utils/quote-metadata/to-currency-values.d.cts +12 -0
- package/dist/utils/quote-metadata/to-currency-values.d.cts.map +1 -0
- package/dist/utils/quote-metadata/to-currency-values.d.mts +12 -0
- package/dist/utils/quote-metadata/to-currency-values.d.mts.map +1 -0
- package/dist/utils/quote-metadata/to-currency-values.mjs +58 -0
- package/dist/utils/quote-metadata/to-currency-values.mjs.map +1 -0
- package/dist/utils/quote-metadata/to-quote-metadata-v1.cjs +67 -16
- package/dist/utils/quote-metadata/to-quote-metadata-v1.cjs.map +1 -1
- package/dist/utils/quote-metadata/to-quote-metadata-v1.d.cts +3 -1
- package/dist/utils/quote-metadata/to-quote-metadata-v1.d.cts.map +1 -1
- package/dist/utils/quote-metadata/to-quote-metadata-v1.d.mts +3 -1
- package/dist/utils/quote-metadata/to-quote-metadata-v1.d.mts.map +1 -1
- package/dist/utils/quote-metadata/to-quote-metadata-v1.mjs +67 -16
- package/dist/utils/quote-metadata/to-quote-metadata-v1.mjs.map +1 -1
- package/dist/utils/quote-metadata/to-quote-metadata-v2.cjs +26 -45
- package/dist/utils/quote-metadata/to-quote-metadata-v2.cjs.map +1 -1
- package/dist/utils/quote-metadata/to-quote-metadata-v2.d.cts.map +1 -1
- package/dist/utils/quote-metadata/to-quote-metadata-v2.d.mts.map +1 -1
- package/dist/utils/quote-metadata/to-quote-metadata-v2.mjs +26 -45
- package/dist/utils/quote-metadata/to-quote-metadata-v2.mjs.map +1 -1
- package/dist/utils/quote-metadata/types.cjs +16 -0
- package/dist/utils/quote-metadata/types.cjs.map +1 -1
- package/dist/utils/quote-metadata/types.d.cts +21 -0
- package/dist/utils/quote-metadata/types.d.cts.map +1 -1
- package/dist/utils/quote-metadata/types.d.mts +21 -0
- package/dist/utils/quote-metadata/types.d.mts.map +1 -1
- package/dist/utils/quote-metadata/types.mjs +15 -1
- package/dist/utils/quote-metadata/types.mjs.map +1 -1
- package/dist/validators/quote-response.cjs +14 -1
- package/dist/validators/quote-response.cjs.map +1 -1
- package/dist/validators/quote-response.d.cts +9 -0
- package/dist/validators/quote-response.d.cts.map +1 -1
- package/dist/validators/quote-response.d.mts +9 -0
- package/dist/validators/quote-response.d.mts.map +1 -1
- package/dist/validators/quote-response.mjs +12 -0
- package/dist/validators/quote-response.mjs.map +1 -1
- package/package.json +1 -1
package/dist/selectors.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { CurrencyRateState, MultichainAssetsRatesControllerState, TokenRatesControllerState } from "@metamask/assets-controllers";
|
|
2
2
|
import type { GasFeeEstimatesByChainId } from "@metamask/gas-fee-controller";
|
|
3
3
|
import type { CaipAssetType } from "@metamask/utils";
|
|
4
|
-
import type { BridgeControllerState, ExchangeRate } from "./types.cjs";
|
|
4
|
+
import type { BridgeControllerState, DeepPartial, ExchangeRate } from "./types.cjs";
|
|
5
5
|
import { SortOrder } from "./types.cjs";
|
|
6
6
|
import type { QuoteMetadata } from "./utils/quote-metadata/types.cjs";
|
|
7
|
+
import { QuoteMetadataMigrationPhase } from "./utils/quote-metadata/types.cjs";
|
|
7
8
|
import { getDefaultSlippagePercentage } from "./utils/slippage.cjs";
|
|
8
9
|
import type { QuoteResponse } from "./validators/quote-response.cjs";
|
|
9
10
|
/**
|
|
@@ -42,6 +43,7 @@ export type BridgeAppState = BridgeControllerState & {
|
|
|
42
43
|
type BridgeQuotesClientParams = {
|
|
43
44
|
sortOrder: SortOrder;
|
|
44
45
|
selectedQuote: (QuoteResponse & QuoteMetadata) | null;
|
|
46
|
+
migrationPhase: QuoteMetadataMigrationPhase;
|
|
45
47
|
};
|
|
46
48
|
/**
|
|
47
49
|
* Selects the bridge feature flags
|
|
@@ -949,6 +951,7 @@ export declare const selectIsQuoteExpired: ((state: RemoteFeatureFlagControllerS
|
|
|
949
951
|
* {
|
|
950
952
|
* sortOrder: state.bridge.sortOrder,
|
|
951
953
|
* selectedQuote: state.bridge.selectedQuote,
|
|
954
|
+
* migrationPhase: '1.5',
|
|
952
955
|
* }
|
|
953
956
|
* ));
|
|
954
957
|
* ```
|
|
@@ -2253,7 +2256,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
2253
2256
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
2254
2257
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
2255
2258
|
participateInMetaMetrics: boolean;
|
|
2256
|
-
} & RemoteFeatureFlagControllerState) => (QuoteResponse & {
|
|
2259
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => (QuoteResponse & {
|
|
2257
2260
|
includedTxFees?: {
|
|
2258
2261
|
amount?: string | undefined;
|
|
2259
2262
|
valueInCurrency?: string | undefined;
|
|
@@ -2360,7 +2363,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
2360
2363
|
usd?: string | undefined;
|
|
2361
2364
|
valueInCurrency?: string | undefined;
|
|
2362
2365
|
} | undefined;
|
|
2363
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
2366
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
2364
2367
|
includedTxFees?: {
|
|
2365
2368
|
amount?: string | undefined;
|
|
2366
2369
|
valueInCurrency?: string | undefined;
|
|
@@ -2463,7 +2466,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
2463
2466
|
usd?: string | undefined;
|
|
2464
2467
|
valueInCurrency?: string | undefined;
|
|
2465
2468
|
} | undefined;
|
|
2466
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
2469
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
2467
2470
|
includedTxFees?: {
|
|
2468
2471
|
amount?: string | undefined;
|
|
2469
2472
|
valueInCurrency?: string | undefined;
|
|
@@ -2575,7 +2578,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
2575
2578
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
2576
2579
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
2577
2580
|
participateInMetaMetrics: boolean;
|
|
2578
|
-
} & RemoteFeatureFlagControllerState) => {
|
|
2581
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => {
|
|
2579
2582
|
includedTxFees?: {
|
|
2580
2583
|
amount?: string | undefined;
|
|
2581
2584
|
valueInCurrency?: string | undefined;
|
|
@@ -2646,7 +2649,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
2646
2649
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
2647
2650
|
}>;
|
|
2648
2651
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
2649
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
2652
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
2650
2653
|
includedTxFees?: {
|
|
2651
2654
|
amount?: string | undefined;
|
|
2652
2655
|
valueInCurrency?: string | undefined;
|
|
@@ -2713,7 +2716,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
2713
2716
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
2714
2717
|
}>;
|
|
2715
2718
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
2716
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
2719
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
2717
2720
|
includedTxFees?: {
|
|
2718
2721
|
amount?: string | undefined;
|
|
2719
2722
|
valueInCurrency?: string | undefined;
|
|
@@ -2947,7 +2950,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
2947
2950
|
} & {
|
|
2948
2951
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2949
2952
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2950
|
-
}, ({ quoteRequest }: BridgeAppState) => Partial<import("./types.cjs").GenericQuoteRequest>[]];
|
|
2953
|
+
}, ({ quoteRequest }: BridgeAppState) => Partial<import("./types.cjs").GenericQuoteRequest>[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
2951
2954
|
recomputations: () => number;
|
|
2952
2955
|
resetRecomputations: () => void;
|
|
2953
2956
|
dependencyRecomputations: () => number;
|
|
@@ -2955,7 +2958,163 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
2955
2958
|
} & {
|
|
2956
2959
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2957
2960
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2958
|
-
}, (
|
|
2961
|
+
}, ((state: BridgeControllerState & {
|
|
2962
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
2963
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
2964
|
+
participateInMetaMetrics: boolean;
|
|
2965
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => DeepPartial<QuoteResponse>[]) & {
|
|
2966
|
+
clearCache: () => void;
|
|
2967
|
+
resultsCount: () => number;
|
|
2968
|
+
resetResultsCount: () => void;
|
|
2969
|
+
} & {
|
|
2970
|
+
resultFunc: (resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[];
|
|
2971
|
+
memoizedResultFunc: ((resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[]) & {
|
|
2972
|
+
clearCache: () => void;
|
|
2973
|
+
resultsCount: () => number;
|
|
2974
|
+
resetResultsCount: () => void;
|
|
2975
|
+
};
|
|
2976
|
+
lastResult: () => DeepPartial<QuoteResponse>[];
|
|
2977
|
+
dependencies: [({ quotes }: BridgeAppState) => QuoteResponse[], ((state: BridgeControllerState & {
|
|
2978
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
2979
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
2980
|
+
participateInMetaMetrics: boolean;
|
|
2981
|
+
} & RemoteFeatureFlagControllerState) => string | undefined) & {
|
|
2982
|
+
clearCache: () => void;
|
|
2983
|
+
resultsCount: () => number;
|
|
2984
|
+
resetResultsCount: () => void;
|
|
2985
|
+
} & {
|
|
2986
|
+
resultFunc: (resultFuncArgs_0: {
|
|
2987
|
+
currencyRates: Record<string, {
|
|
2988
|
+
conversionDate: number | null;
|
|
2989
|
+
conversionRate: number | null;
|
|
2990
|
+
usdConversionRate: number | null;
|
|
2991
|
+
}>;
|
|
2992
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
2993
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
2994
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
2995
|
+
}>;
|
|
2996
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
2997
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined;
|
|
2998
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
2999
|
+
currencyRates: Record<string, {
|
|
3000
|
+
conversionDate: number | null;
|
|
3001
|
+
conversionRate: number | null;
|
|
3002
|
+
usdConversionRate: number | null;
|
|
3003
|
+
}>;
|
|
3004
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
3005
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
3006
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
3007
|
+
}>;
|
|
3008
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
3009
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined) & {
|
|
3010
|
+
clearCache: () => void;
|
|
3011
|
+
resultsCount: () => number;
|
|
3012
|
+
resetResultsCount: () => void;
|
|
3013
|
+
};
|
|
3014
|
+
lastResult: () => string | undefined;
|
|
3015
|
+
dependencies: [((state: BridgeControllerState & {
|
|
3016
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
3017
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
3018
|
+
participateInMetaMetrics: boolean;
|
|
3019
|
+
} & RemoteFeatureFlagControllerState) => {
|
|
3020
|
+
currencyRates: Record<string, {
|
|
3021
|
+
conversionDate: number | null;
|
|
3022
|
+
conversionRate: number | null;
|
|
3023
|
+
usdConversionRate: number | null;
|
|
3024
|
+
}>;
|
|
3025
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
3026
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
3027
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
3028
|
+
}>;
|
|
3029
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
3030
|
+
}) & {
|
|
3031
|
+
clearCache: () => void;
|
|
3032
|
+
resultsCount: () => number;
|
|
3033
|
+
resetResultsCount: () => void;
|
|
3034
|
+
} & {
|
|
3035
|
+
resultFunc: (resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
3036
|
+
conversionDate: number | null;
|
|
3037
|
+
conversionRate: number | null;
|
|
3038
|
+
usdConversionRate: number | null;
|
|
3039
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
3040
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
3041
|
+
}>) => {
|
|
3042
|
+
currencyRates: Record<string, {
|
|
3043
|
+
conversionDate: number | null;
|
|
3044
|
+
conversionRate: number | null;
|
|
3045
|
+
usdConversionRate: number | null;
|
|
3046
|
+
}>;
|
|
3047
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
3048
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
3049
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
3050
|
+
}>;
|
|
3051
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
3052
|
+
};
|
|
3053
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
3054
|
+
conversionDate: number | null;
|
|
3055
|
+
conversionRate: number | null;
|
|
3056
|
+
usdConversionRate: number | null;
|
|
3057
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
3058
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
3059
|
+
}>) => {
|
|
3060
|
+
currencyRates: Record<string, {
|
|
3061
|
+
conversionDate: number | null;
|
|
3062
|
+
conversionRate: number | null;
|
|
3063
|
+
usdConversionRate: number | null;
|
|
3064
|
+
}>;
|
|
3065
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
3066
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
3067
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
3068
|
+
}>;
|
|
3069
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
3070
|
+
}) & {
|
|
3071
|
+
clearCache: () => void;
|
|
3072
|
+
resultsCount: () => number;
|
|
3073
|
+
resetResultsCount: () => void;
|
|
3074
|
+
};
|
|
3075
|
+
lastResult: () => {
|
|
3076
|
+
currencyRates: Record<string, {
|
|
3077
|
+
conversionDate: number | null;
|
|
3078
|
+
conversionRate: number | null;
|
|
3079
|
+
usdConversionRate: number | null;
|
|
3080
|
+
}>;
|
|
3081
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
3082
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
3083
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
3084
|
+
}>;
|
|
3085
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
3086
|
+
};
|
|
3087
|
+
dependencies: [(state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, (state: BridgeAppState) => Record<string, {
|
|
3088
|
+
conversionDate: number | null;
|
|
3089
|
+
conversionRate: number | null;
|
|
3090
|
+
usdConversionRate: number | null;
|
|
3091
|
+
}>, (state: BridgeAppState) => Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, (state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
3092
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
3093
|
+
}>];
|
|
3094
|
+
recomputations: () => number;
|
|
3095
|
+
resetRecomputations: () => void;
|
|
3096
|
+
dependencyRecomputations: () => number;
|
|
3097
|
+
resetDependencyRecomputations: () => void;
|
|
3098
|
+
} & {
|
|
3099
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
3100
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3101
|
+
}, ({ quoteRequest }: BridgeAppState) => `${string}:${string}/${string}:${string}`];
|
|
3102
|
+
recomputations: () => number;
|
|
3103
|
+
resetRecomputations: () => void;
|
|
3104
|
+
dependencyRecomputations: () => number;
|
|
3105
|
+
resetDependencyRecomputations: () => void;
|
|
3106
|
+
} & {
|
|
3107
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
3108
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3109
|
+
}, (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
3110
|
+
recomputations: () => number;
|
|
3111
|
+
resetRecomputations: () => void;
|
|
3112
|
+
dependencyRecomputations: () => number;
|
|
3113
|
+
resetDependencyRecomputations: () => void;
|
|
3114
|
+
} & {
|
|
3115
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
3116
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3117
|
+
}, ({ quotes }: BridgeAppState) => QuoteResponse[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
2959
3118
|
recomputations: () => number;
|
|
2960
3119
|
resetRecomputations: () => void;
|
|
2961
3120
|
dependencyRecomputations: () => number;
|
|
@@ -3619,7 +3778,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
3619
3778
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
3620
3779
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
3621
3780
|
participateInMetaMetrics: boolean;
|
|
3622
|
-
} & RemoteFeatureFlagControllerState) => (QuoteResponse & {
|
|
3781
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => (QuoteResponse & {
|
|
3623
3782
|
includedTxFees?: {
|
|
3624
3783
|
amount?: string | undefined;
|
|
3625
3784
|
valueInCurrency?: string | undefined;
|
|
@@ -3726,7 +3885,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
3726
3885
|
usd?: string | undefined;
|
|
3727
3886
|
valueInCurrency?: string | undefined;
|
|
3728
3887
|
} | undefined;
|
|
3729
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
3888
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
3730
3889
|
includedTxFees?: {
|
|
3731
3890
|
amount?: string | undefined;
|
|
3732
3891
|
valueInCurrency?: string | undefined;
|
|
@@ -3829,7 +3988,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
3829
3988
|
usd?: string | undefined;
|
|
3830
3989
|
valueInCurrency?: string | undefined;
|
|
3831
3990
|
} | undefined;
|
|
3832
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
3991
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
3833
3992
|
includedTxFees?: {
|
|
3834
3993
|
amount?: string | undefined;
|
|
3835
3994
|
valueInCurrency?: string | undefined;
|
|
@@ -3941,7 +4100,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
3941
4100
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
3942
4101
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
3943
4102
|
participateInMetaMetrics: boolean;
|
|
3944
|
-
} & RemoteFeatureFlagControllerState) => {
|
|
4103
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => {
|
|
3945
4104
|
includedTxFees?: {
|
|
3946
4105
|
amount?: string | undefined;
|
|
3947
4106
|
valueInCurrency?: string | undefined;
|
|
@@ -4012,7 +4171,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
4012
4171
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4013
4172
|
}>;
|
|
4014
4173
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
4015
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
4174
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
4016
4175
|
includedTxFees?: {
|
|
4017
4176
|
amount?: string | undefined;
|
|
4018
4177
|
valueInCurrency?: string | undefined;
|
|
@@ -4079,7 +4238,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
4079
4238
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4080
4239
|
}>;
|
|
4081
4240
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
4082
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
4241
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
4083
4242
|
includedTxFees?: {
|
|
4084
4243
|
amount?: string | undefined;
|
|
4085
4244
|
valueInCurrency?: string | undefined;
|
|
@@ -4296,16 +4455,172 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
4296
4455
|
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
4297
4456
|
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
4298
4457
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4299
|
-
}>;
|
|
4300
|
-
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
4301
|
-
};
|
|
4302
|
-
dependencies: [(state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, (state: BridgeAppState) => Record<string, {
|
|
4303
|
-
conversionDate: number | null;
|
|
4304
|
-
conversionRate: number | null;
|
|
4305
|
-
usdConversionRate: number | null;
|
|
4306
|
-
}>, (state: BridgeAppState) => Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, (state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
4307
|
-
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4308
|
-
}>];
|
|
4458
|
+
}>;
|
|
4459
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
4460
|
+
};
|
|
4461
|
+
dependencies: [(state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, (state: BridgeAppState) => Record<string, {
|
|
4462
|
+
conversionDate: number | null;
|
|
4463
|
+
conversionRate: number | null;
|
|
4464
|
+
usdConversionRate: number | null;
|
|
4465
|
+
}>, (state: BridgeAppState) => Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, (state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
4466
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4467
|
+
}>];
|
|
4468
|
+
recomputations: () => number;
|
|
4469
|
+
resetRecomputations: () => void;
|
|
4470
|
+
dependencyRecomputations: () => number;
|
|
4471
|
+
resetDependencyRecomputations: () => void;
|
|
4472
|
+
} & {
|
|
4473
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
4474
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
4475
|
+
}, ({ quoteRequest }: BridgeAppState) => Partial<import("./types.cjs").GenericQuoteRequest>[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
4476
|
+
recomputations: () => number;
|
|
4477
|
+
resetRecomputations: () => void;
|
|
4478
|
+
dependencyRecomputations: () => number;
|
|
4479
|
+
resetDependencyRecomputations: () => void;
|
|
4480
|
+
} & {
|
|
4481
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
4482
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
4483
|
+
}, ((state: BridgeControllerState & {
|
|
4484
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
4485
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
4486
|
+
participateInMetaMetrics: boolean;
|
|
4487
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => DeepPartial<QuoteResponse>[]) & {
|
|
4488
|
+
clearCache: () => void;
|
|
4489
|
+
resultsCount: () => number;
|
|
4490
|
+
resetResultsCount: () => void;
|
|
4491
|
+
} & {
|
|
4492
|
+
resultFunc: (resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[];
|
|
4493
|
+
memoizedResultFunc: ((resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[]) & {
|
|
4494
|
+
clearCache: () => void;
|
|
4495
|
+
resultsCount: () => number;
|
|
4496
|
+
resetResultsCount: () => void;
|
|
4497
|
+
};
|
|
4498
|
+
lastResult: () => DeepPartial<QuoteResponse>[];
|
|
4499
|
+
dependencies: [({ quotes }: BridgeAppState) => QuoteResponse[], ((state: BridgeControllerState & {
|
|
4500
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
4501
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
4502
|
+
participateInMetaMetrics: boolean;
|
|
4503
|
+
} & RemoteFeatureFlagControllerState) => string | undefined) & {
|
|
4504
|
+
clearCache: () => void;
|
|
4505
|
+
resultsCount: () => number;
|
|
4506
|
+
resetResultsCount: () => void;
|
|
4507
|
+
} & {
|
|
4508
|
+
resultFunc: (resultFuncArgs_0: {
|
|
4509
|
+
currencyRates: Record<string, {
|
|
4510
|
+
conversionDate: number | null;
|
|
4511
|
+
conversionRate: number | null;
|
|
4512
|
+
usdConversionRate: number | null;
|
|
4513
|
+
}>;
|
|
4514
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
4515
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
4516
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4517
|
+
}>;
|
|
4518
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
4519
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined;
|
|
4520
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
4521
|
+
currencyRates: Record<string, {
|
|
4522
|
+
conversionDate: number | null;
|
|
4523
|
+
conversionRate: number | null;
|
|
4524
|
+
usdConversionRate: number | null;
|
|
4525
|
+
}>;
|
|
4526
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
4527
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
4528
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4529
|
+
}>;
|
|
4530
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
4531
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined) & {
|
|
4532
|
+
clearCache: () => void;
|
|
4533
|
+
resultsCount: () => number;
|
|
4534
|
+
resetResultsCount: () => void;
|
|
4535
|
+
};
|
|
4536
|
+
lastResult: () => string | undefined;
|
|
4537
|
+
dependencies: [((state: BridgeControllerState & {
|
|
4538
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
4539
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
4540
|
+
participateInMetaMetrics: boolean;
|
|
4541
|
+
} & RemoteFeatureFlagControllerState) => {
|
|
4542
|
+
currencyRates: Record<string, {
|
|
4543
|
+
conversionDate: number | null;
|
|
4544
|
+
conversionRate: number | null;
|
|
4545
|
+
usdConversionRate: number | null;
|
|
4546
|
+
}>;
|
|
4547
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
4548
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
4549
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4550
|
+
}>;
|
|
4551
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
4552
|
+
}) & {
|
|
4553
|
+
clearCache: () => void;
|
|
4554
|
+
resultsCount: () => number;
|
|
4555
|
+
resetResultsCount: () => void;
|
|
4556
|
+
} & {
|
|
4557
|
+
resultFunc: (resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
4558
|
+
conversionDate: number | null;
|
|
4559
|
+
conversionRate: number | null;
|
|
4560
|
+
usdConversionRate: number | null;
|
|
4561
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
4562
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4563
|
+
}>) => {
|
|
4564
|
+
currencyRates: Record<string, {
|
|
4565
|
+
conversionDate: number | null;
|
|
4566
|
+
conversionRate: number | null;
|
|
4567
|
+
usdConversionRate: number | null;
|
|
4568
|
+
}>;
|
|
4569
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
4570
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
4571
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4572
|
+
}>;
|
|
4573
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
4574
|
+
};
|
|
4575
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
4576
|
+
conversionDate: number | null;
|
|
4577
|
+
conversionRate: number | null;
|
|
4578
|
+
usdConversionRate: number | null;
|
|
4579
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
4580
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4581
|
+
}>) => {
|
|
4582
|
+
currencyRates: Record<string, {
|
|
4583
|
+
conversionDate: number | null;
|
|
4584
|
+
conversionRate: number | null;
|
|
4585
|
+
usdConversionRate: number | null;
|
|
4586
|
+
}>;
|
|
4587
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
4588
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
4589
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4590
|
+
}>;
|
|
4591
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
4592
|
+
}) & {
|
|
4593
|
+
clearCache: () => void;
|
|
4594
|
+
resultsCount: () => number;
|
|
4595
|
+
resetResultsCount: () => void;
|
|
4596
|
+
};
|
|
4597
|
+
lastResult: () => {
|
|
4598
|
+
currencyRates: Record<string, {
|
|
4599
|
+
conversionDate: number | null;
|
|
4600
|
+
conversionRate: number | null;
|
|
4601
|
+
usdConversionRate: number | null;
|
|
4602
|
+
}>;
|
|
4603
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
4604
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
4605
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4606
|
+
}>;
|
|
4607
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
4608
|
+
};
|
|
4609
|
+
dependencies: [(state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, (state: BridgeAppState) => Record<string, {
|
|
4610
|
+
conversionDate: number | null;
|
|
4611
|
+
conversionRate: number | null;
|
|
4612
|
+
usdConversionRate: number | null;
|
|
4613
|
+
}>, (state: BridgeAppState) => Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, (state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
4614
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
4615
|
+
}>];
|
|
4616
|
+
recomputations: () => number;
|
|
4617
|
+
resetRecomputations: () => void;
|
|
4618
|
+
dependencyRecomputations: () => number;
|
|
4619
|
+
resetDependencyRecomputations: () => void;
|
|
4620
|
+
} & {
|
|
4621
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
4622
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
4623
|
+
}, ({ quoteRequest }: BridgeAppState) => `${string}:${string}/${string}:${string}`];
|
|
4309
4624
|
recomputations: () => number;
|
|
4310
4625
|
resetRecomputations: () => void;
|
|
4311
4626
|
dependencyRecomputations: () => number;
|
|
@@ -4313,7 +4628,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
4313
4628
|
} & {
|
|
4314
4629
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
4315
4630
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
4316
|
-
}, ({
|
|
4631
|
+
}, (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
4317
4632
|
recomputations: () => number;
|
|
4318
4633
|
resetRecomputations: () => void;
|
|
4319
4634
|
dependencyRecomputations: () => number;
|
|
@@ -4321,7 +4636,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
4321
4636
|
} & {
|
|
4322
4637
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
4323
4638
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
4324
|
-
}, ({ quotes }: BridgeAppState) => QuoteResponse[]];
|
|
4639
|
+
}, ({ quotes }: BridgeAppState) => QuoteResponse[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
4325
4640
|
recomputations: () => number;
|
|
4326
4641
|
resetRecomputations: () => void;
|
|
4327
4642
|
dependencyRecomputations: () => number;
|
|
@@ -5417,7 +5732,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
5417
5732
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
5418
5733
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
5419
5734
|
participateInMetaMetrics: boolean;
|
|
5420
|
-
} & RemoteFeatureFlagControllerState) => (QuoteResponse & {
|
|
5735
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => (QuoteResponse & {
|
|
5421
5736
|
includedTxFees?: {
|
|
5422
5737
|
amount?: string | undefined;
|
|
5423
5738
|
valueInCurrency?: string | undefined;
|
|
@@ -5524,7 +5839,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
5524
5839
|
usd?: string | undefined;
|
|
5525
5840
|
valueInCurrency?: string | undefined;
|
|
5526
5841
|
} | undefined;
|
|
5527
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
5842
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
5528
5843
|
includedTxFees?: {
|
|
5529
5844
|
amount?: string | undefined;
|
|
5530
5845
|
valueInCurrency?: string | undefined;
|
|
@@ -5627,7 +5942,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
5627
5942
|
usd?: string | undefined;
|
|
5628
5943
|
valueInCurrency?: string | undefined;
|
|
5629
5944
|
} | undefined;
|
|
5630
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
5945
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
5631
5946
|
includedTxFees?: {
|
|
5632
5947
|
amount?: string | undefined;
|
|
5633
5948
|
valueInCurrency?: string | undefined;
|
|
@@ -5739,7 +6054,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
5739
6054
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
5740
6055
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
5741
6056
|
participateInMetaMetrics: boolean;
|
|
5742
|
-
} & RemoteFeatureFlagControllerState) => {
|
|
6057
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => {
|
|
5743
6058
|
includedTxFees?: {
|
|
5744
6059
|
amount?: string | undefined;
|
|
5745
6060
|
valueInCurrency?: string | undefined;
|
|
@@ -5810,7 +6125,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
5810
6125
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
5811
6126
|
}>;
|
|
5812
6127
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
5813
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
6128
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
5814
6129
|
includedTxFees?: {
|
|
5815
6130
|
amount?: string | undefined;
|
|
5816
6131
|
valueInCurrency?: string | undefined;
|
|
@@ -5877,7 +6192,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
5877
6192
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
5878
6193
|
}>;
|
|
5879
6194
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
5880
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
6195
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
5881
6196
|
includedTxFees?: {
|
|
5882
6197
|
amount?: string | undefined;
|
|
5883
6198
|
valueInCurrency?: string | undefined;
|
|
@@ -6111,7 +6426,163 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
6111
6426
|
} & {
|
|
6112
6427
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
6113
6428
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
6114
|
-
}, ({ quoteRequest }: BridgeAppState) => Partial<import("./types.cjs").GenericQuoteRequest>[]];
|
|
6429
|
+
}, ({ quoteRequest }: BridgeAppState) => Partial<import("./types.cjs").GenericQuoteRequest>[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
6430
|
+
recomputations: () => number;
|
|
6431
|
+
resetRecomputations: () => void;
|
|
6432
|
+
dependencyRecomputations: () => number;
|
|
6433
|
+
resetDependencyRecomputations: () => void;
|
|
6434
|
+
} & {
|
|
6435
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
6436
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
6437
|
+
}, ((state: BridgeControllerState & {
|
|
6438
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
6439
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
6440
|
+
participateInMetaMetrics: boolean;
|
|
6441
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => DeepPartial<QuoteResponse>[]) & {
|
|
6442
|
+
clearCache: () => void;
|
|
6443
|
+
resultsCount: () => number;
|
|
6444
|
+
resetResultsCount: () => void;
|
|
6445
|
+
} & {
|
|
6446
|
+
resultFunc: (resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[];
|
|
6447
|
+
memoizedResultFunc: ((resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[]) & {
|
|
6448
|
+
clearCache: () => void;
|
|
6449
|
+
resultsCount: () => number;
|
|
6450
|
+
resetResultsCount: () => void;
|
|
6451
|
+
};
|
|
6452
|
+
lastResult: () => DeepPartial<QuoteResponse>[];
|
|
6453
|
+
dependencies: [({ quotes }: BridgeAppState) => QuoteResponse[], ((state: BridgeControllerState & {
|
|
6454
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
6455
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
6456
|
+
participateInMetaMetrics: boolean;
|
|
6457
|
+
} & RemoteFeatureFlagControllerState) => string | undefined) & {
|
|
6458
|
+
clearCache: () => void;
|
|
6459
|
+
resultsCount: () => number;
|
|
6460
|
+
resetResultsCount: () => void;
|
|
6461
|
+
} & {
|
|
6462
|
+
resultFunc: (resultFuncArgs_0: {
|
|
6463
|
+
currencyRates: Record<string, {
|
|
6464
|
+
conversionDate: number | null;
|
|
6465
|
+
conversionRate: number | null;
|
|
6466
|
+
usdConversionRate: number | null;
|
|
6467
|
+
}>;
|
|
6468
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
6469
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
6470
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
6471
|
+
}>;
|
|
6472
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
6473
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined;
|
|
6474
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
6475
|
+
currencyRates: Record<string, {
|
|
6476
|
+
conversionDate: number | null;
|
|
6477
|
+
conversionRate: number | null;
|
|
6478
|
+
usdConversionRate: number | null;
|
|
6479
|
+
}>;
|
|
6480
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
6481
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
6482
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
6483
|
+
}>;
|
|
6484
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
6485
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined) & {
|
|
6486
|
+
clearCache: () => void;
|
|
6487
|
+
resultsCount: () => number;
|
|
6488
|
+
resetResultsCount: () => void;
|
|
6489
|
+
};
|
|
6490
|
+
lastResult: () => string | undefined;
|
|
6491
|
+
dependencies: [((state: BridgeControllerState & {
|
|
6492
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
6493
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
6494
|
+
participateInMetaMetrics: boolean;
|
|
6495
|
+
} & RemoteFeatureFlagControllerState) => {
|
|
6496
|
+
currencyRates: Record<string, {
|
|
6497
|
+
conversionDate: number | null;
|
|
6498
|
+
conversionRate: number | null;
|
|
6499
|
+
usdConversionRate: number | null;
|
|
6500
|
+
}>;
|
|
6501
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
6502
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
6503
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
6504
|
+
}>;
|
|
6505
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
6506
|
+
}) & {
|
|
6507
|
+
clearCache: () => void;
|
|
6508
|
+
resultsCount: () => number;
|
|
6509
|
+
resetResultsCount: () => void;
|
|
6510
|
+
} & {
|
|
6511
|
+
resultFunc: (resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
6512
|
+
conversionDate: number | null;
|
|
6513
|
+
conversionRate: number | null;
|
|
6514
|
+
usdConversionRate: number | null;
|
|
6515
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
6516
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
6517
|
+
}>) => {
|
|
6518
|
+
currencyRates: Record<string, {
|
|
6519
|
+
conversionDate: number | null;
|
|
6520
|
+
conversionRate: number | null;
|
|
6521
|
+
usdConversionRate: number | null;
|
|
6522
|
+
}>;
|
|
6523
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
6524
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
6525
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
6526
|
+
}>;
|
|
6527
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
6528
|
+
};
|
|
6529
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
6530
|
+
conversionDate: number | null;
|
|
6531
|
+
conversionRate: number | null;
|
|
6532
|
+
usdConversionRate: number | null;
|
|
6533
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
6534
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
6535
|
+
}>) => {
|
|
6536
|
+
currencyRates: Record<string, {
|
|
6537
|
+
conversionDate: number | null;
|
|
6538
|
+
conversionRate: number | null;
|
|
6539
|
+
usdConversionRate: number | null;
|
|
6540
|
+
}>;
|
|
6541
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
6542
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
6543
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
6544
|
+
}>;
|
|
6545
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
6546
|
+
}) & {
|
|
6547
|
+
clearCache: () => void;
|
|
6548
|
+
resultsCount: () => number;
|
|
6549
|
+
resetResultsCount: () => void;
|
|
6550
|
+
};
|
|
6551
|
+
lastResult: () => {
|
|
6552
|
+
currencyRates: Record<string, {
|
|
6553
|
+
conversionDate: number | null;
|
|
6554
|
+
conversionRate: number | null;
|
|
6555
|
+
usdConversionRate: number | null;
|
|
6556
|
+
}>;
|
|
6557
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
6558
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
6559
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
6560
|
+
}>;
|
|
6561
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
6562
|
+
};
|
|
6563
|
+
dependencies: [(state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, (state: BridgeAppState) => Record<string, {
|
|
6564
|
+
conversionDate: number | null;
|
|
6565
|
+
conversionRate: number | null;
|
|
6566
|
+
usdConversionRate: number | null;
|
|
6567
|
+
}>, (state: BridgeAppState) => Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, (state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
6568
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
6569
|
+
}>];
|
|
6570
|
+
recomputations: () => number;
|
|
6571
|
+
resetRecomputations: () => void;
|
|
6572
|
+
dependencyRecomputations: () => number;
|
|
6573
|
+
resetDependencyRecomputations: () => void;
|
|
6574
|
+
} & {
|
|
6575
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
6576
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
6577
|
+
}, ({ quoteRequest }: BridgeAppState) => `${string}:${string}/${string}:${string}`];
|
|
6578
|
+
recomputations: () => number;
|
|
6579
|
+
resetRecomputations: () => void;
|
|
6580
|
+
dependencyRecomputations: () => number;
|
|
6581
|
+
resetDependencyRecomputations: () => void;
|
|
6582
|
+
} & {
|
|
6583
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
6584
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
6585
|
+
}, (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
6115
6586
|
recomputations: () => number;
|
|
6116
6587
|
resetRecomputations: () => void;
|
|
6117
6588
|
dependencyRecomputations: () => number;
|
|
@@ -6119,7 +6590,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
6119
6590
|
} & {
|
|
6120
6591
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
6121
6592
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
6122
|
-
}, ({ quotes }: BridgeAppState) => QuoteResponse[]];
|
|
6593
|
+
}, ({ quotes }: BridgeAppState) => QuoteResponse[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
6123
6594
|
recomputations: () => number;
|
|
6124
6595
|
resetRecomputations: () => void;
|
|
6125
6596
|
dependencyRecomputations: () => number;
|
|
@@ -6469,7 +6940,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
6469
6940
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
6470
6941
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
6471
6942
|
participateInMetaMetrics: boolean;
|
|
6472
|
-
} & RemoteFeatureFlagControllerState) => (QuoteResponse & {
|
|
6943
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => (QuoteResponse & {
|
|
6473
6944
|
includedTxFees?: {
|
|
6474
6945
|
amount?: string | undefined;
|
|
6475
6946
|
valueInCurrency?: string | undefined;
|
|
@@ -6576,7 +7047,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
6576
7047
|
usd?: string | undefined;
|
|
6577
7048
|
valueInCurrency?: string | undefined;
|
|
6578
7049
|
} | undefined;
|
|
6579
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
7050
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
6580
7051
|
includedTxFees?: {
|
|
6581
7052
|
amount?: string | undefined;
|
|
6582
7053
|
valueInCurrency?: string | undefined;
|
|
@@ -6679,7 +7150,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
6679
7150
|
usd?: string | undefined;
|
|
6680
7151
|
valueInCurrency?: string | undefined;
|
|
6681
7152
|
} | undefined;
|
|
6682
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
7153
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
6683
7154
|
includedTxFees?: {
|
|
6684
7155
|
amount?: string | undefined;
|
|
6685
7156
|
valueInCurrency?: string | undefined;
|
|
@@ -6791,7 +7262,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
6791
7262
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
6792
7263
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
6793
7264
|
participateInMetaMetrics: boolean;
|
|
6794
|
-
} & RemoteFeatureFlagControllerState) => {
|
|
7265
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => {
|
|
6795
7266
|
includedTxFees?: {
|
|
6796
7267
|
amount?: string | undefined;
|
|
6797
7268
|
valueInCurrency?: string | undefined;
|
|
@@ -6862,7 +7333,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
6862
7333
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
6863
7334
|
}>;
|
|
6864
7335
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
6865
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
7336
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
6866
7337
|
includedTxFees?: {
|
|
6867
7338
|
amount?: string | undefined;
|
|
6868
7339
|
valueInCurrency?: string | undefined;
|
|
@@ -6929,7 +7400,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
6929
7400
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
6930
7401
|
}>;
|
|
6931
7402
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
6932
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
7403
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
6933
7404
|
includedTxFees?: {
|
|
6934
7405
|
amount?: string | undefined;
|
|
6935
7406
|
valueInCurrency?: string | undefined;
|
|
@@ -7097,13 +7568,106 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
7097
7568
|
resultsCount: () => number;
|
|
7098
7569
|
resetResultsCount: () => void;
|
|
7099
7570
|
} & {
|
|
7100
|
-
resultFunc: (resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
7101
|
-
conversionDate: number | null;
|
|
7102
|
-
conversionRate: number | null;
|
|
7103
|
-
usdConversionRate: number | null;
|
|
7104
|
-
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7105
|
-
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7106
|
-
}>) => {
|
|
7571
|
+
resultFunc: (resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
7572
|
+
conversionDate: number | null;
|
|
7573
|
+
conversionRate: number | null;
|
|
7574
|
+
usdConversionRate: number | null;
|
|
7575
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7576
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7577
|
+
}>) => {
|
|
7578
|
+
currencyRates: Record<string, {
|
|
7579
|
+
conversionDate: number | null;
|
|
7580
|
+
conversionRate: number | null;
|
|
7581
|
+
usdConversionRate: number | null;
|
|
7582
|
+
}>;
|
|
7583
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
7584
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7585
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7586
|
+
}>;
|
|
7587
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
7588
|
+
};
|
|
7589
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
7590
|
+
conversionDate: number | null;
|
|
7591
|
+
conversionRate: number | null;
|
|
7592
|
+
usdConversionRate: number | null;
|
|
7593
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7594
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7595
|
+
}>) => {
|
|
7596
|
+
currencyRates: Record<string, {
|
|
7597
|
+
conversionDate: number | null;
|
|
7598
|
+
conversionRate: number | null;
|
|
7599
|
+
usdConversionRate: number | null;
|
|
7600
|
+
}>;
|
|
7601
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
7602
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7603
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7604
|
+
}>;
|
|
7605
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
7606
|
+
}) & {
|
|
7607
|
+
clearCache: () => void;
|
|
7608
|
+
resultsCount: () => number;
|
|
7609
|
+
resetResultsCount: () => void;
|
|
7610
|
+
};
|
|
7611
|
+
lastResult: () => {
|
|
7612
|
+
currencyRates: Record<string, {
|
|
7613
|
+
conversionDate: number | null;
|
|
7614
|
+
conversionRate: number | null;
|
|
7615
|
+
usdConversionRate: number | null;
|
|
7616
|
+
}>;
|
|
7617
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
7618
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7619
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7620
|
+
}>;
|
|
7621
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
7622
|
+
};
|
|
7623
|
+
dependencies: [(state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, (state: BridgeAppState) => Record<string, {
|
|
7624
|
+
conversionDate: number | null;
|
|
7625
|
+
conversionRate: number | null;
|
|
7626
|
+
usdConversionRate: number | null;
|
|
7627
|
+
}>, (state: BridgeAppState) => Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, (state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7628
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7629
|
+
}>];
|
|
7630
|
+
recomputations: () => number;
|
|
7631
|
+
resetRecomputations: () => void;
|
|
7632
|
+
dependencyRecomputations: () => number;
|
|
7633
|
+
resetDependencyRecomputations: () => void;
|
|
7634
|
+
} & {
|
|
7635
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
7636
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
7637
|
+
}, ({ quoteRequest }: BridgeAppState) => Partial<import("./types.cjs").GenericQuoteRequest>[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
7638
|
+
recomputations: () => number;
|
|
7639
|
+
resetRecomputations: () => void;
|
|
7640
|
+
dependencyRecomputations: () => number;
|
|
7641
|
+
resetDependencyRecomputations: () => void;
|
|
7642
|
+
} & {
|
|
7643
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
7644
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
7645
|
+
}, ((state: BridgeControllerState & {
|
|
7646
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
7647
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
7648
|
+
participateInMetaMetrics: boolean;
|
|
7649
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => DeepPartial<QuoteResponse>[]) & {
|
|
7650
|
+
clearCache: () => void;
|
|
7651
|
+
resultsCount: () => number;
|
|
7652
|
+
resetResultsCount: () => void;
|
|
7653
|
+
} & {
|
|
7654
|
+
resultFunc: (resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[];
|
|
7655
|
+
memoizedResultFunc: ((resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[]) & {
|
|
7656
|
+
clearCache: () => void;
|
|
7657
|
+
resultsCount: () => number;
|
|
7658
|
+
resetResultsCount: () => void;
|
|
7659
|
+
};
|
|
7660
|
+
lastResult: () => DeepPartial<QuoteResponse>[];
|
|
7661
|
+
dependencies: [({ quotes }: BridgeAppState) => QuoteResponse[], ((state: BridgeControllerState & {
|
|
7662
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
7663
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
7664
|
+
participateInMetaMetrics: boolean;
|
|
7665
|
+
} & RemoteFeatureFlagControllerState) => string | undefined) & {
|
|
7666
|
+
clearCache: () => void;
|
|
7667
|
+
resultsCount: () => number;
|
|
7668
|
+
resetResultsCount: () => void;
|
|
7669
|
+
} & {
|
|
7670
|
+
resultFunc: (resultFuncArgs_0: {
|
|
7107
7671
|
currencyRates: Record<string, {
|
|
7108
7672
|
conversionDate: number | null;
|
|
7109
7673
|
conversionRate: number | null;
|
|
@@ -7114,14 +7678,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
7114
7678
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7115
7679
|
}>;
|
|
7116
7680
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
7117
|
-
};
|
|
7118
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
7119
|
-
conversionDate: number | null;
|
|
7120
|
-
conversionRate: number | null;
|
|
7121
|
-
usdConversionRate: number | null;
|
|
7122
|
-
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7123
|
-
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7124
|
-
}>) => {
|
|
7681
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined;
|
|
7682
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
7125
7683
|
currencyRates: Record<string, {
|
|
7126
7684
|
conversionDate: number | null;
|
|
7127
7685
|
conversionRate: number | null;
|
|
@@ -7132,12 +7690,17 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
7132
7690
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7133
7691
|
}>;
|
|
7134
7692
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
7135
|
-
}) & {
|
|
7693
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined) & {
|
|
7136
7694
|
clearCache: () => void;
|
|
7137
7695
|
resultsCount: () => number;
|
|
7138
7696
|
resetResultsCount: () => void;
|
|
7139
7697
|
};
|
|
7140
|
-
lastResult: () =>
|
|
7698
|
+
lastResult: () => string | undefined;
|
|
7699
|
+
dependencies: [((state: BridgeControllerState & {
|
|
7700
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
7701
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
7702
|
+
participateInMetaMetrics: boolean;
|
|
7703
|
+
} & RemoteFeatureFlagControllerState) => {
|
|
7141
7704
|
currencyRates: Record<string, {
|
|
7142
7705
|
conversionDate: number | null;
|
|
7143
7706
|
conversionRate: number | null;
|
|
@@ -7148,14 +7711,78 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
7148
7711
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7149
7712
|
}>;
|
|
7150
7713
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
7151
|
-
}
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7714
|
+
}) & {
|
|
7715
|
+
clearCache: () => void;
|
|
7716
|
+
resultsCount: () => number;
|
|
7717
|
+
resetResultsCount: () => void;
|
|
7718
|
+
} & {
|
|
7719
|
+
resultFunc: (resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
7720
|
+
conversionDate: number | null;
|
|
7721
|
+
conversionRate: number | null;
|
|
7722
|
+
usdConversionRate: number | null;
|
|
7723
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7724
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7725
|
+
}>) => {
|
|
7726
|
+
currencyRates: Record<string, {
|
|
7727
|
+
conversionDate: number | null;
|
|
7728
|
+
conversionRate: number | null;
|
|
7729
|
+
usdConversionRate: number | null;
|
|
7730
|
+
}>;
|
|
7731
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
7732
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7733
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7734
|
+
}>;
|
|
7735
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
7736
|
+
};
|
|
7737
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
7738
|
+
conversionDate: number | null;
|
|
7739
|
+
conversionRate: number | null;
|
|
7740
|
+
usdConversionRate: number | null;
|
|
7741
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7742
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7743
|
+
}>) => {
|
|
7744
|
+
currencyRates: Record<string, {
|
|
7745
|
+
conversionDate: number | null;
|
|
7746
|
+
conversionRate: number | null;
|
|
7747
|
+
usdConversionRate: number | null;
|
|
7748
|
+
}>;
|
|
7749
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
7750
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7751
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7752
|
+
}>;
|
|
7753
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
7754
|
+
}) & {
|
|
7755
|
+
clearCache: () => void;
|
|
7756
|
+
resultsCount: () => number;
|
|
7757
|
+
resetResultsCount: () => void;
|
|
7758
|
+
};
|
|
7759
|
+
lastResult: () => {
|
|
7760
|
+
currencyRates: Record<string, {
|
|
7761
|
+
conversionDate: number | null;
|
|
7762
|
+
conversionRate: number | null;
|
|
7763
|
+
usdConversionRate: number | null;
|
|
7764
|
+
}>;
|
|
7765
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
7766
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7767
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7768
|
+
}>;
|
|
7769
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
7770
|
+
};
|
|
7771
|
+
dependencies: [(state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, (state: BridgeAppState) => Record<string, {
|
|
7772
|
+
conversionDate: number | null;
|
|
7773
|
+
conversionRate: number | null;
|
|
7774
|
+
usdConversionRate: number | null;
|
|
7775
|
+
}>, (state: BridgeAppState) => Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, (state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
7776
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
7777
|
+
}>];
|
|
7778
|
+
recomputations: () => number;
|
|
7779
|
+
resetRecomputations: () => void;
|
|
7780
|
+
dependencyRecomputations: () => number;
|
|
7781
|
+
resetDependencyRecomputations: () => void;
|
|
7782
|
+
} & {
|
|
7783
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
7784
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
7785
|
+
}, ({ quoteRequest }: BridgeAppState) => `${string}:${string}/${string}:${string}`];
|
|
7159
7786
|
recomputations: () => number;
|
|
7160
7787
|
resetRecomputations: () => void;
|
|
7161
7788
|
dependencyRecomputations: () => number;
|
|
@@ -7163,7 +7790,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
7163
7790
|
} & {
|
|
7164
7791
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
7165
7792
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
7166
|
-
}, ({
|
|
7793
|
+
}, (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
7167
7794
|
recomputations: () => number;
|
|
7168
7795
|
resetRecomputations: () => void;
|
|
7169
7796
|
dependencyRecomputations: () => number;
|
|
@@ -7171,7 +7798,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
7171
7798
|
} & {
|
|
7172
7799
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
7173
7800
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
7174
|
-
}, ({ quotes }: BridgeAppState) => QuoteResponse[]];
|
|
7801
|
+
}, ({ quotes }: BridgeAppState) => QuoteResponse[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
7175
7802
|
recomputations: () => number;
|
|
7176
7803
|
resetRecomputations: () => void;
|
|
7177
7804
|
dependencyRecomputations: () => number;
|
|
@@ -8740,7 +9367,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
8740
9367
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
8741
9368
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
8742
9369
|
participateInMetaMetrics: boolean;
|
|
8743
|
-
} & RemoteFeatureFlagControllerState) => (QuoteResponse & {
|
|
9370
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => (QuoteResponse & {
|
|
8744
9371
|
includedTxFees?: {
|
|
8745
9372
|
amount?: string | undefined;
|
|
8746
9373
|
valueInCurrency?: string | undefined;
|
|
@@ -8847,7 +9474,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
8847
9474
|
usd?: string | undefined;
|
|
8848
9475
|
valueInCurrency?: string | undefined;
|
|
8849
9476
|
} | undefined;
|
|
8850
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
9477
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
8851
9478
|
includedTxFees?: {
|
|
8852
9479
|
amount?: string | undefined;
|
|
8853
9480
|
valueInCurrency?: string | undefined;
|
|
@@ -8950,7 +9577,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
8950
9577
|
usd?: string | undefined;
|
|
8951
9578
|
valueInCurrency?: string | undefined;
|
|
8952
9579
|
} | undefined;
|
|
8953
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
9580
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
8954
9581
|
includedTxFees?: {
|
|
8955
9582
|
amount?: string | undefined;
|
|
8956
9583
|
valueInCurrency?: string | undefined;
|
|
@@ -9062,7 +9689,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
9062
9689
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
9063
9690
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
9064
9691
|
participateInMetaMetrics: boolean;
|
|
9065
|
-
} & RemoteFeatureFlagControllerState) => {
|
|
9692
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => {
|
|
9066
9693
|
includedTxFees?: {
|
|
9067
9694
|
amount?: string | undefined;
|
|
9068
9695
|
valueInCurrency?: string | undefined;
|
|
@@ -9133,7 +9760,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
9133
9760
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
9134
9761
|
}>;
|
|
9135
9762
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
9136
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
9763
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
9137
9764
|
includedTxFees?: {
|
|
9138
9765
|
amount?: string | undefined;
|
|
9139
9766
|
valueInCurrency?: string | undefined;
|
|
@@ -9200,7 +9827,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
9200
9827
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
9201
9828
|
}>;
|
|
9202
9829
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
9203
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
9830
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
9204
9831
|
includedTxFees?: {
|
|
9205
9832
|
amount?: string | undefined;
|
|
9206
9833
|
valueInCurrency?: string | undefined;
|
|
@@ -9413,20 +10040,176 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
9413
10040
|
conversionDate: number | null;
|
|
9414
10041
|
conversionRate: number | null;
|
|
9415
10042
|
usdConversionRate: number | null;
|
|
9416
|
-
}>;
|
|
9417
|
-
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
9418
|
-
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
10043
|
+
}>;
|
|
10044
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
10045
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
10046
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
10047
|
+
}>;
|
|
10048
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
10049
|
+
};
|
|
10050
|
+
dependencies: [(state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, (state: BridgeAppState) => Record<string, {
|
|
10051
|
+
conversionDate: number | null;
|
|
10052
|
+
conversionRate: number | null;
|
|
10053
|
+
usdConversionRate: number | null;
|
|
10054
|
+
}>, (state: BridgeAppState) => Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, (state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
10055
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
10056
|
+
}>];
|
|
10057
|
+
recomputations: () => number;
|
|
10058
|
+
resetRecomputations: () => void;
|
|
10059
|
+
dependencyRecomputations: () => number;
|
|
10060
|
+
resetDependencyRecomputations: () => void;
|
|
10061
|
+
} & {
|
|
10062
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
10063
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
10064
|
+
}, ({ quoteRequest }: BridgeAppState) => Partial<import("./types.cjs").GenericQuoteRequest>[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
10065
|
+
recomputations: () => number;
|
|
10066
|
+
resetRecomputations: () => void;
|
|
10067
|
+
dependencyRecomputations: () => number;
|
|
10068
|
+
resetDependencyRecomputations: () => void;
|
|
10069
|
+
} & {
|
|
10070
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
10071
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
10072
|
+
}, ((state: BridgeControllerState & {
|
|
10073
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
10074
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
10075
|
+
participateInMetaMetrics: boolean;
|
|
10076
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => DeepPartial<QuoteResponse>[]) & {
|
|
10077
|
+
clearCache: () => void;
|
|
10078
|
+
resultsCount: () => number;
|
|
10079
|
+
resetResultsCount: () => void;
|
|
10080
|
+
} & {
|
|
10081
|
+
resultFunc: (resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[];
|
|
10082
|
+
memoizedResultFunc: ((resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[]) & {
|
|
10083
|
+
clearCache: () => void;
|
|
10084
|
+
resultsCount: () => number;
|
|
10085
|
+
resetResultsCount: () => void;
|
|
10086
|
+
};
|
|
10087
|
+
lastResult: () => DeepPartial<QuoteResponse>[];
|
|
10088
|
+
dependencies: [({ quotes }: BridgeAppState) => QuoteResponse[], ((state: BridgeControllerState & {
|
|
10089
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
10090
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
10091
|
+
participateInMetaMetrics: boolean;
|
|
10092
|
+
} & RemoteFeatureFlagControllerState) => string | undefined) & {
|
|
10093
|
+
clearCache: () => void;
|
|
10094
|
+
resultsCount: () => number;
|
|
10095
|
+
resetResultsCount: () => void;
|
|
10096
|
+
} & {
|
|
10097
|
+
resultFunc: (resultFuncArgs_0: {
|
|
10098
|
+
currencyRates: Record<string, {
|
|
10099
|
+
conversionDate: number | null;
|
|
10100
|
+
conversionRate: number | null;
|
|
10101
|
+
usdConversionRate: number | null;
|
|
10102
|
+
}>;
|
|
10103
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
10104
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
10105
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
10106
|
+
}>;
|
|
10107
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
10108
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined;
|
|
10109
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
10110
|
+
currencyRates: Record<string, {
|
|
10111
|
+
conversionDate: number | null;
|
|
10112
|
+
conversionRate: number | null;
|
|
10113
|
+
usdConversionRate: number | null;
|
|
10114
|
+
}>;
|
|
10115
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
10116
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
10117
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
10118
|
+
}>;
|
|
10119
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
10120
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined) & {
|
|
10121
|
+
clearCache: () => void;
|
|
10122
|
+
resultsCount: () => number;
|
|
10123
|
+
resetResultsCount: () => void;
|
|
10124
|
+
};
|
|
10125
|
+
lastResult: () => string | undefined;
|
|
10126
|
+
dependencies: [((state: BridgeControllerState & {
|
|
10127
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
10128
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
10129
|
+
participateInMetaMetrics: boolean;
|
|
10130
|
+
} & RemoteFeatureFlagControllerState) => {
|
|
10131
|
+
currencyRates: Record<string, {
|
|
10132
|
+
conversionDate: number | null;
|
|
10133
|
+
conversionRate: number | null;
|
|
10134
|
+
usdConversionRate: number | null;
|
|
10135
|
+
}>;
|
|
10136
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
10137
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
10138
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
10139
|
+
}>;
|
|
10140
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
10141
|
+
}) & {
|
|
10142
|
+
clearCache: () => void;
|
|
10143
|
+
resultsCount: () => number;
|
|
10144
|
+
resetResultsCount: () => void;
|
|
10145
|
+
} & {
|
|
10146
|
+
resultFunc: (resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
10147
|
+
conversionDate: number | null;
|
|
10148
|
+
conversionRate: number | null;
|
|
10149
|
+
usdConversionRate: number | null;
|
|
10150
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
10151
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
10152
|
+
}>) => {
|
|
10153
|
+
currencyRates: Record<string, {
|
|
10154
|
+
conversionDate: number | null;
|
|
10155
|
+
conversionRate: number | null;
|
|
10156
|
+
usdConversionRate: number | null;
|
|
10157
|
+
}>;
|
|
10158
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
10159
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
10160
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
10161
|
+
}>;
|
|
10162
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
10163
|
+
};
|
|
10164
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
10165
|
+
conversionDate: number | null;
|
|
10166
|
+
conversionRate: number | null;
|
|
10167
|
+
usdConversionRate: number | null;
|
|
10168
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
10169
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
10170
|
+
}>) => {
|
|
10171
|
+
currencyRates: Record<string, {
|
|
10172
|
+
conversionDate: number | null;
|
|
10173
|
+
conversionRate: number | null;
|
|
10174
|
+
usdConversionRate: number | null;
|
|
10175
|
+
}>;
|
|
10176
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
10177
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
10178
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
10179
|
+
}>;
|
|
10180
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
10181
|
+
}) & {
|
|
10182
|
+
clearCache: () => void;
|
|
10183
|
+
resultsCount: () => number;
|
|
10184
|
+
resetResultsCount: () => void;
|
|
10185
|
+
};
|
|
10186
|
+
lastResult: () => {
|
|
10187
|
+
currencyRates: Record<string, {
|
|
10188
|
+
conversionDate: number | null;
|
|
10189
|
+
conversionRate: number | null;
|
|
10190
|
+
usdConversionRate: number | null;
|
|
10191
|
+
}>;
|
|
10192
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
10193
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
10194
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
10195
|
+
}>;
|
|
10196
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
10197
|
+
};
|
|
10198
|
+
dependencies: [(state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, (state: BridgeAppState) => Record<string, {
|
|
10199
|
+
conversionDate: number | null;
|
|
10200
|
+
conversionRate: number | null;
|
|
10201
|
+
usdConversionRate: number | null;
|
|
10202
|
+
}>, (state: BridgeAppState) => Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, (state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
9419
10203
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
9420
|
-
}
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
}>];
|
|
10204
|
+
}>];
|
|
10205
|
+
recomputations: () => number;
|
|
10206
|
+
resetRecomputations: () => void;
|
|
10207
|
+
dependencyRecomputations: () => number;
|
|
10208
|
+
resetDependencyRecomputations: () => void;
|
|
10209
|
+
} & {
|
|
10210
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
10211
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
10212
|
+
}, ({ quoteRequest }: BridgeAppState) => `${string}:${string}/${string}:${string}`];
|
|
9430
10213
|
recomputations: () => number;
|
|
9431
10214
|
resetRecomputations: () => void;
|
|
9432
10215
|
dependencyRecomputations: () => number;
|
|
@@ -9434,7 +10217,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
9434
10217
|
} & {
|
|
9435
10218
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
9436
10219
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
9437
|
-
}, ({
|
|
10220
|
+
}, (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
9438
10221
|
recomputations: () => number;
|
|
9439
10222
|
resetRecomputations: () => void;
|
|
9440
10223
|
dependencyRecomputations: () => number;
|
|
@@ -9442,7 +10225,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
9442
10225
|
} & {
|
|
9443
10226
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
9444
10227
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
9445
|
-
}, ({ quotes }: BridgeAppState) => QuoteResponse[]];
|
|
10228
|
+
}, ({ quotes }: BridgeAppState) => QuoteResponse[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
9446
10229
|
recomputations: () => number;
|
|
9447
10230
|
resetRecomputations: () => void;
|
|
9448
10231
|
dependencyRecomputations: () => number;
|
|
@@ -10060,7 +10843,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
10060
10843
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
10061
10844
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
10062
10845
|
participateInMetaMetrics: boolean;
|
|
10063
|
-
} & RemoteFeatureFlagControllerState) => (QuoteResponse & {
|
|
10846
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => (QuoteResponse & {
|
|
10064
10847
|
includedTxFees?: {
|
|
10065
10848
|
amount?: string | undefined;
|
|
10066
10849
|
valueInCurrency?: string | undefined;
|
|
@@ -10167,7 +10950,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
10167
10950
|
usd?: string | undefined;
|
|
10168
10951
|
valueInCurrency?: string | undefined;
|
|
10169
10952
|
} | undefined;
|
|
10170
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
10953
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
10171
10954
|
includedTxFees?: {
|
|
10172
10955
|
amount?: string | undefined;
|
|
10173
10956
|
valueInCurrency?: string | undefined;
|
|
@@ -10270,7 +11053,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
10270
11053
|
usd?: string | undefined;
|
|
10271
11054
|
valueInCurrency?: string | undefined;
|
|
10272
11055
|
} | undefined;
|
|
10273
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
11056
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
10274
11057
|
includedTxFees?: {
|
|
10275
11058
|
amount?: string | undefined;
|
|
10276
11059
|
valueInCurrency?: string | undefined;
|
|
@@ -10382,7 +11165,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
10382
11165
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
10383
11166
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
10384
11167
|
participateInMetaMetrics: boolean;
|
|
10385
|
-
} & RemoteFeatureFlagControllerState) => {
|
|
11168
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => {
|
|
10386
11169
|
includedTxFees?: {
|
|
10387
11170
|
amount?: string | undefined;
|
|
10388
11171
|
valueInCurrency?: string | undefined;
|
|
@@ -10453,7 +11236,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
10453
11236
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
10454
11237
|
}>;
|
|
10455
11238
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
10456
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
11239
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
10457
11240
|
includedTxFees?: {
|
|
10458
11241
|
amount?: string | undefined;
|
|
10459
11242
|
valueInCurrency?: string | undefined;
|
|
@@ -10520,7 +11303,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
10520
11303
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
10521
11304
|
}>;
|
|
10522
11305
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
10523
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
11306
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
10524
11307
|
includedTxFees?: {
|
|
10525
11308
|
amount?: string | undefined;
|
|
10526
11309
|
valueInCurrency?: string | undefined;
|
|
@@ -10754,7 +11537,163 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
10754
11537
|
} & {
|
|
10755
11538
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
10756
11539
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
10757
|
-
}, ({ quoteRequest }: BridgeAppState) => Partial<import("./types.cjs").GenericQuoteRequest>[]];
|
|
11540
|
+
}, ({ quoteRequest }: BridgeAppState) => Partial<import("./types.cjs").GenericQuoteRequest>[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
11541
|
+
recomputations: () => number;
|
|
11542
|
+
resetRecomputations: () => void;
|
|
11543
|
+
dependencyRecomputations: () => number;
|
|
11544
|
+
resetDependencyRecomputations: () => void;
|
|
11545
|
+
} & {
|
|
11546
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
11547
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
11548
|
+
}, ((state: BridgeControllerState & {
|
|
11549
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
11550
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
11551
|
+
participateInMetaMetrics: boolean;
|
|
11552
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => DeepPartial<QuoteResponse>[]) & {
|
|
11553
|
+
clearCache: () => void;
|
|
11554
|
+
resultsCount: () => number;
|
|
11555
|
+
resetResultsCount: () => void;
|
|
11556
|
+
} & {
|
|
11557
|
+
resultFunc: (resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[];
|
|
11558
|
+
memoizedResultFunc: ((resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[]) & {
|
|
11559
|
+
clearCache: () => void;
|
|
11560
|
+
resultsCount: () => number;
|
|
11561
|
+
resetResultsCount: () => void;
|
|
11562
|
+
};
|
|
11563
|
+
lastResult: () => DeepPartial<QuoteResponse>[];
|
|
11564
|
+
dependencies: [({ quotes }: BridgeAppState) => QuoteResponse[], ((state: BridgeControllerState & {
|
|
11565
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
11566
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
11567
|
+
participateInMetaMetrics: boolean;
|
|
11568
|
+
} & RemoteFeatureFlagControllerState) => string | undefined) & {
|
|
11569
|
+
clearCache: () => void;
|
|
11570
|
+
resultsCount: () => number;
|
|
11571
|
+
resetResultsCount: () => void;
|
|
11572
|
+
} & {
|
|
11573
|
+
resultFunc: (resultFuncArgs_0: {
|
|
11574
|
+
currencyRates: Record<string, {
|
|
11575
|
+
conversionDate: number | null;
|
|
11576
|
+
conversionRate: number | null;
|
|
11577
|
+
usdConversionRate: number | null;
|
|
11578
|
+
}>;
|
|
11579
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
11580
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
11581
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
11582
|
+
}>;
|
|
11583
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
11584
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined;
|
|
11585
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
11586
|
+
currencyRates: Record<string, {
|
|
11587
|
+
conversionDate: number | null;
|
|
11588
|
+
conversionRate: number | null;
|
|
11589
|
+
usdConversionRate: number | null;
|
|
11590
|
+
}>;
|
|
11591
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
11592
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
11593
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
11594
|
+
}>;
|
|
11595
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
11596
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined) & {
|
|
11597
|
+
clearCache: () => void;
|
|
11598
|
+
resultsCount: () => number;
|
|
11599
|
+
resetResultsCount: () => void;
|
|
11600
|
+
};
|
|
11601
|
+
lastResult: () => string | undefined;
|
|
11602
|
+
dependencies: [((state: BridgeControllerState & {
|
|
11603
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
11604
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
11605
|
+
participateInMetaMetrics: boolean;
|
|
11606
|
+
} & RemoteFeatureFlagControllerState) => {
|
|
11607
|
+
currencyRates: Record<string, {
|
|
11608
|
+
conversionDate: number | null;
|
|
11609
|
+
conversionRate: number | null;
|
|
11610
|
+
usdConversionRate: number | null;
|
|
11611
|
+
}>;
|
|
11612
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
11613
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
11614
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
11615
|
+
}>;
|
|
11616
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
11617
|
+
}) & {
|
|
11618
|
+
clearCache: () => void;
|
|
11619
|
+
resultsCount: () => number;
|
|
11620
|
+
resetResultsCount: () => void;
|
|
11621
|
+
} & {
|
|
11622
|
+
resultFunc: (resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
11623
|
+
conversionDate: number | null;
|
|
11624
|
+
conversionRate: number | null;
|
|
11625
|
+
usdConversionRate: number | null;
|
|
11626
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
11627
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
11628
|
+
}>) => {
|
|
11629
|
+
currencyRates: Record<string, {
|
|
11630
|
+
conversionDate: number | null;
|
|
11631
|
+
conversionRate: number | null;
|
|
11632
|
+
usdConversionRate: number | null;
|
|
11633
|
+
}>;
|
|
11634
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
11635
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
11636
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
11637
|
+
}>;
|
|
11638
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
11639
|
+
};
|
|
11640
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
11641
|
+
conversionDate: number | null;
|
|
11642
|
+
conversionRate: number | null;
|
|
11643
|
+
usdConversionRate: number | null;
|
|
11644
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
11645
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
11646
|
+
}>) => {
|
|
11647
|
+
currencyRates: Record<string, {
|
|
11648
|
+
conversionDate: number | null;
|
|
11649
|
+
conversionRate: number | null;
|
|
11650
|
+
usdConversionRate: number | null;
|
|
11651
|
+
}>;
|
|
11652
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
11653
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
11654
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
11655
|
+
}>;
|
|
11656
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
11657
|
+
}) & {
|
|
11658
|
+
clearCache: () => void;
|
|
11659
|
+
resultsCount: () => number;
|
|
11660
|
+
resetResultsCount: () => void;
|
|
11661
|
+
};
|
|
11662
|
+
lastResult: () => {
|
|
11663
|
+
currencyRates: Record<string, {
|
|
11664
|
+
conversionDate: number | null;
|
|
11665
|
+
conversionRate: number | null;
|
|
11666
|
+
usdConversionRate: number | null;
|
|
11667
|
+
}>;
|
|
11668
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
11669
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
11670
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
11671
|
+
}>;
|
|
11672
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
11673
|
+
};
|
|
11674
|
+
dependencies: [(state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, (state: BridgeAppState) => Record<string, {
|
|
11675
|
+
conversionDate: number | null;
|
|
11676
|
+
conversionRate: number | null;
|
|
11677
|
+
usdConversionRate: number | null;
|
|
11678
|
+
}>, (state: BridgeAppState) => Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, (state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
11679
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
11680
|
+
}>];
|
|
11681
|
+
recomputations: () => number;
|
|
11682
|
+
resetRecomputations: () => void;
|
|
11683
|
+
dependencyRecomputations: () => number;
|
|
11684
|
+
resetDependencyRecomputations: () => void;
|
|
11685
|
+
} & {
|
|
11686
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
11687
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
11688
|
+
}, ({ quoteRequest }: BridgeAppState) => `${string}:${string}/${string}:${string}`];
|
|
11689
|
+
recomputations: () => number;
|
|
11690
|
+
resetRecomputations: () => void;
|
|
11691
|
+
dependencyRecomputations: () => number;
|
|
11692
|
+
resetDependencyRecomputations: () => void;
|
|
11693
|
+
} & {
|
|
11694
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
11695
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
11696
|
+
}, (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
10758
11697
|
recomputations: () => number;
|
|
10759
11698
|
resetRecomputations: () => void;
|
|
10760
11699
|
dependencyRecomputations: () => number;
|
|
@@ -10762,7 +11701,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
10762
11701
|
} & {
|
|
10763
11702
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
10764
11703
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
10765
|
-
}, ({ quotes }: BridgeAppState) => QuoteResponse[]];
|
|
11704
|
+
}, ({ quotes }: BridgeAppState) => QuoteResponse[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
10766
11705
|
recomputations: () => number;
|
|
10767
11706
|
resetRecomputations: () => void;
|
|
10768
11707
|
dependencyRecomputations: () => number;
|
|
@@ -11598,7 +12537,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
11598
12537
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
11599
12538
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
11600
12539
|
participateInMetaMetrics: boolean;
|
|
11601
|
-
} & RemoteFeatureFlagControllerState) => (QuoteResponse & {
|
|
12540
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => (QuoteResponse & {
|
|
11602
12541
|
includedTxFees?: {
|
|
11603
12542
|
amount?: string | undefined;
|
|
11604
12543
|
valueInCurrency?: string | undefined;
|
|
@@ -11705,7 +12644,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
11705
12644
|
usd?: string | undefined;
|
|
11706
12645
|
valueInCurrency?: string | undefined;
|
|
11707
12646
|
} | undefined;
|
|
11708
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
12647
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
11709
12648
|
includedTxFees?: {
|
|
11710
12649
|
amount?: string | undefined;
|
|
11711
12650
|
valueInCurrency?: string | undefined;
|
|
@@ -11808,7 +12747,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
11808
12747
|
usd?: string | undefined;
|
|
11809
12748
|
valueInCurrency?: string | undefined;
|
|
11810
12749
|
} | undefined;
|
|
11811
|
-
}[], resultFuncArgs_1: QuoteResponse[]) => (QuoteResponse & {
|
|
12750
|
+
}[], resultFuncArgs_1: DeepPartial<QuoteResponse>[], resultFuncArgs_2: QuoteResponse[], resultFuncArgs_3: QuoteMetadataMigrationPhase) => (QuoteResponse & {
|
|
11812
12751
|
includedTxFees?: {
|
|
11813
12752
|
amount?: string | undefined;
|
|
11814
12753
|
valueInCurrency?: string | undefined;
|
|
@@ -11920,7 +12859,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
11920
12859
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
11921
12860
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
11922
12861
|
participateInMetaMetrics: boolean;
|
|
11923
|
-
} & RemoteFeatureFlagControllerState) => {
|
|
12862
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => {
|
|
11924
12863
|
includedTxFees?: {
|
|
11925
12864
|
amount?: string | undefined;
|
|
11926
12865
|
valueInCurrency?: string | undefined;
|
|
@@ -11991,7 +12930,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
11991
12930
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
11992
12931
|
}>;
|
|
11993
12932
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
11994
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
12933
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
11995
12934
|
includedTxFees?: {
|
|
11996
12935
|
amount?: string | undefined;
|
|
11997
12936
|
valueInCurrency?: string | undefined;
|
|
@@ -12058,7 +12997,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
12058
12997
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
12059
12998
|
}>;
|
|
12060
12999
|
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
12061
|
-
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[]) => {
|
|
13000
|
+
}, resultFuncArgs_3: Partial<import("./types.cjs").GenericQuoteRequest>[], resultFuncArgs_4: QuoteMetadataMigrationPhase) => {
|
|
12062
13001
|
includedTxFees?: {
|
|
12063
13002
|
amount?: string | undefined;
|
|
12064
13003
|
valueInCurrency?: string | undefined;
|
|
@@ -12292,7 +13231,163 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
12292
13231
|
} & {
|
|
12293
13232
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
12294
13233
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
12295
|
-
}, ({ quoteRequest }: BridgeAppState) => Partial<import("./types.cjs").GenericQuoteRequest>[]];
|
|
13234
|
+
}, ({ quoteRequest }: BridgeAppState) => Partial<import("./types.cjs").GenericQuoteRequest>[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
13235
|
+
recomputations: () => number;
|
|
13236
|
+
resetRecomputations: () => void;
|
|
13237
|
+
dependencyRecomputations: () => number;
|
|
13238
|
+
resetDependencyRecomputations: () => void;
|
|
13239
|
+
} & {
|
|
13240
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
13241
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
13242
|
+
}, ((state: BridgeControllerState & {
|
|
13243
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
13244
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
13245
|
+
participateInMetaMetrics: boolean;
|
|
13246
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => DeepPartial<QuoteResponse>[]) & {
|
|
13247
|
+
clearCache: () => void;
|
|
13248
|
+
resultsCount: () => number;
|
|
13249
|
+
resetResultsCount: () => void;
|
|
13250
|
+
} & {
|
|
13251
|
+
resultFunc: (resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[];
|
|
13252
|
+
memoizedResultFunc: ((resultFuncArgs_0: QuoteResponse[], resultFuncArgs_1: string | undefined, resultFuncArgs_2: QuoteMetadataMigrationPhase) => DeepPartial<QuoteResponse>[]) & {
|
|
13253
|
+
clearCache: () => void;
|
|
13254
|
+
resultsCount: () => number;
|
|
13255
|
+
resetResultsCount: () => void;
|
|
13256
|
+
};
|
|
13257
|
+
lastResult: () => DeepPartial<QuoteResponse>[];
|
|
13258
|
+
dependencies: [({ quotes }: BridgeAppState) => QuoteResponse[], ((state: BridgeControllerState & {
|
|
13259
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
13260
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
13261
|
+
participateInMetaMetrics: boolean;
|
|
13262
|
+
} & RemoteFeatureFlagControllerState) => string | undefined) & {
|
|
13263
|
+
clearCache: () => void;
|
|
13264
|
+
resultsCount: () => number;
|
|
13265
|
+
resetResultsCount: () => void;
|
|
13266
|
+
} & {
|
|
13267
|
+
resultFunc: (resultFuncArgs_0: {
|
|
13268
|
+
currencyRates: Record<string, {
|
|
13269
|
+
conversionDate: number | null;
|
|
13270
|
+
conversionRate: number | null;
|
|
13271
|
+
usdConversionRate: number | null;
|
|
13272
|
+
}>;
|
|
13273
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
13274
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
13275
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
13276
|
+
}>;
|
|
13277
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
13278
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined;
|
|
13279
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
13280
|
+
currencyRates: Record<string, {
|
|
13281
|
+
conversionDate: number | null;
|
|
13282
|
+
conversionRate: number | null;
|
|
13283
|
+
usdConversionRate: number | null;
|
|
13284
|
+
}>;
|
|
13285
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
13286
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
13287
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
13288
|
+
}>;
|
|
13289
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
13290
|
+
}, resultFuncArgs_1: `${string}:${string}/${string}:${string}`) => string | undefined) & {
|
|
13291
|
+
clearCache: () => void;
|
|
13292
|
+
resultsCount: () => number;
|
|
13293
|
+
resetResultsCount: () => void;
|
|
13294
|
+
};
|
|
13295
|
+
lastResult: () => string | undefined;
|
|
13296
|
+
dependencies: [((state: BridgeControllerState & {
|
|
13297
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
13298
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
13299
|
+
participateInMetaMetrics: boolean;
|
|
13300
|
+
} & RemoteFeatureFlagControllerState) => {
|
|
13301
|
+
currencyRates: Record<string, {
|
|
13302
|
+
conversionDate: number | null;
|
|
13303
|
+
conversionRate: number | null;
|
|
13304
|
+
usdConversionRate: number | null;
|
|
13305
|
+
}>;
|
|
13306
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
13307
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
13308
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
13309
|
+
}>;
|
|
13310
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
13311
|
+
}) & {
|
|
13312
|
+
clearCache: () => void;
|
|
13313
|
+
resultsCount: () => number;
|
|
13314
|
+
resetResultsCount: () => void;
|
|
13315
|
+
} & {
|
|
13316
|
+
resultFunc: (resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
13317
|
+
conversionDate: number | null;
|
|
13318
|
+
conversionRate: number | null;
|
|
13319
|
+
usdConversionRate: number | null;
|
|
13320
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
13321
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
13322
|
+
}>) => {
|
|
13323
|
+
currencyRates: Record<string, {
|
|
13324
|
+
conversionDate: number | null;
|
|
13325
|
+
conversionRate: number | null;
|
|
13326
|
+
usdConversionRate: number | null;
|
|
13327
|
+
}>;
|
|
13328
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
13329
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
13330
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
13331
|
+
}>;
|
|
13332
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
13333
|
+
};
|
|
13334
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, resultFuncArgs_1: Record<string, {
|
|
13335
|
+
conversionDate: number | null;
|
|
13336
|
+
conversionRate: number | null;
|
|
13337
|
+
usdConversionRate: number | null;
|
|
13338
|
+
}>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, resultFuncArgs_3: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
13339
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
13340
|
+
}>) => {
|
|
13341
|
+
currencyRates: Record<string, {
|
|
13342
|
+
conversionDate: number | null;
|
|
13343
|
+
conversionRate: number | null;
|
|
13344
|
+
usdConversionRate: number | null;
|
|
13345
|
+
}>;
|
|
13346
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
13347
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
13348
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
13349
|
+
}>;
|
|
13350
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
13351
|
+
}) & {
|
|
13352
|
+
clearCache: () => void;
|
|
13353
|
+
resultsCount: () => number;
|
|
13354
|
+
resetResultsCount: () => void;
|
|
13355
|
+
};
|
|
13356
|
+
lastResult: () => {
|
|
13357
|
+
currencyRates: Record<string, {
|
|
13358
|
+
conversionDate: number | null;
|
|
13359
|
+
conversionRate: number | null;
|
|
13360
|
+
usdConversionRate: number | null;
|
|
13361
|
+
}>;
|
|
13362
|
+
marketData: Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>;
|
|
13363
|
+
conversionRates: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
13364
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
13365
|
+
}>;
|
|
13366
|
+
assetExchangeRates: Record<`${string}:${string}/${string}:${string}`, ExchangeRate>;
|
|
13367
|
+
};
|
|
13368
|
+
dependencies: [(state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, ExchangeRate>, (state: BridgeAppState) => Record<string, {
|
|
13369
|
+
conversionDate: number | null;
|
|
13370
|
+
conversionRate: number | null;
|
|
13371
|
+
usdConversionRate: number | null;
|
|
13372
|
+
}>, (state: BridgeAppState) => Record<`0x${string}`, Record<`0x${string}`, import("@metamask/assets-controllers").MarketDataDetails>>, (state: BridgeAppState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
13373
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
13374
|
+
}>];
|
|
13375
|
+
recomputations: () => number;
|
|
13376
|
+
resetRecomputations: () => void;
|
|
13377
|
+
dependencyRecomputations: () => number;
|
|
13378
|
+
resetDependencyRecomputations: () => void;
|
|
13379
|
+
} & {
|
|
13380
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
13381
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
13382
|
+
}, ({ quoteRequest }: BridgeAppState) => `${string}:${string}/${string}:${string}`];
|
|
13383
|
+
recomputations: () => number;
|
|
13384
|
+
resetRecomputations: () => void;
|
|
13385
|
+
dependencyRecomputations: () => number;
|
|
13386
|
+
resetDependencyRecomputations: () => void;
|
|
13387
|
+
} & {
|
|
13388
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
13389
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
13390
|
+
}, (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
12296
13391
|
recomputations: () => number;
|
|
12297
13392
|
resetRecomputations: () => void;
|
|
12298
13393
|
dependencyRecomputations: () => number;
|
|
@@ -12300,7 +13395,7 @@ export declare const selectBatchSellQuotes: ((state: BridgeControllerState & {
|
|
|
12300
13395
|
} & {
|
|
12301
13396
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
12302
13397
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
12303
|
-
}, ({ quotes }: BridgeAppState) => QuoteResponse[]];
|
|
13398
|
+
}, ({ quotes }: BridgeAppState) => QuoteResponse[], (_: BridgeAppState, { migrationPhase }: BridgeQuotesClientParams) => QuoteMetadataMigrationPhase];
|
|
12304
13399
|
recomputations: () => number;
|
|
12305
13400
|
resetRecomputations: () => void;
|
|
12306
13401
|
dependencyRecomputations: () => number;
|