@metamask/bridge-controller 63.2.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 (110) hide show
  1. package/CHANGELOG.md +41 -1
  2. package/dist/bridge-controller.cjs +60 -34
  3. package/dist/bridge-controller.cjs.map +1 -1
  4. package/dist/bridge-controller.d.cts +2 -10
  5. package/dist/bridge-controller.d.cts.map +1 -1
  6. package/dist/bridge-controller.d.mts +2 -10
  7. package/dist/bridge-controller.d.mts.map +1 -1
  8. package/dist/bridge-controller.mjs +62 -36
  9. package/dist/bridge-controller.mjs.map +1 -1
  10. package/dist/constants/swaps.cjs +57 -58
  11. package/dist/constants/swaps.cjs.map +1 -1
  12. package/dist/constants/swaps.d.cts +0 -1
  13. package/dist/constants/swaps.d.cts.map +1 -1
  14. package/dist/constants/swaps.d.mts +0 -1
  15. package/dist/constants/swaps.d.mts.map +1 -1
  16. package/dist/constants/swaps.mjs +6 -7
  17. package/dist/constants/swaps.mjs.map +1 -1
  18. package/dist/constants/tokens.cjs +15 -16
  19. package/dist/constants/tokens.cjs.map +1 -1
  20. package/dist/constants/tokens.d.cts +3 -3
  21. package/dist/constants/tokens.d.cts.map +1 -1
  22. package/dist/constants/tokens.d.mts +3 -3
  23. package/dist/constants/tokens.d.mts.map +1 -1
  24. package/dist/constants/tokens.mjs +2 -3
  25. package/dist/constants/tokens.mjs.map +1 -1
  26. package/dist/index.cjs +4 -4
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +4 -4
  29. package/dist/index.d.cts.map +1 -1
  30. package/dist/index.d.mts +4 -4
  31. package/dist/index.d.mts.map +1 -1
  32. package/dist/index.mjs +4 -4
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/selectors.cjs +11 -2
  35. package/dist/selectors.cjs.map +1 -1
  36. package/dist/selectors.d.cts +900 -18
  37. package/dist/selectors.d.cts.map +1 -1
  38. package/dist/selectors.d.mts +900 -18
  39. package/dist/selectors.d.mts.map +1 -1
  40. package/dist/selectors.mjs +11 -2
  41. package/dist/selectors.mjs.map +1 -1
  42. package/dist/types.cjs +2 -1
  43. package/dist/types.cjs.map +1 -1
  44. package/dist/types.d.cts +12 -3
  45. package/dist/types.d.cts.map +1 -1
  46. package/dist/types.d.mts +12 -3
  47. package/dist/types.d.mts.map +1 -1
  48. package/dist/types.mjs +2 -1
  49. package/dist/types.mjs.map +1 -1
  50. package/dist/utils/assets.cjs.map +1 -1
  51. package/dist/utils/assets.d.cts.map +1 -1
  52. package/dist/utils/assets.d.mts.map +1 -1
  53. package/dist/utils/assets.mjs.map +1 -1
  54. package/dist/utils/bridge.cjs +28 -23
  55. package/dist/utils/bridge.cjs.map +1 -1
  56. package/dist/utils/bridge.d.cts +12 -12
  57. package/dist/utils/bridge.d.cts.map +1 -1
  58. package/dist/utils/bridge.d.mts +12 -12
  59. package/dist/utils/bridge.d.mts.map +1 -1
  60. package/dist/utils/bridge.mjs +26 -21
  61. package/dist/utils/bridge.mjs.map +1 -1
  62. package/dist/utils/caip-formatters.cjs.map +1 -1
  63. package/dist/utils/caip-formatters.d.cts +1 -2
  64. package/dist/utils/caip-formatters.d.cts.map +1 -1
  65. package/dist/utils/caip-formatters.d.mts +1 -2
  66. package/dist/utils/caip-formatters.d.mts.map +1 -1
  67. package/dist/utils/caip-formatters.mjs.map +1 -1
  68. package/dist/utils/fetch.cjs +22 -1
  69. package/dist/utils/fetch.cjs.map +1 -1
  70. package/dist/utils/fetch.d.cts.map +1 -1
  71. package/dist/utils/fetch.d.mts.map +1 -1
  72. package/dist/utils/fetch.mjs +22 -1
  73. package/dist/utils/fetch.mjs.map +1 -1
  74. package/dist/utils/metrics/properties.cjs.map +1 -1
  75. package/dist/utils/metrics/properties.d.cts +1 -2
  76. package/dist/utils/metrics/properties.d.cts.map +1 -1
  77. package/dist/utils/metrics/properties.d.mts +1 -2
  78. package/dist/utils/metrics/properties.d.mts.map +1 -1
  79. package/dist/utils/metrics/properties.mjs.map +1 -1
  80. package/dist/utils/metrics/types.cjs.map +1 -1
  81. package/dist/utils/metrics/types.d.cts +1 -1
  82. package/dist/utils/metrics/types.d.cts.map +1 -1
  83. package/dist/utils/metrics/types.d.mts +1 -1
  84. package/dist/utils/metrics/types.d.mts.map +1 -1
  85. package/dist/utils/metrics/types.mjs.map +1 -1
  86. package/dist/utils/quote-fees.cjs +1 -4
  87. package/dist/utils/quote-fees.cjs.map +1 -1
  88. package/dist/utils/quote-fees.d.cts +1 -1
  89. package/dist/utils/quote-fees.d.cts.map +1 -1
  90. package/dist/utils/quote-fees.d.mts +1 -1
  91. package/dist/utils/quote-fees.d.mts.map +1 -1
  92. package/dist/utils/quote-fees.mjs +1 -4
  93. package/dist/utils/quote-fees.mjs.map +1 -1
  94. package/dist/utils/quote.cjs +13 -12
  95. package/dist/utils/quote.cjs.map +1 -1
  96. package/dist/utils/quote.d.cts +4 -5
  97. package/dist/utils/quote.d.cts.map +1 -1
  98. package/dist/utils/quote.d.mts +4 -5
  99. package/dist/utils/quote.d.mts.map +1 -1
  100. package/dist/utils/quote.mjs +13 -12
  101. package/dist/utils/quote.mjs.map +1 -1
  102. package/dist/utils/swaps.cjs +45 -1
  103. package/dist/utils/swaps.cjs.map +1 -1
  104. package/dist/utils/swaps.d.cts +20 -0
  105. package/dist/utils/swaps.d.cts.map +1 -1
  106. package/dist/utils/swaps.d.mts +20 -0
  107. package/dist/utils/swaps.d.mts.map +1 -1
  108. package/dist/utils/swaps.mjs +43 -0
  109. package/dist/utils/swaps.mjs.map +1 -1
  110. package/package.json +5 -5
@@ -1026,6 +1026,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
1026
1026
  } | null | undefined;
1027
1027
  } | undefined;
1028
1028
  featureId?: import(".").FeatureId | undefined;
1029
+ resetApproval?: {
1030
+ chainId: number;
1031
+ to: string;
1032
+ from: string;
1033
+ value: string;
1034
+ data: string;
1035
+ gasLimit: number | null;
1036
+ effectiveGas?: number | undefined;
1037
+ } | undefined;
1029
1038
  } & QuoteMetadata)[];
1030
1039
  recommendedQuote: ({
1031
1040
  quote: {
@@ -1239,6 +1248,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
1239
1248
  } | null | undefined;
1240
1249
  } | undefined;
1241
1250
  featureId?: import(".").FeatureId | undefined;
1251
+ resetApproval?: {
1252
+ chainId: number;
1253
+ to: string;
1254
+ from: string;
1255
+ value: string;
1256
+ data: string;
1257
+ gasLimit: number | null;
1258
+ effectiveGas?: number | undefined;
1259
+ } | undefined;
1242
1260
  } & QuoteMetadata) | null;
1243
1261
  activeQuote: ({
1244
1262
  quote: {
@@ -1452,6 +1470,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
1452
1470
  } | null | undefined;
1453
1471
  } | undefined;
1454
1472
  featureId?: import(".").FeatureId | undefined;
1473
+ resetApproval?: {
1474
+ chainId: number;
1475
+ to: string;
1476
+ from: string;
1477
+ value: string;
1478
+ data: string;
1479
+ gasLimit: number | null;
1480
+ effectiveGas?: number | undefined;
1481
+ } | undefined;
1455
1482
  } & QuoteMetadata) | null;
1456
1483
  quotesLastFetchedMs: number | null;
1457
1484
  isLoading: boolean;
@@ -1676,6 +1703,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
1676
1703
  } | null | undefined;
1677
1704
  } | undefined;
1678
1705
  featureId?: import(".").FeatureId | undefined;
1706
+ resetApproval?: {
1707
+ chainId: number;
1708
+ to: string;
1709
+ from: string;
1710
+ value: string;
1711
+ data: string;
1712
+ gasLimit: number | null;
1713
+ effectiveGas?: number | undefined;
1714
+ } | undefined;
1679
1715
  } & QuoteMetadata)[], resultFuncArgs_3: ({
1680
1716
  quote: {
1681
1717
  srcChainId: number;
@@ -1888,6 +1924,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
1888
1924
  } | null | undefined;
1889
1925
  } | undefined;
1890
1926
  featureId?: import(".").FeatureId | undefined;
1927
+ resetApproval?: {
1928
+ chainId: number;
1929
+ to: string;
1930
+ from: string;
1931
+ value: string;
1932
+ data: string;
1933
+ gasLimit: number | null;
1934
+ effectiveGas?: number | undefined;
1935
+ } | undefined;
1891
1936
  } & QuoteMetadata) | null, resultFuncArgs_4: ({
1892
1937
  quote: {
1893
1938
  srcChainId: number;
@@ -2100,6 +2145,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
2100
2145
  } | null | undefined;
2101
2146
  } | undefined;
2102
2147
  featureId?: import(".").FeatureId | undefined;
2148
+ resetApproval?: {
2149
+ chainId: number;
2150
+ to: string;
2151
+ from: string;
2152
+ value: string;
2153
+ data: string;
2154
+ gasLimit: number | null;
2155
+ effectiveGas?: number | undefined;
2156
+ } | undefined;
2103
2157
  } & QuoteMetadata) | null, resultFuncArgs_5: number | null, resultFuncArgs_6: boolean, resultFuncArgs_7: number | null, resultFuncArgs_8: boolean) => {
2104
2158
  sortedQuotes: ({
2105
2159
  quote: {
@@ -2313,6 +2367,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
2313
2367
  } | null | undefined;
2314
2368
  } | undefined;
2315
2369
  featureId?: import(".").FeatureId | undefined;
2370
+ resetApproval?: {
2371
+ chainId: number;
2372
+ to: string;
2373
+ from: string;
2374
+ value: string;
2375
+ data: string;
2376
+ gasLimit: number | null;
2377
+ effectiveGas?: number | undefined;
2378
+ } | undefined;
2316
2379
  } & QuoteMetadata)[];
2317
2380
  recommendedQuote: ({
2318
2381
  quote: {
@@ -2526,6 +2589,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
2526
2589
  } | null | undefined;
2527
2590
  } | undefined;
2528
2591
  featureId?: import(".").FeatureId | undefined;
2592
+ resetApproval?: {
2593
+ chainId: number;
2594
+ to: string;
2595
+ from: string;
2596
+ value: string;
2597
+ data: string;
2598
+ gasLimit: number | null;
2599
+ effectiveGas?: number | undefined;
2600
+ } | undefined;
2529
2601
  } & QuoteMetadata) | null;
2530
2602
  activeQuote: ({
2531
2603
  quote: {
@@ -2739,6 +2811,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
2739
2811
  } | null | undefined;
2740
2812
  } | undefined;
2741
2813
  featureId?: import(".").FeatureId | undefined;
2814
+ resetApproval?: {
2815
+ chainId: number;
2816
+ to: string;
2817
+ from: string;
2818
+ value: string;
2819
+ data: string;
2820
+ gasLimit: number | null;
2821
+ effectiveGas?: number | undefined;
2822
+ } | undefined;
2742
2823
  } & QuoteMetadata) | null;
2743
2824
  quotesLastFetchedMs: number | null;
2744
2825
  isLoading: boolean;
@@ -2959,6 +3040,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
2959
3040
  } | null | undefined;
2960
3041
  } | undefined;
2961
3042
  featureId?: import(".").FeatureId | undefined;
3043
+ resetApproval?: {
3044
+ chainId: number;
3045
+ to: string;
3046
+ from: string;
3047
+ value: string;
3048
+ data: string;
3049
+ gasLimit: number | null;
3050
+ effectiveGas?: number | undefined;
3051
+ } | undefined;
2962
3052
  } & QuoteMetadata)[], resultFuncArgs_3: ({
2963
3053
  quote: {
2964
3054
  srcChainId: number;
@@ -3171,6 +3261,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
3171
3261
  } | null | undefined;
3172
3262
  } | undefined;
3173
3263
  featureId?: import(".").FeatureId | undefined;
3264
+ resetApproval?: {
3265
+ chainId: number;
3266
+ to: string;
3267
+ from: string;
3268
+ value: string;
3269
+ data: string;
3270
+ gasLimit: number | null;
3271
+ effectiveGas?: number | undefined;
3272
+ } | undefined;
3174
3273
  } & QuoteMetadata) | null, resultFuncArgs_4: ({
3175
3274
  quote: {
3176
3275
  srcChainId: number;
@@ -3383,6 +3482,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
3383
3482
  } | null | undefined;
3384
3483
  } | undefined;
3385
3484
  featureId?: import(".").FeatureId | undefined;
3485
+ resetApproval?: {
3486
+ chainId: number;
3487
+ to: string;
3488
+ from: string;
3489
+ value: string;
3490
+ data: string;
3491
+ gasLimit: number | null;
3492
+ effectiveGas?: number | undefined;
3493
+ } | undefined;
3386
3494
  } & QuoteMetadata) | null, resultFuncArgs_5: number | null, resultFuncArgs_6: boolean, resultFuncArgs_7: number | null, resultFuncArgs_8: boolean) => {
3387
3495
  sortedQuotes: ({
3388
3496
  quote: {
@@ -3596,6 +3704,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
3596
3704
  } | null | undefined;
3597
3705
  } | undefined;
3598
3706
  featureId?: import(".").FeatureId | undefined;
3707
+ resetApproval?: {
3708
+ chainId: number;
3709
+ to: string;
3710
+ from: string;
3711
+ value: string;
3712
+ data: string;
3713
+ gasLimit: number | null;
3714
+ effectiveGas?: number | undefined;
3715
+ } | undefined;
3599
3716
  } & QuoteMetadata)[];
3600
3717
  recommendedQuote: ({
3601
3718
  quote: {
@@ -3809,6 +3926,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
3809
3926
  } | null | undefined;
3810
3927
  } | undefined;
3811
3928
  featureId?: import(".").FeatureId | undefined;
3929
+ resetApproval?: {
3930
+ chainId: number;
3931
+ to: string;
3932
+ from: string;
3933
+ value: string;
3934
+ data: string;
3935
+ gasLimit: number | null;
3936
+ effectiveGas?: number | undefined;
3937
+ } | undefined;
3812
3938
  } & QuoteMetadata) | null;
3813
3939
  activeQuote: ({
3814
3940
  quote: {
@@ -4022,6 +4148,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
4022
4148
  } | null | undefined;
4023
4149
  } | undefined;
4024
4150
  featureId?: import(".").FeatureId | undefined;
4151
+ resetApproval?: {
4152
+ chainId: number;
4153
+ to: string;
4154
+ from: string;
4155
+ value: string;
4156
+ data: string;
4157
+ gasLimit: number | null;
4158
+ effectiveGas?: number | undefined;
4159
+ } | undefined;
4025
4160
  } & QuoteMetadata) | null;
4026
4161
  quotesLastFetchedMs: number | null;
4027
4162
  isLoading: boolean;
@@ -4247,6 +4382,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
4247
4382
  } | null | undefined;
4248
4383
  } | undefined;
4249
4384
  featureId?: import(".").FeatureId | undefined;
4385
+ resetApproval?: {
4386
+ chainId: number;
4387
+ to: string;
4388
+ from: string;
4389
+ value: string;
4390
+ data: string;
4391
+ gasLimit: number | null;
4392
+ effectiveGas?: number | undefined;
4393
+ } | undefined;
4250
4394
  } & QuoteMetadata)[];
4251
4395
  recommendedQuote: ({
4252
4396
  quote: {
@@ -4460,6 +4604,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
4460
4604
  } | null | undefined;
4461
4605
  } | undefined;
4462
4606
  featureId?: import(".").FeatureId | undefined;
4607
+ resetApproval?: {
4608
+ chainId: number;
4609
+ to: string;
4610
+ from: string;
4611
+ value: string;
4612
+ data: string;
4613
+ gasLimit: number | null;
4614
+ effectiveGas?: number | undefined;
4615
+ } | undefined;
4463
4616
  } & QuoteMetadata) | null;
4464
4617
  activeQuote: ({
4465
4618
  quote: {
@@ -4673,6 +4826,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
4673
4826
  } | null | undefined;
4674
4827
  } | undefined;
4675
4828
  featureId?: import(".").FeatureId | undefined;
4829
+ resetApproval?: {
4830
+ chainId: number;
4831
+ to: string;
4832
+ from: string;
4833
+ value: string;
4834
+ data: string;
4835
+ gasLimit: number | null;
4836
+ effectiveGas?: number | undefined;
4837
+ } | undefined;
4676
4838
  } & QuoteMetadata) | null;
4677
4839
  quotesLastFetchedMs: number | null;
4678
4840
  isLoading: boolean;
@@ -4897,6 +5059,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
4897
5059
  } | null | undefined;
4898
5060
  } | undefined;
4899
5061
  featureId?: import(".").FeatureId | undefined;
5062
+ resetApproval?: {
5063
+ chainId: number;
5064
+ to: string;
5065
+ from: string;
5066
+ value: string;
5067
+ data: string;
5068
+ gasLimit: number | null;
5069
+ effectiveGas?: number | undefined;
5070
+ } | undefined;
4900
5071
  } & QuoteMetadata)[]) & {
4901
5072
  clearCache: () => void;
4902
5073
  resultsCount: () => number;
@@ -4919,6 +5090,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
4919
5090
  usd: string | null;
4920
5091
  };
4921
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
+ */
4922
5098
  totalNetworkFee: {
4923
5099
  amount: string;
4924
5100
  valueInCurrency: string | null;
@@ -4929,6 +5105,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
4929
5105
  valueInCurrency: string | null;
4930
5106
  usd: string | null;
4931
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
+ */
4932
5113
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
4933
5114
  adjustedReturn: {
4934
5115
  valueInCurrency: string | null;
@@ -5116,6 +5297,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
5116
5297
  } | null | undefined;
5117
5298
  } | undefined;
5118
5299
  featureId?: import(".").FeatureId | undefined;
5300
+ resetApproval?: {
5301
+ chainId: number;
5302
+ to: string;
5303
+ from: string;
5304
+ value: string;
5305
+ data: string;
5306
+ gasLimit: number | null;
5307
+ effectiveGas?: number | undefined;
5308
+ } | undefined;
5119
5309
  l1GasFeesInHexWei?: string | undefined;
5120
5310
  nonEvmFeesInNative?: string | undefined;
5121
5311
  }[], resultFuncArgs_1: SortOrder) => ({
@@ -5330,6 +5520,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
5330
5520
  } | null | undefined;
5331
5521
  } | undefined;
5332
5522
  featureId?: import(".").FeatureId | undefined;
5523
+ resetApproval?: {
5524
+ chainId: number;
5525
+ to: string;
5526
+ from: string;
5527
+ value: string;
5528
+ data: string;
5529
+ gasLimit: number | null;
5530
+ effectiveGas?: number | undefined;
5531
+ } | undefined;
5333
5532
  } & QuoteMetadata)[];
5334
5533
  memoizedResultFunc: ((resultFuncArgs_0: {
5335
5534
  sentAmount: {
@@ -5348,6 +5547,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
5348
5547
  usd: string | null;
5349
5548
  };
5350
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
+ */
5351
5555
  totalNetworkFee: {
5352
5556
  amount: string;
5353
5557
  valueInCurrency: string | null;
@@ -5358,6 +5562,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
5358
5562
  valueInCurrency: string | null;
5359
5563
  usd: string | null;
5360
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
+ */
5361
5570
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
5362
5571
  adjustedReturn: {
5363
5572
  valueInCurrency: string | null;
@@ -5545,6 +5754,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
5545
5754
  } | null | undefined;
5546
5755
  } | undefined;
5547
5756
  featureId?: import(".").FeatureId | undefined;
5757
+ resetApproval?: {
5758
+ chainId: number;
5759
+ to: string;
5760
+ from: string;
5761
+ value: string;
5762
+ data: string;
5763
+ gasLimit: number | null;
5764
+ effectiveGas?: number | undefined;
5765
+ } | undefined;
5548
5766
  l1GasFeesInHexWei?: string | undefined;
5549
5767
  nonEvmFeesInNative?: string | undefined;
5550
5768
  }[], resultFuncArgs_1: SortOrder) => ({
@@ -5759,6 +5977,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
5759
5977
  } | null | undefined;
5760
5978
  } | undefined;
5761
5979
  featureId?: import(".").FeatureId | undefined;
5980
+ resetApproval?: {
5981
+ chainId: number;
5982
+ to: string;
5983
+ from: string;
5984
+ value: string;
5985
+ data: string;
5986
+ gasLimit: number | null;
5987
+ effectiveGas?: number | undefined;
5988
+ } | undefined;
5762
5989
  } & QuoteMetadata)[]) & {
5763
5990
  clearCache: () => void;
5764
5991
  resultsCount: () => number;
@@ -5976,6 +6203,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
5976
6203
  } | null | undefined;
5977
6204
  } | undefined;
5978
6205
  featureId?: import(".").FeatureId | undefined;
6206
+ resetApproval?: {
6207
+ chainId: number;
6208
+ to: string;
6209
+ from: string;
6210
+ value: string;
6211
+ data: string;
6212
+ gasLimit: number | null;
6213
+ effectiveGas?: number | undefined;
6214
+ } | undefined;
5979
6215
  } & QuoteMetadata)[];
5980
6216
  dependencies: [((state: BridgeControllerState & {
5981
6217
  gasFeeEstimates: GasFeeEstimates;
@@ -5998,6 +6234,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
5998
6234
  usd: string | null;
5999
6235
  };
6000
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
+ */
6001
6242
  totalNetworkFee: {
6002
6243
  amount: string;
6003
6244
  valueInCurrency: string | null;
@@ -6008,6 +6249,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6008
6249
  valueInCurrency: string | null;
6009
6250
  usd: string | null;
6010
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
+ */
6011
6257
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
6012
6258
  adjustedReturn: {
6013
6259
  valueInCurrency: string | null;
@@ -6195,6 +6441,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6195
6441
  } | null | undefined;
6196
6442
  } | undefined;
6197
6443
  featureId?: import(".").FeatureId | undefined;
6444
+ resetApproval?: {
6445
+ chainId: number;
6446
+ to: string;
6447
+ from: string;
6448
+ value: string;
6449
+ data: string;
6450
+ gasLimit: number | null;
6451
+ effectiveGas?: number | undefined;
6452
+ } | undefined;
6198
6453
  l1GasFeesInHexWei?: string | undefined;
6199
6454
  nonEvmFeesInNative?: string | undefined;
6200
6455
  }[]) & {
@@ -6414,9 +6669,18 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6414
6669
  } | null | undefined;
6415
6670
  } | undefined;
6416
6671
  featureId?: import(".").FeatureId | undefined;
6672
+ resetApproval?: {
6673
+ chainId: number;
6674
+ to: string;
6675
+ from: string;
6676
+ value: string;
6677
+ data: string;
6678
+ gasLimit: number | null;
6679
+ effectiveGas?: number | undefined;
6680
+ } | undefined;
6417
6681
  } & import("./types.cjs").L1GasFees & import("./types.cjs").NonEvmFees)[], resultFuncArgs_1: {
6418
6682
  estimatedBaseFeeInDecGwei: string;
6419
- maxPriorityFeePerGasInDecGwei: string;
6683
+ feePerGasInDecGwei: string;
6420
6684
  maxFeePerGasInDecGwei: string;
6421
6685
  }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
6422
6686
  sentAmount: {
@@ -6435,6 +6699,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6435
6699
  usd: string | null;
6436
6700
  };
6437
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
+ */
6438
6707
  totalNetworkFee: {
6439
6708
  amount: string;
6440
6709
  valueInCurrency: string | null;
@@ -6445,6 +6714,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6445
6714
  valueInCurrency: string | null;
6446
6715
  usd: string | null;
6447
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
+ */
6448
6722
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
6449
6723
  adjustedReturn: {
6450
6724
  valueInCurrency: string | null;
@@ -6632,6 +6906,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6632
6906
  } | null | undefined;
6633
6907
  } | undefined;
6634
6908
  featureId?: import(".").FeatureId | undefined;
6909
+ resetApproval?: {
6910
+ chainId: number;
6911
+ to: string;
6912
+ from: string;
6913
+ value: string;
6914
+ data: string;
6915
+ gasLimit: number | null;
6916
+ effectiveGas?: number | undefined;
6917
+ } | undefined;
6635
6918
  l1GasFeesInHexWei?: string | undefined;
6636
6919
  nonEvmFeesInNative?: string | undefined;
6637
6920
  }[];
@@ -6847,9 +7130,18 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6847
7130
  } | null | undefined;
6848
7131
  } | undefined;
6849
7132
  featureId?: import(".").FeatureId | undefined;
7133
+ resetApproval?: {
7134
+ chainId: number;
7135
+ to: string;
7136
+ from: string;
7137
+ value: string;
7138
+ data: string;
7139
+ gasLimit: number | null;
7140
+ effectiveGas?: number | undefined;
7141
+ } | undefined;
6850
7142
  } & import("./types.cjs").L1GasFees & import("./types.cjs").NonEvmFees)[], resultFuncArgs_1: {
6851
7143
  estimatedBaseFeeInDecGwei: string;
6852
- maxPriorityFeePerGasInDecGwei: string;
7144
+ feePerGasInDecGwei: string;
6853
7145
  maxFeePerGasInDecGwei: string;
6854
7146
  }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
6855
7147
  sentAmount: {
@@ -6868,6 +7160,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6868
7160
  usd: string | null;
6869
7161
  };
6870
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
+ */
6871
7168
  totalNetworkFee: {
6872
7169
  amount: string;
6873
7170
  valueInCurrency: string | null;
@@ -6878,6 +7175,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
6878
7175
  valueInCurrency: string | null;
6879
7176
  usd: string | null;
6880
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
+ */
6881
7183
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
6882
7184
  adjustedReturn: {
6883
7185
  valueInCurrency: string | null;
@@ -7065,6 +7367,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7065
7367
  } | null | undefined;
7066
7368
  } | undefined;
7067
7369
  featureId?: import(".").FeatureId | undefined;
7370
+ resetApproval?: {
7371
+ chainId: number;
7372
+ to: string;
7373
+ from: string;
7374
+ value: string;
7375
+ data: string;
7376
+ gasLimit: number | null;
7377
+ effectiveGas?: number | undefined;
7378
+ } | undefined;
7068
7379
  l1GasFeesInHexWei?: string | undefined;
7069
7380
  nonEvmFeesInNative?: string | undefined;
7070
7381
  }[]) & {
@@ -7089,6 +7400,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7089
7400
  usd: string | null;
7090
7401
  };
7091
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
+ */
7092
7408
  totalNetworkFee: {
7093
7409
  amount: string;
7094
7410
  valueInCurrency: string | null;
@@ -7099,6 +7415,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7099
7415
  valueInCurrency: string | null;
7100
7416
  usd: string | null;
7101
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
+ */
7102
7423
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
7103
7424
  adjustedReturn: {
7104
7425
  valueInCurrency: string | null;
@@ -7286,6 +7607,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7286
7607
  } | null | undefined;
7287
7608
  } | undefined;
7288
7609
  featureId?: import(".").FeatureId | undefined;
7610
+ resetApproval?: {
7611
+ chainId: number;
7612
+ to: string;
7613
+ from: string;
7614
+ value: string;
7615
+ data: string;
7616
+ gasLimit: number | null;
7617
+ effectiveGas?: number | undefined;
7618
+ } | undefined;
7289
7619
  l1GasFeesInHexWei?: string | undefined;
7290
7620
  nonEvmFeesInNative?: string | undefined;
7291
7621
  }[];
@@ -7501,13 +7831,22 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7501
7831
  } | null | undefined;
7502
7832
  } | undefined;
7503
7833
  featureId?: import(".").FeatureId | undefined;
7834
+ resetApproval?: {
7835
+ chainId: number;
7836
+ to: string;
7837
+ from: string;
7838
+ value: string;
7839
+ data: string;
7840
+ gasLimit: number | null;
7841
+ effectiveGas?: number | undefined;
7842
+ } | undefined;
7504
7843
  } & import("./types.cjs").L1GasFees & import("./types.cjs").NonEvmFees)[], ((state: BridgeControllerState & {
7505
7844
  gasFeeEstimates: GasFeeEstimates;
7506
7845
  } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
7507
7846
  participateInMetaMetrics: boolean;
7508
7847
  } & RemoteFeatureFlagControllerState) => {
7509
7848
  estimatedBaseFeeInDecGwei: string;
7510
- maxPriorityFeePerGasInDecGwei: string;
7849
+ feePerGasInDecGwei: string;
7511
7850
  maxFeePerGasInDecGwei: string;
7512
7851
  }) & {
7513
7852
  clearCache: () => void;
@@ -7516,12 +7855,12 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7516
7855
  } & {
7517
7856
  resultFunc: (resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
7518
7857
  estimatedBaseFeeInDecGwei: string;
7519
- maxPriorityFeePerGasInDecGwei: string;
7858
+ feePerGasInDecGwei: string;
7520
7859
  maxFeePerGasInDecGwei: string;
7521
7860
  };
7522
7861
  memoizedResultFunc: ((resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
7523
7862
  estimatedBaseFeeInDecGwei: string;
7524
- maxPriorityFeePerGasInDecGwei: string;
7863
+ feePerGasInDecGwei: string;
7525
7864
  maxFeePerGasInDecGwei: string;
7526
7865
  }) & {
7527
7866
  clearCache: () => void;
@@ -7530,7 +7869,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7530
7869
  };
7531
7870
  lastResult: () => {
7532
7871
  estimatedBaseFeeInDecGwei: string;
7533
- maxPriorityFeePerGasInDecGwei: string;
7872
+ feePerGasInDecGwei: string;
7534
7873
  maxFeePerGasInDecGwei: string;
7535
7874
  };
7536
7875
  dependencies: [({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string];
@@ -7845,6 +8184,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
7845
8184
  } | null | undefined;
7846
8185
  } | undefined;
7847
8186
  featureId?: import(".").FeatureId | undefined;
8187
+ resetApproval?: {
8188
+ chainId: number;
8189
+ to: string;
8190
+ from: string;
8191
+ value: string;
8192
+ data: string;
8193
+ gasLimit: number | null;
8194
+ effectiveGas?: number | undefined;
8195
+ } | undefined;
7848
8196
  } & QuoteMetadata) | null) & {
7849
8197
  clearCache: () => void;
7850
8198
  resultsCount: () => number;
@@ -8062,6 +8410,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
8062
8410
  } | null | undefined;
8063
8411
  } | undefined;
8064
8412
  featureId?: import(".").FeatureId | undefined;
8413
+ resetApproval?: {
8414
+ chainId: number;
8415
+ to: string;
8416
+ from: string;
8417
+ value: string;
8418
+ data: string;
8419
+ gasLimit: number | null;
8420
+ effectiveGas?: number | undefined;
8421
+ } | undefined;
8065
8422
  } & QuoteMetadata)[]) => ({
8066
8423
  quote: {
8067
8424
  srcChainId: number;
@@ -8274,6 +8631,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
8274
8631
  } | null | undefined;
8275
8632
  } | undefined;
8276
8633
  featureId?: import(".").FeatureId | undefined;
8634
+ resetApproval?: {
8635
+ chainId: number;
8636
+ to: string;
8637
+ from: string;
8638
+ value: string;
8639
+ data: string;
8640
+ gasLimit: number | null;
8641
+ effectiveGas?: number | undefined;
8642
+ } | undefined;
8277
8643
  } & QuoteMetadata) | null;
8278
8644
  memoizedResultFunc: ((resultFuncArgs_0: ({
8279
8645
  quote: {
@@ -8487,6 +8853,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
8487
8853
  } | null | undefined;
8488
8854
  } | undefined;
8489
8855
  featureId?: import(".").FeatureId | undefined;
8856
+ resetApproval?: {
8857
+ chainId: number;
8858
+ to: string;
8859
+ from: string;
8860
+ value: string;
8861
+ data: string;
8862
+ gasLimit: number | null;
8863
+ effectiveGas?: number | undefined;
8864
+ } | undefined;
8490
8865
  } & QuoteMetadata)[]) => ({
8491
8866
  quote: {
8492
8867
  srcChainId: number;
@@ -8699,6 +9074,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
8699
9074
  } | null | undefined;
8700
9075
  } | undefined;
8701
9076
  featureId?: import(".").FeatureId | undefined;
9077
+ resetApproval?: {
9078
+ chainId: number;
9079
+ to: string;
9080
+ from: string;
9081
+ value: string;
9082
+ data: string;
9083
+ gasLimit: number | null;
9084
+ effectiveGas?: number | undefined;
9085
+ } | undefined;
8702
9086
  } & QuoteMetadata) | null) & {
8703
9087
  clearCache: () => void;
8704
9088
  resultsCount: () => number;
@@ -8916,6 +9300,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
8916
9300
  } | null | undefined;
8917
9301
  } | undefined;
8918
9302
  featureId?: import(".").FeatureId | undefined;
9303
+ resetApproval?: {
9304
+ chainId: number;
9305
+ to: string;
9306
+ from: string;
9307
+ value: string;
9308
+ data: string;
9309
+ gasLimit: number | null;
9310
+ effectiveGas?: number | undefined;
9311
+ } | undefined;
8919
9312
  } & QuoteMetadata) | null;
8920
9313
  dependencies: [((state: BridgeControllerState & {
8921
9314
  gasFeeEstimates: GasFeeEstimates;
@@ -9133,6 +9526,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9133
9526
  } | null | undefined;
9134
9527
  } | undefined;
9135
9528
  featureId?: import(".").FeatureId | undefined;
9529
+ resetApproval?: {
9530
+ chainId: number;
9531
+ to: string;
9532
+ from: string;
9533
+ value: string;
9534
+ data: string;
9535
+ gasLimit: number | null;
9536
+ effectiveGas?: number | undefined;
9537
+ } | undefined;
9136
9538
  } & QuoteMetadata)[]) & {
9137
9539
  clearCache: () => void;
9138
9540
  resultsCount: () => number;
@@ -9155,6 +9557,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9155
9557
  usd: string | null;
9156
9558
  };
9157
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
+ */
9158
9565
  totalNetworkFee: {
9159
9566
  amount: string;
9160
9567
  valueInCurrency: string | null;
@@ -9165,6 +9572,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9165
9572
  valueInCurrency: string | null;
9166
9573
  usd: string | null;
9167
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
+ */
9168
9580
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
9169
9581
  adjustedReturn: {
9170
9582
  valueInCurrency: string | null;
@@ -9352,6 +9764,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9352
9764
  } | null | undefined;
9353
9765
  } | undefined;
9354
9766
  featureId?: import(".").FeatureId | undefined;
9767
+ resetApproval?: {
9768
+ chainId: number;
9769
+ to: string;
9770
+ from: string;
9771
+ value: string;
9772
+ data: string;
9773
+ gasLimit: number | null;
9774
+ effectiveGas?: number | undefined;
9775
+ } | undefined;
9355
9776
  l1GasFeesInHexWei?: string | undefined;
9356
9777
  nonEvmFeesInNative?: string | undefined;
9357
9778
  }[], resultFuncArgs_1: SortOrder) => ({
@@ -9566,6 +9987,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9566
9987
  } | null | undefined;
9567
9988
  } | undefined;
9568
9989
  featureId?: import(".").FeatureId | undefined;
9990
+ resetApproval?: {
9991
+ chainId: number;
9992
+ to: string;
9993
+ from: string;
9994
+ value: string;
9995
+ data: string;
9996
+ gasLimit: number | null;
9997
+ effectiveGas?: number | undefined;
9998
+ } | undefined;
9569
9999
  } & QuoteMetadata)[];
9570
10000
  memoizedResultFunc: ((resultFuncArgs_0: {
9571
10001
  sentAmount: {
@@ -9584,6 +10014,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9584
10014
  usd: string | null;
9585
10015
  };
9586
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
+ */
9587
10022
  totalNetworkFee: {
9588
10023
  amount: string;
9589
10024
  valueInCurrency: string | null;
@@ -9594,6 +10029,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9594
10029
  valueInCurrency: string | null;
9595
10030
  usd: string | null;
9596
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
+ */
9597
10037
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
9598
10038
  adjustedReturn: {
9599
10039
  valueInCurrency: string | null;
@@ -9781,6 +10221,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9781
10221
  } | null | undefined;
9782
10222
  } | undefined;
9783
10223
  featureId?: import(".").FeatureId | undefined;
10224
+ resetApproval?: {
10225
+ chainId: number;
10226
+ to: string;
10227
+ from: string;
10228
+ value: string;
10229
+ data: string;
10230
+ gasLimit: number | null;
10231
+ effectiveGas?: number | undefined;
10232
+ } | undefined;
9784
10233
  l1GasFeesInHexWei?: string | undefined;
9785
10234
  nonEvmFeesInNative?: string | undefined;
9786
10235
  }[], resultFuncArgs_1: SortOrder) => ({
@@ -9995,6 +10444,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
9995
10444
  } | null | undefined;
9996
10445
  } | undefined;
9997
10446
  featureId?: import(".").FeatureId | undefined;
10447
+ resetApproval?: {
10448
+ chainId: number;
10449
+ to: string;
10450
+ from: string;
10451
+ value: string;
10452
+ data: string;
10453
+ gasLimit: number | null;
10454
+ effectiveGas?: number | undefined;
10455
+ } | undefined;
9998
10456
  } & QuoteMetadata)[]) & {
9999
10457
  clearCache: () => void;
10000
10458
  resultsCount: () => number;
@@ -10212,6 +10670,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
10212
10670
  } | null | undefined;
10213
10671
  } | undefined;
10214
10672
  featureId?: import(".").FeatureId | undefined;
10673
+ resetApproval?: {
10674
+ chainId: number;
10675
+ to: string;
10676
+ from: string;
10677
+ value: string;
10678
+ data: string;
10679
+ gasLimit: number | null;
10680
+ effectiveGas?: number | undefined;
10681
+ } | undefined;
10215
10682
  } & QuoteMetadata)[];
10216
10683
  dependencies: [((state: BridgeControllerState & {
10217
10684
  gasFeeEstimates: GasFeeEstimates;
@@ -10234,6 +10701,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
10234
10701
  usd: string | null;
10235
10702
  };
10236
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
+ */
10237
10709
  totalNetworkFee: {
10238
10710
  amount: string;
10239
10711
  valueInCurrency: string | null;
@@ -10244,6 +10716,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
10244
10716
  valueInCurrency: string | null;
10245
10717
  usd: string | null;
10246
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
+ */
10247
10724
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
10248
10725
  adjustedReturn: {
10249
10726
  valueInCurrency: string | null;
@@ -10431,6 +10908,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
10431
10908
  } | null | undefined;
10432
10909
  } | undefined;
10433
10910
  featureId?: import(".").FeatureId | undefined;
10911
+ resetApproval?: {
10912
+ chainId: number;
10913
+ to: string;
10914
+ from: string;
10915
+ value: string;
10916
+ data: string;
10917
+ gasLimit: number | null;
10918
+ effectiveGas?: number | undefined;
10919
+ } | undefined;
10434
10920
  l1GasFeesInHexWei?: string | undefined;
10435
10921
  nonEvmFeesInNative?: string | undefined;
10436
10922
  }[]) & {
@@ -10650,9 +11136,18 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
10650
11136
  } | null | undefined;
10651
11137
  } | undefined;
10652
11138
  featureId?: import(".").FeatureId | undefined;
11139
+ resetApproval?: {
11140
+ chainId: number;
11141
+ to: string;
11142
+ from: string;
11143
+ value: string;
11144
+ data: string;
11145
+ gasLimit: number | null;
11146
+ effectiveGas?: number | undefined;
11147
+ } | undefined;
10653
11148
  } & import("./types.cjs").L1GasFees & import("./types.cjs").NonEvmFees)[], resultFuncArgs_1: {
10654
11149
  estimatedBaseFeeInDecGwei: string;
10655
- maxPriorityFeePerGasInDecGwei: string;
11150
+ feePerGasInDecGwei: string;
10656
11151
  maxFeePerGasInDecGwei: string;
10657
11152
  }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
10658
11153
  sentAmount: {
@@ -10671,6 +11166,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
10671
11166
  usd: string | null;
10672
11167
  };
10673
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
+ */
10674
11174
  totalNetworkFee: {
10675
11175
  amount: string;
10676
11176
  valueInCurrency: string | null;
@@ -10681,6 +11181,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
10681
11181
  valueInCurrency: string | null;
10682
11182
  usd: string | null;
10683
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
+ */
10684
11189
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
10685
11190
  adjustedReturn: {
10686
11191
  valueInCurrency: string | null;
@@ -10868,6 +11373,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
10868
11373
  } | null | undefined;
10869
11374
  } | undefined;
10870
11375
  featureId?: import(".").FeatureId | undefined;
11376
+ resetApproval?: {
11377
+ chainId: number;
11378
+ to: string;
11379
+ from: string;
11380
+ value: string;
11381
+ data: string;
11382
+ gasLimit: number | null;
11383
+ effectiveGas?: number | undefined;
11384
+ } | undefined;
10871
11385
  l1GasFeesInHexWei?: string | undefined;
10872
11386
  nonEvmFeesInNative?: string | undefined;
10873
11387
  }[];
@@ -11083,9 +11597,18 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11083
11597
  } | null | undefined;
11084
11598
  } | undefined;
11085
11599
  featureId?: import(".").FeatureId | undefined;
11600
+ resetApproval?: {
11601
+ chainId: number;
11602
+ to: string;
11603
+ from: string;
11604
+ value: string;
11605
+ data: string;
11606
+ gasLimit: number | null;
11607
+ effectiveGas?: number | undefined;
11608
+ } | undefined;
11086
11609
  } & import("./types.cjs").L1GasFees & import("./types.cjs").NonEvmFees)[], resultFuncArgs_1: {
11087
11610
  estimatedBaseFeeInDecGwei: string;
11088
- maxPriorityFeePerGasInDecGwei: string;
11611
+ feePerGasInDecGwei: string;
11089
11612
  maxFeePerGasInDecGwei: string;
11090
11613
  }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
11091
11614
  sentAmount: {
@@ -11104,6 +11627,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11104
11627
  usd: string | null;
11105
11628
  };
11106
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
+ */
11107
11635
  totalNetworkFee: {
11108
11636
  amount: string;
11109
11637
  valueInCurrency: string | null;
@@ -11114,6 +11642,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11114
11642
  valueInCurrency: string | null;
11115
11643
  usd: string | null;
11116
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
+ */
11117
11650
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
11118
11651
  adjustedReturn: {
11119
11652
  valueInCurrency: string | null;
@@ -11301,6 +11834,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11301
11834
  } | null | undefined;
11302
11835
  } | undefined;
11303
11836
  featureId?: import(".").FeatureId | undefined;
11837
+ resetApproval?: {
11838
+ chainId: number;
11839
+ to: string;
11840
+ from: string;
11841
+ value: string;
11842
+ data: string;
11843
+ gasLimit: number | null;
11844
+ effectiveGas?: number | undefined;
11845
+ } | undefined;
11304
11846
  l1GasFeesInHexWei?: string | undefined;
11305
11847
  nonEvmFeesInNative?: string | undefined;
11306
11848
  }[]) & {
@@ -11325,6 +11867,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11325
11867
  usd: string | null;
11326
11868
  };
11327
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
+ */
11328
11875
  totalNetworkFee: {
11329
11876
  amount: string;
11330
11877
  valueInCurrency: string | null;
@@ -11335,6 +11882,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11335
11882
  valueInCurrency: string | null;
11336
11883
  usd: string | null;
11337
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
+ */
11338
11890
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
11339
11891
  adjustedReturn: {
11340
11892
  valueInCurrency: string | null;
@@ -11522,6 +12074,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11522
12074
  } | null | undefined;
11523
12075
  } | undefined;
11524
12076
  featureId?: import(".").FeatureId | undefined;
12077
+ resetApproval?: {
12078
+ chainId: number;
12079
+ to: string;
12080
+ from: string;
12081
+ value: string;
12082
+ data: string;
12083
+ gasLimit: number | null;
12084
+ effectiveGas?: number | undefined;
12085
+ } | undefined;
11525
12086
  l1GasFeesInHexWei?: string | undefined;
11526
12087
  nonEvmFeesInNative?: string | undefined;
11527
12088
  }[];
@@ -11737,13 +12298,22 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11737
12298
  } | null | undefined;
11738
12299
  } | undefined;
11739
12300
  featureId?: import(".").FeatureId | undefined;
12301
+ resetApproval?: {
12302
+ chainId: number;
12303
+ to: string;
12304
+ from: string;
12305
+ value: string;
12306
+ data: string;
12307
+ gasLimit: number | null;
12308
+ effectiveGas?: number | undefined;
12309
+ } | undefined;
11740
12310
  } & import("./types.cjs").L1GasFees & import("./types.cjs").NonEvmFees)[], ((state: BridgeControllerState & {
11741
12311
  gasFeeEstimates: GasFeeEstimates;
11742
12312
  } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
11743
12313
  participateInMetaMetrics: boolean;
11744
12314
  } & RemoteFeatureFlagControllerState) => {
11745
12315
  estimatedBaseFeeInDecGwei: string;
11746
- maxPriorityFeePerGasInDecGwei: string;
12316
+ feePerGasInDecGwei: string;
11747
12317
  maxFeePerGasInDecGwei: string;
11748
12318
  }) & {
11749
12319
  clearCache: () => void;
@@ -11752,12 +12322,12 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11752
12322
  } & {
11753
12323
  resultFunc: (resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
11754
12324
  estimatedBaseFeeInDecGwei: string;
11755
- maxPriorityFeePerGasInDecGwei: string;
12325
+ feePerGasInDecGwei: string;
11756
12326
  maxFeePerGasInDecGwei: string;
11757
12327
  };
11758
12328
  memoizedResultFunc: ((resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
11759
12329
  estimatedBaseFeeInDecGwei: string;
11760
- maxPriorityFeePerGasInDecGwei: string;
12330
+ feePerGasInDecGwei: string;
11761
12331
  maxFeePerGasInDecGwei: string;
11762
12332
  }) & {
11763
12333
  clearCache: () => void;
@@ -11766,7 +12336,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
11766
12336
  };
11767
12337
  lastResult: () => {
11768
12338
  estimatedBaseFeeInDecGwei: string;
11769
- maxPriorityFeePerGasInDecGwei: string;
12339
+ feePerGasInDecGwei: string;
11770
12340
  maxFeePerGasInDecGwei: string;
11771
12341
  };
11772
12342
  dependencies: [({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string];
@@ -12089,6 +12659,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
12089
12659
  } | null | undefined;
12090
12660
  } | undefined;
12091
12661
  featureId?: import(".").FeatureId | undefined;
12662
+ resetApproval?: {
12663
+ chainId: number;
12664
+ to: string;
12665
+ from: string;
12666
+ value: string;
12667
+ data: string;
12668
+ gasLimit: number | null;
12669
+ effectiveGas?: number | undefined;
12670
+ } | undefined;
12092
12671
  } & QuoteMetadata) | null) & {
12093
12672
  clearCache: () => void;
12094
12673
  resultsCount: () => number;
@@ -12306,6 +12885,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
12306
12885
  } | null | undefined;
12307
12886
  } | undefined;
12308
12887
  featureId?: import(".").FeatureId | undefined;
12888
+ resetApproval?: {
12889
+ chainId: number;
12890
+ to: string;
12891
+ from: string;
12892
+ value: string;
12893
+ data: string;
12894
+ gasLimit: number | null;
12895
+ effectiveGas?: number | undefined;
12896
+ } | undefined;
12309
12897
  } & QuoteMetadata) | null, resultFuncArgs_1: ({
12310
12898
  quote: {
12311
12899
  srcChainId: number;
@@ -12518,6 +13106,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
12518
13106
  } | null | undefined;
12519
13107
  } | undefined;
12520
13108
  featureId?: import(".").FeatureId | undefined;
13109
+ resetApproval?: {
13110
+ chainId: number;
13111
+ to: string;
13112
+ from: string;
13113
+ value: string;
13114
+ data: string;
13115
+ gasLimit: number | null;
13116
+ effectiveGas?: number | undefined;
13117
+ } | undefined;
12521
13118
  } & QuoteMetadata) | null) => ({
12522
13119
  quote: {
12523
13120
  srcChainId: number;
@@ -12730,6 +13327,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
12730
13327
  } | null | undefined;
12731
13328
  } | undefined;
12732
13329
  featureId?: import(".").FeatureId | undefined;
13330
+ resetApproval?: {
13331
+ chainId: number;
13332
+ to: string;
13333
+ from: string;
13334
+ value: string;
13335
+ data: string;
13336
+ gasLimit: number | null;
13337
+ effectiveGas?: number | undefined;
13338
+ } | undefined;
12733
13339
  } & QuoteMetadata) | null;
12734
13340
  memoizedResultFunc: ((resultFuncArgs_0: ({
12735
13341
  quote: {
@@ -12943,6 +13549,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
12943
13549
  } | null | undefined;
12944
13550
  } | undefined;
12945
13551
  featureId?: import(".").FeatureId | undefined;
13552
+ resetApproval?: {
13553
+ chainId: number;
13554
+ to: string;
13555
+ from: string;
13556
+ value: string;
13557
+ data: string;
13558
+ gasLimit: number | null;
13559
+ effectiveGas?: number | undefined;
13560
+ } | undefined;
12946
13561
  } & QuoteMetadata) | null, resultFuncArgs_1: ({
12947
13562
  quote: {
12948
13563
  srcChainId: number;
@@ -13155,6 +13770,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
13155
13770
  } | null | undefined;
13156
13771
  } | undefined;
13157
13772
  featureId?: import(".").FeatureId | undefined;
13773
+ resetApproval?: {
13774
+ chainId: number;
13775
+ to: string;
13776
+ from: string;
13777
+ value: string;
13778
+ data: string;
13779
+ gasLimit: number | null;
13780
+ effectiveGas?: number | undefined;
13781
+ } | undefined;
13158
13782
  } & QuoteMetadata) | null) => ({
13159
13783
  quote: {
13160
13784
  srcChainId: number;
@@ -13367,6 +13991,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
13367
13991
  } | null | undefined;
13368
13992
  } | undefined;
13369
13993
  featureId?: import(".").FeatureId | undefined;
13994
+ resetApproval?: {
13995
+ chainId: number;
13996
+ to: string;
13997
+ from: string;
13998
+ value: string;
13999
+ data: string;
14000
+ gasLimit: number | null;
14001
+ effectiveGas?: number | undefined;
14002
+ } | undefined;
13370
14003
  } & QuoteMetadata) | null) & {
13371
14004
  clearCache: () => void;
13372
14005
  resultsCount: () => number;
@@ -13584,6 +14217,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
13584
14217
  } | null | undefined;
13585
14218
  } | undefined;
13586
14219
  featureId?: import(".").FeatureId | undefined;
14220
+ resetApproval?: {
14221
+ chainId: number;
14222
+ to: string;
14223
+ from: string;
14224
+ value: string;
14225
+ data: string;
14226
+ gasLimit: number | null;
14227
+ effectiveGas?: number | undefined;
14228
+ } | undefined;
13587
14229
  } & QuoteMetadata) | null;
13588
14230
  dependencies: [((state: BridgeControllerState & {
13589
14231
  gasFeeEstimates: GasFeeEstimates;
@@ -13801,6 +14443,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
13801
14443
  } | null | undefined;
13802
14444
  } | undefined;
13803
14445
  featureId?: import(".").FeatureId | undefined;
14446
+ resetApproval?: {
14447
+ chainId: number;
14448
+ to: string;
14449
+ from: string;
14450
+ value: string;
14451
+ data: string;
14452
+ gasLimit: number | null;
14453
+ effectiveGas?: number | undefined;
14454
+ } | undefined;
13804
14455
  } & QuoteMetadata) | null) & {
13805
14456
  clearCache: () => void;
13806
14457
  resultsCount: () => number;
@@ -14018,6 +14669,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
14018
14669
  } | null | undefined;
14019
14670
  } | undefined;
14020
14671
  featureId?: import(".").FeatureId | undefined;
14672
+ resetApproval?: {
14673
+ chainId: number;
14674
+ to: string;
14675
+ from: string;
14676
+ value: string;
14677
+ data: string;
14678
+ gasLimit: number | null;
14679
+ effectiveGas?: number | undefined;
14680
+ } | undefined;
14021
14681
  } & QuoteMetadata)[]) => ({
14022
14682
  quote: {
14023
14683
  srcChainId: number;
@@ -14230,6 +14890,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
14230
14890
  } | null | undefined;
14231
14891
  } | undefined;
14232
14892
  featureId?: import(".").FeatureId | undefined;
14893
+ resetApproval?: {
14894
+ chainId: number;
14895
+ to: string;
14896
+ from: string;
14897
+ value: string;
14898
+ data: string;
14899
+ gasLimit: number | null;
14900
+ effectiveGas?: number | undefined;
14901
+ } | undefined;
14233
14902
  } & QuoteMetadata) | null;
14234
14903
  memoizedResultFunc: ((resultFuncArgs_0: ({
14235
14904
  quote: {
@@ -14443,6 +15112,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
14443
15112
  } | null | undefined;
14444
15113
  } | undefined;
14445
15114
  featureId?: import(".").FeatureId | undefined;
15115
+ resetApproval?: {
15116
+ chainId: number;
15117
+ to: string;
15118
+ from: string;
15119
+ value: string;
15120
+ data: string;
15121
+ gasLimit: number | null;
15122
+ effectiveGas?: number | undefined;
15123
+ } | undefined;
14446
15124
  } & QuoteMetadata)[]) => ({
14447
15125
  quote: {
14448
15126
  srcChainId: number;
@@ -14655,6 +15333,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
14655
15333
  } | null | undefined;
14656
15334
  } | undefined;
14657
15335
  featureId?: import(".").FeatureId | undefined;
15336
+ resetApproval?: {
15337
+ chainId: number;
15338
+ to: string;
15339
+ from: string;
15340
+ value: string;
15341
+ data: string;
15342
+ gasLimit: number | null;
15343
+ effectiveGas?: number | undefined;
15344
+ } | undefined;
14658
15345
  } & QuoteMetadata) | null) & {
14659
15346
  clearCache: () => void;
14660
15347
  resultsCount: () => number;
@@ -14872,6 +15559,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
14872
15559
  } | null | undefined;
14873
15560
  } | undefined;
14874
15561
  featureId?: import(".").FeatureId | undefined;
15562
+ resetApproval?: {
15563
+ chainId: number;
15564
+ to: string;
15565
+ from: string;
15566
+ value: string;
15567
+ data: string;
15568
+ gasLimit: number | null;
15569
+ effectiveGas?: number | undefined;
15570
+ } | undefined;
14875
15571
  } & QuoteMetadata) | null;
14876
15572
  dependencies: [((state: BridgeControllerState & {
14877
15573
  gasFeeEstimates: GasFeeEstimates;
@@ -15089,6 +15785,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
15089
15785
  } | null | undefined;
15090
15786
  } | undefined;
15091
15787
  featureId?: import(".").FeatureId | undefined;
15788
+ resetApproval?: {
15789
+ chainId: number;
15790
+ to: string;
15791
+ from: string;
15792
+ value: string;
15793
+ data: string;
15794
+ gasLimit: number | null;
15795
+ effectiveGas?: number | undefined;
15796
+ } | undefined;
15092
15797
  } & QuoteMetadata)[]) & {
15093
15798
  clearCache: () => void;
15094
15799
  resultsCount: () => number;
@@ -15111,6 +15816,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
15111
15816
  usd: string | null;
15112
15817
  };
15113
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
+ */
15114
15824
  totalNetworkFee: {
15115
15825
  amount: string;
15116
15826
  valueInCurrency: string | null;
@@ -15121,6 +15831,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
15121
15831
  valueInCurrency: string | null;
15122
15832
  usd: string | null;
15123
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
+ */
15124
15839
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
15125
15840
  adjustedReturn: {
15126
15841
  valueInCurrency: string | null;
@@ -15308,6 +16023,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
15308
16023
  } | null | undefined;
15309
16024
  } | undefined;
15310
16025
  featureId?: import(".").FeatureId | undefined;
16026
+ resetApproval?: {
16027
+ chainId: number;
16028
+ to: string;
16029
+ from: string;
16030
+ value: string;
16031
+ data: string;
16032
+ gasLimit: number | null;
16033
+ effectiveGas?: number | undefined;
16034
+ } | undefined;
15311
16035
  l1GasFeesInHexWei?: string | undefined;
15312
16036
  nonEvmFeesInNative?: string | undefined;
15313
16037
  }[], resultFuncArgs_1: SortOrder) => ({
@@ -15522,6 +16246,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
15522
16246
  } | null | undefined;
15523
16247
  } | undefined;
15524
16248
  featureId?: import(".").FeatureId | undefined;
16249
+ resetApproval?: {
16250
+ chainId: number;
16251
+ to: string;
16252
+ from: string;
16253
+ value: string;
16254
+ data: string;
16255
+ gasLimit: number | null;
16256
+ effectiveGas?: number | undefined;
16257
+ } | undefined;
15525
16258
  } & QuoteMetadata)[];
15526
16259
  memoizedResultFunc: ((resultFuncArgs_0: {
15527
16260
  sentAmount: {
@@ -15540,6 +16273,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
15540
16273
  usd: string | null;
15541
16274
  };
15542
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
+ */
15543
16281
  totalNetworkFee: {
15544
16282
  amount: string;
15545
16283
  valueInCurrency: string | null;
@@ -15550,6 +16288,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
15550
16288
  valueInCurrency: string | null;
15551
16289
  usd: string | null;
15552
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
+ */
15553
16296
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
15554
16297
  adjustedReturn: {
15555
16298
  valueInCurrency: string | null;
@@ -15737,6 +16480,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
15737
16480
  } | null | undefined;
15738
16481
  } | undefined;
15739
16482
  featureId?: import(".").FeatureId | undefined;
16483
+ resetApproval?: {
16484
+ chainId: number;
16485
+ to: string;
16486
+ from: string;
16487
+ value: string;
16488
+ data: string;
16489
+ gasLimit: number | null;
16490
+ effectiveGas?: number | undefined;
16491
+ } | undefined;
15740
16492
  l1GasFeesInHexWei?: string | undefined;
15741
16493
  nonEvmFeesInNative?: string | undefined;
15742
16494
  }[], resultFuncArgs_1: SortOrder) => ({
@@ -15951,6 +16703,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
15951
16703
  } | null | undefined;
15952
16704
  } | undefined;
15953
16705
  featureId?: import(".").FeatureId | undefined;
16706
+ resetApproval?: {
16707
+ chainId: number;
16708
+ to: string;
16709
+ from: string;
16710
+ value: string;
16711
+ data: string;
16712
+ gasLimit: number | null;
16713
+ effectiveGas?: number | undefined;
16714
+ } | undefined;
15954
16715
  } & QuoteMetadata)[]) & {
15955
16716
  clearCache: () => void;
15956
16717
  resultsCount: () => number;
@@ -16168,6 +16929,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
16168
16929
  } | null | undefined;
16169
16930
  } | undefined;
16170
16931
  featureId?: import(".").FeatureId | undefined;
16932
+ resetApproval?: {
16933
+ chainId: number;
16934
+ to: string;
16935
+ from: string;
16936
+ value: string;
16937
+ data: string;
16938
+ gasLimit: number | null;
16939
+ effectiveGas?: number | undefined;
16940
+ } | undefined;
16171
16941
  } & QuoteMetadata)[];
16172
16942
  dependencies: [((state: BridgeControllerState & {
16173
16943
  gasFeeEstimates: GasFeeEstimates;
@@ -16190,6 +16960,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
16190
16960
  usd: string | null;
16191
16961
  };
16192
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
+ */
16193
16968
  totalNetworkFee: {
16194
16969
  amount: string;
16195
16970
  valueInCurrency: string | null;
@@ -16200,6 +16975,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
16200
16975
  valueInCurrency: string | null;
16201
16976
  usd: string | null;
16202
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
+ */
16203
16983
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
16204
16984
  adjustedReturn: {
16205
16985
  valueInCurrency: string | null;
@@ -16387,6 +17167,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
16387
17167
  } | null | undefined;
16388
17168
  } | undefined;
16389
17169
  featureId?: import(".").FeatureId | undefined;
17170
+ resetApproval?: {
17171
+ chainId: number;
17172
+ to: string;
17173
+ from: string;
17174
+ value: string;
17175
+ data: string;
17176
+ gasLimit: number | null;
17177
+ effectiveGas?: number | undefined;
17178
+ } | undefined;
16390
17179
  l1GasFeesInHexWei?: string | undefined;
16391
17180
  nonEvmFeesInNative?: string | undefined;
16392
17181
  }[]) & {
@@ -16606,9 +17395,18 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
16606
17395
  } | null | undefined;
16607
17396
  } | undefined;
16608
17397
  featureId?: import(".").FeatureId | undefined;
17398
+ resetApproval?: {
17399
+ chainId: number;
17400
+ to: string;
17401
+ from: string;
17402
+ value: string;
17403
+ data: string;
17404
+ gasLimit: number | null;
17405
+ effectiveGas?: number | undefined;
17406
+ } | undefined;
16609
17407
  } & import("./types.cjs").L1GasFees & import("./types.cjs").NonEvmFees)[], resultFuncArgs_1: {
16610
17408
  estimatedBaseFeeInDecGwei: string;
16611
- maxPriorityFeePerGasInDecGwei: string;
17409
+ feePerGasInDecGwei: string;
16612
17410
  maxFeePerGasInDecGwei: string;
16613
17411
  }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
16614
17412
  sentAmount: {
@@ -16627,6 +17425,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
16627
17425
  usd: string | null;
16628
17426
  };
16629
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
+ */
16630
17433
  totalNetworkFee: {
16631
17434
  amount: string;
16632
17435
  valueInCurrency: string | null;
@@ -16637,6 +17440,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
16637
17440
  valueInCurrency: string | null;
16638
17441
  usd: string | null;
16639
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
+ */
16640
17448
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
16641
17449
  adjustedReturn: {
16642
17450
  valueInCurrency: string | null;
@@ -16824,6 +17632,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
16824
17632
  } | null | undefined;
16825
17633
  } | undefined;
16826
17634
  featureId?: import(".").FeatureId | undefined;
17635
+ resetApproval?: {
17636
+ chainId: number;
17637
+ to: string;
17638
+ from: string;
17639
+ value: string;
17640
+ data: string;
17641
+ gasLimit: number | null;
17642
+ effectiveGas?: number | undefined;
17643
+ } | undefined;
16827
17644
  l1GasFeesInHexWei?: string | undefined;
16828
17645
  nonEvmFeesInNative?: string | undefined;
16829
17646
  }[];
@@ -17039,9 +17856,18 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17039
17856
  } | null | undefined;
17040
17857
  } | undefined;
17041
17858
  featureId?: import(".").FeatureId | undefined;
17859
+ resetApproval?: {
17860
+ chainId: number;
17861
+ to: string;
17862
+ from: string;
17863
+ value: string;
17864
+ data: string;
17865
+ gasLimit: number | null;
17866
+ effectiveGas?: number | undefined;
17867
+ } | undefined;
17042
17868
  } & import("./types.cjs").L1GasFees & import("./types.cjs").NonEvmFees)[], resultFuncArgs_1: {
17043
17869
  estimatedBaseFeeInDecGwei: string;
17044
- maxPriorityFeePerGasInDecGwei: string;
17870
+ feePerGasInDecGwei: string;
17045
17871
  maxFeePerGasInDecGwei: string;
17046
17872
  }, resultFuncArgs_2: ExchangeRate, resultFuncArgs_3: ExchangeRate, resultFuncArgs_4: ExchangeRate) => {
17047
17873
  sentAmount: {
@@ -17060,6 +17886,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17060
17886
  usd: string | null;
17061
17887
  };
17062
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
+ */
17063
17894
  totalNetworkFee: {
17064
17895
  amount: string;
17065
17896
  valueInCurrency: string | null;
@@ -17070,6 +17901,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17070
17901
  valueInCurrency: string | null;
17071
17902
  usd: string | null;
17072
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
+ */
17073
17909
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
17074
17910
  adjustedReturn: {
17075
17911
  valueInCurrency: string | null;
@@ -17257,6 +18093,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17257
18093
  } | null | undefined;
17258
18094
  } | undefined;
17259
18095
  featureId?: import(".").FeatureId | undefined;
18096
+ resetApproval?: {
18097
+ chainId: number;
18098
+ to: string;
18099
+ from: string;
18100
+ value: string;
18101
+ data: string;
18102
+ gasLimit: number | null;
18103
+ effectiveGas?: number | undefined;
18104
+ } | undefined;
17260
18105
  l1GasFeesInHexWei?: string | undefined;
17261
18106
  nonEvmFeesInNative?: string | undefined;
17262
18107
  }[]) & {
@@ -17281,6 +18126,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17281
18126
  usd: string | null;
17282
18127
  };
17283
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
+ */
17284
18134
  totalNetworkFee: {
17285
18135
  amount: string;
17286
18136
  valueInCurrency: string | null;
@@ -17291,6 +18141,11 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17291
18141
  valueInCurrency: string | null;
17292
18142
  usd: string | null;
17293
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
+ */
17294
18149
  gasFee: Record<"effective" | "total" | "max", import("./types.cjs").TokenAmountValues>;
17295
18150
  adjustedReturn: {
17296
18151
  valueInCurrency: string | null;
@@ -17478,6 +18333,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17478
18333
  } | null | undefined;
17479
18334
  } | undefined;
17480
18335
  featureId?: import(".").FeatureId | undefined;
18336
+ resetApproval?: {
18337
+ chainId: number;
18338
+ to: string;
18339
+ from: string;
18340
+ value: string;
18341
+ data: string;
18342
+ gasLimit: number | null;
18343
+ effectiveGas?: number | undefined;
18344
+ } | undefined;
17481
18345
  l1GasFeesInHexWei?: string | undefined;
17482
18346
  nonEvmFeesInNative?: string | undefined;
17483
18347
  }[];
@@ -17693,13 +18557,22 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17693
18557
  } | null | undefined;
17694
18558
  } | undefined;
17695
18559
  featureId?: import(".").FeatureId | undefined;
18560
+ resetApproval?: {
18561
+ chainId: number;
18562
+ to: string;
18563
+ from: string;
18564
+ value: string;
18565
+ data: string;
18566
+ gasLimit: number | null;
18567
+ effectiveGas?: number | undefined;
18568
+ } | undefined;
17696
18569
  } & import("./types.cjs").L1GasFees & import("./types.cjs").NonEvmFees)[], ((state: BridgeControllerState & {
17697
18570
  gasFeeEstimates: GasFeeEstimates;
17698
18571
  } & MultichainAssetsRatesControllerState & TokenRatesControllerState & CurrencyRateState & Pick<BridgeControllerState, "assetExchangeRates"> & {
17699
18572
  participateInMetaMetrics: boolean;
17700
18573
  } & RemoteFeatureFlagControllerState) => {
17701
18574
  estimatedBaseFeeInDecGwei: string;
17702
- maxPriorityFeePerGasInDecGwei: string;
18575
+ feePerGasInDecGwei: string;
17703
18576
  maxFeePerGasInDecGwei: string;
17704
18577
  }) & {
17705
18578
  clearCache: () => void;
@@ -17708,12 +18581,12 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17708
18581
  } & {
17709
18582
  resultFunc: (resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
17710
18583
  estimatedBaseFeeInDecGwei: string;
17711
- maxPriorityFeePerGasInDecGwei: string;
18584
+ feePerGasInDecGwei: string;
17712
18585
  maxFeePerGasInDecGwei: string;
17713
18586
  };
17714
18587
  memoizedResultFunc: ((resultFuncArgs_0: string, resultFuncArgs_1: string, resultFuncArgs_2: string) => {
17715
18588
  estimatedBaseFeeInDecGwei: string;
17716
- maxPriorityFeePerGasInDecGwei: string;
18589
+ feePerGasInDecGwei: string;
17717
18590
  maxFeePerGasInDecGwei: string;
17718
18591
  }) & {
17719
18592
  clearCache: () => void;
@@ -17722,7 +18595,7 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
17722
18595
  };
17723
18596
  lastResult: () => {
17724
18597
  estimatedBaseFeeInDecGwei: string;
17725
- maxPriorityFeePerGasInDecGwei: string;
18598
+ feePerGasInDecGwei: string;
17726
18599
  maxFeePerGasInDecGwei: string;
17727
18600
  };
17728
18601
  dependencies: [({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string, ({ gasFeeEstimates }: BridgeAppState) => string];
@@ -18041,6 +18914,15 @@ export declare const selectBridgeQuotes: ((state: BridgeControllerState & {
18041
18914
  } | null | undefined;
18042
18915
  } | undefined;
18043
18916
  featureId?: import(".").FeatureId | undefined;
18917
+ resetApproval?: {
18918
+ chainId: number;
18919
+ to: string;
18920
+ from: string;
18921
+ value: string;
18922
+ data: string;
18923
+ gasLimit: number | null;
18924
+ effectiveGas?: number | undefined;
18925
+ } | undefined;
18044
18926
  } & QuoteMetadata) | null];
18045
18927
  recomputations: () => number;
18046
18928
  resetRecomputations: () => void;