@metamask/bridge-controller 69.0.1 → 69.1.1
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 +22 -1
- package/dist/selectors.cjs +5 -4
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.d.cts +3324 -60
- package/dist/selectors.d.cts.map +1 -1
- package/dist/selectors.d.mts +3324 -60
- package/dist/selectors.d.mts.map +1 -1
- package/dist/selectors.mjs +5 -4
- package/dist/selectors.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +20 -5
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +20 -5
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/utils/metrics/types.cjs.map +1 -1
- package/dist/utils/metrics/types.d.cts +14 -0
- package/dist/utils/metrics/types.d.cts.map +1 -1
- package/dist/utils/metrics/types.d.mts +14 -0
- package/dist/utils/metrics/types.d.mts.map +1 -1
- package/dist/utils/metrics/types.mjs.map +1 -1
- package/package.json +5 -5
package/dist/selectors.d.mts
CHANGED
|
@@ -922,7 +922,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
922
922
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
923
923
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
924
924
|
participateInMetaMetrics: boolean;
|
|
925
|
-
} & RemoteFeatureFlagControllerState, params_0:
|
|
925
|
+
} & RemoteFeatureFlagControllerState, params_0: any) => {
|
|
926
926
|
sortedQuotes: ({
|
|
927
927
|
quote: {
|
|
928
928
|
srcChainId: number;
|
|
@@ -5789,8 +5789,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
5789
5789
|
};
|
|
5790
5790
|
swapRate: string;
|
|
5791
5791
|
/**
|
|
5792
|
-
This is the amount required to submit the transactions
|
|
5793
|
-
Includes the relayer fee or other native fees
|
|
5792
|
+
This is the amount required to submit all the transactions.
|
|
5793
|
+
Includes the relayer fee or other native fees.
|
|
5794
5794
|
Should be used for balance checks and tx submission.
|
|
5795
5795
|
*/
|
|
5796
5796
|
totalNetworkFee: {
|
|
@@ -5805,7 +5805,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
5805
5805
|
};
|
|
5806
5806
|
/**
|
|
5807
5807
|
This contains gas fee estimates for the bridge transaction
|
|
5808
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
5808
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
5809
5809
|
Should only be used for display purposes.
|
|
5810
5810
|
*/
|
|
5811
5811
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -6306,8 +6306,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
6306
6306
|
};
|
|
6307
6307
|
swapRate: string;
|
|
6308
6308
|
/**
|
|
6309
|
-
This is the amount required to submit the transactions
|
|
6310
|
-
Includes the relayer fee or other native fees
|
|
6309
|
+
This is the amount required to submit all the transactions.
|
|
6310
|
+
Includes the relayer fee or other native fees.
|
|
6311
6311
|
Should be used for balance checks and tx submission.
|
|
6312
6312
|
*/
|
|
6313
6313
|
totalNetworkFee: {
|
|
@@ -6322,7 +6322,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
6322
6322
|
};
|
|
6323
6323
|
/**
|
|
6324
6324
|
This contains gas fee estimates for the bridge transaction
|
|
6325
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
6325
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
6326
6326
|
Should only be used for display purposes.
|
|
6327
6327
|
*/
|
|
6328
6328
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -7084,8 +7084,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
7084
7084
|
};
|
|
7085
7085
|
swapRate: string;
|
|
7086
7086
|
/**
|
|
7087
|
-
This is the amount required to submit the transactions
|
|
7088
|
-
Includes the relayer fee or other native fees
|
|
7087
|
+
This is the amount required to submit all the transactions.
|
|
7088
|
+
Includes the relayer fee or other native fees.
|
|
7089
7089
|
Should be used for balance checks and tx submission.
|
|
7090
7090
|
*/
|
|
7091
7091
|
totalNetworkFee: {
|
|
@@ -7100,7 +7100,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
7100
7100
|
};
|
|
7101
7101
|
/**
|
|
7102
7102
|
This contains gas fee estimates for the bridge transaction
|
|
7103
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
7103
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
7104
7104
|
Should only be used for display purposes.
|
|
7105
7105
|
*/
|
|
7106
7106
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -7609,8 +7609,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
7609
7609
|
};
|
|
7610
7610
|
swapRate: string;
|
|
7611
7611
|
/**
|
|
7612
|
-
This is the amount required to submit the transactions
|
|
7613
|
-
Includes the relayer fee or other native fees
|
|
7612
|
+
This is the amount required to submit all the transactions.
|
|
7613
|
+
Includes the relayer fee or other native fees.
|
|
7614
7614
|
Should be used for balance checks and tx submission.
|
|
7615
7615
|
*/
|
|
7616
7616
|
totalNetworkFee: {
|
|
@@ -7625,7 +7625,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
7625
7625
|
};
|
|
7626
7626
|
/**
|
|
7627
7627
|
This contains gas fee estimates for the bridge transaction
|
|
7628
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
7628
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
7629
7629
|
Should only be used for display purposes.
|
|
7630
7630
|
*/
|
|
7631
7631
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -8130,8 +8130,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
8130
8130
|
};
|
|
8131
8131
|
swapRate: string;
|
|
8132
8132
|
/**
|
|
8133
|
-
This is the amount required to submit the transactions
|
|
8134
|
-
Includes the relayer fee or other native fees
|
|
8133
|
+
This is the amount required to submit all the transactions.
|
|
8134
|
+
Includes the relayer fee or other native fees.
|
|
8135
8135
|
Should be used for balance checks and tx submission.
|
|
8136
8136
|
*/
|
|
8137
8137
|
totalNetworkFee: {
|
|
@@ -8146,7 +8146,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
8146
8146
|
};
|
|
8147
8147
|
/**
|
|
8148
8148
|
This contains gas fee estimates for the bridge transaction
|
|
8149
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
8149
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
8150
8150
|
Should only be used for display purposes.
|
|
8151
8151
|
*/
|
|
8152
8152
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -8399,8 +8399,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
8399
8399
|
};
|
|
8400
8400
|
swapRate: string;
|
|
8401
8401
|
/**
|
|
8402
|
-
This is the amount required to submit the transactions
|
|
8403
|
-
Includes the relayer fee or other native fees
|
|
8402
|
+
This is the amount required to submit all the transactions.
|
|
8403
|
+
Includes the relayer fee or other native fees.
|
|
8404
8404
|
Should be used for balance checks and tx submission.
|
|
8405
8405
|
*/
|
|
8406
8406
|
totalNetworkFee: {
|
|
@@ -8415,7 +8415,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
8415
8415
|
};
|
|
8416
8416
|
/**
|
|
8417
8417
|
This contains gas fee estimates for the bridge transaction
|
|
8418
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
8418
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
8419
8419
|
Should only be used for display purposes.
|
|
8420
8420
|
*/
|
|
8421
8421
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -10833,8 +10833,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
10833
10833
|
};
|
|
10834
10834
|
swapRate: string;
|
|
10835
10835
|
/**
|
|
10836
|
-
This is the amount required to submit the transactions
|
|
10837
|
-
Includes the relayer fee or other native fees
|
|
10836
|
+
This is the amount required to submit all the transactions.
|
|
10837
|
+
Includes the relayer fee or other native fees.
|
|
10838
10838
|
Should be used for balance checks and tx submission.
|
|
10839
10839
|
*/
|
|
10840
10840
|
totalNetworkFee: {
|
|
@@ -10849,7 +10849,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
10849
10849
|
};
|
|
10850
10850
|
/**
|
|
10851
10851
|
This contains gas fee estimates for the bridge transaction
|
|
10852
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
10852
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
10853
10853
|
Should only be used for display purposes.
|
|
10854
10854
|
*/
|
|
10855
10855
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -11350,8 +11350,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
11350
11350
|
};
|
|
11351
11351
|
swapRate: string;
|
|
11352
11352
|
/**
|
|
11353
|
-
This is the amount required to submit the transactions
|
|
11354
|
-
Includes the relayer fee or other native fees
|
|
11353
|
+
This is the amount required to submit all the transactions.
|
|
11354
|
+
Includes the relayer fee or other native fees.
|
|
11355
11355
|
Should be used for balance checks and tx submission.
|
|
11356
11356
|
*/
|
|
11357
11357
|
totalNetworkFee: {
|
|
@@ -11366,7 +11366,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
11366
11366
|
};
|
|
11367
11367
|
/**
|
|
11368
11368
|
This contains gas fee estimates for the bridge transaction
|
|
11369
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
11369
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
11370
11370
|
Should only be used for display purposes.
|
|
11371
11371
|
*/
|
|
11372
11372
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -12128,8 +12128,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
12128
12128
|
};
|
|
12129
12129
|
swapRate: string;
|
|
12130
12130
|
/**
|
|
12131
|
-
This is the amount required to submit the transactions
|
|
12132
|
-
Includes the relayer fee or other native fees
|
|
12131
|
+
This is the amount required to submit all the transactions.
|
|
12132
|
+
Includes the relayer fee or other native fees.
|
|
12133
12133
|
Should be used for balance checks and tx submission.
|
|
12134
12134
|
*/
|
|
12135
12135
|
totalNetworkFee: {
|
|
@@ -12144,7 +12144,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
12144
12144
|
};
|
|
12145
12145
|
/**
|
|
12146
12146
|
This contains gas fee estimates for the bridge transaction
|
|
12147
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
12147
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
12148
12148
|
Should only be used for display purposes.
|
|
12149
12149
|
*/
|
|
12150
12150
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -12653,8 +12653,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
12653
12653
|
};
|
|
12654
12654
|
swapRate: string;
|
|
12655
12655
|
/**
|
|
12656
|
-
This is the amount required to submit the transactions
|
|
12657
|
-
Includes the relayer fee or other native fees
|
|
12656
|
+
This is the amount required to submit all the transactions.
|
|
12657
|
+
Includes the relayer fee or other native fees.
|
|
12658
12658
|
Should be used for balance checks and tx submission.
|
|
12659
12659
|
*/
|
|
12660
12660
|
totalNetworkFee: {
|
|
@@ -12669,7 +12669,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
12669
12669
|
};
|
|
12670
12670
|
/**
|
|
12671
12671
|
This contains gas fee estimates for the bridge transaction
|
|
12672
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
12672
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
12673
12673
|
Should only be used for display purposes.
|
|
12674
12674
|
*/
|
|
12675
12675
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -13174,8 +13174,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
13174
13174
|
};
|
|
13175
13175
|
swapRate: string;
|
|
13176
13176
|
/**
|
|
13177
|
-
This is the amount required to submit the transactions
|
|
13178
|
-
Includes the relayer fee or other native fees
|
|
13177
|
+
This is the amount required to submit all the transactions.
|
|
13178
|
+
Includes the relayer fee or other native fees.
|
|
13179
13179
|
Should be used for balance checks and tx submission.
|
|
13180
13180
|
*/
|
|
13181
13181
|
totalNetworkFee: {
|
|
@@ -13190,7 +13190,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
13190
13190
|
};
|
|
13191
13191
|
/**
|
|
13192
13192
|
This contains gas fee estimates for the bridge transaction
|
|
13193
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
13193
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
13194
13194
|
Should only be used for display purposes.
|
|
13195
13195
|
*/
|
|
13196
13196
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -13443,8 +13443,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
13443
13443
|
};
|
|
13444
13444
|
swapRate: string;
|
|
13445
13445
|
/**
|
|
13446
|
-
This is the amount required to submit the transactions
|
|
13447
|
-
Includes the relayer fee or other native fees
|
|
13446
|
+
This is the amount required to submit all the transactions.
|
|
13447
|
+
Includes the relayer fee or other native fees.
|
|
13448
13448
|
Should be used for balance checks and tx submission.
|
|
13449
13449
|
*/
|
|
13450
13450
|
totalNetworkFee: {
|
|
@@ -13459,7 +13459,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
13459
13459
|
};
|
|
13460
13460
|
/**
|
|
13461
13461
|
This contains gas fee estimates for the bridge transaction
|
|
13462
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
13462
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
13463
13463
|
Should only be used for display purposes.
|
|
13464
13464
|
*/
|
|
13465
13465
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -14082,7 +14082,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
14082
14082
|
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
14083
14083
|
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
14084
14084
|
participateInMetaMetrics: boolean;
|
|
14085
|
-
} & RemoteFeatureFlagControllerState, params_0:
|
|
14085
|
+
} & RemoteFeatureFlagControllerState, params_0: any) => ({
|
|
14086
14086
|
quote: {
|
|
14087
14087
|
srcChainId: number;
|
|
14088
14088
|
destChainId: number;
|
|
@@ -14843,7 +14843,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
14843
14843
|
gasLimit: number | null;
|
|
14844
14844
|
effectiveGas?: number | undefined;
|
|
14845
14845
|
} | undefined;
|
|
14846
|
-
} & QuoteMetadata)
|
|
14846
|
+
} & QuoteMetadata)[], resultFuncArgs_2: any) => ({
|
|
14847
14847
|
quote: {
|
|
14848
14848
|
srcChainId: number;
|
|
14849
14849
|
destChainId: number;
|
|
@@ -15600,7 +15600,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
15600
15600
|
gasLimit: number | null;
|
|
15601
15601
|
effectiveGas?: number | undefined;
|
|
15602
15602
|
} | undefined;
|
|
15603
|
-
} & QuoteMetadata)
|
|
15603
|
+
} & QuoteMetadata)[], resultFuncArgs_2: any) => ({
|
|
15604
15604
|
quote: {
|
|
15605
15605
|
srcChainId: number;
|
|
15606
15606
|
destChainId: number;
|
|
@@ -17917,8 +17917,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
17917
17917
|
};
|
|
17918
17918
|
swapRate: string;
|
|
17919
17919
|
/**
|
|
17920
|
-
This is the amount required to submit the transactions
|
|
17921
|
-
Includes the relayer fee or other native fees
|
|
17920
|
+
This is the amount required to submit all the transactions.
|
|
17921
|
+
Includes the relayer fee or other native fees.
|
|
17922
17922
|
Should be used for balance checks and tx submission.
|
|
17923
17923
|
*/
|
|
17924
17924
|
totalNetworkFee: {
|
|
@@ -17933,7 +17933,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
17933
17933
|
};
|
|
17934
17934
|
/**
|
|
17935
17935
|
This contains gas fee estimates for the bridge transaction
|
|
17936
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
17936
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
17937
17937
|
Should only be used for display purposes.
|
|
17938
17938
|
*/
|
|
17939
17939
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -18434,8 +18434,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
18434
18434
|
};
|
|
18435
18435
|
swapRate: string;
|
|
18436
18436
|
/**
|
|
18437
|
-
This is the amount required to submit the transactions
|
|
18438
|
-
Includes the relayer fee or other native fees
|
|
18437
|
+
This is the amount required to submit all the transactions.
|
|
18438
|
+
Includes the relayer fee or other native fees.
|
|
18439
18439
|
Should be used for balance checks and tx submission.
|
|
18440
18440
|
*/
|
|
18441
18441
|
totalNetworkFee: {
|
|
@@ -18450,7 +18450,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
18450
18450
|
};
|
|
18451
18451
|
/**
|
|
18452
18452
|
This contains gas fee estimates for the bridge transaction
|
|
18453
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
18453
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
18454
18454
|
Should only be used for display purposes.
|
|
18455
18455
|
*/
|
|
18456
18456
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -19212,8 +19212,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
19212
19212
|
};
|
|
19213
19213
|
swapRate: string;
|
|
19214
19214
|
/**
|
|
19215
|
-
This is the amount required to submit the transactions
|
|
19216
|
-
Includes the relayer fee or other native fees
|
|
19215
|
+
This is the amount required to submit all the transactions.
|
|
19216
|
+
Includes the relayer fee or other native fees.
|
|
19217
19217
|
Should be used for balance checks and tx submission.
|
|
19218
19218
|
*/
|
|
19219
19219
|
totalNetworkFee: {
|
|
@@ -19228,7 +19228,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
19228
19228
|
};
|
|
19229
19229
|
/**
|
|
19230
19230
|
This contains gas fee estimates for the bridge transaction
|
|
19231
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
19231
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
19232
19232
|
Should only be used for display purposes.
|
|
19233
19233
|
*/
|
|
19234
19234
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -19737,8 +19737,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
19737
19737
|
};
|
|
19738
19738
|
swapRate: string;
|
|
19739
19739
|
/**
|
|
19740
|
-
This is the amount required to submit the transactions
|
|
19741
|
-
Includes the relayer fee or other native fees
|
|
19740
|
+
This is the amount required to submit all the transactions.
|
|
19741
|
+
Includes the relayer fee or other native fees.
|
|
19742
19742
|
Should be used for balance checks and tx submission.
|
|
19743
19743
|
*/
|
|
19744
19744
|
totalNetworkFee: {
|
|
@@ -19753,7 +19753,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
19753
19753
|
};
|
|
19754
19754
|
/**
|
|
19755
19755
|
This contains gas fee estimates for the bridge transaction
|
|
19756
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
19756
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
19757
19757
|
Should only be used for display purposes.
|
|
19758
19758
|
*/
|
|
19759
19759
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -20258,8 +20258,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
20258
20258
|
};
|
|
20259
20259
|
swapRate: string;
|
|
20260
20260
|
/**
|
|
20261
|
-
This is the amount required to submit the transactions
|
|
20262
|
-
Includes the relayer fee or other native fees
|
|
20261
|
+
This is the amount required to submit all the transactions.
|
|
20262
|
+
Includes the relayer fee or other native fees.
|
|
20263
20263
|
Should be used for balance checks and tx submission.
|
|
20264
20264
|
*/
|
|
20265
20265
|
totalNetworkFee: {
|
|
@@ -20274,7 +20274,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
20274
20274
|
};
|
|
20275
20275
|
/**
|
|
20276
20276
|
This contains gas fee estimates for the bridge transaction
|
|
20277
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
20277
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
20278
20278
|
Should only be used for display purposes.
|
|
20279
20279
|
*/
|
|
20280
20280
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -20527,8 +20527,8 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
20527
20527
|
};
|
|
20528
20528
|
swapRate: string;
|
|
20529
20529
|
/**
|
|
20530
|
-
This is the amount required to submit the transactions
|
|
20531
|
-
Includes the relayer fee or other native fees
|
|
20530
|
+
This is the amount required to submit all the transactions.
|
|
20531
|
+
Includes the relayer fee or other native fees.
|
|
20532
20532
|
Should be used for balance checks and tx submission.
|
|
20533
20533
|
*/
|
|
20534
20534
|
totalNetworkFee: {
|
|
@@ -20543,7 +20543,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
20543
20543
|
};
|
|
20544
20544
|
/**
|
|
20545
20545
|
This contains gas fee estimates for the bridge transaction
|
|
20546
|
-
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
|
|
20546
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
20547
20547
|
Should only be used for display purposes.
|
|
20548
20548
|
*/
|
|
20549
20549
|
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
@@ -21162,7 +21162,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
21162
21162
|
} & {
|
|
21163
21163
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
21164
21164
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
21165
|
-
}, (
|
|
21165
|
+
}, ((state: BridgeControllerState & {
|
|
21166
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
21167
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
21168
|
+
participateInMetaMetrics: boolean;
|
|
21169
|
+
} & RemoteFeatureFlagControllerState, params_0: BridgeQuotesClientParams) => ({
|
|
21166
21170
|
quote: {
|
|
21167
21171
|
srcChainId: number;
|
|
21168
21172
|
destChainId: number;
|
|
@@ -21414,7 +21418,3267 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
|
|
|
21414
21418
|
gasLimit: number | null;
|
|
21415
21419
|
effectiveGas?: number | undefined;
|
|
21416
21420
|
} | undefined;
|
|
21417
|
-
} & QuoteMetadata)
|
|
21421
|
+
} & QuoteMetadata)[]) & {
|
|
21422
|
+
clearCache: () => void;
|
|
21423
|
+
resultsCount: () => number;
|
|
21424
|
+
resetResultsCount: () => void;
|
|
21425
|
+
} & {
|
|
21426
|
+
resultFunc: (resultFuncArgs_0: {
|
|
21427
|
+
sentAmount: {
|
|
21428
|
+
amount: string;
|
|
21429
|
+
valueInCurrency: string | null;
|
|
21430
|
+
usd: string | null;
|
|
21431
|
+
};
|
|
21432
|
+
toTokenAmount: {
|
|
21433
|
+
amount: string;
|
|
21434
|
+
valueInCurrency: string | null;
|
|
21435
|
+
usd: string | null;
|
|
21436
|
+
};
|
|
21437
|
+
minToTokenAmount: {
|
|
21438
|
+
amount: string;
|
|
21439
|
+
valueInCurrency: string | null;
|
|
21440
|
+
usd: string | null;
|
|
21441
|
+
};
|
|
21442
|
+
swapRate: string;
|
|
21443
|
+
/**
|
|
21444
|
+
This is the amount required to submit all the transactions.
|
|
21445
|
+
Includes the relayer fee or other native fees.
|
|
21446
|
+
Should be used for balance checks and tx submission.
|
|
21447
|
+
*/
|
|
21448
|
+
totalNetworkFee: {
|
|
21449
|
+
amount: string;
|
|
21450
|
+
valueInCurrency: string | null;
|
|
21451
|
+
usd: string | null;
|
|
21452
|
+
};
|
|
21453
|
+
totalMaxNetworkFee: {
|
|
21454
|
+
amount: string;
|
|
21455
|
+
valueInCurrency: string | null;
|
|
21456
|
+
usd: string | null;
|
|
21457
|
+
};
|
|
21458
|
+
/**
|
|
21459
|
+
This contains gas fee estimates for the bridge transaction
|
|
21460
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
21461
|
+
Should only be used for display purposes.
|
|
21462
|
+
*/
|
|
21463
|
+
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
21464
|
+
adjustedReturn: {
|
|
21465
|
+
valueInCurrency: string | null;
|
|
21466
|
+
usd: string | null;
|
|
21467
|
+
};
|
|
21468
|
+
cost: {
|
|
21469
|
+
valueInCurrency: string | null;
|
|
21470
|
+
usd: string | null;
|
|
21471
|
+
};
|
|
21472
|
+
includedTxFees: {
|
|
21473
|
+
amount: string;
|
|
21474
|
+
valueInCurrency: string | null;
|
|
21475
|
+
usd: string | null;
|
|
21476
|
+
} | null;
|
|
21477
|
+
quote: {
|
|
21478
|
+
srcChainId: number;
|
|
21479
|
+
destChainId: number;
|
|
21480
|
+
srcAsset: {
|
|
21481
|
+
symbol: string;
|
|
21482
|
+
chainId: number;
|
|
21483
|
+
address: string;
|
|
21484
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21485
|
+
name: string;
|
|
21486
|
+
decimals: number;
|
|
21487
|
+
icon?: string | null | undefined;
|
|
21488
|
+
iconUrl?: string | null | undefined;
|
|
21489
|
+
};
|
|
21490
|
+
destAsset: {
|
|
21491
|
+
symbol: string;
|
|
21492
|
+
chainId: number;
|
|
21493
|
+
address: string;
|
|
21494
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21495
|
+
name: string;
|
|
21496
|
+
decimals: number;
|
|
21497
|
+
icon?: string | null | undefined;
|
|
21498
|
+
iconUrl?: string | null | undefined;
|
|
21499
|
+
};
|
|
21500
|
+
requestId: string;
|
|
21501
|
+
srcTokenAmount: string;
|
|
21502
|
+
destTokenAmount: string;
|
|
21503
|
+
minDestTokenAmount: string;
|
|
21504
|
+
feeData: {
|
|
21505
|
+
metabridge: {
|
|
21506
|
+
amount: string;
|
|
21507
|
+
asset: {
|
|
21508
|
+
symbol: string;
|
|
21509
|
+
chainId: number;
|
|
21510
|
+
address: string;
|
|
21511
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21512
|
+
name: string;
|
|
21513
|
+
decimals: number;
|
|
21514
|
+
icon?: string | null | undefined;
|
|
21515
|
+
iconUrl?: string | null | undefined;
|
|
21516
|
+
};
|
|
21517
|
+
};
|
|
21518
|
+
txFee?: ({
|
|
21519
|
+
amount: string;
|
|
21520
|
+
asset: {
|
|
21521
|
+
symbol: string;
|
|
21522
|
+
chainId: number;
|
|
21523
|
+
address: string;
|
|
21524
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21525
|
+
name: string;
|
|
21526
|
+
decimals: number;
|
|
21527
|
+
icon?: string | null | undefined;
|
|
21528
|
+
iconUrl?: string | null | undefined;
|
|
21529
|
+
};
|
|
21530
|
+
} & {
|
|
21531
|
+
maxFeePerGas: string;
|
|
21532
|
+
maxPriorityFeePerGas: string;
|
|
21533
|
+
}) | undefined;
|
|
21534
|
+
};
|
|
21535
|
+
bridgeId: string;
|
|
21536
|
+
bridges: string[];
|
|
21537
|
+
steps: {
|
|
21538
|
+
action: import(".").ActionTypes;
|
|
21539
|
+
srcChainId: number;
|
|
21540
|
+
srcAsset: {
|
|
21541
|
+
symbol: string;
|
|
21542
|
+
chainId: number;
|
|
21543
|
+
address: string;
|
|
21544
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21545
|
+
name: string;
|
|
21546
|
+
decimals: number;
|
|
21547
|
+
icon?: string | null | undefined;
|
|
21548
|
+
iconUrl?: string | null | undefined;
|
|
21549
|
+
};
|
|
21550
|
+
destAsset: {
|
|
21551
|
+
symbol: string;
|
|
21552
|
+
chainId: number;
|
|
21553
|
+
address: string;
|
|
21554
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21555
|
+
name: string;
|
|
21556
|
+
decimals: number;
|
|
21557
|
+
icon?: string | null | undefined;
|
|
21558
|
+
iconUrl?: string | null | undefined;
|
|
21559
|
+
};
|
|
21560
|
+
srcAmount: string;
|
|
21561
|
+
destAmount: string;
|
|
21562
|
+
protocol: {
|
|
21563
|
+
name: string;
|
|
21564
|
+
icon?: string | undefined;
|
|
21565
|
+
displayName?: string | undefined;
|
|
21566
|
+
};
|
|
21567
|
+
destChainId?: number | undefined;
|
|
21568
|
+
}[];
|
|
21569
|
+
refuel?: {
|
|
21570
|
+
action: import(".").ActionTypes;
|
|
21571
|
+
srcChainId: number;
|
|
21572
|
+
srcAsset: {
|
|
21573
|
+
symbol: string;
|
|
21574
|
+
chainId: number;
|
|
21575
|
+
address: string;
|
|
21576
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21577
|
+
name: string;
|
|
21578
|
+
decimals: number;
|
|
21579
|
+
icon?: string | null | undefined;
|
|
21580
|
+
iconUrl?: string | null | undefined;
|
|
21581
|
+
};
|
|
21582
|
+
destAsset: {
|
|
21583
|
+
symbol: string;
|
|
21584
|
+
chainId: number;
|
|
21585
|
+
address: string;
|
|
21586
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21587
|
+
name: string;
|
|
21588
|
+
decimals: number;
|
|
21589
|
+
icon?: string | null | undefined;
|
|
21590
|
+
iconUrl?: string | null | undefined;
|
|
21591
|
+
};
|
|
21592
|
+
srcAmount: string;
|
|
21593
|
+
destAmount: string;
|
|
21594
|
+
protocol: {
|
|
21595
|
+
name: string;
|
|
21596
|
+
icon?: string | undefined;
|
|
21597
|
+
displayName?: string | undefined;
|
|
21598
|
+
};
|
|
21599
|
+
destChainId?: number | undefined;
|
|
21600
|
+
} | undefined;
|
|
21601
|
+
gasIncluded?: boolean | undefined;
|
|
21602
|
+
gasIncluded7702?: boolean | undefined;
|
|
21603
|
+
priceData?: {
|
|
21604
|
+
totalFromAmountUsd?: string | undefined;
|
|
21605
|
+
totalToAmountUsd?: string | undefined;
|
|
21606
|
+
priceImpact?: string | undefined;
|
|
21607
|
+
totalFeeAmountUsd?: string | undefined;
|
|
21608
|
+
} | undefined;
|
|
21609
|
+
intent?: {
|
|
21610
|
+
protocol: string;
|
|
21611
|
+
order: {
|
|
21612
|
+
sellToken: string;
|
|
21613
|
+
buyToken: string;
|
|
21614
|
+
validTo: string | number;
|
|
21615
|
+
appData: string;
|
|
21616
|
+
appDataHash: string;
|
|
21617
|
+
feeAmount: string;
|
|
21618
|
+
kind: "sell" | "buy";
|
|
21619
|
+
partiallyFillable: boolean;
|
|
21620
|
+
receiver?: string | undefined;
|
|
21621
|
+
sellAmount?: string | undefined;
|
|
21622
|
+
buyAmount?: string | undefined;
|
|
21623
|
+
from?: string | undefined;
|
|
21624
|
+
};
|
|
21625
|
+
typedData: {
|
|
21626
|
+
types: Record<string, {
|
|
21627
|
+
name: string;
|
|
21628
|
+
type: string;
|
|
21629
|
+
}[]>;
|
|
21630
|
+
primaryType: string;
|
|
21631
|
+
domain: Record<string, any>;
|
|
21632
|
+
message: Record<string, any>;
|
|
21633
|
+
};
|
|
21634
|
+
settlementContract?: string | undefined;
|
|
21635
|
+
} | undefined;
|
|
21636
|
+
gasSponsored?: boolean | undefined;
|
|
21637
|
+
};
|
|
21638
|
+
estimatedProcessingTimeInSeconds: number;
|
|
21639
|
+
trade: string | {
|
|
21640
|
+
chainId: number;
|
|
21641
|
+
from: string;
|
|
21642
|
+
to: string;
|
|
21643
|
+
value: string;
|
|
21644
|
+
data: string;
|
|
21645
|
+
gasLimit: number | null;
|
|
21646
|
+
effectiveGas?: number | undefined;
|
|
21647
|
+
} | {
|
|
21648
|
+
unsignedPsbtBase64: string;
|
|
21649
|
+
inputsToSign: {}[] | null;
|
|
21650
|
+
} | {
|
|
21651
|
+
raw_data_hex: string;
|
|
21652
|
+
visible?: boolean | undefined;
|
|
21653
|
+
raw_data?: {
|
|
21654
|
+
contract?: {
|
|
21655
|
+
type?: string | undefined;
|
|
21656
|
+
}[] | undefined;
|
|
21657
|
+
fee_limit?: number | undefined;
|
|
21658
|
+
} | null | undefined;
|
|
21659
|
+
};
|
|
21660
|
+
approval?: {
|
|
21661
|
+
chainId: number;
|
|
21662
|
+
from: string;
|
|
21663
|
+
to: string;
|
|
21664
|
+
value: string;
|
|
21665
|
+
data: string;
|
|
21666
|
+
gasLimit: number | null;
|
|
21667
|
+
effectiveGas?: number | undefined;
|
|
21668
|
+
} | {
|
|
21669
|
+
raw_data_hex: string;
|
|
21670
|
+
visible?: boolean | undefined;
|
|
21671
|
+
raw_data?: {
|
|
21672
|
+
contract?: {
|
|
21673
|
+
type?: string | undefined;
|
|
21674
|
+
}[] | undefined;
|
|
21675
|
+
fee_limit?: number | undefined;
|
|
21676
|
+
} | null | undefined;
|
|
21677
|
+
} | undefined;
|
|
21678
|
+
featureId?: import(".").FeatureId | undefined;
|
|
21679
|
+
resetApproval?: {
|
|
21680
|
+
chainId: number;
|
|
21681
|
+
from: string;
|
|
21682
|
+
to: string;
|
|
21683
|
+
value: string;
|
|
21684
|
+
data: string;
|
|
21685
|
+
gasLimit: number | null;
|
|
21686
|
+
effectiveGas?: number | undefined;
|
|
21687
|
+
} | undefined;
|
|
21688
|
+
l1GasFeesInHexWei?: string | undefined;
|
|
21689
|
+
nonEvmFeesInNative?: string | undefined;
|
|
21690
|
+
}[], resultFuncArgs_1: SortOrder) => ({
|
|
21691
|
+
quote: {
|
|
21692
|
+
srcChainId: number;
|
|
21693
|
+
destChainId: number;
|
|
21694
|
+
srcAsset: {
|
|
21695
|
+
symbol: string;
|
|
21696
|
+
chainId: number;
|
|
21697
|
+
address: string;
|
|
21698
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21699
|
+
name: string;
|
|
21700
|
+
decimals: number;
|
|
21701
|
+
icon?: string | null | undefined;
|
|
21702
|
+
iconUrl?: string | null | undefined;
|
|
21703
|
+
};
|
|
21704
|
+
destAsset: {
|
|
21705
|
+
symbol: string;
|
|
21706
|
+
chainId: number;
|
|
21707
|
+
address: string;
|
|
21708
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21709
|
+
name: string;
|
|
21710
|
+
decimals: number;
|
|
21711
|
+
icon?: string | null | undefined;
|
|
21712
|
+
iconUrl?: string | null | undefined;
|
|
21713
|
+
};
|
|
21714
|
+
requestId: string;
|
|
21715
|
+
srcTokenAmount: string;
|
|
21716
|
+
destTokenAmount: string;
|
|
21717
|
+
minDestTokenAmount: string;
|
|
21718
|
+
feeData: {
|
|
21719
|
+
metabridge: {
|
|
21720
|
+
amount: string;
|
|
21721
|
+
asset: {
|
|
21722
|
+
symbol: string;
|
|
21723
|
+
chainId: number;
|
|
21724
|
+
address: string;
|
|
21725
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21726
|
+
name: string;
|
|
21727
|
+
decimals: number;
|
|
21728
|
+
icon?: string | null | undefined;
|
|
21729
|
+
iconUrl?: string | null | undefined;
|
|
21730
|
+
};
|
|
21731
|
+
};
|
|
21732
|
+
txFee?: ({
|
|
21733
|
+
amount: string;
|
|
21734
|
+
asset: {
|
|
21735
|
+
symbol: string;
|
|
21736
|
+
chainId: number;
|
|
21737
|
+
address: string;
|
|
21738
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21739
|
+
name: string;
|
|
21740
|
+
decimals: number;
|
|
21741
|
+
icon?: string | null | undefined;
|
|
21742
|
+
iconUrl?: string | null | undefined;
|
|
21743
|
+
};
|
|
21744
|
+
} & {
|
|
21745
|
+
maxFeePerGas: string;
|
|
21746
|
+
maxPriorityFeePerGas: string;
|
|
21747
|
+
}) | undefined;
|
|
21748
|
+
};
|
|
21749
|
+
bridgeId: string;
|
|
21750
|
+
bridges: string[];
|
|
21751
|
+
steps: {
|
|
21752
|
+
action: import(".").ActionTypes;
|
|
21753
|
+
srcChainId: number;
|
|
21754
|
+
srcAsset: {
|
|
21755
|
+
symbol: string;
|
|
21756
|
+
chainId: number;
|
|
21757
|
+
address: string;
|
|
21758
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21759
|
+
name: string;
|
|
21760
|
+
decimals: number;
|
|
21761
|
+
icon?: string | null | undefined;
|
|
21762
|
+
iconUrl?: string | null | undefined;
|
|
21763
|
+
};
|
|
21764
|
+
destAsset: {
|
|
21765
|
+
symbol: string;
|
|
21766
|
+
chainId: number;
|
|
21767
|
+
address: string;
|
|
21768
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21769
|
+
name: string;
|
|
21770
|
+
decimals: number;
|
|
21771
|
+
icon?: string | null | undefined;
|
|
21772
|
+
iconUrl?: string | null | undefined;
|
|
21773
|
+
};
|
|
21774
|
+
srcAmount: string;
|
|
21775
|
+
destAmount: string;
|
|
21776
|
+
protocol: {
|
|
21777
|
+
name: string;
|
|
21778
|
+
icon?: string | undefined;
|
|
21779
|
+
displayName?: string | undefined;
|
|
21780
|
+
};
|
|
21781
|
+
destChainId?: number | undefined;
|
|
21782
|
+
}[];
|
|
21783
|
+
refuel?: {
|
|
21784
|
+
action: import(".").ActionTypes;
|
|
21785
|
+
srcChainId: number;
|
|
21786
|
+
srcAsset: {
|
|
21787
|
+
symbol: string;
|
|
21788
|
+
chainId: number;
|
|
21789
|
+
address: string;
|
|
21790
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21791
|
+
name: string;
|
|
21792
|
+
decimals: number;
|
|
21793
|
+
icon?: string | null | undefined;
|
|
21794
|
+
iconUrl?: string | null | undefined;
|
|
21795
|
+
};
|
|
21796
|
+
destAsset: {
|
|
21797
|
+
symbol: string;
|
|
21798
|
+
chainId: number;
|
|
21799
|
+
address: string;
|
|
21800
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
21801
|
+
name: string;
|
|
21802
|
+
decimals: number;
|
|
21803
|
+
icon?: string | null | undefined;
|
|
21804
|
+
iconUrl?: string | null | undefined;
|
|
21805
|
+
};
|
|
21806
|
+
srcAmount: string;
|
|
21807
|
+
destAmount: string;
|
|
21808
|
+
protocol: {
|
|
21809
|
+
name: string;
|
|
21810
|
+
icon?: string | undefined;
|
|
21811
|
+
displayName?: string | undefined;
|
|
21812
|
+
};
|
|
21813
|
+
destChainId?: number | undefined;
|
|
21814
|
+
} | undefined;
|
|
21815
|
+
gasIncluded?: boolean | undefined;
|
|
21816
|
+
gasIncluded7702?: boolean | undefined;
|
|
21817
|
+
priceData?: {
|
|
21818
|
+
totalFromAmountUsd?: string | undefined;
|
|
21819
|
+
totalToAmountUsd?: string | undefined;
|
|
21820
|
+
priceImpact?: string | undefined;
|
|
21821
|
+
totalFeeAmountUsd?: string | undefined;
|
|
21822
|
+
} | undefined;
|
|
21823
|
+
intent?: {
|
|
21824
|
+
protocol: string;
|
|
21825
|
+
order: {
|
|
21826
|
+
sellToken: string;
|
|
21827
|
+
buyToken: string;
|
|
21828
|
+
validTo: string | number;
|
|
21829
|
+
appData: string;
|
|
21830
|
+
appDataHash: string;
|
|
21831
|
+
feeAmount: string;
|
|
21832
|
+
kind: "sell" | "buy";
|
|
21833
|
+
partiallyFillable: boolean;
|
|
21834
|
+
receiver?: string | undefined;
|
|
21835
|
+
sellAmount?: string | undefined;
|
|
21836
|
+
buyAmount?: string | undefined;
|
|
21837
|
+
from?: string | undefined;
|
|
21838
|
+
};
|
|
21839
|
+
typedData: {
|
|
21840
|
+
types: Record<string, {
|
|
21841
|
+
name: string;
|
|
21842
|
+
type: string;
|
|
21843
|
+
}[]>;
|
|
21844
|
+
primaryType: string;
|
|
21845
|
+
domain: Record<string, any>;
|
|
21846
|
+
message: Record<string, any>;
|
|
21847
|
+
};
|
|
21848
|
+
settlementContract?: string | undefined;
|
|
21849
|
+
} | undefined;
|
|
21850
|
+
gasSponsored?: boolean | undefined;
|
|
21851
|
+
};
|
|
21852
|
+
estimatedProcessingTimeInSeconds: number;
|
|
21853
|
+
trade: string | {
|
|
21854
|
+
chainId: number;
|
|
21855
|
+
from: string;
|
|
21856
|
+
to: string;
|
|
21857
|
+
value: string;
|
|
21858
|
+
data: string;
|
|
21859
|
+
gasLimit: number | null;
|
|
21860
|
+
effectiveGas?: number | undefined;
|
|
21861
|
+
} | {
|
|
21862
|
+
unsignedPsbtBase64: string;
|
|
21863
|
+
inputsToSign: {}[] | null;
|
|
21864
|
+
} | {
|
|
21865
|
+
raw_data_hex: string;
|
|
21866
|
+
visible?: boolean | undefined;
|
|
21867
|
+
raw_data?: {
|
|
21868
|
+
contract?: {
|
|
21869
|
+
type?: string | undefined;
|
|
21870
|
+
}[] | undefined;
|
|
21871
|
+
fee_limit?: number | undefined;
|
|
21872
|
+
} | null | undefined;
|
|
21873
|
+
};
|
|
21874
|
+
approval?: {
|
|
21875
|
+
chainId: number;
|
|
21876
|
+
from: string;
|
|
21877
|
+
to: string;
|
|
21878
|
+
value: string;
|
|
21879
|
+
data: string;
|
|
21880
|
+
gasLimit: number | null;
|
|
21881
|
+
effectiveGas?: number | undefined;
|
|
21882
|
+
} | {
|
|
21883
|
+
raw_data_hex: string;
|
|
21884
|
+
visible?: boolean | undefined;
|
|
21885
|
+
raw_data?: {
|
|
21886
|
+
contract?: {
|
|
21887
|
+
type?: string | undefined;
|
|
21888
|
+
}[] | undefined;
|
|
21889
|
+
fee_limit?: number | undefined;
|
|
21890
|
+
} | null | undefined;
|
|
21891
|
+
} | undefined;
|
|
21892
|
+
} & {
|
|
21893
|
+
trade: string | {
|
|
21894
|
+
chainId: number;
|
|
21895
|
+
from: string;
|
|
21896
|
+
to: string;
|
|
21897
|
+
value: string;
|
|
21898
|
+
data: string;
|
|
21899
|
+
gasLimit: number | null;
|
|
21900
|
+
effectiveGas?: number | undefined;
|
|
21901
|
+
} | {
|
|
21902
|
+
unsignedPsbtBase64: string;
|
|
21903
|
+
inputsToSign: {}[] | null;
|
|
21904
|
+
} | {
|
|
21905
|
+
raw_data_hex: string;
|
|
21906
|
+
visible?: boolean | undefined;
|
|
21907
|
+
raw_data?: {
|
|
21908
|
+
contract?: {
|
|
21909
|
+
type?: string | undefined;
|
|
21910
|
+
}[] | undefined;
|
|
21911
|
+
fee_limit?: number | undefined;
|
|
21912
|
+
} | null | undefined;
|
|
21913
|
+
};
|
|
21914
|
+
approval?: {
|
|
21915
|
+
chainId: number;
|
|
21916
|
+
from: string;
|
|
21917
|
+
to: string;
|
|
21918
|
+
value: string;
|
|
21919
|
+
data: string;
|
|
21920
|
+
gasLimit: number | null;
|
|
21921
|
+
effectiveGas?: number | undefined;
|
|
21922
|
+
} | {
|
|
21923
|
+
raw_data_hex: string;
|
|
21924
|
+
visible?: boolean | undefined;
|
|
21925
|
+
raw_data?: {
|
|
21926
|
+
contract?: {
|
|
21927
|
+
type?: string | undefined;
|
|
21928
|
+
}[] | undefined;
|
|
21929
|
+
fee_limit?: number | undefined;
|
|
21930
|
+
} | null | undefined;
|
|
21931
|
+
} | undefined;
|
|
21932
|
+
featureId?: import(".").FeatureId | undefined;
|
|
21933
|
+
resetApproval?: {
|
|
21934
|
+
chainId: number;
|
|
21935
|
+
from: string;
|
|
21936
|
+
to: string;
|
|
21937
|
+
value: string;
|
|
21938
|
+
data: string;
|
|
21939
|
+
gasLimit: number | null;
|
|
21940
|
+
effectiveGas?: number | undefined;
|
|
21941
|
+
} | undefined;
|
|
21942
|
+
} & QuoteMetadata)[];
|
|
21943
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
21944
|
+
sentAmount: {
|
|
21945
|
+
amount: string;
|
|
21946
|
+
valueInCurrency: string | null;
|
|
21947
|
+
usd: string | null;
|
|
21948
|
+
};
|
|
21949
|
+
toTokenAmount: {
|
|
21950
|
+
amount: string;
|
|
21951
|
+
valueInCurrency: string | null;
|
|
21952
|
+
usd: string | null;
|
|
21953
|
+
};
|
|
21954
|
+
minToTokenAmount: {
|
|
21955
|
+
amount: string;
|
|
21956
|
+
valueInCurrency: string | null;
|
|
21957
|
+
usd: string | null;
|
|
21958
|
+
};
|
|
21959
|
+
swapRate: string;
|
|
21960
|
+
/**
|
|
21961
|
+
This is the amount required to submit all the transactions.
|
|
21962
|
+
Includes the relayer fee or other native fees.
|
|
21963
|
+
Should be used for balance checks and tx submission.
|
|
21964
|
+
*/
|
|
21965
|
+
totalNetworkFee: {
|
|
21966
|
+
amount: string;
|
|
21967
|
+
valueInCurrency: string | null;
|
|
21968
|
+
usd: string | null;
|
|
21969
|
+
};
|
|
21970
|
+
totalMaxNetworkFee: {
|
|
21971
|
+
amount: string;
|
|
21972
|
+
valueInCurrency: string | null;
|
|
21973
|
+
usd: string | null;
|
|
21974
|
+
};
|
|
21975
|
+
/**
|
|
21976
|
+
This contains gas fee estimates for the bridge transaction
|
|
21977
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
21978
|
+
Should only be used for display purposes.
|
|
21979
|
+
*/
|
|
21980
|
+
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
21981
|
+
adjustedReturn: {
|
|
21982
|
+
valueInCurrency: string | null;
|
|
21983
|
+
usd: string | null;
|
|
21984
|
+
};
|
|
21985
|
+
cost: {
|
|
21986
|
+
valueInCurrency: string | null;
|
|
21987
|
+
usd: string | null;
|
|
21988
|
+
};
|
|
21989
|
+
includedTxFees: {
|
|
21990
|
+
amount: string;
|
|
21991
|
+
valueInCurrency: string | null;
|
|
21992
|
+
usd: string | null;
|
|
21993
|
+
} | null;
|
|
21994
|
+
quote: {
|
|
21995
|
+
srcChainId: number;
|
|
21996
|
+
destChainId: number;
|
|
21997
|
+
srcAsset: {
|
|
21998
|
+
symbol: string;
|
|
21999
|
+
chainId: number;
|
|
22000
|
+
address: string;
|
|
22001
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22002
|
+
name: string;
|
|
22003
|
+
decimals: number;
|
|
22004
|
+
icon?: string | null | undefined;
|
|
22005
|
+
iconUrl?: string | null | undefined;
|
|
22006
|
+
};
|
|
22007
|
+
destAsset: {
|
|
22008
|
+
symbol: string;
|
|
22009
|
+
chainId: number;
|
|
22010
|
+
address: string;
|
|
22011
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22012
|
+
name: string;
|
|
22013
|
+
decimals: number;
|
|
22014
|
+
icon?: string | null | undefined;
|
|
22015
|
+
iconUrl?: string | null | undefined;
|
|
22016
|
+
};
|
|
22017
|
+
requestId: string;
|
|
22018
|
+
srcTokenAmount: string;
|
|
22019
|
+
destTokenAmount: string;
|
|
22020
|
+
minDestTokenAmount: string;
|
|
22021
|
+
feeData: {
|
|
22022
|
+
metabridge: {
|
|
22023
|
+
amount: string;
|
|
22024
|
+
asset: {
|
|
22025
|
+
symbol: string;
|
|
22026
|
+
chainId: number;
|
|
22027
|
+
address: string;
|
|
22028
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22029
|
+
name: string;
|
|
22030
|
+
decimals: number;
|
|
22031
|
+
icon?: string | null | undefined;
|
|
22032
|
+
iconUrl?: string | null | undefined;
|
|
22033
|
+
};
|
|
22034
|
+
};
|
|
22035
|
+
txFee?: ({
|
|
22036
|
+
amount: string;
|
|
22037
|
+
asset: {
|
|
22038
|
+
symbol: string;
|
|
22039
|
+
chainId: number;
|
|
22040
|
+
address: string;
|
|
22041
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22042
|
+
name: string;
|
|
22043
|
+
decimals: number;
|
|
22044
|
+
icon?: string | null | undefined;
|
|
22045
|
+
iconUrl?: string | null | undefined;
|
|
22046
|
+
};
|
|
22047
|
+
} & {
|
|
22048
|
+
maxFeePerGas: string;
|
|
22049
|
+
maxPriorityFeePerGas: string;
|
|
22050
|
+
}) | undefined;
|
|
22051
|
+
};
|
|
22052
|
+
bridgeId: string;
|
|
22053
|
+
bridges: string[];
|
|
22054
|
+
steps: {
|
|
22055
|
+
action: import(".").ActionTypes;
|
|
22056
|
+
srcChainId: number;
|
|
22057
|
+
srcAsset: {
|
|
22058
|
+
symbol: string;
|
|
22059
|
+
chainId: number;
|
|
22060
|
+
address: string;
|
|
22061
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22062
|
+
name: string;
|
|
22063
|
+
decimals: number;
|
|
22064
|
+
icon?: string | null | undefined;
|
|
22065
|
+
iconUrl?: string | null | undefined;
|
|
22066
|
+
};
|
|
22067
|
+
destAsset: {
|
|
22068
|
+
symbol: string;
|
|
22069
|
+
chainId: number;
|
|
22070
|
+
address: string;
|
|
22071
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22072
|
+
name: string;
|
|
22073
|
+
decimals: number;
|
|
22074
|
+
icon?: string | null | undefined;
|
|
22075
|
+
iconUrl?: string | null | undefined;
|
|
22076
|
+
};
|
|
22077
|
+
srcAmount: string;
|
|
22078
|
+
destAmount: string;
|
|
22079
|
+
protocol: {
|
|
22080
|
+
name: string;
|
|
22081
|
+
icon?: string | undefined;
|
|
22082
|
+
displayName?: string | undefined;
|
|
22083
|
+
};
|
|
22084
|
+
destChainId?: number | undefined;
|
|
22085
|
+
}[];
|
|
22086
|
+
refuel?: {
|
|
22087
|
+
action: import(".").ActionTypes;
|
|
22088
|
+
srcChainId: number;
|
|
22089
|
+
srcAsset: {
|
|
22090
|
+
symbol: string;
|
|
22091
|
+
chainId: number;
|
|
22092
|
+
address: string;
|
|
22093
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22094
|
+
name: string;
|
|
22095
|
+
decimals: number;
|
|
22096
|
+
icon?: string | null | undefined;
|
|
22097
|
+
iconUrl?: string | null | undefined;
|
|
22098
|
+
};
|
|
22099
|
+
destAsset: {
|
|
22100
|
+
symbol: string;
|
|
22101
|
+
chainId: number;
|
|
22102
|
+
address: string;
|
|
22103
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22104
|
+
name: string;
|
|
22105
|
+
decimals: number;
|
|
22106
|
+
icon?: string | null | undefined;
|
|
22107
|
+
iconUrl?: string | null | undefined;
|
|
22108
|
+
};
|
|
22109
|
+
srcAmount: string;
|
|
22110
|
+
destAmount: string;
|
|
22111
|
+
protocol: {
|
|
22112
|
+
name: string;
|
|
22113
|
+
icon?: string | undefined;
|
|
22114
|
+
displayName?: string | undefined;
|
|
22115
|
+
};
|
|
22116
|
+
destChainId?: number | undefined;
|
|
22117
|
+
} | undefined;
|
|
22118
|
+
gasIncluded?: boolean | undefined;
|
|
22119
|
+
gasIncluded7702?: boolean | undefined;
|
|
22120
|
+
priceData?: {
|
|
22121
|
+
totalFromAmountUsd?: string | undefined;
|
|
22122
|
+
totalToAmountUsd?: string | undefined;
|
|
22123
|
+
priceImpact?: string | undefined;
|
|
22124
|
+
totalFeeAmountUsd?: string | undefined;
|
|
22125
|
+
} | undefined;
|
|
22126
|
+
intent?: {
|
|
22127
|
+
protocol: string;
|
|
22128
|
+
order: {
|
|
22129
|
+
sellToken: string;
|
|
22130
|
+
buyToken: string;
|
|
22131
|
+
validTo: string | number;
|
|
22132
|
+
appData: string;
|
|
22133
|
+
appDataHash: string;
|
|
22134
|
+
feeAmount: string;
|
|
22135
|
+
kind: "sell" | "buy";
|
|
22136
|
+
partiallyFillable: boolean;
|
|
22137
|
+
receiver?: string | undefined;
|
|
22138
|
+
sellAmount?: string | undefined;
|
|
22139
|
+
buyAmount?: string | undefined;
|
|
22140
|
+
from?: string | undefined;
|
|
22141
|
+
};
|
|
22142
|
+
typedData: {
|
|
22143
|
+
types: Record<string, {
|
|
22144
|
+
name: string;
|
|
22145
|
+
type: string;
|
|
22146
|
+
}[]>;
|
|
22147
|
+
primaryType: string;
|
|
22148
|
+
domain: Record<string, any>;
|
|
22149
|
+
message: Record<string, any>;
|
|
22150
|
+
};
|
|
22151
|
+
settlementContract?: string | undefined;
|
|
22152
|
+
} | undefined;
|
|
22153
|
+
gasSponsored?: boolean | undefined;
|
|
22154
|
+
};
|
|
22155
|
+
estimatedProcessingTimeInSeconds: number;
|
|
22156
|
+
trade: string | {
|
|
22157
|
+
chainId: number;
|
|
22158
|
+
from: string;
|
|
22159
|
+
to: string;
|
|
22160
|
+
value: string;
|
|
22161
|
+
data: string;
|
|
22162
|
+
gasLimit: number | null;
|
|
22163
|
+
effectiveGas?: number | undefined;
|
|
22164
|
+
} | {
|
|
22165
|
+
unsignedPsbtBase64: string;
|
|
22166
|
+
inputsToSign: {}[] | null;
|
|
22167
|
+
} | {
|
|
22168
|
+
raw_data_hex: string;
|
|
22169
|
+
visible?: boolean | undefined;
|
|
22170
|
+
raw_data?: {
|
|
22171
|
+
contract?: {
|
|
22172
|
+
type?: string | undefined;
|
|
22173
|
+
}[] | undefined;
|
|
22174
|
+
fee_limit?: number | undefined;
|
|
22175
|
+
} | null | undefined;
|
|
22176
|
+
};
|
|
22177
|
+
approval?: {
|
|
22178
|
+
chainId: number;
|
|
22179
|
+
from: string;
|
|
22180
|
+
to: string;
|
|
22181
|
+
value: string;
|
|
22182
|
+
data: string;
|
|
22183
|
+
gasLimit: number | null;
|
|
22184
|
+
effectiveGas?: number | undefined;
|
|
22185
|
+
} | {
|
|
22186
|
+
raw_data_hex: string;
|
|
22187
|
+
visible?: boolean | undefined;
|
|
22188
|
+
raw_data?: {
|
|
22189
|
+
contract?: {
|
|
22190
|
+
type?: string | undefined;
|
|
22191
|
+
}[] | undefined;
|
|
22192
|
+
fee_limit?: number | undefined;
|
|
22193
|
+
} | null | undefined;
|
|
22194
|
+
} | undefined;
|
|
22195
|
+
featureId?: import(".").FeatureId | undefined;
|
|
22196
|
+
resetApproval?: {
|
|
22197
|
+
chainId: number;
|
|
22198
|
+
from: string;
|
|
22199
|
+
to: string;
|
|
22200
|
+
value: string;
|
|
22201
|
+
data: string;
|
|
22202
|
+
gasLimit: number | null;
|
|
22203
|
+
effectiveGas?: number | undefined;
|
|
22204
|
+
} | undefined;
|
|
22205
|
+
l1GasFeesInHexWei?: string | undefined;
|
|
22206
|
+
nonEvmFeesInNative?: string | undefined;
|
|
22207
|
+
}[], resultFuncArgs_1: SortOrder) => ({
|
|
22208
|
+
quote: {
|
|
22209
|
+
srcChainId: number;
|
|
22210
|
+
destChainId: number;
|
|
22211
|
+
srcAsset: {
|
|
22212
|
+
symbol: string;
|
|
22213
|
+
chainId: number;
|
|
22214
|
+
address: string;
|
|
22215
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22216
|
+
name: string;
|
|
22217
|
+
decimals: number;
|
|
22218
|
+
icon?: string | null | undefined;
|
|
22219
|
+
iconUrl?: string | null | undefined;
|
|
22220
|
+
};
|
|
22221
|
+
destAsset: {
|
|
22222
|
+
symbol: string;
|
|
22223
|
+
chainId: number;
|
|
22224
|
+
address: string;
|
|
22225
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22226
|
+
name: string;
|
|
22227
|
+
decimals: number;
|
|
22228
|
+
icon?: string | null | undefined;
|
|
22229
|
+
iconUrl?: string | null | undefined;
|
|
22230
|
+
};
|
|
22231
|
+
requestId: string;
|
|
22232
|
+
srcTokenAmount: string;
|
|
22233
|
+
destTokenAmount: string;
|
|
22234
|
+
minDestTokenAmount: string;
|
|
22235
|
+
feeData: {
|
|
22236
|
+
metabridge: {
|
|
22237
|
+
amount: string;
|
|
22238
|
+
asset: {
|
|
22239
|
+
symbol: string;
|
|
22240
|
+
chainId: number;
|
|
22241
|
+
address: string;
|
|
22242
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22243
|
+
name: string;
|
|
22244
|
+
decimals: number;
|
|
22245
|
+
icon?: string | null | undefined;
|
|
22246
|
+
iconUrl?: string | null | undefined;
|
|
22247
|
+
};
|
|
22248
|
+
};
|
|
22249
|
+
txFee?: ({
|
|
22250
|
+
amount: string;
|
|
22251
|
+
asset: {
|
|
22252
|
+
symbol: string;
|
|
22253
|
+
chainId: number;
|
|
22254
|
+
address: string;
|
|
22255
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22256
|
+
name: string;
|
|
22257
|
+
decimals: number;
|
|
22258
|
+
icon?: string | null | undefined;
|
|
22259
|
+
iconUrl?: string | null | undefined;
|
|
22260
|
+
};
|
|
22261
|
+
} & {
|
|
22262
|
+
maxFeePerGas: string;
|
|
22263
|
+
maxPriorityFeePerGas: string;
|
|
22264
|
+
}) | undefined;
|
|
22265
|
+
};
|
|
22266
|
+
bridgeId: string;
|
|
22267
|
+
bridges: string[];
|
|
22268
|
+
steps: {
|
|
22269
|
+
action: import(".").ActionTypes;
|
|
22270
|
+
srcChainId: number;
|
|
22271
|
+
srcAsset: {
|
|
22272
|
+
symbol: string;
|
|
22273
|
+
chainId: number;
|
|
22274
|
+
address: string;
|
|
22275
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22276
|
+
name: string;
|
|
22277
|
+
decimals: number;
|
|
22278
|
+
icon?: string | null | undefined;
|
|
22279
|
+
iconUrl?: string | null | undefined;
|
|
22280
|
+
};
|
|
22281
|
+
destAsset: {
|
|
22282
|
+
symbol: string;
|
|
22283
|
+
chainId: number;
|
|
22284
|
+
address: string;
|
|
22285
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22286
|
+
name: string;
|
|
22287
|
+
decimals: number;
|
|
22288
|
+
icon?: string | null | undefined;
|
|
22289
|
+
iconUrl?: string | null | undefined;
|
|
22290
|
+
};
|
|
22291
|
+
srcAmount: string;
|
|
22292
|
+
destAmount: string;
|
|
22293
|
+
protocol: {
|
|
22294
|
+
name: string;
|
|
22295
|
+
icon?: string | undefined;
|
|
22296
|
+
displayName?: string | undefined;
|
|
22297
|
+
};
|
|
22298
|
+
destChainId?: number | undefined;
|
|
22299
|
+
}[];
|
|
22300
|
+
refuel?: {
|
|
22301
|
+
action: import(".").ActionTypes;
|
|
22302
|
+
srcChainId: number;
|
|
22303
|
+
srcAsset: {
|
|
22304
|
+
symbol: string;
|
|
22305
|
+
chainId: number;
|
|
22306
|
+
address: string;
|
|
22307
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22308
|
+
name: string;
|
|
22309
|
+
decimals: number;
|
|
22310
|
+
icon?: string | null | undefined;
|
|
22311
|
+
iconUrl?: string | null | undefined;
|
|
22312
|
+
};
|
|
22313
|
+
destAsset: {
|
|
22314
|
+
symbol: string;
|
|
22315
|
+
chainId: number;
|
|
22316
|
+
address: string;
|
|
22317
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22318
|
+
name: string;
|
|
22319
|
+
decimals: number;
|
|
22320
|
+
icon?: string | null | undefined;
|
|
22321
|
+
iconUrl?: string | null | undefined;
|
|
22322
|
+
};
|
|
22323
|
+
srcAmount: string;
|
|
22324
|
+
destAmount: string;
|
|
22325
|
+
protocol: {
|
|
22326
|
+
name: string;
|
|
22327
|
+
icon?: string | undefined;
|
|
22328
|
+
displayName?: string | undefined;
|
|
22329
|
+
};
|
|
22330
|
+
destChainId?: number | undefined;
|
|
22331
|
+
} | undefined;
|
|
22332
|
+
gasIncluded?: boolean | undefined;
|
|
22333
|
+
gasIncluded7702?: boolean | undefined;
|
|
22334
|
+
priceData?: {
|
|
22335
|
+
totalFromAmountUsd?: string | undefined;
|
|
22336
|
+
totalToAmountUsd?: string | undefined;
|
|
22337
|
+
priceImpact?: string | undefined;
|
|
22338
|
+
totalFeeAmountUsd?: string | undefined;
|
|
22339
|
+
} | undefined;
|
|
22340
|
+
intent?: {
|
|
22341
|
+
protocol: string;
|
|
22342
|
+
order: {
|
|
22343
|
+
sellToken: string;
|
|
22344
|
+
buyToken: string;
|
|
22345
|
+
validTo: string | number;
|
|
22346
|
+
appData: string;
|
|
22347
|
+
appDataHash: string;
|
|
22348
|
+
feeAmount: string;
|
|
22349
|
+
kind: "sell" | "buy";
|
|
22350
|
+
partiallyFillable: boolean;
|
|
22351
|
+
receiver?: string | undefined;
|
|
22352
|
+
sellAmount?: string | undefined;
|
|
22353
|
+
buyAmount?: string | undefined;
|
|
22354
|
+
from?: string | undefined;
|
|
22355
|
+
};
|
|
22356
|
+
typedData: {
|
|
22357
|
+
types: Record<string, {
|
|
22358
|
+
name: string;
|
|
22359
|
+
type: string;
|
|
22360
|
+
}[]>;
|
|
22361
|
+
primaryType: string;
|
|
22362
|
+
domain: Record<string, any>;
|
|
22363
|
+
message: Record<string, any>;
|
|
22364
|
+
};
|
|
22365
|
+
settlementContract?: string | undefined;
|
|
22366
|
+
} | undefined;
|
|
22367
|
+
gasSponsored?: boolean | undefined;
|
|
22368
|
+
};
|
|
22369
|
+
estimatedProcessingTimeInSeconds: number;
|
|
22370
|
+
trade: string | {
|
|
22371
|
+
chainId: number;
|
|
22372
|
+
from: string;
|
|
22373
|
+
to: string;
|
|
22374
|
+
value: string;
|
|
22375
|
+
data: string;
|
|
22376
|
+
gasLimit: number | null;
|
|
22377
|
+
effectiveGas?: number | undefined;
|
|
22378
|
+
} | {
|
|
22379
|
+
unsignedPsbtBase64: string;
|
|
22380
|
+
inputsToSign: {}[] | null;
|
|
22381
|
+
} | {
|
|
22382
|
+
raw_data_hex: string;
|
|
22383
|
+
visible?: boolean | undefined;
|
|
22384
|
+
raw_data?: {
|
|
22385
|
+
contract?: {
|
|
22386
|
+
type?: string | undefined;
|
|
22387
|
+
}[] | undefined;
|
|
22388
|
+
fee_limit?: number | undefined;
|
|
22389
|
+
} | null | undefined;
|
|
22390
|
+
};
|
|
22391
|
+
approval?: {
|
|
22392
|
+
chainId: number;
|
|
22393
|
+
from: string;
|
|
22394
|
+
to: string;
|
|
22395
|
+
value: string;
|
|
22396
|
+
data: string;
|
|
22397
|
+
gasLimit: number | null;
|
|
22398
|
+
effectiveGas?: number | undefined;
|
|
22399
|
+
} | {
|
|
22400
|
+
raw_data_hex: string;
|
|
22401
|
+
visible?: boolean | undefined;
|
|
22402
|
+
raw_data?: {
|
|
22403
|
+
contract?: {
|
|
22404
|
+
type?: string | undefined;
|
|
22405
|
+
}[] | undefined;
|
|
22406
|
+
fee_limit?: number | undefined;
|
|
22407
|
+
} | null | undefined;
|
|
22408
|
+
} | undefined;
|
|
22409
|
+
} & {
|
|
22410
|
+
trade: string | {
|
|
22411
|
+
chainId: number;
|
|
22412
|
+
from: string;
|
|
22413
|
+
to: string;
|
|
22414
|
+
value: string;
|
|
22415
|
+
data: string;
|
|
22416
|
+
gasLimit: number | null;
|
|
22417
|
+
effectiveGas?: number | undefined;
|
|
22418
|
+
} | {
|
|
22419
|
+
unsignedPsbtBase64: string;
|
|
22420
|
+
inputsToSign: {}[] | null;
|
|
22421
|
+
} | {
|
|
22422
|
+
raw_data_hex: string;
|
|
22423
|
+
visible?: boolean | undefined;
|
|
22424
|
+
raw_data?: {
|
|
22425
|
+
contract?: {
|
|
22426
|
+
type?: string | undefined;
|
|
22427
|
+
}[] | undefined;
|
|
22428
|
+
fee_limit?: number | undefined;
|
|
22429
|
+
} | null | undefined;
|
|
22430
|
+
};
|
|
22431
|
+
approval?: {
|
|
22432
|
+
chainId: number;
|
|
22433
|
+
from: string;
|
|
22434
|
+
to: string;
|
|
22435
|
+
value: string;
|
|
22436
|
+
data: string;
|
|
22437
|
+
gasLimit: number | null;
|
|
22438
|
+
effectiveGas?: number | undefined;
|
|
22439
|
+
} | {
|
|
22440
|
+
raw_data_hex: string;
|
|
22441
|
+
visible?: boolean | undefined;
|
|
22442
|
+
raw_data?: {
|
|
22443
|
+
contract?: {
|
|
22444
|
+
type?: string | undefined;
|
|
22445
|
+
}[] | undefined;
|
|
22446
|
+
fee_limit?: number | undefined;
|
|
22447
|
+
} | null | undefined;
|
|
22448
|
+
} | undefined;
|
|
22449
|
+
featureId?: import(".").FeatureId | undefined;
|
|
22450
|
+
resetApproval?: {
|
|
22451
|
+
chainId: number;
|
|
22452
|
+
from: string;
|
|
22453
|
+
to: string;
|
|
22454
|
+
value: string;
|
|
22455
|
+
data: string;
|
|
22456
|
+
gasLimit: number | null;
|
|
22457
|
+
effectiveGas?: number | undefined;
|
|
22458
|
+
} | undefined;
|
|
22459
|
+
} & QuoteMetadata)[]) & {
|
|
22460
|
+
clearCache: () => void;
|
|
22461
|
+
resultsCount: () => number;
|
|
22462
|
+
resetResultsCount: () => void;
|
|
22463
|
+
};
|
|
22464
|
+
lastResult: () => ({
|
|
22465
|
+
quote: {
|
|
22466
|
+
srcChainId: number;
|
|
22467
|
+
destChainId: number;
|
|
22468
|
+
srcAsset: {
|
|
22469
|
+
symbol: string;
|
|
22470
|
+
chainId: number;
|
|
22471
|
+
address: string;
|
|
22472
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22473
|
+
name: string;
|
|
22474
|
+
decimals: number;
|
|
22475
|
+
icon?: string | null | undefined;
|
|
22476
|
+
iconUrl?: string | null | undefined;
|
|
22477
|
+
};
|
|
22478
|
+
destAsset: {
|
|
22479
|
+
symbol: string;
|
|
22480
|
+
chainId: number;
|
|
22481
|
+
address: string;
|
|
22482
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22483
|
+
name: string;
|
|
22484
|
+
decimals: number;
|
|
22485
|
+
icon?: string | null | undefined;
|
|
22486
|
+
iconUrl?: string | null | undefined;
|
|
22487
|
+
};
|
|
22488
|
+
requestId: string;
|
|
22489
|
+
srcTokenAmount: string;
|
|
22490
|
+
destTokenAmount: string;
|
|
22491
|
+
minDestTokenAmount: string;
|
|
22492
|
+
feeData: {
|
|
22493
|
+
metabridge: {
|
|
22494
|
+
amount: string;
|
|
22495
|
+
asset: {
|
|
22496
|
+
symbol: string;
|
|
22497
|
+
chainId: number;
|
|
22498
|
+
address: string;
|
|
22499
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22500
|
+
name: string;
|
|
22501
|
+
decimals: number;
|
|
22502
|
+
icon?: string | null | undefined;
|
|
22503
|
+
iconUrl?: string | null | undefined;
|
|
22504
|
+
};
|
|
22505
|
+
};
|
|
22506
|
+
txFee?: ({
|
|
22507
|
+
amount: string;
|
|
22508
|
+
asset: {
|
|
22509
|
+
symbol: string;
|
|
22510
|
+
chainId: number;
|
|
22511
|
+
address: string;
|
|
22512
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22513
|
+
name: string;
|
|
22514
|
+
decimals: number;
|
|
22515
|
+
icon?: string | null | undefined;
|
|
22516
|
+
iconUrl?: string | null | undefined;
|
|
22517
|
+
};
|
|
22518
|
+
} & {
|
|
22519
|
+
maxFeePerGas: string;
|
|
22520
|
+
maxPriorityFeePerGas: string;
|
|
22521
|
+
}) | undefined;
|
|
22522
|
+
};
|
|
22523
|
+
bridgeId: string;
|
|
22524
|
+
bridges: string[];
|
|
22525
|
+
steps: {
|
|
22526
|
+
action: import(".").ActionTypes;
|
|
22527
|
+
srcChainId: number;
|
|
22528
|
+
srcAsset: {
|
|
22529
|
+
symbol: string;
|
|
22530
|
+
chainId: number;
|
|
22531
|
+
address: string;
|
|
22532
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22533
|
+
name: string;
|
|
22534
|
+
decimals: number;
|
|
22535
|
+
icon?: string | null | undefined;
|
|
22536
|
+
iconUrl?: string | null | undefined;
|
|
22537
|
+
};
|
|
22538
|
+
destAsset: {
|
|
22539
|
+
symbol: string;
|
|
22540
|
+
chainId: number;
|
|
22541
|
+
address: string;
|
|
22542
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22543
|
+
name: string;
|
|
22544
|
+
decimals: number;
|
|
22545
|
+
icon?: string | null | undefined;
|
|
22546
|
+
iconUrl?: string | null | undefined;
|
|
22547
|
+
};
|
|
22548
|
+
srcAmount: string;
|
|
22549
|
+
destAmount: string;
|
|
22550
|
+
protocol: {
|
|
22551
|
+
name: string;
|
|
22552
|
+
icon?: string | undefined;
|
|
22553
|
+
displayName?: string | undefined;
|
|
22554
|
+
};
|
|
22555
|
+
destChainId?: number | undefined;
|
|
22556
|
+
}[];
|
|
22557
|
+
refuel?: {
|
|
22558
|
+
action: import(".").ActionTypes;
|
|
22559
|
+
srcChainId: number;
|
|
22560
|
+
srcAsset: {
|
|
22561
|
+
symbol: string;
|
|
22562
|
+
chainId: number;
|
|
22563
|
+
address: string;
|
|
22564
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22565
|
+
name: string;
|
|
22566
|
+
decimals: number;
|
|
22567
|
+
icon?: string | null | undefined;
|
|
22568
|
+
iconUrl?: string | null | undefined;
|
|
22569
|
+
};
|
|
22570
|
+
destAsset: {
|
|
22571
|
+
symbol: string;
|
|
22572
|
+
chainId: number;
|
|
22573
|
+
address: string;
|
|
22574
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22575
|
+
name: string;
|
|
22576
|
+
decimals: number;
|
|
22577
|
+
icon?: string | null | undefined;
|
|
22578
|
+
iconUrl?: string | null | undefined;
|
|
22579
|
+
};
|
|
22580
|
+
srcAmount: string;
|
|
22581
|
+
destAmount: string;
|
|
22582
|
+
protocol: {
|
|
22583
|
+
name: string;
|
|
22584
|
+
icon?: string | undefined;
|
|
22585
|
+
displayName?: string | undefined;
|
|
22586
|
+
};
|
|
22587
|
+
destChainId?: number | undefined;
|
|
22588
|
+
} | undefined;
|
|
22589
|
+
gasIncluded?: boolean | undefined;
|
|
22590
|
+
gasIncluded7702?: boolean | undefined;
|
|
22591
|
+
priceData?: {
|
|
22592
|
+
totalFromAmountUsd?: string | undefined;
|
|
22593
|
+
totalToAmountUsd?: string | undefined;
|
|
22594
|
+
priceImpact?: string | undefined;
|
|
22595
|
+
totalFeeAmountUsd?: string | undefined;
|
|
22596
|
+
} | undefined;
|
|
22597
|
+
intent?: {
|
|
22598
|
+
protocol: string;
|
|
22599
|
+
order: {
|
|
22600
|
+
sellToken: string;
|
|
22601
|
+
buyToken: string;
|
|
22602
|
+
validTo: string | number;
|
|
22603
|
+
appData: string;
|
|
22604
|
+
appDataHash: string;
|
|
22605
|
+
feeAmount: string;
|
|
22606
|
+
kind: "sell" | "buy";
|
|
22607
|
+
partiallyFillable: boolean;
|
|
22608
|
+
receiver?: string | undefined;
|
|
22609
|
+
sellAmount?: string | undefined;
|
|
22610
|
+
buyAmount?: string | undefined;
|
|
22611
|
+
from?: string | undefined;
|
|
22612
|
+
};
|
|
22613
|
+
typedData: {
|
|
22614
|
+
types: Record<string, {
|
|
22615
|
+
name: string;
|
|
22616
|
+
type: string;
|
|
22617
|
+
}[]>;
|
|
22618
|
+
primaryType: string;
|
|
22619
|
+
domain: Record<string, any>;
|
|
22620
|
+
message: Record<string, any>;
|
|
22621
|
+
};
|
|
22622
|
+
settlementContract?: string | undefined;
|
|
22623
|
+
} | undefined;
|
|
22624
|
+
gasSponsored?: boolean | undefined;
|
|
22625
|
+
};
|
|
22626
|
+
estimatedProcessingTimeInSeconds: number;
|
|
22627
|
+
trade: string | {
|
|
22628
|
+
chainId: number;
|
|
22629
|
+
from: string;
|
|
22630
|
+
to: string;
|
|
22631
|
+
value: string;
|
|
22632
|
+
data: string;
|
|
22633
|
+
gasLimit: number | null;
|
|
22634
|
+
effectiveGas?: number | undefined;
|
|
22635
|
+
} | {
|
|
22636
|
+
unsignedPsbtBase64: string;
|
|
22637
|
+
inputsToSign: {}[] | null;
|
|
22638
|
+
} | {
|
|
22639
|
+
raw_data_hex: string;
|
|
22640
|
+
visible?: boolean | undefined;
|
|
22641
|
+
raw_data?: {
|
|
22642
|
+
contract?: {
|
|
22643
|
+
type?: string | undefined;
|
|
22644
|
+
}[] | undefined;
|
|
22645
|
+
fee_limit?: number | undefined;
|
|
22646
|
+
} | null | undefined;
|
|
22647
|
+
};
|
|
22648
|
+
approval?: {
|
|
22649
|
+
chainId: number;
|
|
22650
|
+
from: string;
|
|
22651
|
+
to: string;
|
|
22652
|
+
value: string;
|
|
22653
|
+
data: string;
|
|
22654
|
+
gasLimit: number | null;
|
|
22655
|
+
effectiveGas?: number | undefined;
|
|
22656
|
+
} | {
|
|
22657
|
+
raw_data_hex: string;
|
|
22658
|
+
visible?: boolean | undefined;
|
|
22659
|
+
raw_data?: {
|
|
22660
|
+
contract?: {
|
|
22661
|
+
type?: string | undefined;
|
|
22662
|
+
}[] | undefined;
|
|
22663
|
+
fee_limit?: number | undefined;
|
|
22664
|
+
} | null | undefined;
|
|
22665
|
+
} | undefined;
|
|
22666
|
+
} & {
|
|
22667
|
+
trade: string | {
|
|
22668
|
+
chainId: number;
|
|
22669
|
+
from: string;
|
|
22670
|
+
to: string;
|
|
22671
|
+
value: string;
|
|
22672
|
+
data: string;
|
|
22673
|
+
gasLimit: number | null;
|
|
22674
|
+
effectiveGas?: number | undefined;
|
|
22675
|
+
} | {
|
|
22676
|
+
unsignedPsbtBase64: string;
|
|
22677
|
+
inputsToSign: {}[] | null;
|
|
22678
|
+
} | {
|
|
22679
|
+
raw_data_hex: string;
|
|
22680
|
+
visible?: boolean | undefined;
|
|
22681
|
+
raw_data?: {
|
|
22682
|
+
contract?: {
|
|
22683
|
+
type?: string | undefined;
|
|
22684
|
+
}[] | undefined;
|
|
22685
|
+
fee_limit?: number | undefined;
|
|
22686
|
+
} | null | undefined;
|
|
22687
|
+
};
|
|
22688
|
+
approval?: {
|
|
22689
|
+
chainId: number;
|
|
22690
|
+
from: string;
|
|
22691
|
+
to: string;
|
|
22692
|
+
value: string;
|
|
22693
|
+
data: string;
|
|
22694
|
+
gasLimit: number | null;
|
|
22695
|
+
effectiveGas?: number | undefined;
|
|
22696
|
+
} | {
|
|
22697
|
+
raw_data_hex: string;
|
|
22698
|
+
visible?: boolean | undefined;
|
|
22699
|
+
raw_data?: {
|
|
22700
|
+
contract?: {
|
|
22701
|
+
type?: string | undefined;
|
|
22702
|
+
}[] | undefined;
|
|
22703
|
+
fee_limit?: number | undefined;
|
|
22704
|
+
} | null | undefined;
|
|
22705
|
+
} | undefined;
|
|
22706
|
+
featureId?: import(".").FeatureId | undefined;
|
|
22707
|
+
resetApproval?: {
|
|
22708
|
+
chainId: number;
|
|
22709
|
+
from: string;
|
|
22710
|
+
to: string;
|
|
22711
|
+
value: string;
|
|
22712
|
+
data: string;
|
|
22713
|
+
gasLimit: number | null;
|
|
22714
|
+
effectiveGas?: number | undefined;
|
|
22715
|
+
} | undefined;
|
|
22716
|
+
} & QuoteMetadata)[];
|
|
22717
|
+
dependencies: [((state: BridgeControllerState & {
|
|
22718
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
22719
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
22720
|
+
participateInMetaMetrics: boolean;
|
|
22721
|
+
} & RemoteFeatureFlagControllerState) => {
|
|
22722
|
+
sentAmount: {
|
|
22723
|
+
amount: string;
|
|
22724
|
+
valueInCurrency: string | null;
|
|
22725
|
+
usd: string | null;
|
|
22726
|
+
};
|
|
22727
|
+
toTokenAmount: {
|
|
22728
|
+
amount: string;
|
|
22729
|
+
valueInCurrency: string | null;
|
|
22730
|
+
usd: string | null;
|
|
22731
|
+
};
|
|
22732
|
+
minToTokenAmount: {
|
|
22733
|
+
amount: string;
|
|
22734
|
+
valueInCurrency: string | null;
|
|
22735
|
+
usd: string | null;
|
|
22736
|
+
};
|
|
22737
|
+
swapRate: string;
|
|
22738
|
+
/**
|
|
22739
|
+
This is the amount required to submit all the transactions.
|
|
22740
|
+
Includes the relayer fee or other native fees.
|
|
22741
|
+
Should be used for balance checks and tx submission.
|
|
22742
|
+
*/
|
|
22743
|
+
totalNetworkFee: {
|
|
22744
|
+
amount: string;
|
|
22745
|
+
valueInCurrency: string | null;
|
|
22746
|
+
usd: string | null;
|
|
22747
|
+
};
|
|
22748
|
+
totalMaxNetworkFee: {
|
|
22749
|
+
amount: string;
|
|
22750
|
+
valueInCurrency: string | null;
|
|
22751
|
+
usd: string | null;
|
|
22752
|
+
};
|
|
22753
|
+
/**
|
|
22754
|
+
This contains gas fee estimates for the bridge transaction
|
|
22755
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
22756
|
+
Should only be used for display purposes.
|
|
22757
|
+
*/
|
|
22758
|
+
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
22759
|
+
adjustedReturn: {
|
|
22760
|
+
valueInCurrency: string | null;
|
|
22761
|
+
usd: string | null;
|
|
22762
|
+
};
|
|
22763
|
+
cost: {
|
|
22764
|
+
valueInCurrency: string | null;
|
|
22765
|
+
usd: string | null;
|
|
22766
|
+
};
|
|
22767
|
+
includedTxFees: {
|
|
22768
|
+
amount: string;
|
|
22769
|
+
valueInCurrency: string | null;
|
|
22770
|
+
usd: string | null;
|
|
22771
|
+
} | null;
|
|
22772
|
+
quote: {
|
|
22773
|
+
srcChainId: number;
|
|
22774
|
+
destChainId: number;
|
|
22775
|
+
srcAsset: {
|
|
22776
|
+
symbol: string;
|
|
22777
|
+
chainId: number;
|
|
22778
|
+
address: string;
|
|
22779
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22780
|
+
name: string;
|
|
22781
|
+
decimals: number;
|
|
22782
|
+
icon?: string | null | undefined;
|
|
22783
|
+
iconUrl?: string | null | undefined;
|
|
22784
|
+
};
|
|
22785
|
+
destAsset: {
|
|
22786
|
+
symbol: string;
|
|
22787
|
+
chainId: number;
|
|
22788
|
+
address: string;
|
|
22789
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22790
|
+
name: string;
|
|
22791
|
+
decimals: number;
|
|
22792
|
+
icon?: string | null | undefined;
|
|
22793
|
+
iconUrl?: string | null | undefined;
|
|
22794
|
+
};
|
|
22795
|
+
requestId: string;
|
|
22796
|
+
srcTokenAmount: string;
|
|
22797
|
+
destTokenAmount: string;
|
|
22798
|
+
minDestTokenAmount: string;
|
|
22799
|
+
feeData: {
|
|
22800
|
+
metabridge: {
|
|
22801
|
+
amount: string;
|
|
22802
|
+
asset: {
|
|
22803
|
+
symbol: string;
|
|
22804
|
+
chainId: number;
|
|
22805
|
+
address: string;
|
|
22806
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22807
|
+
name: string;
|
|
22808
|
+
decimals: number;
|
|
22809
|
+
icon?: string | null | undefined;
|
|
22810
|
+
iconUrl?: string | null | undefined;
|
|
22811
|
+
};
|
|
22812
|
+
};
|
|
22813
|
+
txFee?: ({
|
|
22814
|
+
amount: string;
|
|
22815
|
+
asset: {
|
|
22816
|
+
symbol: string;
|
|
22817
|
+
chainId: number;
|
|
22818
|
+
address: string;
|
|
22819
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22820
|
+
name: string;
|
|
22821
|
+
decimals: number;
|
|
22822
|
+
icon?: string | null | undefined;
|
|
22823
|
+
iconUrl?: string | null | undefined;
|
|
22824
|
+
};
|
|
22825
|
+
} & {
|
|
22826
|
+
maxFeePerGas: string;
|
|
22827
|
+
maxPriorityFeePerGas: string;
|
|
22828
|
+
}) | undefined;
|
|
22829
|
+
};
|
|
22830
|
+
bridgeId: string;
|
|
22831
|
+
bridges: string[];
|
|
22832
|
+
steps: {
|
|
22833
|
+
action: import(".").ActionTypes;
|
|
22834
|
+
srcChainId: number;
|
|
22835
|
+
srcAsset: {
|
|
22836
|
+
symbol: string;
|
|
22837
|
+
chainId: number;
|
|
22838
|
+
address: string;
|
|
22839
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22840
|
+
name: string;
|
|
22841
|
+
decimals: number;
|
|
22842
|
+
icon?: string | null | undefined;
|
|
22843
|
+
iconUrl?: string | null | undefined;
|
|
22844
|
+
};
|
|
22845
|
+
destAsset: {
|
|
22846
|
+
symbol: string;
|
|
22847
|
+
chainId: number;
|
|
22848
|
+
address: string;
|
|
22849
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22850
|
+
name: string;
|
|
22851
|
+
decimals: number;
|
|
22852
|
+
icon?: string | null | undefined;
|
|
22853
|
+
iconUrl?: string | null | undefined;
|
|
22854
|
+
};
|
|
22855
|
+
srcAmount: string;
|
|
22856
|
+
destAmount: string;
|
|
22857
|
+
protocol: {
|
|
22858
|
+
name: string;
|
|
22859
|
+
icon?: string | undefined;
|
|
22860
|
+
displayName?: string | undefined;
|
|
22861
|
+
};
|
|
22862
|
+
destChainId?: number | undefined;
|
|
22863
|
+
}[];
|
|
22864
|
+
refuel?: {
|
|
22865
|
+
action: import(".").ActionTypes;
|
|
22866
|
+
srcChainId: number;
|
|
22867
|
+
srcAsset: {
|
|
22868
|
+
symbol: string;
|
|
22869
|
+
chainId: number;
|
|
22870
|
+
address: string;
|
|
22871
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22872
|
+
name: string;
|
|
22873
|
+
decimals: number;
|
|
22874
|
+
icon?: string | null | undefined;
|
|
22875
|
+
iconUrl?: string | null | undefined;
|
|
22876
|
+
};
|
|
22877
|
+
destAsset: {
|
|
22878
|
+
symbol: string;
|
|
22879
|
+
chainId: number;
|
|
22880
|
+
address: string;
|
|
22881
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22882
|
+
name: string;
|
|
22883
|
+
decimals: number;
|
|
22884
|
+
icon?: string | null | undefined;
|
|
22885
|
+
iconUrl?: string | null | undefined;
|
|
22886
|
+
};
|
|
22887
|
+
srcAmount: string;
|
|
22888
|
+
destAmount: string;
|
|
22889
|
+
protocol: {
|
|
22890
|
+
name: string;
|
|
22891
|
+
icon?: string | undefined;
|
|
22892
|
+
displayName?: string | undefined;
|
|
22893
|
+
};
|
|
22894
|
+
destChainId?: number | undefined;
|
|
22895
|
+
} | undefined;
|
|
22896
|
+
gasIncluded?: boolean | undefined;
|
|
22897
|
+
gasIncluded7702?: boolean | undefined;
|
|
22898
|
+
priceData?: {
|
|
22899
|
+
totalFromAmountUsd?: string | undefined;
|
|
22900
|
+
totalToAmountUsd?: string | undefined;
|
|
22901
|
+
priceImpact?: string | undefined;
|
|
22902
|
+
totalFeeAmountUsd?: string | undefined;
|
|
22903
|
+
} | undefined;
|
|
22904
|
+
intent?: {
|
|
22905
|
+
protocol: string;
|
|
22906
|
+
order: {
|
|
22907
|
+
sellToken: string;
|
|
22908
|
+
buyToken: string;
|
|
22909
|
+
validTo: string | number;
|
|
22910
|
+
appData: string;
|
|
22911
|
+
appDataHash: string;
|
|
22912
|
+
feeAmount: string;
|
|
22913
|
+
kind: "sell" | "buy";
|
|
22914
|
+
partiallyFillable: boolean;
|
|
22915
|
+
receiver?: string | undefined;
|
|
22916
|
+
sellAmount?: string | undefined;
|
|
22917
|
+
buyAmount?: string | undefined;
|
|
22918
|
+
from?: string | undefined;
|
|
22919
|
+
};
|
|
22920
|
+
typedData: {
|
|
22921
|
+
types: Record<string, {
|
|
22922
|
+
name: string;
|
|
22923
|
+
type: string;
|
|
22924
|
+
}[]>;
|
|
22925
|
+
primaryType: string;
|
|
22926
|
+
domain: Record<string, any>;
|
|
22927
|
+
message: Record<string, any>;
|
|
22928
|
+
};
|
|
22929
|
+
settlementContract?: string | undefined;
|
|
22930
|
+
} | undefined;
|
|
22931
|
+
gasSponsored?: boolean | undefined;
|
|
22932
|
+
};
|
|
22933
|
+
estimatedProcessingTimeInSeconds: number;
|
|
22934
|
+
trade: string | {
|
|
22935
|
+
chainId: number;
|
|
22936
|
+
from: string;
|
|
22937
|
+
to: string;
|
|
22938
|
+
value: string;
|
|
22939
|
+
data: string;
|
|
22940
|
+
gasLimit: number | null;
|
|
22941
|
+
effectiveGas?: number | undefined;
|
|
22942
|
+
} | {
|
|
22943
|
+
unsignedPsbtBase64: string;
|
|
22944
|
+
inputsToSign: {}[] | null;
|
|
22945
|
+
} | {
|
|
22946
|
+
raw_data_hex: string;
|
|
22947
|
+
visible?: boolean | undefined;
|
|
22948
|
+
raw_data?: {
|
|
22949
|
+
contract?: {
|
|
22950
|
+
type?: string | undefined;
|
|
22951
|
+
}[] | undefined;
|
|
22952
|
+
fee_limit?: number | undefined;
|
|
22953
|
+
} | null | undefined;
|
|
22954
|
+
};
|
|
22955
|
+
approval?: {
|
|
22956
|
+
chainId: number;
|
|
22957
|
+
from: string;
|
|
22958
|
+
to: string;
|
|
22959
|
+
value: string;
|
|
22960
|
+
data: string;
|
|
22961
|
+
gasLimit: number | null;
|
|
22962
|
+
effectiveGas?: number | undefined;
|
|
22963
|
+
} | {
|
|
22964
|
+
raw_data_hex: string;
|
|
22965
|
+
visible?: boolean | undefined;
|
|
22966
|
+
raw_data?: {
|
|
22967
|
+
contract?: {
|
|
22968
|
+
type?: string | undefined;
|
|
22969
|
+
}[] | undefined;
|
|
22970
|
+
fee_limit?: number | undefined;
|
|
22971
|
+
} | null | undefined;
|
|
22972
|
+
} | undefined;
|
|
22973
|
+
featureId?: import(".").FeatureId | undefined;
|
|
22974
|
+
resetApproval?: {
|
|
22975
|
+
chainId: number;
|
|
22976
|
+
from: string;
|
|
22977
|
+
to: string;
|
|
22978
|
+
value: string;
|
|
22979
|
+
data: string;
|
|
22980
|
+
gasLimit: number | null;
|
|
22981
|
+
effectiveGas?: number | undefined;
|
|
22982
|
+
} | undefined;
|
|
22983
|
+
l1GasFeesInHexWei?: string | undefined;
|
|
22984
|
+
nonEvmFeesInNative?: string | undefined;
|
|
22985
|
+
}[]) & {
|
|
22986
|
+
clearCache: () => void;
|
|
22987
|
+
resultsCount: () => number;
|
|
22988
|
+
resetResultsCount: () => void;
|
|
22989
|
+
} & {
|
|
22990
|
+
resultFunc: (resultFuncArgs_0: ({
|
|
22991
|
+
quote: {
|
|
22992
|
+
srcChainId: number;
|
|
22993
|
+
destChainId: number;
|
|
22994
|
+
srcAsset: {
|
|
22995
|
+
symbol: string;
|
|
22996
|
+
chainId: number;
|
|
22997
|
+
address: string;
|
|
22998
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
22999
|
+
name: string;
|
|
23000
|
+
decimals: number;
|
|
23001
|
+
icon?: string | null | undefined;
|
|
23002
|
+
iconUrl?: string | null | undefined;
|
|
23003
|
+
};
|
|
23004
|
+
destAsset: {
|
|
23005
|
+
symbol: string;
|
|
23006
|
+
chainId: number;
|
|
23007
|
+
address: string;
|
|
23008
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23009
|
+
name: string;
|
|
23010
|
+
decimals: number;
|
|
23011
|
+
icon?: string | null | undefined;
|
|
23012
|
+
iconUrl?: string | null | undefined;
|
|
23013
|
+
};
|
|
23014
|
+
requestId: string;
|
|
23015
|
+
srcTokenAmount: string;
|
|
23016
|
+
destTokenAmount: string;
|
|
23017
|
+
minDestTokenAmount: string;
|
|
23018
|
+
feeData: {
|
|
23019
|
+
metabridge: {
|
|
23020
|
+
amount: string;
|
|
23021
|
+
asset: {
|
|
23022
|
+
symbol: string;
|
|
23023
|
+
chainId: number;
|
|
23024
|
+
address: string;
|
|
23025
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23026
|
+
name: string;
|
|
23027
|
+
decimals: number;
|
|
23028
|
+
icon?: string | null | undefined;
|
|
23029
|
+
iconUrl?: string | null | undefined;
|
|
23030
|
+
};
|
|
23031
|
+
};
|
|
23032
|
+
txFee?: ({
|
|
23033
|
+
amount: string;
|
|
23034
|
+
asset: {
|
|
23035
|
+
symbol: string;
|
|
23036
|
+
chainId: number;
|
|
23037
|
+
address: string;
|
|
23038
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23039
|
+
name: string;
|
|
23040
|
+
decimals: number;
|
|
23041
|
+
icon?: string | null | undefined;
|
|
23042
|
+
iconUrl?: string | null | undefined;
|
|
23043
|
+
};
|
|
23044
|
+
} & {
|
|
23045
|
+
maxFeePerGas: string;
|
|
23046
|
+
maxPriorityFeePerGas: string;
|
|
23047
|
+
}) | undefined;
|
|
23048
|
+
};
|
|
23049
|
+
bridgeId: string;
|
|
23050
|
+
bridges: string[];
|
|
23051
|
+
steps: {
|
|
23052
|
+
action: import(".").ActionTypes;
|
|
23053
|
+
srcChainId: number;
|
|
23054
|
+
srcAsset: {
|
|
23055
|
+
symbol: string;
|
|
23056
|
+
chainId: number;
|
|
23057
|
+
address: string;
|
|
23058
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23059
|
+
name: string;
|
|
23060
|
+
decimals: number;
|
|
23061
|
+
icon?: string | null | undefined;
|
|
23062
|
+
iconUrl?: string | null | undefined;
|
|
23063
|
+
};
|
|
23064
|
+
destAsset: {
|
|
23065
|
+
symbol: string;
|
|
23066
|
+
chainId: number;
|
|
23067
|
+
address: string;
|
|
23068
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23069
|
+
name: string;
|
|
23070
|
+
decimals: number;
|
|
23071
|
+
icon?: string | null | undefined;
|
|
23072
|
+
iconUrl?: string | null | undefined;
|
|
23073
|
+
};
|
|
23074
|
+
srcAmount: string;
|
|
23075
|
+
destAmount: string;
|
|
23076
|
+
protocol: {
|
|
23077
|
+
name: string;
|
|
23078
|
+
icon?: string | undefined;
|
|
23079
|
+
displayName?: string | undefined;
|
|
23080
|
+
};
|
|
23081
|
+
destChainId?: number | undefined;
|
|
23082
|
+
}[];
|
|
23083
|
+
refuel?: {
|
|
23084
|
+
action: import(".").ActionTypes;
|
|
23085
|
+
srcChainId: number;
|
|
23086
|
+
srcAsset: {
|
|
23087
|
+
symbol: string;
|
|
23088
|
+
chainId: number;
|
|
23089
|
+
address: string;
|
|
23090
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23091
|
+
name: string;
|
|
23092
|
+
decimals: number;
|
|
23093
|
+
icon?: string | null | undefined;
|
|
23094
|
+
iconUrl?: string | null | undefined;
|
|
23095
|
+
};
|
|
23096
|
+
destAsset: {
|
|
23097
|
+
symbol: string;
|
|
23098
|
+
chainId: number;
|
|
23099
|
+
address: string;
|
|
23100
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23101
|
+
name: string;
|
|
23102
|
+
decimals: number;
|
|
23103
|
+
icon?: string | null | undefined;
|
|
23104
|
+
iconUrl?: string | null | undefined;
|
|
23105
|
+
};
|
|
23106
|
+
srcAmount: string;
|
|
23107
|
+
destAmount: string;
|
|
23108
|
+
protocol: {
|
|
23109
|
+
name: string;
|
|
23110
|
+
icon?: string | undefined;
|
|
23111
|
+
displayName?: string | undefined;
|
|
23112
|
+
};
|
|
23113
|
+
destChainId?: number | undefined;
|
|
23114
|
+
} | undefined;
|
|
23115
|
+
gasIncluded?: boolean | undefined;
|
|
23116
|
+
gasIncluded7702?: boolean | undefined;
|
|
23117
|
+
priceData?: {
|
|
23118
|
+
totalFromAmountUsd?: string | undefined;
|
|
23119
|
+
totalToAmountUsd?: string | undefined;
|
|
23120
|
+
priceImpact?: string | undefined;
|
|
23121
|
+
totalFeeAmountUsd?: string | undefined;
|
|
23122
|
+
} | undefined;
|
|
23123
|
+
intent?: {
|
|
23124
|
+
protocol: string;
|
|
23125
|
+
order: {
|
|
23126
|
+
sellToken: string;
|
|
23127
|
+
buyToken: string;
|
|
23128
|
+
validTo: string | number;
|
|
23129
|
+
appData: string;
|
|
23130
|
+
appDataHash: string;
|
|
23131
|
+
feeAmount: string;
|
|
23132
|
+
kind: "sell" | "buy";
|
|
23133
|
+
partiallyFillable: boolean;
|
|
23134
|
+
receiver?: string | undefined;
|
|
23135
|
+
sellAmount?: string | undefined;
|
|
23136
|
+
buyAmount?: string | undefined;
|
|
23137
|
+
from?: string | undefined;
|
|
23138
|
+
};
|
|
23139
|
+
typedData: {
|
|
23140
|
+
types: Record<string, {
|
|
23141
|
+
name: string;
|
|
23142
|
+
type: string;
|
|
23143
|
+
}[]>;
|
|
23144
|
+
primaryType: string;
|
|
23145
|
+
domain: Record<string, any>;
|
|
23146
|
+
message: Record<string, any>;
|
|
23147
|
+
};
|
|
23148
|
+
settlementContract?: string | undefined;
|
|
23149
|
+
} | undefined;
|
|
23150
|
+
gasSponsored?: boolean | undefined;
|
|
23151
|
+
};
|
|
23152
|
+
estimatedProcessingTimeInSeconds: number;
|
|
23153
|
+
trade: string | {
|
|
23154
|
+
chainId: number;
|
|
23155
|
+
from: string;
|
|
23156
|
+
to: string;
|
|
23157
|
+
value: string;
|
|
23158
|
+
data: string;
|
|
23159
|
+
gasLimit: number | null;
|
|
23160
|
+
effectiveGas?: number | undefined;
|
|
23161
|
+
} | {
|
|
23162
|
+
unsignedPsbtBase64: string;
|
|
23163
|
+
inputsToSign: {}[] | null;
|
|
23164
|
+
} | {
|
|
23165
|
+
raw_data_hex: string;
|
|
23166
|
+
visible?: boolean | undefined;
|
|
23167
|
+
raw_data?: {
|
|
23168
|
+
contract?: {
|
|
23169
|
+
type?: string | undefined;
|
|
23170
|
+
}[] | undefined;
|
|
23171
|
+
fee_limit?: number | undefined;
|
|
23172
|
+
} | null | undefined;
|
|
23173
|
+
};
|
|
23174
|
+
approval?: {
|
|
23175
|
+
chainId: number;
|
|
23176
|
+
from: string;
|
|
23177
|
+
to: string;
|
|
23178
|
+
value: string;
|
|
23179
|
+
data: string;
|
|
23180
|
+
gasLimit: number | null;
|
|
23181
|
+
effectiveGas?: number | undefined;
|
|
23182
|
+
} | {
|
|
23183
|
+
raw_data_hex: string;
|
|
23184
|
+
visible?: boolean | undefined;
|
|
23185
|
+
raw_data?: {
|
|
23186
|
+
contract?: {
|
|
23187
|
+
type?: string | undefined;
|
|
23188
|
+
}[] | undefined;
|
|
23189
|
+
fee_limit?: number | undefined;
|
|
23190
|
+
} | null | undefined;
|
|
23191
|
+
} | undefined;
|
|
23192
|
+
} & {
|
|
23193
|
+
trade: string | {
|
|
23194
|
+
chainId: number;
|
|
23195
|
+
from: string;
|
|
23196
|
+
to: string;
|
|
23197
|
+
value: string;
|
|
23198
|
+
data: string;
|
|
23199
|
+
gasLimit: number | null;
|
|
23200
|
+
effectiveGas?: number | undefined;
|
|
23201
|
+
} | {
|
|
23202
|
+
unsignedPsbtBase64: string;
|
|
23203
|
+
inputsToSign: {}[] | null;
|
|
23204
|
+
} | {
|
|
23205
|
+
raw_data_hex: string;
|
|
23206
|
+
visible?: boolean | undefined;
|
|
23207
|
+
raw_data?: {
|
|
23208
|
+
contract?: {
|
|
23209
|
+
type?: string | undefined;
|
|
23210
|
+
}[] | undefined;
|
|
23211
|
+
fee_limit?: number | undefined;
|
|
23212
|
+
} | null | undefined;
|
|
23213
|
+
};
|
|
23214
|
+
approval?: {
|
|
23215
|
+
chainId: number;
|
|
23216
|
+
from: string;
|
|
23217
|
+
to: string;
|
|
23218
|
+
value: string;
|
|
23219
|
+
data: string;
|
|
23220
|
+
gasLimit: number | null;
|
|
23221
|
+
effectiveGas?: number | undefined;
|
|
23222
|
+
} | {
|
|
23223
|
+
raw_data_hex: string;
|
|
23224
|
+
visible?: boolean | undefined;
|
|
23225
|
+
raw_data?: {
|
|
23226
|
+
contract?: {
|
|
23227
|
+
type?: string | undefined;
|
|
23228
|
+
}[] | undefined;
|
|
23229
|
+
fee_limit?: number | undefined;
|
|
23230
|
+
} | null | undefined;
|
|
23231
|
+
} | undefined;
|
|
23232
|
+
featureId?: import(".").FeatureId | undefined;
|
|
23233
|
+
resetApproval?: {
|
|
23234
|
+
chainId: number;
|
|
23235
|
+
from: string;
|
|
23236
|
+
to: string;
|
|
23237
|
+
value: string;
|
|
23238
|
+
data: string;
|
|
23239
|
+
gasLimit: number | null;
|
|
23240
|
+
effectiveGas?: number | undefined;
|
|
23241
|
+
} | undefined;
|
|
23242
|
+
} & import("./types.mjs").L1GasFees & import("./types.mjs").NonEvmFees)[], resultFuncArgs_1: {
|
|
23243
|
+
estimatedBaseFeeInDecGwei: string;
|
|
23244
|
+
feePerGasInDecGwei: string;
|
|
23245
|
+
maxFeePerGasInDecGwei: string;
|
|
23246
|
+
} | null, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
|
|
23247
|
+
sentAmount: {
|
|
23248
|
+
amount: string;
|
|
23249
|
+
valueInCurrency: string | null;
|
|
23250
|
+
usd: string | null;
|
|
23251
|
+
};
|
|
23252
|
+
toTokenAmount: {
|
|
23253
|
+
amount: string;
|
|
23254
|
+
valueInCurrency: string | null;
|
|
23255
|
+
usd: string | null;
|
|
23256
|
+
};
|
|
23257
|
+
minToTokenAmount: {
|
|
23258
|
+
amount: string;
|
|
23259
|
+
valueInCurrency: string | null;
|
|
23260
|
+
usd: string | null;
|
|
23261
|
+
};
|
|
23262
|
+
swapRate: string;
|
|
23263
|
+
/**
|
|
23264
|
+
This is the amount required to submit all the transactions.
|
|
23265
|
+
Includes the relayer fee or other native fees.
|
|
23266
|
+
Should be used for balance checks and tx submission.
|
|
23267
|
+
*/
|
|
23268
|
+
totalNetworkFee: {
|
|
23269
|
+
amount: string;
|
|
23270
|
+
valueInCurrency: string | null;
|
|
23271
|
+
usd: string | null;
|
|
23272
|
+
};
|
|
23273
|
+
totalMaxNetworkFee: {
|
|
23274
|
+
amount: string;
|
|
23275
|
+
valueInCurrency: string | null;
|
|
23276
|
+
usd: string | null;
|
|
23277
|
+
};
|
|
23278
|
+
/**
|
|
23279
|
+
This contains gas fee estimates for the bridge transaction
|
|
23280
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
23281
|
+
Should only be used for display purposes.
|
|
23282
|
+
*/
|
|
23283
|
+
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
23284
|
+
adjustedReturn: {
|
|
23285
|
+
valueInCurrency: string | null;
|
|
23286
|
+
usd: string | null;
|
|
23287
|
+
};
|
|
23288
|
+
cost: {
|
|
23289
|
+
valueInCurrency: string | null;
|
|
23290
|
+
usd: string | null;
|
|
23291
|
+
};
|
|
23292
|
+
includedTxFees: {
|
|
23293
|
+
amount: string;
|
|
23294
|
+
valueInCurrency: string | null;
|
|
23295
|
+
usd: string | null;
|
|
23296
|
+
} | null;
|
|
23297
|
+
quote: {
|
|
23298
|
+
srcChainId: number;
|
|
23299
|
+
destChainId: number;
|
|
23300
|
+
srcAsset: {
|
|
23301
|
+
symbol: string;
|
|
23302
|
+
chainId: number;
|
|
23303
|
+
address: string;
|
|
23304
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23305
|
+
name: string;
|
|
23306
|
+
decimals: number;
|
|
23307
|
+
icon?: string | null | undefined;
|
|
23308
|
+
iconUrl?: string | null | undefined;
|
|
23309
|
+
};
|
|
23310
|
+
destAsset: {
|
|
23311
|
+
symbol: string;
|
|
23312
|
+
chainId: number;
|
|
23313
|
+
address: string;
|
|
23314
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23315
|
+
name: string;
|
|
23316
|
+
decimals: number;
|
|
23317
|
+
icon?: string | null | undefined;
|
|
23318
|
+
iconUrl?: string | null | undefined;
|
|
23319
|
+
};
|
|
23320
|
+
requestId: string;
|
|
23321
|
+
srcTokenAmount: string;
|
|
23322
|
+
destTokenAmount: string;
|
|
23323
|
+
minDestTokenAmount: string;
|
|
23324
|
+
feeData: {
|
|
23325
|
+
metabridge: {
|
|
23326
|
+
amount: string;
|
|
23327
|
+
asset: {
|
|
23328
|
+
symbol: string;
|
|
23329
|
+
chainId: number;
|
|
23330
|
+
address: string;
|
|
23331
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23332
|
+
name: string;
|
|
23333
|
+
decimals: number;
|
|
23334
|
+
icon?: string | null | undefined;
|
|
23335
|
+
iconUrl?: string | null | undefined;
|
|
23336
|
+
};
|
|
23337
|
+
};
|
|
23338
|
+
txFee?: ({
|
|
23339
|
+
amount: string;
|
|
23340
|
+
asset: {
|
|
23341
|
+
symbol: string;
|
|
23342
|
+
chainId: number;
|
|
23343
|
+
address: string;
|
|
23344
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23345
|
+
name: string;
|
|
23346
|
+
decimals: number;
|
|
23347
|
+
icon?: string | null | undefined;
|
|
23348
|
+
iconUrl?: string | null | undefined;
|
|
23349
|
+
};
|
|
23350
|
+
} & {
|
|
23351
|
+
maxFeePerGas: string;
|
|
23352
|
+
maxPriorityFeePerGas: string;
|
|
23353
|
+
}) | undefined;
|
|
23354
|
+
};
|
|
23355
|
+
bridgeId: string;
|
|
23356
|
+
bridges: string[];
|
|
23357
|
+
steps: {
|
|
23358
|
+
action: import(".").ActionTypes;
|
|
23359
|
+
srcChainId: number;
|
|
23360
|
+
srcAsset: {
|
|
23361
|
+
symbol: string;
|
|
23362
|
+
chainId: number;
|
|
23363
|
+
address: string;
|
|
23364
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23365
|
+
name: string;
|
|
23366
|
+
decimals: number;
|
|
23367
|
+
icon?: string | null | undefined;
|
|
23368
|
+
iconUrl?: string | null | undefined;
|
|
23369
|
+
};
|
|
23370
|
+
destAsset: {
|
|
23371
|
+
symbol: string;
|
|
23372
|
+
chainId: number;
|
|
23373
|
+
address: string;
|
|
23374
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23375
|
+
name: string;
|
|
23376
|
+
decimals: number;
|
|
23377
|
+
icon?: string | null | undefined;
|
|
23378
|
+
iconUrl?: string | null | undefined;
|
|
23379
|
+
};
|
|
23380
|
+
srcAmount: string;
|
|
23381
|
+
destAmount: string;
|
|
23382
|
+
protocol: {
|
|
23383
|
+
name: string;
|
|
23384
|
+
icon?: string | undefined;
|
|
23385
|
+
displayName?: string | undefined;
|
|
23386
|
+
};
|
|
23387
|
+
destChainId?: number | undefined;
|
|
23388
|
+
}[];
|
|
23389
|
+
refuel?: {
|
|
23390
|
+
action: import(".").ActionTypes;
|
|
23391
|
+
srcChainId: number;
|
|
23392
|
+
srcAsset: {
|
|
23393
|
+
symbol: string;
|
|
23394
|
+
chainId: number;
|
|
23395
|
+
address: string;
|
|
23396
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23397
|
+
name: string;
|
|
23398
|
+
decimals: number;
|
|
23399
|
+
icon?: string | null | undefined;
|
|
23400
|
+
iconUrl?: string | null | undefined;
|
|
23401
|
+
};
|
|
23402
|
+
destAsset: {
|
|
23403
|
+
symbol: string;
|
|
23404
|
+
chainId: number;
|
|
23405
|
+
address: string;
|
|
23406
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23407
|
+
name: string;
|
|
23408
|
+
decimals: number;
|
|
23409
|
+
icon?: string | null | undefined;
|
|
23410
|
+
iconUrl?: string | null | undefined;
|
|
23411
|
+
};
|
|
23412
|
+
srcAmount: string;
|
|
23413
|
+
destAmount: string;
|
|
23414
|
+
protocol: {
|
|
23415
|
+
name: string;
|
|
23416
|
+
icon?: string | undefined;
|
|
23417
|
+
displayName?: string | undefined;
|
|
23418
|
+
};
|
|
23419
|
+
destChainId?: number | undefined;
|
|
23420
|
+
} | undefined;
|
|
23421
|
+
gasIncluded?: boolean | undefined;
|
|
23422
|
+
gasIncluded7702?: boolean | undefined;
|
|
23423
|
+
priceData?: {
|
|
23424
|
+
totalFromAmountUsd?: string | undefined;
|
|
23425
|
+
totalToAmountUsd?: string | undefined;
|
|
23426
|
+
priceImpact?: string | undefined;
|
|
23427
|
+
totalFeeAmountUsd?: string | undefined;
|
|
23428
|
+
} | undefined;
|
|
23429
|
+
intent?: {
|
|
23430
|
+
protocol: string;
|
|
23431
|
+
order: {
|
|
23432
|
+
sellToken: string;
|
|
23433
|
+
buyToken: string;
|
|
23434
|
+
validTo: string | number;
|
|
23435
|
+
appData: string;
|
|
23436
|
+
appDataHash: string;
|
|
23437
|
+
feeAmount: string;
|
|
23438
|
+
kind: "sell" | "buy";
|
|
23439
|
+
partiallyFillable: boolean;
|
|
23440
|
+
receiver?: string | undefined;
|
|
23441
|
+
sellAmount?: string | undefined;
|
|
23442
|
+
buyAmount?: string | undefined;
|
|
23443
|
+
from?: string | undefined;
|
|
23444
|
+
};
|
|
23445
|
+
typedData: {
|
|
23446
|
+
types: Record<string, {
|
|
23447
|
+
name: string;
|
|
23448
|
+
type: string;
|
|
23449
|
+
}[]>;
|
|
23450
|
+
primaryType: string;
|
|
23451
|
+
domain: Record<string, any>;
|
|
23452
|
+
message: Record<string, any>;
|
|
23453
|
+
};
|
|
23454
|
+
settlementContract?: string | undefined;
|
|
23455
|
+
} | undefined;
|
|
23456
|
+
gasSponsored?: boolean | undefined;
|
|
23457
|
+
};
|
|
23458
|
+
estimatedProcessingTimeInSeconds: number;
|
|
23459
|
+
trade: string | {
|
|
23460
|
+
chainId: number;
|
|
23461
|
+
from: string;
|
|
23462
|
+
to: string;
|
|
23463
|
+
value: string;
|
|
23464
|
+
data: string;
|
|
23465
|
+
gasLimit: number | null;
|
|
23466
|
+
effectiveGas?: number | undefined;
|
|
23467
|
+
} | {
|
|
23468
|
+
unsignedPsbtBase64: string;
|
|
23469
|
+
inputsToSign: {}[] | null;
|
|
23470
|
+
} | {
|
|
23471
|
+
raw_data_hex: string;
|
|
23472
|
+
visible?: boolean | undefined;
|
|
23473
|
+
raw_data?: {
|
|
23474
|
+
contract?: {
|
|
23475
|
+
type?: string | undefined;
|
|
23476
|
+
}[] | undefined;
|
|
23477
|
+
fee_limit?: number | undefined;
|
|
23478
|
+
} | null | undefined;
|
|
23479
|
+
};
|
|
23480
|
+
approval?: {
|
|
23481
|
+
chainId: number;
|
|
23482
|
+
from: string;
|
|
23483
|
+
to: string;
|
|
23484
|
+
value: string;
|
|
23485
|
+
data: string;
|
|
23486
|
+
gasLimit: number | null;
|
|
23487
|
+
effectiveGas?: number | undefined;
|
|
23488
|
+
} | {
|
|
23489
|
+
raw_data_hex: string;
|
|
23490
|
+
visible?: boolean | undefined;
|
|
23491
|
+
raw_data?: {
|
|
23492
|
+
contract?: {
|
|
23493
|
+
type?: string | undefined;
|
|
23494
|
+
}[] | undefined;
|
|
23495
|
+
fee_limit?: number | undefined;
|
|
23496
|
+
} | null | undefined;
|
|
23497
|
+
} | undefined;
|
|
23498
|
+
featureId?: import(".").FeatureId | undefined;
|
|
23499
|
+
resetApproval?: {
|
|
23500
|
+
chainId: number;
|
|
23501
|
+
from: string;
|
|
23502
|
+
to: string;
|
|
23503
|
+
value: string;
|
|
23504
|
+
data: string;
|
|
23505
|
+
gasLimit: number | null;
|
|
23506
|
+
effectiveGas?: number | undefined;
|
|
23507
|
+
} | undefined;
|
|
23508
|
+
l1GasFeesInHexWei?: string | undefined;
|
|
23509
|
+
nonEvmFeesInNative?: string | undefined;
|
|
23510
|
+
}[];
|
|
23511
|
+
memoizedResultFunc: ((resultFuncArgs_0: ({
|
|
23512
|
+
quote: {
|
|
23513
|
+
srcChainId: number;
|
|
23514
|
+
destChainId: number;
|
|
23515
|
+
srcAsset: {
|
|
23516
|
+
symbol: string;
|
|
23517
|
+
chainId: number;
|
|
23518
|
+
address: string;
|
|
23519
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23520
|
+
name: string;
|
|
23521
|
+
decimals: number;
|
|
23522
|
+
icon?: string | null | undefined;
|
|
23523
|
+
iconUrl?: string | null | undefined;
|
|
23524
|
+
};
|
|
23525
|
+
destAsset: {
|
|
23526
|
+
symbol: string;
|
|
23527
|
+
chainId: number;
|
|
23528
|
+
address: string;
|
|
23529
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23530
|
+
name: string;
|
|
23531
|
+
decimals: number;
|
|
23532
|
+
icon?: string | null | undefined;
|
|
23533
|
+
iconUrl?: string | null | undefined;
|
|
23534
|
+
};
|
|
23535
|
+
requestId: string;
|
|
23536
|
+
srcTokenAmount: string;
|
|
23537
|
+
destTokenAmount: string;
|
|
23538
|
+
minDestTokenAmount: string;
|
|
23539
|
+
feeData: {
|
|
23540
|
+
metabridge: {
|
|
23541
|
+
amount: string;
|
|
23542
|
+
asset: {
|
|
23543
|
+
symbol: string;
|
|
23544
|
+
chainId: number;
|
|
23545
|
+
address: string;
|
|
23546
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23547
|
+
name: string;
|
|
23548
|
+
decimals: number;
|
|
23549
|
+
icon?: string | null | undefined;
|
|
23550
|
+
iconUrl?: string | null | undefined;
|
|
23551
|
+
};
|
|
23552
|
+
};
|
|
23553
|
+
txFee?: ({
|
|
23554
|
+
amount: string;
|
|
23555
|
+
asset: {
|
|
23556
|
+
symbol: string;
|
|
23557
|
+
chainId: number;
|
|
23558
|
+
address: string;
|
|
23559
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23560
|
+
name: string;
|
|
23561
|
+
decimals: number;
|
|
23562
|
+
icon?: string | null | undefined;
|
|
23563
|
+
iconUrl?: string | null | undefined;
|
|
23564
|
+
};
|
|
23565
|
+
} & {
|
|
23566
|
+
maxFeePerGas: string;
|
|
23567
|
+
maxPriorityFeePerGas: string;
|
|
23568
|
+
}) | undefined;
|
|
23569
|
+
};
|
|
23570
|
+
bridgeId: string;
|
|
23571
|
+
bridges: string[];
|
|
23572
|
+
steps: {
|
|
23573
|
+
action: import(".").ActionTypes;
|
|
23574
|
+
srcChainId: number;
|
|
23575
|
+
srcAsset: {
|
|
23576
|
+
symbol: string;
|
|
23577
|
+
chainId: number;
|
|
23578
|
+
address: string;
|
|
23579
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23580
|
+
name: string;
|
|
23581
|
+
decimals: number;
|
|
23582
|
+
icon?: string | null | undefined;
|
|
23583
|
+
iconUrl?: string | null | undefined;
|
|
23584
|
+
};
|
|
23585
|
+
destAsset: {
|
|
23586
|
+
symbol: string;
|
|
23587
|
+
chainId: number;
|
|
23588
|
+
address: string;
|
|
23589
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23590
|
+
name: string;
|
|
23591
|
+
decimals: number;
|
|
23592
|
+
icon?: string | null | undefined;
|
|
23593
|
+
iconUrl?: string | null | undefined;
|
|
23594
|
+
};
|
|
23595
|
+
srcAmount: string;
|
|
23596
|
+
destAmount: string;
|
|
23597
|
+
protocol: {
|
|
23598
|
+
name: string;
|
|
23599
|
+
icon?: string | undefined;
|
|
23600
|
+
displayName?: string | undefined;
|
|
23601
|
+
};
|
|
23602
|
+
destChainId?: number | undefined;
|
|
23603
|
+
}[];
|
|
23604
|
+
refuel?: {
|
|
23605
|
+
action: import(".").ActionTypes;
|
|
23606
|
+
srcChainId: number;
|
|
23607
|
+
srcAsset: {
|
|
23608
|
+
symbol: string;
|
|
23609
|
+
chainId: number;
|
|
23610
|
+
address: string;
|
|
23611
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23612
|
+
name: string;
|
|
23613
|
+
decimals: number;
|
|
23614
|
+
icon?: string | null | undefined;
|
|
23615
|
+
iconUrl?: string | null | undefined;
|
|
23616
|
+
};
|
|
23617
|
+
destAsset: {
|
|
23618
|
+
symbol: string;
|
|
23619
|
+
chainId: number;
|
|
23620
|
+
address: string;
|
|
23621
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23622
|
+
name: string;
|
|
23623
|
+
decimals: number;
|
|
23624
|
+
icon?: string | null | undefined;
|
|
23625
|
+
iconUrl?: string | null | undefined;
|
|
23626
|
+
};
|
|
23627
|
+
srcAmount: string;
|
|
23628
|
+
destAmount: string;
|
|
23629
|
+
protocol: {
|
|
23630
|
+
name: string;
|
|
23631
|
+
icon?: string | undefined;
|
|
23632
|
+
displayName?: string | undefined;
|
|
23633
|
+
};
|
|
23634
|
+
destChainId?: number | undefined;
|
|
23635
|
+
} | undefined;
|
|
23636
|
+
gasIncluded?: boolean | undefined;
|
|
23637
|
+
gasIncluded7702?: boolean | undefined;
|
|
23638
|
+
priceData?: {
|
|
23639
|
+
totalFromAmountUsd?: string | undefined;
|
|
23640
|
+
totalToAmountUsd?: string | undefined;
|
|
23641
|
+
priceImpact?: string | undefined;
|
|
23642
|
+
totalFeeAmountUsd?: string | undefined;
|
|
23643
|
+
} | undefined;
|
|
23644
|
+
intent?: {
|
|
23645
|
+
protocol: string;
|
|
23646
|
+
order: {
|
|
23647
|
+
sellToken: string;
|
|
23648
|
+
buyToken: string;
|
|
23649
|
+
validTo: string | number;
|
|
23650
|
+
appData: string;
|
|
23651
|
+
appDataHash: string;
|
|
23652
|
+
feeAmount: string;
|
|
23653
|
+
kind: "sell" | "buy";
|
|
23654
|
+
partiallyFillable: boolean;
|
|
23655
|
+
receiver?: string | undefined;
|
|
23656
|
+
sellAmount?: string | undefined;
|
|
23657
|
+
buyAmount?: string | undefined;
|
|
23658
|
+
from?: string | undefined;
|
|
23659
|
+
};
|
|
23660
|
+
typedData: {
|
|
23661
|
+
types: Record<string, {
|
|
23662
|
+
name: string;
|
|
23663
|
+
type: string;
|
|
23664
|
+
}[]>;
|
|
23665
|
+
primaryType: string;
|
|
23666
|
+
domain: Record<string, any>;
|
|
23667
|
+
message: Record<string, any>;
|
|
23668
|
+
};
|
|
23669
|
+
settlementContract?: string | undefined;
|
|
23670
|
+
} | undefined;
|
|
23671
|
+
gasSponsored?: boolean | undefined;
|
|
23672
|
+
};
|
|
23673
|
+
estimatedProcessingTimeInSeconds: number;
|
|
23674
|
+
trade: string | {
|
|
23675
|
+
chainId: number;
|
|
23676
|
+
from: string;
|
|
23677
|
+
to: string;
|
|
23678
|
+
value: string;
|
|
23679
|
+
data: string;
|
|
23680
|
+
gasLimit: number | null;
|
|
23681
|
+
effectiveGas?: number | undefined;
|
|
23682
|
+
} | {
|
|
23683
|
+
unsignedPsbtBase64: string;
|
|
23684
|
+
inputsToSign: {}[] | null;
|
|
23685
|
+
} | {
|
|
23686
|
+
raw_data_hex: string;
|
|
23687
|
+
visible?: boolean | undefined;
|
|
23688
|
+
raw_data?: {
|
|
23689
|
+
contract?: {
|
|
23690
|
+
type?: string | undefined;
|
|
23691
|
+
}[] | undefined;
|
|
23692
|
+
fee_limit?: number | undefined;
|
|
23693
|
+
} | null | undefined;
|
|
23694
|
+
};
|
|
23695
|
+
approval?: {
|
|
23696
|
+
chainId: number;
|
|
23697
|
+
from: string;
|
|
23698
|
+
to: string;
|
|
23699
|
+
value: string;
|
|
23700
|
+
data: string;
|
|
23701
|
+
gasLimit: number | null;
|
|
23702
|
+
effectiveGas?: number | undefined;
|
|
23703
|
+
} | {
|
|
23704
|
+
raw_data_hex: string;
|
|
23705
|
+
visible?: boolean | undefined;
|
|
23706
|
+
raw_data?: {
|
|
23707
|
+
contract?: {
|
|
23708
|
+
type?: string | undefined;
|
|
23709
|
+
}[] | undefined;
|
|
23710
|
+
fee_limit?: number | undefined;
|
|
23711
|
+
} | null | undefined;
|
|
23712
|
+
} | undefined;
|
|
23713
|
+
} & {
|
|
23714
|
+
trade: string | {
|
|
23715
|
+
chainId: number;
|
|
23716
|
+
from: string;
|
|
23717
|
+
to: string;
|
|
23718
|
+
value: string;
|
|
23719
|
+
data: string;
|
|
23720
|
+
gasLimit: number | null;
|
|
23721
|
+
effectiveGas?: number | undefined;
|
|
23722
|
+
} | {
|
|
23723
|
+
unsignedPsbtBase64: string;
|
|
23724
|
+
inputsToSign: {}[] | null;
|
|
23725
|
+
} | {
|
|
23726
|
+
raw_data_hex: string;
|
|
23727
|
+
visible?: boolean | undefined;
|
|
23728
|
+
raw_data?: {
|
|
23729
|
+
contract?: {
|
|
23730
|
+
type?: string | undefined;
|
|
23731
|
+
}[] | undefined;
|
|
23732
|
+
fee_limit?: number | undefined;
|
|
23733
|
+
} | null | undefined;
|
|
23734
|
+
};
|
|
23735
|
+
approval?: {
|
|
23736
|
+
chainId: number;
|
|
23737
|
+
from: string;
|
|
23738
|
+
to: string;
|
|
23739
|
+
value: string;
|
|
23740
|
+
data: string;
|
|
23741
|
+
gasLimit: number | null;
|
|
23742
|
+
effectiveGas?: number | undefined;
|
|
23743
|
+
} | {
|
|
23744
|
+
raw_data_hex: string;
|
|
23745
|
+
visible?: boolean | undefined;
|
|
23746
|
+
raw_data?: {
|
|
23747
|
+
contract?: {
|
|
23748
|
+
type?: string | undefined;
|
|
23749
|
+
}[] | undefined;
|
|
23750
|
+
fee_limit?: number | undefined;
|
|
23751
|
+
} | null | undefined;
|
|
23752
|
+
} | undefined;
|
|
23753
|
+
featureId?: import(".").FeatureId | undefined;
|
|
23754
|
+
resetApproval?: {
|
|
23755
|
+
chainId: number;
|
|
23756
|
+
from: string;
|
|
23757
|
+
to: string;
|
|
23758
|
+
value: string;
|
|
23759
|
+
data: string;
|
|
23760
|
+
gasLimit: number | null;
|
|
23761
|
+
effectiveGas?: number | undefined;
|
|
23762
|
+
} | undefined;
|
|
23763
|
+
} & import("./types.mjs").L1GasFees & import("./types.mjs").NonEvmFees)[], resultFuncArgs_1: {
|
|
23764
|
+
estimatedBaseFeeInDecGwei: string;
|
|
23765
|
+
feePerGasInDecGwei: string;
|
|
23766
|
+
maxFeePerGasInDecGwei: string;
|
|
23767
|
+
} | null, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
|
|
23768
|
+
sentAmount: {
|
|
23769
|
+
amount: string;
|
|
23770
|
+
valueInCurrency: string | null;
|
|
23771
|
+
usd: string | null;
|
|
23772
|
+
};
|
|
23773
|
+
toTokenAmount: {
|
|
23774
|
+
amount: string;
|
|
23775
|
+
valueInCurrency: string | null;
|
|
23776
|
+
usd: string | null;
|
|
23777
|
+
};
|
|
23778
|
+
minToTokenAmount: {
|
|
23779
|
+
amount: string;
|
|
23780
|
+
valueInCurrency: string | null;
|
|
23781
|
+
usd: string | null;
|
|
23782
|
+
};
|
|
23783
|
+
swapRate: string;
|
|
23784
|
+
/**
|
|
23785
|
+
This is the amount required to submit all the transactions.
|
|
23786
|
+
Includes the relayer fee or other native fees.
|
|
23787
|
+
Should be used for balance checks and tx submission.
|
|
23788
|
+
*/
|
|
23789
|
+
totalNetworkFee: {
|
|
23790
|
+
amount: string;
|
|
23791
|
+
valueInCurrency: string | null;
|
|
23792
|
+
usd: string | null;
|
|
23793
|
+
};
|
|
23794
|
+
totalMaxNetworkFee: {
|
|
23795
|
+
amount: string;
|
|
23796
|
+
valueInCurrency: string | null;
|
|
23797
|
+
usd: string | null;
|
|
23798
|
+
};
|
|
23799
|
+
/**
|
|
23800
|
+
This contains gas fee estimates for the bridge transaction
|
|
23801
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
23802
|
+
Should only be used for display purposes.
|
|
23803
|
+
*/
|
|
23804
|
+
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
23805
|
+
adjustedReturn: {
|
|
23806
|
+
valueInCurrency: string | null;
|
|
23807
|
+
usd: string | null;
|
|
23808
|
+
};
|
|
23809
|
+
cost: {
|
|
23810
|
+
valueInCurrency: string | null;
|
|
23811
|
+
usd: string | null;
|
|
23812
|
+
};
|
|
23813
|
+
includedTxFees: {
|
|
23814
|
+
amount: string;
|
|
23815
|
+
valueInCurrency: string | null;
|
|
23816
|
+
usd: string | null;
|
|
23817
|
+
} | null;
|
|
23818
|
+
quote: {
|
|
23819
|
+
srcChainId: number;
|
|
23820
|
+
destChainId: number;
|
|
23821
|
+
srcAsset: {
|
|
23822
|
+
symbol: string;
|
|
23823
|
+
chainId: number;
|
|
23824
|
+
address: string;
|
|
23825
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23826
|
+
name: string;
|
|
23827
|
+
decimals: number;
|
|
23828
|
+
icon?: string | null | undefined;
|
|
23829
|
+
iconUrl?: string | null | undefined;
|
|
23830
|
+
};
|
|
23831
|
+
destAsset: {
|
|
23832
|
+
symbol: string;
|
|
23833
|
+
chainId: number;
|
|
23834
|
+
address: string;
|
|
23835
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23836
|
+
name: string;
|
|
23837
|
+
decimals: number;
|
|
23838
|
+
icon?: string | null | undefined;
|
|
23839
|
+
iconUrl?: string | null | undefined;
|
|
23840
|
+
};
|
|
23841
|
+
requestId: string;
|
|
23842
|
+
srcTokenAmount: string;
|
|
23843
|
+
destTokenAmount: string;
|
|
23844
|
+
minDestTokenAmount: string;
|
|
23845
|
+
feeData: {
|
|
23846
|
+
metabridge: {
|
|
23847
|
+
amount: string;
|
|
23848
|
+
asset: {
|
|
23849
|
+
symbol: string;
|
|
23850
|
+
chainId: number;
|
|
23851
|
+
address: string;
|
|
23852
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23853
|
+
name: string;
|
|
23854
|
+
decimals: number;
|
|
23855
|
+
icon?: string | null | undefined;
|
|
23856
|
+
iconUrl?: string | null | undefined;
|
|
23857
|
+
};
|
|
23858
|
+
};
|
|
23859
|
+
txFee?: ({
|
|
23860
|
+
amount: string;
|
|
23861
|
+
asset: {
|
|
23862
|
+
symbol: string;
|
|
23863
|
+
chainId: number;
|
|
23864
|
+
address: string;
|
|
23865
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23866
|
+
name: string;
|
|
23867
|
+
decimals: number;
|
|
23868
|
+
icon?: string | null | undefined;
|
|
23869
|
+
iconUrl?: string | null | undefined;
|
|
23870
|
+
};
|
|
23871
|
+
} & {
|
|
23872
|
+
maxFeePerGas: string;
|
|
23873
|
+
maxPriorityFeePerGas: string;
|
|
23874
|
+
}) | undefined;
|
|
23875
|
+
};
|
|
23876
|
+
bridgeId: string;
|
|
23877
|
+
bridges: string[];
|
|
23878
|
+
steps: {
|
|
23879
|
+
action: import(".").ActionTypes;
|
|
23880
|
+
srcChainId: number;
|
|
23881
|
+
srcAsset: {
|
|
23882
|
+
symbol: string;
|
|
23883
|
+
chainId: number;
|
|
23884
|
+
address: string;
|
|
23885
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23886
|
+
name: string;
|
|
23887
|
+
decimals: number;
|
|
23888
|
+
icon?: string | null | undefined;
|
|
23889
|
+
iconUrl?: string | null | undefined;
|
|
23890
|
+
};
|
|
23891
|
+
destAsset: {
|
|
23892
|
+
symbol: string;
|
|
23893
|
+
chainId: number;
|
|
23894
|
+
address: string;
|
|
23895
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23896
|
+
name: string;
|
|
23897
|
+
decimals: number;
|
|
23898
|
+
icon?: string | null | undefined;
|
|
23899
|
+
iconUrl?: string | null | undefined;
|
|
23900
|
+
};
|
|
23901
|
+
srcAmount: string;
|
|
23902
|
+
destAmount: string;
|
|
23903
|
+
protocol: {
|
|
23904
|
+
name: string;
|
|
23905
|
+
icon?: string | undefined;
|
|
23906
|
+
displayName?: string | undefined;
|
|
23907
|
+
};
|
|
23908
|
+
destChainId?: number | undefined;
|
|
23909
|
+
}[];
|
|
23910
|
+
refuel?: {
|
|
23911
|
+
action: import(".").ActionTypes;
|
|
23912
|
+
srcChainId: number;
|
|
23913
|
+
srcAsset: {
|
|
23914
|
+
symbol: string;
|
|
23915
|
+
chainId: number;
|
|
23916
|
+
address: string;
|
|
23917
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23918
|
+
name: string;
|
|
23919
|
+
decimals: number;
|
|
23920
|
+
icon?: string | null | undefined;
|
|
23921
|
+
iconUrl?: string | null | undefined;
|
|
23922
|
+
};
|
|
23923
|
+
destAsset: {
|
|
23924
|
+
symbol: string;
|
|
23925
|
+
chainId: number;
|
|
23926
|
+
address: string;
|
|
23927
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
23928
|
+
name: string;
|
|
23929
|
+
decimals: number;
|
|
23930
|
+
icon?: string | null | undefined;
|
|
23931
|
+
iconUrl?: string | null | undefined;
|
|
23932
|
+
};
|
|
23933
|
+
srcAmount: string;
|
|
23934
|
+
destAmount: string;
|
|
23935
|
+
protocol: {
|
|
23936
|
+
name: string;
|
|
23937
|
+
icon?: string | undefined;
|
|
23938
|
+
displayName?: string | undefined;
|
|
23939
|
+
};
|
|
23940
|
+
destChainId?: number | undefined;
|
|
23941
|
+
} | undefined;
|
|
23942
|
+
gasIncluded?: boolean | undefined;
|
|
23943
|
+
gasIncluded7702?: boolean | undefined;
|
|
23944
|
+
priceData?: {
|
|
23945
|
+
totalFromAmountUsd?: string | undefined;
|
|
23946
|
+
totalToAmountUsd?: string | undefined;
|
|
23947
|
+
priceImpact?: string | undefined;
|
|
23948
|
+
totalFeeAmountUsd?: string | undefined;
|
|
23949
|
+
} | undefined;
|
|
23950
|
+
intent?: {
|
|
23951
|
+
protocol: string;
|
|
23952
|
+
order: {
|
|
23953
|
+
sellToken: string;
|
|
23954
|
+
buyToken: string;
|
|
23955
|
+
validTo: string | number;
|
|
23956
|
+
appData: string;
|
|
23957
|
+
appDataHash: string;
|
|
23958
|
+
feeAmount: string;
|
|
23959
|
+
kind: "sell" | "buy";
|
|
23960
|
+
partiallyFillable: boolean;
|
|
23961
|
+
receiver?: string | undefined;
|
|
23962
|
+
sellAmount?: string | undefined;
|
|
23963
|
+
buyAmount?: string | undefined;
|
|
23964
|
+
from?: string | undefined;
|
|
23965
|
+
};
|
|
23966
|
+
typedData: {
|
|
23967
|
+
types: Record<string, {
|
|
23968
|
+
name: string;
|
|
23969
|
+
type: string;
|
|
23970
|
+
}[]>;
|
|
23971
|
+
primaryType: string;
|
|
23972
|
+
domain: Record<string, any>;
|
|
23973
|
+
message: Record<string, any>;
|
|
23974
|
+
};
|
|
23975
|
+
settlementContract?: string | undefined;
|
|
23976
|
+
} | undefined;
|
|
23977
|
+
gasSponsored?: boolean | undefined;
|
|
23978
|
+
};
|
|
23979
|
+
estimatedProcessingTimeInSeconds: number;
|
|
23980
|
+
trade: string | {
|
|
23981
|
+
chainId: number;
|
|
23982
|
+
from: string;
|
|
23983
|
+
to: string;
|
|
23984
|
+
value: string;
|
|
23985
|
+
data: string;
|
|
23986
|
+
gasLimit: number | null;
|
|
23987
|
+
effectiveGas?: number | undefined;
|
|
23988
|
+
} | {
|
|
23989
|
+
unsignedPsbtBase64: string;
|
|
23990
|
+
inputsToSign: {}[] | null;
|
|
23991
|
+
} | {
|
|
23992
|
+
raw_data_hex: string;
|
|
23993
|
+
visible?: boolean | undefined;
|
|
23994
|
+
raw_data?: {
|
|
23995
|
+
contract?: {
|
|
23996
|
+
type?: string | undefined;
|
|
23997
|
+
}[] | undefined;
|
|
23998
|
+
fee_limit?: number | undefined;
|
|
23999
|
+
} | null | undefined;
|
|
24000
|
+
};
|
|
24001
|
+
approval?: {
|
|
24002
|
+
chainId: number;
|
|
24003
|
+
from: string;
|
|
24004
|
+
to: string;
|
|
24005
|
+
value: string;
|
|
24006
|
+
data: string;
|
|
24007
|
+
gasLimit: number | null;
|
|
24008
|
+
effectiveGas?: number | undefined;
|
|
24009
|
+
} | {
|
|
24010
|
+
raw_data_hex: string;
|
|
24011
|
+
visible?: boolean | undefined;
|
|
24012
|
+
raw_data?: {
|
|
24013
|
+
contract?: {
|
|
24014
|
+
type?: string | undefined;
|
|
24015
|
+
}[] | undefined;
|
|
24016
|
+
fee_limit?: number | undefined;
|
|
24017
|
+
} | null | undefined;
|
|
24018
|
+
} | undefined;
|
|
24019
|
+
featureId?: import(".").FeatureId | undefined;
|
|
24020
|
+
resetApproval?: {
|
|
24021
|
+
chainId: number;
|
|
24022
|
+
from: string;
|
|
24023
|
+
to: string;
|
|
24024
|
+
value: string;
|
|
24025
|
+
data: string;
|
|
24026
|
+
gasLimit: number | null;
|
|
24027
|
+
effectiveGas?: number | undefined;
|
|
24028
|
+
} | undefined;
|
|
24029
|
+
l1GasFeesInHexWei?: string | undefined;
|
|
24030
|
+
nonEvmFeesInNative?: string | undefined;
|
|
24031
|
+
}[]) & {
|
|
24032
|
+
clearCache: () => void;
|
|
24033
|
+
resultsCount: () => number;
|
|
24034
|
+
resetResultsCount: () => void;
|
|
24035
|
+
};
|
|
24036
|
+
lastResult: () => {
|
|
24037
|
+
sentAmount: {
|
|
24038
|
+
amount: string;
|
|
24039
|
+
valueInCurrency: string | null;
|
|
24040
|
+
usd: string | null;
|
|
24041
|
+
};
|
|
24042
|
+
toTokenAmount: {
|
|
24043
|
+
amount: string;
|
|
24044
|
+
valueInCurrency: string | null;
|
|
24045
|
+
usd: string | null;
|
|
24046
|
+
};
|
|
24047
|
+
minToTokenAmount: {
|
|
24048
|
+
amount: string;
|
|
24049
|
+
valueInCurrency: string | null;
|
|
24050
|
+
usd: string | null;
|
|
24051
|
+
};
|
|
24052
|
+
swapRate: string;
|
|
24053
|
+
/**
|
|
24054
|
+
This is the amount required to submit all the transactions.
|
|
24055
|
+
Includes the relayer fee or other native fees.
|
|
24056
|
+
Should be used for balance checks and tx submission.
|
|
24057
|
+
*/
|
|
24058
|
+
totalNetworkFee: {
|
|
24059
|
+
amount: string;
|
|
24060
|
+
valueInCurrency: string | null;
|
|
24061
|
+
usd: string | null;
|
|
24062
|
+
};
|
|
24063
|
+
totalMaxNetworkFee: {
|
|
24064
|
+
amount: string;
|
|
24065
|
+
valueInCurrency: string | null;
|
|
24066
|
+
usd: string | null;
|
|
24067
|
+
};
|
|
24068
|
+
/**
|
|
24069
|
+
This contains gas fee estimates for the bridge transaction
|
|
24070
|
+
Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API.
|
|
24071
|
+
Should only be used for display purposes.
|
|
24072
|
+
*/
|
|
24073
|
+
gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
|
|
24074
|
+
adjustedReturn: {
|
|
24075
|
+
valueInCurrency: string | null;
|
|
24076
|
+
usd: string | null;
|
|
24077
|
+
};
|
|
24078
|
+
cost: {
|
|
24079
|
+
valueInCurrency: string | null;
|
|
24080
|
+
usd: string | null;
|
|
24081
|
+
};
|
|
24082
|
+
includedTxFees: {
|
|
24083
|
+
amount: string;
|
|
24084
|
+
valueInCurrency: string | null;
|
|
24085
|
+
usd: string | null;
|
|
24086
|
+
} | null;
|
|
24087
|
+
quote: {
|
|
24088
|
+
srcChainId: number;
|
|
24089
|
+
destChainId: number;
|
|
24090
|
+
srcAsset: {
|
|
24091
|
+
symbol: string;
|
|
24092
|
+
chainId: number;
|
|
24093
|
+
address: string;
|
|
24094
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24095
|
+
name: string;
|
|
24096
|
+
decimals: number;
|
|
24097
|
+
icon?: string | null | undefined;
|
|
24098
|
+
iconUrl?: string | null | undefined;
|
|
24099
|
+
};
|
|
24100
|
+
destAsset: {
|
|
24101
|
+
symbol: string;
|
|
24102
|
+
chainId: number;
|
|
24103
|
+
address: string;
|
|
24104
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24105
|
+
name: string;
|
|
24106
|
+
decimals: number;
|
|
24107
|
+
icon?: string | null | undefined;
|
|
24108
|
+
iconUrl?: string | null | undefined;
|
|
24109
|
+
};
|
|
24110
|
+
requestId: string;
|
|
24111
|
+
srcTokenAmount: string;
|
|
24112
|
+
destTokenAmount: string;
|
|
24113
|
+
minDestTokenAmount: string;
|
|
24114
|
+
feeData: {
|
|
24115
|
+
metabridge: {
|
|
24116
|
+
amount: string;
|
|
24117
|
+
asset: {
|
|
24118
|
+
symbol: string;
|
|
24119
|
+
chainId: number;
|
|
24120
|
+
address: string;
|
|
24121
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24122
|
+
name: string;
|
|
24123
|
+
decimals: number;
|
|
24124
|
+
icon?: string | null | undefined;
|
|
24125
|
+
iconUrl?: string | null | undefined;
|
|
24126
|
+
};
|
|
24127
|
+
};
|
|
24128
|
+
txFee?: ({
|
|
24129
|
+
amount: string;
|
|
24130
|
+
asset: {
|
|
24131
|
+
symbol: string;
|
|
24132
|
+
chainId: number;
|
|
24133
|
+
address: string;
|
|
24134
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24135
|
+
name: string;
|
|
24136
|
+
decimals: number;
|
|
24137
|
+
icon?: string | null | undefined;
|
|
24138
|
+
iconUrl?: string | null | undefined;
|
|
24139
|
+
};
|
|
24140
|
+
} & {
|
|
24141
|
+
maxFeePerGas: string;
|
|
24142
|
+
maxPriorityFeePerGas: string;
|
|
24143
|
+
}) | undefined;
|
|
24144
|
+
};
|
|
24145
|
+
bridgeId: string;
|
|
24146
|
+
bridges: string[];
|
|
24147
|
+
steps: {
|
|
24148
|
+
action: import(".").ActionTypes;
|
|
24149
|
+
srcChainId: number;
|
|
24150
|
+
srcAsset: {
|
|
24151
|
+
symbol: string;
|
|
24152
|
+
chainId: number;
|
|
24153
|
+
address: string;
|
|
24154
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24155
|
+
name: string;
|
|
24156
|
+
decimals: number;
|
|
24157
|
+
icon?: string | null | undefined;
|
|
24158
|
+
iconUrl?: string | null | undefined;
|
|
24159
|
+
};
|
|
24160
|
+
destAsset: {
|
|
24161
|
+
symbol: string;
|
|
24162
|
+
chainId: number;
|
|
24163
|
+
address: string;
|
|
24164
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24165
|
+
name: string;
|
|
24166
|
+
decimals: number;
|
|
24167
|
+
icon?: string | null | undefined;
|
|
24168
|
+
iconUrl?: string | null | undefined;
|
|
24169
|
+
};
|
|
24170
|
+
srcAmount: string;
|
|
24171
|
+
destAmount: string;
|
|
24172
|
+
protocol: {
|
|
24173
|
+
name: string;
|
|
24174
|
+
icon?: string | undefined;
|
|
24175
|
+
displayName?: string | undefined;
|
|
24176
|
+
};
|
|
24177
|
+
destChainId?: number | undefined;
|
|
24178
|
+
}[];
|
|
24179
|
+
refuel?: {
|
|
24180
|
+
action: import(".").ActionTypes;
|
|
24181
|
+
srcChainId: number;
|
|
24182
|
+
srcAsset: {
|
|
24183
|
+
symbol: string;
|
|
24184
|
+
chainId: number;
|
|
24185
|
+
address: string;
|
|
24186
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24187
|
+
name: string;
|
|
24188
|
+
decimals: number;
|
|
24189
|
+
icon?: string | null | undefined;
|
|
24190
|
+
iconUrl?: string | null | undefined;
|
|
24191
|
+
};
|
|
24192
|
+
destAsset: {
|
|
24193
|
+
symbol: string;
|
|
24194
|
+
chainId: number;
|
|
24195
|
+
address: string;
|
|
24196
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24197
|
+
name: string;
|
|
24198
|
+
decimals: number;
|
|
24199
|
+
icon?: string | null | undefined;
|
|
24200
|
+
iconUrl?: string | null | undefined;
|
|
24201
|
+
};
|
|
24202
|
+
srcAmount: string;
|
|
24203
|
+
destAmount: string;
|
|
24204
|
+
protocol: {
|
|
24205
|
+
name: string;
|
|
24206
|
+
icon?: string | undefined;
|
|
24207
|
+
displayName?: string | undefined;
|
|
24208
|
+
};
|
|
24209
|
+
destChainId?: number | undefined;
|
|
24210
|
+
} | undefined;
|
|
24211
|
+
gasIncluded?: boolean | undefined;
|
|
24212
|
+
gasIncluded7702?: boolean | undefined;
|
|
24213
|
+
priceData?: {
|
|
24214
|
+
totalFromAmountUsd?: string | undefined;
|
|
24215
|
+
totalToAmountUsd?: string | undefined;
|
|
24216
|
+
priceImpact?: string | undefined;
|
|
24217
|
+
totalFeeAmountUsd?: string | undefined;
|
|
24218
|
+
} | undefined;
|
|
24219
|
+
intent?: {
|
|
24220
|
+
protocol: string;
|
|
24221
|
+
order: {
|
|
24222
|
+
sellToken: string;
|
|
24223
|
+
buyToken: string;
|
|
24224
|
+
validTo: string | number;
|
|
24225
|
+
appData: string;
|
|
24226
|
+
appDataHash: string;
|
|
24227
|
+
feeAmount: string;
|
|
24228
|
+
kind: "sell" | "buy";
|
|
24229
|
+
partiallyFillable: boolean;
|
|
24230
|
+
receiver?: string | undefined;
|
|
24231
|
+
sellAmount?: string | undefined;
|
|
24232
|
+
buyAmount?: string | undefined;
|
|
24233
|
+
from?: string | undefined;
|
|
24234
|
+
};
|
|
24235
|
+
typedData: {
|
|
24236
|
+
types: Record<string, {
|
|
24237
|
+
name: string;
|
|
24238
|
+
type: string;
|
|
24239
|
+
}[]>;
|
|
24240
|
+
primaryType: string;
|
|
24241
|
+
domain: Record<string, any>;
|
|
24242
|
+
message: Record<string, any>;
|
|
24243
|
+
};
|
|
24244
|
+
settlementContract?: string | undefined;
|
|
24245
|
+
} | undefined;
|
|
24246
|
+
gasSponsored?: boolean | undefined;
|
|
24247
|
+
};
|
|
24248
|
+
estimatedProcessingTimeInSeconds: number;
|
|
24249
|
+
trade: string | {
|
|
24250
|
+
chainId: number;
|
|
24251
|
+
from: string;
|
|
24252
|
+
to: string;
|
|
24253
|
+
value: string;
|
|
24254
|
+
data: string;
|
|
24255
|
+
gasLimit: number | null;
|
|
24256
|
+
effectiveGas?: number | undefined;
|
|
24257
|
+
} | {
|
|
24258
|
+
unsignedPsbtBase64: string;
|
|
24259
|
+
inputsToSign: {}[] | null;
|
|
24260
|
+
} | {
|
|
24261
|
+
raw_data_hex: string;
|
|
24262
|
+
visible?: boolean | undefined;
|
|
24263
|
+
raw_data?: {
|
|
24264
|
+
contract?: {
|
|
24265
|
+
type?: string | undefined;
|
|
24266
|
+
}[] | undefined;
|
|
24267
|
+
fee_limit?: number | undefined;
|
|
24268
|
+
} | null | undefined;
|
|
24269
|
+
};
|
|
24270
|
+
approval?: {
|
|
24271
|
+
chainId: number;
|
|
24272
|
+
from: string;
|
|
24273
|
+
to: string;
|
|
24274
|
+
value: string;
|
|
24275
|
+
data: string;
|
|
24276
|
+
gasLimit: number | null;
|
|
24277
|
+
effectiveGas?: number | undefined;
|
|
24278
|
+
} | {
|
|
24279
|
+
raw_data_hex: string;
|
|
24280
|
+
visible?: boolean | undefined;
|
|
24281
|
+
raw_data?: {
|
|
24282
|
+
contract?: {
|
|
24283
|
+
type?: string | undefined;
|
|
24284
|
+
}[] | undefined;
|
|
24285
|
+
fee_limit?: number | undefined;
|
|
24286
|
+
} | null | undefined;
|
|
24287
|
+
} | undefined;
|
|
24288
|
+
featureId?: import(".").FeatureId | undefined;
|
|
24289
|
+
resetApproval?: {
|
|
24290
|
+
chainId: number;
|
|
24291
|
+
from: string;
|
|
24292
|
+
to: string;
|
|
24293
|
+
value: string;
|
|
24294
|
+
data: string;
|
|
24295
|
+
gasLimit: number | null;
|
|
24296
|
+
effectiveGas?: number | undefined;
|
|
24297
|
+
} | undefined;
|
|
24298
|
+
l1GasFeesInHexWei?: string | undefined;
|
|
24299
|
+
nonEvmFeesInNative?: string | undefined;
|
|
24300
|
+
}[];
|
|
24301
|
+
dependencies: [({ quotes }: BridgeAppState) => ({
|
|
24302
|
+
quote: {
|
|
24303
|
+
srcChainId: number;
|
|
24304
|
+
destChainId: number;
|
|
24305
|
+
srcAsset: {
|
|
24306
|
+
symbol: string;
|
|
24307
|
+
chainId: number;
|
|
24308
|
+
address: string;
|
|
24309
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24310
|
+
name: string;
|
|
24311
|
+
decimals: number;
|
|
24312
|
+
icon?: string | null | undefined;
|
|
24313
|
+
iconUrl?: string | null | undefined;
|
|
24314
|
+
};
|
|
24315
|
+
destAsset: {
|
|
24316
|
+
symbol: string;
|
|
24317
|
+
chainId: number;
|
|
24318
|
+
address: string;
|
|
24319
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24320
|
+
name: string;
|
|
24321
|
+
decimals: number;
|
|
24322
|
+
icon?: string | null | undefined;
|
|
24323
|
+
iconUrl?: string | null | undefined;
|
|
24324
|
+
};
|
|
24325
|
+
requestId: string;
|
|
24326
|
+
srcTokenAmount: string;
|
|
24327
|
+
destTokenAmount: string;
|
|
24328
|
+
minDestTokenAmount: string;
|
|
24329
|
+
feeData: {
|
|
24330
|
+
metabridge: {
|
|
24331
|
+
amount: string;
|
|
24332
|
+
asset: {
|
|
24333
|
+
symbol: string;
|
|
24334
|
+
chainId: number;
|
|
24335
|
+
address: string;
|
|
24336
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24337
|
+
name: string;
|
|
24338
|
+
decimals: number;
|
|
24339
|
+
icon?: string | null | undefined;
|
|
24340
|
+
iconUrl?: string | null | undefined;
|
|
24341
|
+
};
|
|
24342
|
+
};
|
|
24343
|
+
txFee?: ({
|
|
24344
|
+
amount: string;
|
|
24345
|
+
asset: {
|
|
24346
|
+
symbol: string;
|
|
24347
|
+
chainId: number;
|
|
24348
|
+
address: string;
|
|
24349
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24350
|
+
name: string;
|
|
24351
|
+
decimals: number;
|
|
24352
|
+
icon?: string | null | undefined;
|
|
24353
|
+
iconUrl?: string | null | undefined;
|
|
24354
|
+
};
|
|
24355
|
+
} & {
|
|
24356
|
+
maxFeePerGas: string;
|
|
24357
|
+
maxPriorityFeePerGas: string;
|
|
24358
|
+
}) | undefined;
|
|
24359
|
+
};
|
|
24360
|
+
bridgeId: string;
|
|
24361
|
+
bridges: string[];
|
|
24362
|
+
steps: {
|
|
24363
|
+
action: import(".").ActionTypes;
|
|
24364
|
+
srcChainId: number;
|
|
24365
|
+
srcAsset: {
|
|
24366
|
+
symbol: string;
|
|
24367
|
+
chainId: number;
|
|
24368
|
+
address: string;
|
|
24369
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24370
|
+
name: string;
|
|
24371
|
+
decimals: number;
|
|
24372
|
+
icon?: string | null | undefined;
|
|
24373
|
+
iconUrl?: string | null | undefined;
|
|
24374
|
+
};
|
|
24375
|
+
destAsset: {
|
|
24376
|
+
symbol: string;
|
|
24377
|
+
chainId: number;
|
|
24378
|
+
address: string;
|
|
24379
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24380
|
+
name: string;
|
|
24381
|
+
decimals: number;
|
|
24382
|
+
icon?: string | null | undefined;
|
|
24383
|
+
iconUrl?: string | null | undefined;
|
|
24384
|
+
};
|
|
24385
|
+
srcAmount: string;
|
|
24386
|
+
destAmount: string;
|
|
24387
|
+
protocol: {
|
|
24388
|
+
name: string;
|
|
24389
|
+
icon?: string | undefined;
|
|
24390
|
+
displayName?: string | undefined;
|
|
24391
|
+
};
|
|
24392
|
+
destChainId?: number | undefined;
|
|
24393
|
+
}[];
|
|
24394
|
+
refuel?: {
|
|
24395
|
+
action: import(".").ActionTypes;
|
|
24396
|
+
srcChainId: number;
|
|
24397
|
+
srcAsset: {
|
|
24398
|
+
symbol: string;
|
|
24399
|
+
chainId: number;
|
|
24400
|
+
address: string;
|
|
24401
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24402
|
+
name: string;
|
|
24403
|
+
decimals: number;
|
|
24404
|
+
icon?: string | null | undefined;
|
|
24405
|
+
iconUrl?: string | null | undefined;
|
|
24406
|
+
};
|
|
24407
|
+
destAsset: {
|
|
24408
|
+
symbol: string;
|
|
24409
|
+
chainId: number;
|
|
24410
|
+
address: string;
|
|
24411
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
24412
|
+
name: string;
|
|
24413
|
+
decimals: number;
|
|
24414
|
+
icon?: string | null | undefined;
|
|
24415
|
+
iconUrl?: string | null | undefined;
|
|
24416
|
+
};
|
|
24417
|
+
srcAmount: string;
|
|
24418
|
+
destAmount: string;
|
|
24419
|
+
protocol: {
|
|
24420
|
+
name: string;
|
|
24421
|
+
icon?: string | undefined;
|
|
24422
|
+
displayName?: string | undefined;
|
|
24423
|
+
};
|
|
24424
|
+
destChainId?: number | undefined;
|
|
24425
|
+
} | undefined;
|
|
24426
|
+
gasIncluded?: boolean | undefined;
|
|
24427
|
+
gasIncluded7702?: boolean | undefined;
|
|
24428
|
+
priceData?: {
|
|
24429
|
+
totalFromAmountUsd?: string | undefined;
|
|
24430
|
+
totalToAmountUsd?: string | undefined;
|
|
24431
|
+
priceImpact?: string | undefined;
|
|
24432
|
+
totalFeeAmountUsd?: string | undefined;
|
|
24433
|
+
} | undefined;
|
|
24434
|
+
intent?: {
|
|
24435
|
+
protocol: string;
|
|
24436
|
+
order: {
|
|
24437
|
+
sellToken: string;
|
|
24438
|
+
buyToken: string;
|
|
24439
|
+
validTo: string | number;
|
|
24440
|
+
appData: string;
|
|
24441
|
+
appDataHash: string;
|
|
24442
|
+
feeAmount: string;
|
|
24443
|
+
kind: "sell" | "buy";
|
|
24444
|
+
partiallyFillable: boolean;
|
|
24445
|
+
receiver?: string | undefined;
|
|
24446
|
+
sellAmount?: string | undefined;
|
|
24447
|
+
buyAmount?: string | undefined;
|
|
24448
|
+
from?: string | undefined;
|
|
24449
|
+
};
|
|
24450
|
+
typedData: {
|
|
24451
|
+
types: Record<string, {
|
|
24452
|
+
name: string;
|
|
24453
|
+
type: string;
|
|
24454
|
+
}[]>;
|
|
24455
|
+
primaryType: string;
|
|
24456
|
+
domain: Record<string, any>;
|
|
24457
|
+
message: Record<string, any>;
|
|
24458
|
+
};
|
|
24459
|
+
settlementContract?: string | undefined;
|
|
24460
|
+
} | undefined;
|
|
24461
|
+
gasSponsored?: boolean | undefined;
|
|
24462
|
+
};
|
|
24463
|
+
estimatedProcessingTimeInSeconds: number;
|
|
24464
|
+
trade: string | {
|
|
24465
|
+
chainId: number;
|
|
24466
|
+
from: string;
|
|
24467
|
+
to: string;
|
|
24468
|
+
value: string;
|
|
24469
|
+
data: string;
|
|
24470
|
+
gasLimit: number | null;
|
|
24471
|
+
effectiveGas?: number | undefined;
|
|
24472
|
+
} | {
|
|
24473
|
+
unsignedPsbtBase64: string;
|
|
24474
|
+
inputsToSign: {}[] | null;
|
|
24475
|
+
} | {
|
|
24476
|
+
raw_data_hex: string;
|
|
24477
|
+
visible?: boolean | undefined;
|
|
24478
|
+
raw_data?: {
|
|
24479
|
+
contract?: {
|
|
24480
|
+
type?: string | undefined;
|
|
24481
|
+
}[] | undefined;
|
|
24482
|
+
fee_limit?: number | undefined;
|
|
24483
|
+
} | null | undefined;
|
|
24484
|
+
};
|
|
24485
|
+
approval?: {
|
|
24486
|
+
chainId: number;
|
|
24487
|
+
from: string;
|
|
24488
|
+
to: string;
|
|
24489
|
+
value: string;
|
|
24490
|
+
data: string;
|
|
24491
|
+
gasLimit: number | null;
|
|
24492
|
+
effectiveGas?: number | undefined;
|
|
24493
|
+
} | {
|
|
24494
|
+
raw_data_hex: string;
|
|
24495
|
+
visible?: boolean | undefined;
|
|
24496
|
+
raw_data?: {
|
|
24497
|
+
contract?: {
|
|
24498
|
+
type?: string | undefined;
|
|
24499
|
+
}[] | undefined;
|
|
24500
|
+
fee_limit?: number | undefined;
|
|
24501
|
+
} | null | undefined;
|
|
24502
|
+
} | undefined;
|
|
24503
|
+
} & {
|
|
24504
|
+
trade: string | {
|
|
24505
|
+
chainId: number;
|
|
24506
|
+
from: string;
|
|
24507
|
+
to: string;
|
|
24508
|
+
value: string;
|
|
24509
|
+
data: string;
|
|
24510
|
+
gasLimit: number | null;
|
|
24511
|
+
effectiveGas?: number | undefined;
|
|
24512
|
+
} | {
|
|
24513
|
+
unsignedPsbtBase64: string;
|
|
24514
|
+
inputsToSign: {}[] | null;
|
|
24515
|
+
} | {
|
|
24516
|
+
raw_data_hex: string;
|
|
24517
|
+
visible?: boolean | undefined;
|
|
24518
|
+
raw_data?: {
|
|
24519
|
+
contract?: {
|
|
24520
|
+
type?: string | undefined;
|
|
24521
|
+
}[] | undefined;
|
|
24522
|
+
fee_limit?: number | undefined;
|
|
24523
|
+
} | null | undefined;
|
|
24524
|
+
};
|
|
24525
|
+
approval?: {
|
|
24526
|
+
chainId: number;
|
|
24527
|
+
from: string;
|
|
24528
|
+
to: string;
|
|
24529
|
+
value: string;
|
|
24530
|
+
data: string;
|
|
24531
|
+
gasLimit: number | null;
|
|
24532
|
+
effectiveGas?: number | undefined;
|
|
24533
|
+
} | {
|
|
24534
|
+
raw_data_hex: string;
|
|
24535
|
+
visible?: boolean | undefined;
|
|
24536
|
+
raw_data?: {
|
|
24537
|
+
contract?: {
|
|
24538
|
+
type?: string | undefined;
|
|
24539
|
+
}[] | undefined;
|
|
24540
|
+
fee_limit?: number | undefined;
|
|
24541
|
+
} | null | undefined;
|
|
24542
|
+
} | undefined;
|
|
24543
|
+
featureId?: import(".").FeatureId | undefined;
|
|
24544
|
+
resetApproval?: {
|
|
24545
|
+
chainId: number;
|
|
24546
|
+
from: string;
|
|
24547
|
+
to: string;
|
|
24548
|
+
value: string;
|
|
24549
|
+
data: string;
|
|
24550
|
+
gasLimit: number | null;
|
|
24551
|
+
effectiveGas?: number | undefined;
|
|
24552
|
+
} | undefined;
|
|
24553
|
+
} & import("./types.mjs").L1GasFees & import("./types.mjs").NonEvmFees)[], ((state: BridgeControllerState & {
|
|
24554
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
24555
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
24556
|
+
participateInMetaMetrics: boolean;
|
|
24557
|
+
} & RemoteFeatureFlagControllerState) => {
|
|
24558
|
+
estimatedBaseFeeInDecGwei: string;
|
|
24559
|
+
feePerGasInDecGwei: string;
|
|
24560
|
+
maxFeePerGasInDecGwei: string;
|
|
24561
|
+
} | null) & {
|
|
24562
|
+
clearCache: () => void;
|
|
24563
|
+
resultsCount: () => number;
|
|
24564
|
+
resetResultsCount: () => void;
|
|
24565
|
+
} & {
|
|
24566
|
+
resultFunc: (resultFuncArgs_0: GasFeeEstimatesByChainId, resultFuncArgs_1: number) => {
|
|
24567
|
+
estimatedBaseFeeInDecGwei: string;
|
|
24568
|
+
feePerGasInDecGwei: string;
|
|
24569
|
+
maxFeePerGasInDecGwei: string;
|
|
24570
|
+
} | null;
|
|
24571
|
+
memoizedResultFunc: ((resultFuncArgs_0: GasFeeEstimatesByChainId, resultFuncArgs_1: number) => {
|
|
24572
|
+
estimatedBaseFeeInDecGwei: string;
|
|
24573
|
+
feePerGasInDecGwei: string;
|
|
24574
|
+
maxFeePerGasInDecGwei: string;
|
|
24575
|
+
} | null) & {
|
|
24576
|
+
clearCache: () => void;
|
|
24577
|
+
resultsCount: () => number;
|
|
24578
|
+
resetResultsCount: () => void;
|
|
24579
|
+
};
|
|
24580
|
+
lastResult: () => {
|
|
24581
|
+
estimatedBaseFeeInDecGwei: string;
|
|
24582
|
+
feePerGasInDecGwei: string;
|
|
24583
|
+
maxFeePerGasInDecGwei: string;
|
|
24584
|
+
} | null;
|
|
24585
|
+
dependencies: [(state: BridgeAppState) => GasFeeEstimatesByChainId, (state: BridgeAppState) => number];
|
|
24586
|
+
recomputations: () => number;
|
|
24587
|
+
resetRecomputations: () => void;
|
|
24588
|
+
dependencyRecomputations: () => number;
|
|
24589
|
+
resetDependencyRecomputations: () => void;
|
|
24590
|
+
} & {
|
|
24591
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
24592
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
24593
|
+
}, ((state: BridgeControllerState & {
|
|
24594
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
24595
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
24596
|
+
participateInMetaMetrics: boolean;
|
|
24597
|
+
} & RemoteFeatureFlagControllerState) => ExchangeRate) & {
|
|
24598
|
+
clearCache: () => void;
|
|
24599
|
+
resultsCount: () => number;
|
|
24600
|
+
resetResultsCount: () => void;
|
|
24601
|
+
} & {
|
|
24602
|
+
resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate;
|
|
24603
|
+
memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate) & {
|
|
24604
|
+
clearCache: () => void;
|
|
24605
|
+
resultsCount: () => number;
|
|
24606
|
+
resetResultsCount: () => void;
|
|
24607
|
+
};
|
|
24608
|
+
lastResult: () => ExchangeRate;
|
|
24609
|
+
dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { srcChainId } }: BridgeAppState) => string | number | undefined, ({ quoteRequest: { srcTokenAddress } }: BridgeAppState) => string | undefined];
|
|
24610
|
+
recomputations: () => number;
|
|
24611
|
+
resetRecomputations: () => void;
|
|
24612
|
+
dependencyRecomputations: () => number;
|
|
24613
|
+
resetDependencyRecomputations: () => void;
|
|
24614
|
+
} & {
|
|
24615
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
24616
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
24617
|
+
}, ((state: BridgeControllerState & {
|
|
24618
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
24619
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
24620
|
+
participateInMetaMetrics: boolean;
|
|
24621
|
+
} & RemoteFeatureFlagControllerState) => ExchangeRate) & {
|
|
24622
|
+
clearCache: () => void;
|
|
24623
|
+
resultsCount: () => number;
|
|
24624
|
+
resetResultsCount: () => void;
|
|
24625
|
+
} & {
|
|
24626
|
+
resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate;
|
|
24627
|
+
memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined, resultFuncArgs_2: string | undefined) => ExchangeRate) & {
|
|
24628
|
+
clearCache: () => void;
|
|
24629
|
+
resultsCount: () => number;
|
|
24630
|
+
resetResultsCount: () => void;
|
|
24631
|
+
};
|
|
24632
|
+
lastResult: () => ExchangeRate;
|
|
24633
|
+
dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { destChainId } }: BridgeAppState) => string | number | undefined, ({ quoteRequest: { destTokenAddress } }: BridgeAppState) => string | undefined];
|
|
24634
|
+
recomputations: () => number;
|
|
24635
|
+
resetRecomputations: () => void;
|
|
24636
|
+
dependencyRecomputations: () => number;
|
|
24637
|
+
resetDependencyRecomputations: () => void;
|
|
24638
|
+
} & {
|
|
24639
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
24640
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
24641
|
+
}, ((state: BridgeControllerState & {
|
|
24642
|
+
gasFeeEstimatesByChainId: GasFeeEstimatesByChainId;
|
|
24643
|
+
} & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
|
|
24644
|
+
participateInMetaMetrics: boolean;
|
|
24645
|
+
} & RemoteFeatureFlagControllerState) => ExchangeRate) & {
|
|
24646
|
+
clearCache: () => void;
|
|
24647
|
+
resultsCount: () => number;
|
|
24648
|
+
resetResultsCount: () => void;
|
|
24649
|
+
} & {
|
|
24650
|
+
resultFunc: (resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined) => ExchangeRate;
|
|
24651
|
+
memoizedResultFunc: ((resultFuncArgs_0: BridgeAppState, resultFuncArgs_1: string | number | undefined) => ExchangeRate) & {
|
|
24652
|
+
clearCache: () => void;
|
|
24653
|
+
resultsCount: () => number;
|
|
24654
|
+
resetResultsCount: () => void;
|
|
24655
|
+
};
|
|
24656
|
+
lastResult: () => ExchangeRate;
|
|
24657
|
+
dependencies: [(state: BridgeAppState) => BridgeAppState, ({ quoteRequest: { srcChainId } }: BridgeAppState) => string | number | undefined];
|
|
24658
|
+
recomputations: () => number;
|
|
24659
|
+
resetRecomputations: () => void;
|
|
24660
|
+
dependencyRecomputations: () => number;
|
|
24661
|
+
resetDependencyRecomputations: () => void;
|
|
24662
|
+
} & {
|
|
24663
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
24664
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
24665
|
+
}];
|
|
24666
|
+
recomputations: () => number;
|
|
24667
|
+
resetRecomputations: () => void;
|
|
24668
|
+
dependencyRecomputations: () => number;
|
|
24669
|
+
resetDependencyRecomputations: () => void;
|
|
24670
|
+
} & {
|
|
24671
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
24672
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
24673
|
+
}, (_: BridgeAppState, { sortOrder }: BridgeQuotesClientParams) => SortOrder];
|
|
24674
|
+
recomputations: () => number;
|
|
24675
|
+
resetRecomputations: () => void;
|
|
24676
|
+
dependencyRecomputations: () => number;
|
|
24677
|
+
resetDependencyRecomputations: () => void;
|
|
24678
|
+
} & {
|
|
24679
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
24680
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
24681
|
+
}, (_: BridgeAppState, { selectedQuote }: any) => any];
|
|
21418
24682
|
recomputations: () => number;
|
|
21419
24683
|
resetRecomputations: () => void;
|
|
21420
24684
|
dependencyRecomputations: () => number;
|