@metamask/bridge-controller 64.0.0 → 64.1.0

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/dist/bridge-controller.cjs.map +1 -1
  3. package/dist/bridge-controller.d.cts +2 -2
  4. package/dist/bridge-controller.d.cts.map +1 -1
  5. package/dist/bridge-controller.d.mts +2 -2
  6. package/dist/bridge-controller.d.mts.map +1 -1
  7. package/dist/bridge-controller.mjs.map +1 -1
  8. package/dist/selectors.cjs +11 -2
  9. package/dist/selectors.cjs.map +1 -1
  10. package/dist/selectors.d.cts +198 -18
  11. package/dist/selectors.d.cts.map +1 -1
  12. package/dist/selectors.d.mts +198 -18
  13. package/dist/selectors.d.mts.map +1 -1
  14. package/dist/selectors.mjs +11 -2
  15. package/dist/selectors.mjs.map +1 -1
  16. package/dist/utils/assets.cjs.map +1 -1
  17. package/dist/utils/assets.d.cts.map +1 -1
  18. package/dist/utils/assets.d.mts.map +1 -1
  19. package/dist/utils/assets.mjs.map +1 -1
  20. package/dist/utils/bridge.cjs.map +1 -1
  21. package/dist/utils/bridge.d.cts +1 -2
  22. package/dist/utils/bridge.d.cts.map +1 -1
  23. package/dist/utils/bridge.d.mts +1 -2
  24. package/dist/utils/bridge.d.mts.map +1 -1
  25. package/dist/utils/bridge.mjs.map +1 -1
  26. package/dist/utils/caip-formatters.cjs.map +1 -1
  27. package/dist/utils/caip-formatters.d.cts +1 -2
  28. package/dist/utils/caip-formatters.d.cts.map +1 -1
  29. package/dist/utils/caip-formatters.d.mts +1 -2
  30. package/dist/utils/caip-formatters.d.mts.map +1 -1
  31. package/dist/utils/caip-formatters.mjs.map +1 -1
  32. package/dist/utils/fetch.cjs.map +1 -1
  33. package/dist/utils/fetch.d.cts.map +1 -1
  34. package/dist/utils/fetch.d.mts.map +1 -1
  35. package/dist/utils/fetch.mjs.map +1 -1
  36. package/dist/utils/metrics/properties.cjs.map +1 -1
  37. package/dist/utils/metrics/properties.d.cts +1 -2
  38. package/dist/utils/metrics/properties.d.cts.map +1 -1
  39. package/dist/utils/metrics/properties.d.mts +1 -2
  40. package/dist/utils/metrics/properties.d.mts.map +1 -1
  41. package/dist/utils/metrics/properties.mjs.map +1 -1
  42. package/dist/utils/quote.cjs +7 -11
  43. package/dist/utils/quote.cjs.map +1 -1
  44. package/dist/utils/quote.d.cts +4 -5
  45. package/dist/utils/quote.d.cts.map +1 -1
  46. package/dist/utils/quote.d.mts +4 -5
  47. package/dist/utils/quote.d.mts.map +1 -1
  48. package/dist/utils/quote.mjs +7 -11
  49. package/dist/utils/quote.mjs.map +1 -1
  50. package/package.json +4 -4
@@ -5090,6 +5090,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
5090
5090
  usd: string | null;
5091
5091
  };
5092
5092
  swapRate: string;
5093
+ /**
5094
+ This is the amount required to submit the transactions
5095
+ Includes the relayer fee or other native fees
5096
+ Should be used for balance checks and tx submission.
5097
+ */
5093
5098
  totalNetworkFee: {
5094
5099
  amount: string;
5095
5100
  valueInCurrency: string | null;
@@ -5100,6 +5105,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
5100
5105
  valueInCurrency: string | null;
5101
5106
  usd: string | null;
5102
5107
  };
5108
+ /**
5109
+ This contains gas fee estimates for the bridge transaction
5110
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
5111
+ Should only be used for display purposes.
5112
+ */
5103
5113
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
5104
5114
  adjustedReturn: {
5105
5115
  valueInCurrency: string | null;
@@ -5537,6 +5547,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
5537
5547
  usd: string | null;
5538
5548
  };
5539
5549
  swapRate: string;
5550
+ /**
5551
+ This is the amount required to submit the transactions
5552
+ Includes the relayer fee or other native fees
5553
+ Should be used for balance checks and tx submission.
5554
+ */
5540
5555
  totalNetworkFee: {
5541
5556
  amount: string;
5542
5557
  valueInCurrency: string | null;
@@ -5547,6 +5562,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
5547
5562
  valueInCurrency: string | null;
5548
5563
  usd: string | null;
5549
5564
  };
5565
+ /**
5566
+ This contains gas fee estimates for the bridge transaction
5567
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
5568
+ Should only be used for display purposes.
5569
+ */
5550
5570
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
5551
5571
  adjustedReturn: {
5552
5572
  valueInCurrency: string | null;
@@ -6214,6 +6234,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6214
6234
  usd: string | null;
6215
6235
  };
6216
6236
  swapRate: string;
6237
+ /**
6238
+ This is the amount required to submit the transactions
6239
+ Includes the relayer fee or other native fees
6240
+ Should be used for balance checks and tx submission.
6241
+ */
6217
6242
  totalNetworkFee: {
6218
6243
  amount: string;
6219
6244
  valueInCurrency: string | null;
@@ -6224,6 +6249,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6224
6249
  valueInCurrency: string | null;
6225
6250
  usd: string | null;
6226
6251
  };
6252
+ /**
6253
+ This contains gas fee estimates for the bridge transaction
6254
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
6255
+ Should only be used for display purposes.
6256
+ */
6227
6257
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
6228
6258
  adjustedReturn: {
6229
6259
  valueInCurrency: string | null;
@@ -6650,7 +6680,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6650
6680
  } | undefined;
6651
6681
  } & import("./types.mjs").L1GasFees & import("./types.mjs").NonEvmFees)[], resultFuncArgs_1: {
6652
6682
  estimatedBaseFeeInDecGwei: string;
6653
- maxPriorityFeePerGasInDecGwei: string;
6683
+ feePerGasInDecGwei: string;
6654
6684
  maxFeePerGasInDecGwei: string;
6655
6685
  }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
6656
6686
  sentAmount: {
@@ -6669,6 +6699,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6669
6699
  usd: string | null;
6670
6700
  };
6671
6701
  swapRate: string;
6702
+ /**
6703
+ This is the amount required to submit the transactions
6704
+ Includes the relayer fee or other native fees
6705
+ Should be used for balance checks and tx submission.
6706
+ */
6672
6707
  totalNetworkFee: {
6673
6708
  amount: string;
6674
6709
  valueInCurrency: string | null;
@@ -6679,6 +6714,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6679
6714
  valueInCurrency: string | null;
6680
6715
  usd: string | null;
6681
6716
  };
6717
+ /**
6718
+ This contains gas fee estimates for the bridge transaction
6719
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
6720
+ Should only be used for display purposes.
6721
+ */
6682
6722
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
6683
6723
  adjustedReturn: {
6684
6724
  valueInCurrency: string | null;
@@ -7101,7 +7141,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7101
7141
  } | undefined;
7102
7142
  } & import("./types.mjs").L1GasFees & import("./types.mjs").NonEvmFees)[], resultFuncArgs_1: {
7103
7143
  estimatedBaseFeeInDecGwei: string;
7104
- maxPriorityFeePerGasInDecGwei: string;
7144
+ feePerGasInDecGwei: string;
7105
7145
  maxFeePerGasInDecGwei: string;
7106
7146
  }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
7107
7147
  sentAmount: {
@@ -7120,6 +7160,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7120
7160
  usd: string | null;
7121
7161
  };
7122
7162
  swapRate: string;
7163
+ /**
7164
+ This is the amount required to submit the transactions
7165
+ Includes the relayer fee or other native fees
7166
+ Should be used for balance checks and tx submission.
7167
+ */
7123
7168
  totalNetworkFee: {
7124
7169
  amount: string;
7125
7170
  valueInCurrency: string | null;
@@ -7130,6 +7175,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7130
7175
  valueInCurrency: string | null;
7131
7176
  usd: string | null;
7132
7177
  };
7178
+ /**
7179
+ This contains gas fee estimates for the bridge transaction
7180
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
7181
+ Should only be used for display purposes.
7182
+ */
7133
7183
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
7134
7184
  adjustedReturn: {
7135
7185
  valueInCurrency: string | null;
@@ -7350,6 +7400,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7350
7400
  usd: string | null;
7351
7401
  };
7352
7402
  swapRate: string;
7403
+ /**
7404
+ This is the amount required to submit the transactions
7405
+ Includes the relayer fee or other native fees
7406
+ Should be used for balance checks and tx submission.
7407
+ */
7353
7408
  totalNetworkFee: {
7354
7409
  amount: string;
7355
7410
  valueInCurrency: string | null;
@@ -7360,6 +7415,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7360
7415
  valueInCurrency: string | null;
7361
7416
  usd: string | null;
7362
7417
  };
7418
+ /**
7419
+ This contains gas fee estimates for the bridge transaction
7420
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
7421
+ Should only be used for display purposes.
7422
+ */
7363
7423
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
7364
7424
  adjustedReturn: {
7365
7425
  valueInCurrency: string | null;
@@ -7786,7 +7846,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7786
7846
  participateInMetaMetrics: boolean;
7787
7847
  } & RemoteFeatureFlagControllerState) => {
7788
7848
  estimatedBaseFeeInDecGwei: string;
7789
- maxPriorityFeePerGasInDecGwei: string;
7849
+ feePerGasInDecGwei: string;
7790
7850
  maxFeePerGasInDecGwei: string;
7791
7851
  }) & {
7792
7852
  clearCache: () => void;
@@ -7795,12 +7855,12 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7795
7855
  } & {
7796
7856
  resultFunc: (resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
7797
7857
  estimatedBaseFeeInDecGwei: string;
7798
- maxPriorityFeePerGasInDecGwei: string;
7858
+ feePerGasInDecGwei: string;
7799
7859
  maxFeePerGasInDecGwei: string;
7800
7860
  };
7801
7861
  memoizedResultFunc: ((resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
7802
7862
  estimatedBaseFeeInDecGwei: string;
7803
- maxPriorityFeePerGasInDecGwei: string;
7863
+ feePerGasInDecGwei: string;
7804
7864
  maxFeePerGasInDecGwei: string;
7805
7865
  }) & {
7806
7866
  clearCache: () => void;
@@ -7809,7 +7869,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7809
7869
  };
7810
7870
  lastResult: () => {
7811
7871
  estimatedBaseFeeInDecGwei: string;
7812
- maxPriorityFeePerGasInDecGwei: string;
7872
+ feePerGasInDecGwei: string;
7813
7873
  maxFeePerGasInDecGwei: string;
7814
7874
  };
7815
7875
  dependencies: [({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string];
@@ -9497,6 +9557,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9497
9557
  usd: string | null;
9498
9558
  };
9499
9559
  swapRate: string;
9560
+ /**
9561
+ This is the amount required to submit the transactions
9562
+ Includes the relayer fee or other native fees
9563
+ Should be used for balance checks and tx submission.
9564
+ */
9500
9565
  totalNetworkFee: {
9501
9566
  amount: string;
9502
9567
  valueInCurrency: string | null;
@@ -9507,6 +9572,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9507
9572
  valueInCurrency: string | null;
9508
9573
  usd: string | null;
9509
9574
  };
9575
+ /**
9576
+ This contains gas fee estimates for the bridge transaction
9577
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
9578
+ Should only be used for display purposes.
9579
+ */
9510
9580
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
9511
9581
  adjustedReturn: {
9512
9582
  valueInCurrency: string | null;
@@ -9944,6 +10014,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9944
10014
  usd: string | null;
9945
10015
  };
9946
10016
  swapRate: string;
10017
+ /**
10018
+ This is the amount required to submit the transactions
10019
+ Includes the relayer fee or other native fees
10020
+ Should be used for balance checks and tx submission.
10021
+ */
9947
10022
  totalNetworkFee: {
9948
10023
  amount: string;
9949
10024
  valueInCurrency: string | null;
@@ -9954,6 +10029,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9954
10029
  valueInCurrency: string | null;
9955
10030
  usd: string | null;
9956
10031
  };
10032
+ /**
10033
+ This contains gas fee estimates for the bridge transaction
10034
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
10035
+ Should only be used for display purposes.
10036
+ */
9957
10037
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
9958
10038
  adjustedReturn: {
9959
10039
  valueInCurrency: string | null;
@@ -10621,6 +10701,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
10621
10701
  usd: string | null;
10622
10702
  };
10623
10703
  swapRate: string;
10704
+ /**
10705
+ This is the amount required to submit the transactions
10706
+ Includes the relayer fee or other native fees
10707
+ Should be used for balance checks and tx submission.
10708
+ */
10624
10709
  totalNetworkFee: {
10625
10710
  amount: string;
10626
10711
  valueInCurrency: string | null;
@@ -10631,6 +10716,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
10631
10716
  valueInCurrency: string | null;
10632
10717
  usd: string | null;
10633
10718
  };
10719
+ /**
10720
+ This contains gas fee estimates for the bridge transaction
10721
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
10722
+ Should only be used for display purposes.
10723
+ */
10634
10724
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
10635
10725
  adjustedReturn: {
10636
10726
  valueInCurrency: string | null;
@@ -11057,7 +11147,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11057
11147
  } | undefined;
11058
11148
  } & import("./types.mjs").L1GasFees & import("./types.mjs").NonEvmFees)[], resultFuncArgs_1: {
11059
11149
  estimatedBaseFeeInDecGwei: string;
11060
- maxPriorityFeePerGasInDecGwei: string;
11150
+ feePerGasInDecGwei: string;
11061
11151
  maxFeePerGasInDecGwei: string;
11062
11152
  }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
11063
11153
  sentAmount: {
@@ -11076,6 +11166,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11076
11166
  usd: string | null;
11077
11167
  };
11078
11168
  swapRate: string;
11169
+ /**
11170
+ This is the amount required to submit the transactions
11171
+ Includes the relayer fee or other native fees
11172
+ Should be used for balance checks and tx submission.
11173
+ */
11079
11174
  totalNetworkFee: {
11080
11175
  amount: string;
11081
11176
  valueInCurrency: string | null;
@@ -11086,6 +11181,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11086
11181
  valueInCurrency: string | null;
11087
11182
  usd: string | null;
11088
11183
  };
11184
+ /**
11185
+ This contains gas fee estimates for the bridge transaction
11186
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
11187
+ Should only be used for display purposes.
11188
+ */
11089
11189
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
11090
11190
  adjustedReturn: {
11091
11191
  valueInCurrency: string | null;
@@ -11508,7 +11608,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11508
11608
  } | undefined;
11509
11609
  } & import("./types.mjs").L1GasFees & import("./types.mjs").NonEvmFees)[], resultFuncArgs_1: {
11510
11610
  estimatedBaseFeeInDecGwei: string;
11511
- maxPriorityFeePerGasInDecGwei: string;
11611
+ feePerGasInDecGwei: string;
11512
11612
  maxFeePerGasInDecGwei: string;
11513
11613
  }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
11514
11614
  sentAmount: {
@@ -11527,6 +11627,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11527
11627
  usd: string | null;
11528
11628
  };
11529
11629
  swapRate: string;
11630
+ /**
11631
+ This is the amount required to submit the transactions
11632
+ Includes the relayer fee or other native fees
11633
+ Should be used for balance checks and tx submission.
11634
+ */
11530
11635
  totalNetworkFee: {
11531
11636
  amount: string;
11532
11637
  valueInCurrency: string | null;
@@ -11537,6 +11642,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11537
11642
  valueInCurrency: string | null;
11538
11643
  usd: string | null;
11539
11644
  };
11645
+ /**
11646
+ This contains gas fee estimates for the bridge transaction
11647
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
11648
+ Should only be used for display purposes.
11649
+ */
11540
11650
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
11541
11651
  adjustedReturn: {
11542
11652
  valueInCurrency: string | null;
@@ -11757,6 +11867,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11757
11867
  usd: string | null;
11758
11868
  };
11759
11869
  swapRate: string;
11870
+ /**
11871
+ This is the amount required to submit the transactions
11872
+ Includes the relayer fee or other native fees
11873
+ Should be used for balance checks and tx submission.
11874
+ */
11760
11875
  totalNetworkFee: {
11761
11876
  amount: string;
11762
11877
  valueInCurrency: string | null;
@@ -11767,6 +11882,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11767
11882
  valueInCurrency: string | null;
11768
11883
  usd: string | null;
11769
11884
  };
11885
+ /**
11886
+ This contains gas fee estimates for the bridge transaction
11887
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
11888
+ Should only be used for display purposes.
11889
+ */
11770
11890
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
11771
11891
  adjustedReturn: {
11772
11892
  valueInCurrency: string | null;
@@ -12193,7 +12313,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
12193
12313
  participateInMetaMetrics: boolean;
12194
12314
  } & RemoteFeatureFlagControllerState) => {
12195
12315
  estimatedBaseFeeInDecGwei: string;
12196
- maxPriorityFeePerGasInDecGwei: string;
12316
+ feePerGasInDecGwei: string;
12197
12317
  maxFeePerGasInDecGwei: string;
12198
12318
  }) & {
12199
12319
  clearCache: () => void;
@@ -12202,12 +12322,12 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
12202
12322
  } & {
12203
12323
  resultFunc: (resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
12204
12324
  estimatedBaseFeeInDecGwei: string;
12205
- maxPriorityFeePerGasInDecGwei: string;
12325
+ feePerGasInDecGwei: string;
12206
12326
  maxFeePerGasInDecGwei: string;
12207
12327
  };
12208
12328
  memoizedResultFunc: ((resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
12209
12329
  estimatedBaseFeeInDecGwei: string;
12210
- maxPriorityFeePerGasInDecGwei: string;
12330
+ feePerGasInDecGwei: string;
12211
12331
  maxFeePerGasInDecGwei: string;
12212
12332
  }) & {
12213
12333
  clearCache: () => void;
@@ -12216,7 +12336,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
12216
12336
  };
12217
12337
  lastResult: () => {
12218
12338
  estimatedBaseFeeInDecGwei: string;
12219
- maxPriorityFeePerGasInDecGwei: string;
12339
+ feePerGasInDecGwei: string;
12220
12340
  maxFeePerGasInDecGwei: string;
12221
12341
  };
12222
12342
  dependencies: [({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string];
@@ -15696,6 +15816,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
15696
15816
  usd: string | null;
15697
15817
  };
15698
15818
  swapRate: string;
15819
+ /**
15820
+ This is the amount required to submit the transactions
15821
+ Includes the relayer fee or other native fees
15822
+ Should be used for balance checks and tx submission.
15823
+ */
15699
15824
  totalNetworkFee: {
15700
15825
  amount: string;
15701
15826
  valueInCurrency: string | null;
@@ -15706,6 +15831,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
15706
15831
  valueInCurrency: string | null;
15707
15832
  usd: string | null;
15708
15833
  };
15834
+ /**
15835
+ This contains gas fee estimates for the bridge transaction
15836
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
15837
+ Should only be used for display purposes.
15838
+ */
15709
15839
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
15710
15840
  adjustedReturn: {
15711
15841
  valueInCurrency: string | null;
@@ -16143,6 +16273,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
16143
16273
  usd: string | null;
16144
16274
  };
16145
16275
  swapRate: string;
16276
+ /**
16277
+ This is the amount required to submit the transactions
16278
+ Includes the relayer fee or other native fees
16279
+ Should be used for balance checks and tx submission.
16280
+ */
16146
16281
  totalNetworkFee: {
16147
16282
  amount: string;
16148
16283
  valueInCurrency: string | null;
@@ -16153,6 +16288,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
16153
16288
  valueInCurrency: string | null;
16154
16289
  usd: string | null;
16155
16290
  };
16291
+ /**
16292
+ This contains gas fee estimates for the bridge transaction
16293
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
16294
+ Should only be used for display purposes.
16295
+ */
16156
16296
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
16157
16297
  adjustedReturn: {
16158
16298
  valueInCurrency: string | null;
@@ -16820,6 +16960,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
16820
16960
  usd: string | null;
16821
16961
  };
16822
16962
  swapRate: string;
16963
+ /**
16964
+ This is the amount required to submit the transactions
16965
+ Includes the relayer fee or other native fees
16966
+ Should be used for balance checks and tx submission.
16967
+ */
16823
16968
  totalNetworkFee: {
16824
16969
  amount: string;
16825
16970
  valueInCurrency: string | null;
@@ -16830,6 +16975,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
16830
16975
  valueInCurrency: string | null;
16831
16976
  usd: string | null;
16832
16977
  };
16978
+ /**
16979
+ This contains gas fee estimates for the bridge transaction
16980
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
16981
+ Should only be used for display purposes.
16982
+ */
16833
16983
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
16834
16984
  adjustedReturn: {
16835
16985
  valueInCurrency: string | null;
@@ -17256,7 +17406,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17256
17406
  } | undefined;
17257
17407
  } & import("./types.mjs").L1GasFees & import("./types.mjs").NonEvmFees)[], resultFuncArgs_1: {
17258
17408
  estimatedBaseFeeInDecGwei: string;
17259
- maxPriorityFeePerGasInDecGwei: string;
17409
+ feePerGasInDecGwei: string;
17260
17410
  maxFeePerGasInDecGwei: string;
17261
17411
  }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
17262
17412
  sentAmount: {
@@ -17275,6 +17425,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17275
17425
  usd: string | null;
17276
17426
  };
17277
17427
  swapRate: string;
17428
+ /**
17429
+ This is the amount required to submit the transactions
17430
+ Includes the relayer fee or other native fees
17431
+ Should be used for balance checks and tx submission.
17432
+ */
17278
17433
  totalNetworkFee: {
17279
17434
  amount: string;
17280
17435
  valueInCurrency: string | null;
@@ -17285,6 +17440,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17285
17440
  valueInCurrency: string | null;
17286
17441
  usd: string | null;
17287
17442
  };
17443
+ /**
17444
+ This contains gas fee estimates for the bridge transaction
17445
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
17446
+ Should only be used for display purposes.
17447
+ */
17288
17448
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
17289
17449
  adjustedReturn: {
17290
17450
  valueInCurrency: string | null;
@@ -17707,7 +17867,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17707
17867
  } | undefined;
17708
17868
  } & import("./types.mjs").L1GasFees & import("./types.mjs").NonEvmFees)[], resultFuncArgs_1: {
17709
17869
  estimatedBaseFeeInDecGwei: string;
17710
- maxPriorityFeePerGasInDecGwei: string;
17870
+ feePerGasInDecGwei: string;
17711
17871
  maxFeePerGasInDecGwei: string;
17712
17872
  }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
17713
17873
  sentAmount: {
@@ -17726,6 +17886,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17726
17886
  usd: string | null;
17727
17887
  };
17728
17888
  swapRate: string;
17889
+ /**
17890
+ This is the amount required to submit the transactions
17891
+ Includes the relayer fee or other native fees
17892
+ Should be used for balance checks and tx submission.
17893
+ */
17729
17894
  totalNetworkFee: {
17730
17895
  amount: string;
17731
17896
  valueInCurrency: string | null;
@@ -17736,6 +17901,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17736
17901
  valueInCurrency: string | null;
17737
17902
  usd: string | null;
17738
17903
  };
17904
+ /**
17905
+ This contains gas fee estimates for the bridge transaction
17906
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
17907
+ Should only be used for display purposes.
17908
+ */
17739
17909
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
17740
17910
  adjustedReturn: {
17741
17911
  valueInCurrency: string | null;
@@ -17956,6 +18126,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17956
18126
  usd: string | null;
17957
18127
  };
17958
18128
  swapRate: string;
18129
+ /**
18130
+ This is the amount required to submit the transactions
18131
+ Includes the relayer fee or other native fees
18132
+ Should be used for balance checks and tx submission.
18133
+ */
17959
18134
  totalNetworkFee: {
17960
18135
  amount: string;
17961
18136
  valueInCurrency: string | null;
@@ -17966,6 +18141,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17966
18141
  valueInCurrency: string | null;
17967
18142
  usd: string | null;
17968
18143
  };
18144
+ /**
18145
+ This contains gas fee estimates for the bridge transaction
18146
+ Does not include the relayer fee (if needed), just the gasLimit and effectiveGas returned by the bridge API
18147
+ Should only be used for display purposes.
18148
+ */
17969
18149
  gasFee: Record<"effective" | "total" | "max", import("./types.mjs").TokenAmountValues>;
17970
18150
  adjustedReturn: {
17971
18151
  valueInCurrency: string | null;
@@ -18392,7 +18572,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
18392
18572
  participateInMetaMetrics: boolean;
18393
18573
  } & RemoteFeatureFlagControllerState) => {
18394
18574
  estimatedBaseFeeInDecGwei: string;
18395
- maxPriorityFeePerGasInDecGwei: string;
18575
+ feePerGasInDecGwei: string;
18396
18576
  maxFeePerGasInDecGwei: string;
18397
18577
  }) & {
18398
18578
  clearCache: () => void;
@@ -18401,12 +18581,12 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
18401
18581
  } & {
18402
18582
  resultFunc: (resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
18403
18583
  estimatedBaseFeeInDecGwei: string;
18404
- maxPriorityFeePerGasInDecGwei: string;
18584
+ feePerGasInDecGwei: string;
18405
18585
  maxFeePerGasInDecGwei: string;
18406
18586
  };
18407
18587
  memoizedResultFunc: ((resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
18408
18588
  estimatedBaseFeeInDecGwei: string;
18409
- maxPriorityFeePerGasInDecGwei: string;
18589
+ feePerGasInDecGwei: string;
18410
18590
  maxFeePerGasInDecGwei: string;
18411
18591
  }) & {
18412
18592
  clearCache: () => void;
@@ -18415,7 +18595,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
18415
18595
  };
18416
18596
  lastResult: () => {
18417
18597
  estimatedBaseFeeInDecGwei: string;
18418
- maxPriorityFeePerGasInDecGwei: string;
18598
+ feePerGasInDecGwei: string;
18419
18599
  maxFeePerGasInDecGwei: string;
18420
18600
  };
18421
18601
  dependencies: [({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string];