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