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