@dhedge/trading-widget 5.9.0 → 5.11.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 (131) hide show
  1. package/README.md +17 -20
  2. package/complex-withdraw-asset-data-DKDPznHy.cjs +1 -0
  3. package/{complex-withdraw-asset-data-D8GMw8ql.js → complex-withdraw-asset-data-DzhKTztw.js} +119 -144
  4. package/const.cjs +1 -1
  5. package/const.js +32 -32
  6. package/core-kit/const/logger.d.ts +2 -5
  7. package/core-kit/const/storage.d.ts +0 -1
  8. package/core-kit/hooks/state/action.d.ts +0 -1
  9. package/core-kit/hooks/trading/deposit-v2/deposit-transaction/use-deposit-common.d.ts +1 -1
  10. package/core-kit/hooks/trading/deposit-v2/use-get-vault-deposit-transaction-arguments.d.ts +1 -1
  11. package/core-kit/hooks/trading/deposit-v2/use-vault-deposit-tokens.d.ts +5 -1
  12. package/core-kit/hooks/trading/index.d.ts +0 -1
  13. package/core-kit/hooks/web3/index.d.ts +0 -1
  14. package/core-kit/types/state.types.d.ts +0 -1
  15. package/core-kit/types/trading-panel.types.d.ts +2 -3
  16. package/core-kit/utils/deposit.d.ts +1 -1
  17. package/core-kit/utils/index.d.ts +0 -1
  18. package/{storage-C0zg_Mfy.js → gmx-BroDb_q_.js} +156 -160
  19. package/gmx-CLiWBUH_.cjs +1 -0
  20. package/index.cjs +1 -1
  21. package/index.d.ts +4 -2
  22. package/index.js +6592 -5772
  23. package/limit-orders/common/network-check-button.d.ts +7 -0
  24. package/limit-orders/common/network-check-button.hooks.d.ts +4 -0
  25. package/limit-orders/common/utils.d.ts +2 -0
  26. package/limit-orders/index.d.ts +9 -5
  27. package/limit-orders/limit-buys/component/input-group/input-amount-field.d.ts +2 -0
  28. package/limit-orders/limit-buys/component/input-group/input-amount-field.hooks.d.ts +11 -0
  29. package/limit-orders/limit-buys/component/input-group/input-group.d.ts +2 -0
  30. package/limit-orders/limit-buys/component/input-group/input-group.hooks.d.ts +15 -0
  31. package/limit-orders/limit-buys/component/input-group/slippage-deadline-fields.d.ts +2 -0
  32. package/limit-orders/limit-buys/component/input-group/slippage-deadline-fields.hooks.d.ts +5 -0
  33. package/limit-orders/limit-buys/component/input-group/token-select-overlay.d.ts +10 -0
  34. package/limit-orders/limit-buys/component/limit-buy-button/sign-limit-buy-button.d.ts +6 -0
  35. package/limit-orders/limit-buys/component/limit-buy-button/sign-limit-buy-button.hooks.d.ts +6 -0
  36. package/limit-orders/limit-buys/component/limit-buy-content.d.ts +6 -0
  37. package/limit-orders/limit-buys/component/limit-buy-order-modal.d.ts +14 -0
  38. package/limit-orders/limit-buys/component/limit-buy-overlay.d.ts +11 -0
  39. package/limit-orders/limit-buys/component/terms-confirmation.d.ts +8 -0
  40. package/limit-orders/limit-buys/constants.d.ts +55 -0
  41. package/limit-orders/limit-buys/hooks/state.d.ts +2 -0
  42. package/limit-orders/limit-buys/hooks/use-approve-and-sign-limit-buy.d.ts +7 -0
  43. package/limit-orders/limit-buys/hooks/use-is-permit2-approved.d.ts +1 -0
  44. package/limit-orders/limit-buys/hooks/use-permit2-approve-transaction.d.ts +5 -0
  45. package/limit-orders/limit-buys/hooks/use-sign-limit-buy-order.d.ts +3 -0
  46. package/limit-orders/limit-buys/providers/state-provider/reducer.d.ts +3 -0
  47. package/limit-orders/limit-buys/providers/state-provider/state-provider.d.ts +6 -0
  48. package/limit-orders/limit-buys/providers/state-provider/state-provider.types.d.ts +69 -0
  49. package/limit-orders/limit-buys/providers/translation-provider/index.d.ts +3 -0
  50. package/limit-orders/limit-buys/providers/translation-provider/translation-provider.d.ts +4 -0
  51. package/limit-orders/limit-buys/providers/translation-provider/translation-provider.defaults.d.ts +2 -0
  52. package/limit-orders/limit-buys/providers/translation-provider/translation-provider.hooks.d.ts +1 -0
  53. package/limit-orders/limit-buys/providers/translation-provider/translation-provider.types.d.ts +29 -0
  54. package/limit-orders/limit-buys/types.d.ts +27 -0
  55. package/limit-orders/limit-buys/utils.d.ts +4 -0
  56. package/limit-orders/{component → limit-sells/component}/input-group/input-group.hooks.d.ts +0 -2
  57. package/limit-orders/{component → limit-sells/component}/limit-order-button/approve-and-create-limit-order-button.d.ts +1 -0
  58. package/limit-orders/{component → limit-sells/component}/limit-order-content.d.ts +1 -1
  59. package/limit-orders/{component → limit-sells/component}/limit-order-overlay.d.ts +3 -3
  60. package/limit-orders/{component/limit-order-modal.d.ts → limit-sells/component/limit-sell-order-modal.d.ts} +5 -5
  61. package/limit-orders/limit-sells/component/terms-confirmation.d.ts +8 -0
  62. package/limit-orders/{constants.d.ts → limit-sells/constants.d.ts} +2 -2
  63. package/limit-orders/limit-sells/hooks/use-invalidate-limit-sell-order-query.d.ts +1 -0
  64. package/limit-orders/{hooks → limit-sells/hooks}/use-on-limit-order-settled.d.ts +1 -1
  65. package/limit-orders/{hooks/use-user-limit-order.d.ts → limit-sells/hooks/use-user-limit-sell-order.d.ts} +3 -3
  66. package/limit-orders/{providers → limit-sells/providers}/state-provider/reducer.d.ts +1 -1
  67. package/limit-orders/{providers → limit-sells/providers}/state-provider/state-provider.d.ts +1 -1
  68. package/limit-orders/{providers → limit-sells/providers}/state-provider/state-provider.types.d.ts +1 -1
  69. package/limit-orders/{utils.d.ts → limit-sells/utils.d.ts} +3 -3
  70. package/limit-orders/providers/translation-provider/translation-provider.types.d.ts +1 -0
  71. package/package.json +1 -1
  72. package/{derive-BmKPodpX.js → storage-CSc9iE5L.js} +6 -2
  73. package/storage-DHoO5PX_.cjs +1 -0
  74. package/style.css +1 -1
  75. package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +0 -2
  76. package/trading-widget/components/widget/widget-buttons/index.d.ts +1 -0
  77. package/trading-widget/components/widget/widget-buttons/limit-buy-button/limit-buy-button.d.ts +3 -0
  78. package/trading-widget/components/widget/widget-overlay/hyper-evm-warning-overlay/hyper-evm-warning-overlay.d.ts +3 -0
  79. package/trading-widget/components/widget/widget-overlay/index.d.ts +2 -0
  80. package/trading-widget/components/widget/widget-overlay/limit-buys-overlay/limit-buys-overlay.d.ts +3 -0
  81. package/trading-widget/components/widget/widget-overlay/limit-buys-overlay/limit-buys-overlay.hooks.d.ts +17 -0
  82. package/trading-widget/components/widget/widget-settings/index.d.ts +0 -1
  83. package/trading-widget/components/widget/widget-settings/slippage-selector/slippage-selector.hooks.d.ts +0 -1
  84. package/trading-widget/hooks/index.d.ts +3 -1
  85. package/trading-widget/hooks/use-display-limit-buy-overlay.d.ts +1 -0
  86. package/trading-widget/hooks/use-open-limit-buys-overlay.d.ts +4 -0
  87. package/trading-widget/hooks/use-show-hyper-evm-deposit-warning.d.ts +1 -0
  88. package/trading-widget/providers/config-provider/config-provider.types.d.ts +3 -0
  89. package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +7 -5
  90. package/trading-widget/types/overlay.types.d.ts +2 -0
  91. package/utils.cjs +1 -1
  92. package/utils.js +32 -34
  93. package/complex-withdraw-asset-data-DSjzOaBD.cjs +0 -1
  94. package/core-kit/hooks/trading/deposit-v2/deposit-transaction/use-batch-approve-transaction.d.ts +0 -141
  95. package/core-kit/hooks/trading/deposit-v2/deposit-transaction/use-batch-deposit.d.ts +0 -1
  96. package/core-kit/hooks/trading/trade-handlers/use-batch-trading-settle-handler.d.ts +0 -5
  97. package/core-kit/hooks/trading/use-is-batch-contract-writes-trading.d.ts +0 -1
  98. package/core-kit/hooks/web3/use-custom-send-calls.d.ts +0 -14
  99. package/core-kit/hooks/web3/use-is-batch-contract-writes-supported.d.ts +0 -1
  100. package/core-kit/utils/batch-transactions.d.ts +0 -2
  101. package/derive-CsdqSZEg.cjs +0 -1
  102. package/limit-orders/component/input-group/terms-content.d.ts +0 -6
  103. package/limit-orders/component/limit-order-button/network-check-button.d.ts +0 -2
  104. package/limit-orders/component/limit-order-button/network-check-button.hooks.d.ts +0 -4
  105. package/limit-orders/hooks/use-invalidate-limit-order-query.d.ts +0 -1
  106. package/storage-B9jNfIvl.cjs +0 -1
  107. package/trading-widget/components/deposit/button/batch-trade-button.d.ts +0 -2
  108. package/trading-widget/components/widget/widget-settings/batch-transactions-switch/batch-transactions-switch.d.ts +0 -2
  109. package/trading-widget/components/widget/widget-settings/batch-transactions-switch/batch-transactions-switch.hooks.d.ts +0 -1
  110. package/trading-widget/hooks/use-trading-type-name.d.ts +0 -2
  111. /package/limit-orders/{component/common → common}/action-button.d.ts +0 -0
  112. /package/limit-orders/{component/common → common}/asset-price-panel.d.ts +0 -0
  113. /package/limit-orders/{component/common → common}/modal-content.d.ts +0 -0
  114. /package/limit-orders/{component/common → common}/modal-dialog.d.ts +0 -0
  115. /package/limit-orders/{component/common → common}/percentage-input.d.ts +0 -0
  116. /package/limit-orders/{component/common → common}/price-input.d.ts +0 -0
  117. /package/limit-orders/{component/common → common}/switch-panel.d.ts +0 -0
  118. /package/limit-orders/{component → limit-sells/component}/input-group/input-group.d.ts +0 -0
  119. /package/limit-orders/{component → limit-sells/component}/limit-order-button/approve-and-create-limit-order-button.hooks.d.ts +0 -0
  120. /package/limit-orders/{component → limit-sells/component}/limit-order-button/limit-order-delete-button.d.ts +0 -0
  121. /package/limit-orders/{component → limit-sells/component}/limit-order-button/limit-order-delete-button.hooks.d.ts +0 -0
  122. /package/limit-orders/{component → limit-sells/component}/limit-order-content.hooks.d.ts +0 -0
  123. /package/limit-orders/{component → limit-sells/component}/limit-order-modal.hooks.d.ts +0 -0
  124. /package/limit-orders/{hooks → limit-sells/hooks}/state.d.ts +0 -0
  125. /package/limit-orders/{hooks → limit-sells/hooks}/use-approve-and-create-limit-order.d.ts +0 -0
  126. /package/limit-orders/{hooks → limit-sells/hooks}/use-create-limit-order-transaction.d.ts +0 -0
  127. /package/limit-orders/{hooks → limit-sells/hooks}/use-existing-limit-order-default-prices.d.ts +0 -0
  128. /package/limit-orders/{hooks → limit-sells/hooks}/use-is-limit-order-approved.d.ts +0 -0
  129. /package/limit-orders/{hooks → limit-sells/hooks}/use-limit-order-approve-transaction.d.ts +0 -0
  130. /package/limit-orders/{hooks → limit-sells/hooks}/use-limit-order-covered-vault-amount.d.ts +0 -0
  131. /package/limit-orders/{hooks → limit-sells/hooks}/use-listen-limit-order-execution.d.ts +0 -0
package/const.js CHANGED
@@ -1,15 +1,15 @@
1
- import { A, a as T, b as I, B as a, C as S, c as L, d as R, e as O, f as s, D as N, g as D, h as M, i as P, j as U, k as C, l as F, m as G, n as W, o as Y, p as H, q as V, r as B, s as K, t as r, u as o, v as e, w as t, x as X, y as m, E as p, z as i, F as n, G as c, H as d, I as b, J as f, K as x, L as g, M as h, N as y, O as j, P as l, Q as u, R as v, S as Q, T as Z, U as k, V as q, W as w, X as z, Y as J, Z as $, _ as __, $ as E_, a0 as A_, a1 as T_, a2 as I_, a3 as a_, a4 as S_, a5 as L_, a6 as R_, a7 as O_, a8 as s_, a9 as N_, aa as D_, ab as M_, ac as P_, ad as U_, ae as C_, af as F_, ag as G_, ah as W_, ai as Y_, aj as H_ } from "./storage-C0zg_Mfy.js";
2
- import { C as B_ } from "./derive-BmKPodpX.js";
1
+ import { A, a as T, b as I, B as S, C as a, c as L, d as R, e as O, f as s, D as N, g as D, h as M, i as P, j as U, k as C, l as F, m as G, n as W, o as Y, p as H, q as V, r as B, s as K, t as r, u as o, v as e, w as t, x as X, y as m, E as p, z as i, F as n, G as c, H as d, I as b, J as f, K as x, L as g, M as h, N as y, O as l, P as u, Q as v, R as Q, S as Z, T as j, U as k, V as q, W as w, X as z, Y as J, Z as $, _ as __, $ as E_, a0 as A_, a1 as T_, a2 as I_, a3 as S_, a4 as a_, a5 as L_, a6 as R_, a7 as O_, a8 as s_, a9 as N_, aa as D_, ab as M_, ac as P_, ad as U_, ae as C_, af as F_, ag as G_, ah as W_, ai as Y_ } from "./gmx-BroDb_q_.js";
2
+ import { C as V_, L as B_ } from "./storage-CSc9iE5L.js";
3
3
  import { arbitrum as r_, base as o_, hyperEvm as e_, mainnet as t_, optimism as X_, polygon as m_ } from "wagmi/chains";
4
4
  export {
5
5
  A as ALCHEMY_RPC_URL_MAP,
6
6
  T as AUTO_TRANSACTION_PUSH_DELAY,
7
7
  I as AddressZero,
8
- a as BRIDGED_TOKENS_SYMBOLS,
9
- S as CHAIN_MAP,
8
+ S as BRIDGED_TOKENS_SYMBOLS,
9
+ a as CHAIN_MAP,
10
10
  L as CHAIN_NATIVE_TOKENS,
11
11
  R as COMPLETE_WITHDRAW_ACTIONS,
12
- B_ as COVERED_CALL_VAULT_ADDRESSES,
12
+ V_ as COVERED_CALL_VAULT_ADDRESSES,
13
13
  O as CURRENCY_DECIMALS_MAP,
14
14
  s as CURRENCY_SYMBOL_MAP,
15
15
  N as DEFAULT_DEBOUNCE_TIME,
@@ -43,42 +43,42 @@ export {
43
43
  g as FALLBACK_ASSETS_MAP,
44
44
  h as FLAT_MONEY_COLLATERAL_MAP,
45
45
  y as FLAT_MONEY_LEVERAGED_ASSET_ADDRESSES,
46
- j as FLAT_MONEY_UNIT_ADDRESSES,
47
- l as FLAT_MONEY_UNIT_LINK,
48
- u as FLAT_MONEY_V1_UNIT_ADDRESS,
49
- v as FLAT_MONEY_V1_UNIT_LINK,
50
- Q as GAS_ESTIMATION_ERROR,
51
- Z as GAS_LIMIT_BUFFER_COEFF,
46
+ l as FLAT_MONEY_UNIT_ADDRESSES,
47
+ u as FLAT_MONEY_UNIT_LINK,
48
+ v as FLAT_MONEY_V1_UNIT_ADDRESS,
49
+ Q as FLAT_MONEY_V1_UNIT_LINK,
50
+ Z as GAS_ESTIMATION_ERROR,
51
+ j as GAS_LIMIT_BUFFER_COEFF,
52
52
  k as GMX_MARKET_ASSETS,
53
53
  q as GMX_MARKET_ASSETS_MAP,
54
54
  w as GMX_WITHDRAW_ASSET_MAP,
55
55
  z as GMX_WITHDRAW_ASSET_MAP_BY_VAULT_ADDRESS,
56
56
  J as INVALID_PRICES_LIMIT_ORDER_TITLE,
57
57
  $ as LIMIT_ORDER_TRANSACTION_ERRORS,
58
- __ as LOCAL_STORAGE_KEYS,
59
- E_ as LOG_EVENT_BY_TRANSACTION_ACTION_MAP,
60
- A_ as MANAGER_FEE_DENOMINATOR,
61
- T_ as MAX_GAS_LIMIT_MAP,
62
- I_ as MULTI_ASSET_TOKEN,
63
- a_ as MaxUint256,
58
+ B_ as LOCAL_STORAGE_KEYS,
59
+ __ as LOG_EVENT_BY_TRANSACTION_ACTION_MAP,
60
+ E_ as MANAGER_FEE_DENOMINATOR,
61
+ A_ as MAX_GAS_LIMIT_MAP,
62
+ T_ as MULTI_ASSET_TOKEN,
63
+ I_ as MaxUint256,
64
64
  S_ as NATIVE_TOKEN_DEPOSIT_GAS_LIMIT,
65
- L_ as PYTH_API_LINK,
66
- R_ as SHORTEN_POLLING_INTERVAL,
67
- O_ as SIMULATION_TIMEOUT_ERROR,
68
- s_ as STABLE_TOKEN_SYMBOLS,
69
- N_ as SWAP_FAILED_ERROR,
70
- D_ as SWAP_QUOTE_REFRESH_INTERVAL_MS,
71
- M_ as TRADING_LOG_EVENT_PARAM,
72
- P_ as TRADING_PANEL_LOG_EVENT,
73
- U_ as TRANSACTION_ERRORS,
74
- C_ as TRANSACTION_ERROR_KEYS,
75
- F_ as WBTC_BY_CHAIN_ID,
76
- G_ as WETH_BY_CHAIN_ID,
77
- W_ as WITHDRAW_SWAP_DATA_ERROR,
65
+ a_ as PYTH_API_LINK,
66
+ L_ as SHORTEN_POLLING_INTERVAL,
67
+ R_ as SIMULATION_TIMEOUT_ERROR,
68
+ O_ as STABLE_TOKEN_SYMBOLS,
69
+ s_ as SWAP_FAILED_ERROR,
70
+ N_ as SWAP_QUOTE_REFRESH_INTERVAL_MS,
71
+ D_ as TRADING_LOG_EVENT_PARAM,
72
+ M_ as TRADING_PANEL_LOG_EVENT,
73
+ P_ as TRANSACTION_ERRORS,
74
+ U_ as TRANSACTION_ERROR_KEYS,
75
+ C_ as WBTC_BY_CHAIN_ID,
76
+ F_ as WETH_BY_CHAIN_ID,
77
+ G_ as WITHDRAW_SWAP_DATA_ERROR,
78
78
  r_ as arbitrum,
79
79
  o_ as base,
80
- Y_ as contractsAbisMap,
81
- H_ as contractsAddressesMap,
80
+ W_ as contractsAbisMap,
81
+ Y_ as contractsAddressesMap,
82
82
  e_ as hyperEvm,
83
83
  t_ as mainnet,
84
84
  X_ as optimism,
@@ -11,9 +11,10 @@ export declare const TRADING_PANEL_LOG_EVENT: {
11
11
  WITHDRAWAL: string;
12
12
  TRADING_SETTINGS_OPENED: string;
13
13
  INFINITE_ALLOWANCE_CHANGE: string;
14
- BATCH_TRANSACTIONS_CHANGE: string;
15
14
  CREATE_LIMIT_SELL_ORDER: string;
15
+ CREATE_LIMIT_BUY_ORDER: string;
16
16
  OPEN_LIMIT_SELL_VIEW: string;
17
+ OPEN_LIMIT_BUY_VIEW: string;
17
18
  LIMIT_ORDER_WITHDRAW: string;
18
19
  LIMIT_ORDER_WITHDRAW_DELETE: string;
19
20
  };
@@ -41,10 +42,6 @@ export declare const TRADING_LOG_EVENT_PARAM: {
41
42
  NAME: string;
42
43
  TYPE: string;
43
44
  };
44
- IS_BATCH_TRANSACTIONS_ENABLED: {
45
- NAME: string;
46
- TYPE: string;
47
- };
48
45
  SOURCE: {
49
46
  NAME: string;
50
47
  TYPE: string;
@@ -1,5 +1,4 @@
1
1
  export declare const LOCAL_STORAGE_KEYS: {
2
- readonly IS_BATCH_TRANSACTIONS_ENABLED: "isBatchTransactionsEnabled";
3
2
  readonly REFERRER: "referrer";
4
3
  readonly REF_POOL: "ref_pool";
5
4
  };
@@ -12,7 +12,6 @@ export declare const useUpdateTradingSettings: () => (payload: Partial<{
12
12
  availableAggregators: string[];
13
13
  selectedAggregators: string[];
14
14
  aggregatorLimitPerChain?: Partial<Record<number, string[]>> | undefined;
15
- isBatchTransactionsEnabled: boolean;
16
15
  isForceSendEnabled?: boolean | undefined;
17
16
  forceSendGas?: number | undefined;
18
17
  }>) => void;
@@ -1,6 +1,6 @@
1
1
  export declare const useDepositCommon: () => {
2
2
  chainId: number;
3
3
  depositMethod: import("../../../../types").DepositMethodName;
4
- buildDepositTransactionArgs: (estimate?: import("../../../../types").EstimateCall | undefined) => Promise<import("../../../../utils/deposit").DepositArguments>;
4
+ buildDepositTransactionArgs: (estimate: import("../../../../types").EstimateCall) => Promise<import("../../../../utils/deposit").DepositArguments>;
5
5
  addPendingTransaction: () => void;
6
6
  };
@@ -1,3 +1,3 @@
1
1
  import type { EstimateCall, VaultDepositParams } from '../../../types';
2
2
  import type { DepositArguments } from '../../../utils/deposit';
3
- export declare const useGetVaultDepositTransactionArguments: ({ depositMethod, vaultDepositTokenAddress, }: VaultDepositParams) => (estimate?: EstimateCall) => Promise<DepositArguments>;
3
+ export declare const useGetVaultDepositTransactionArguments: ({ depositMethod, vaultDepositTokenAddress, }: VaultDepositParams) => (estimate: EstimateCall) => Promise<DepositArguments>;
@@ -1,2 +1,6 @@
1
1
  import type { TradingToken } from '@shared/types';
2
- export declare const useVaultDepositTokens: () => TradingToken[];
2
+ interface UseVaultDepositTokensOptions {
3
+ excludeNativeToken?: boolean;
4
+ }
5
+ export declare const useVaultDepositTokens: ({ excludeNativeToken, }?: UseVaultDepositTokensOptions) => TradingToken[];
6
+ export {};
@@ -12,4 +12,3 @@ export { useSwapQuotesQuery } from '../../hooks/trading/swaps/use-swap-quotes-qu
12
12
  export { useSwapsQuotesQuery, fetchSwapsQuotesForAave, } from '../../hooks/trading/swaps/use-swaps-quotes-query';
13
13
  export { useSendTokenDebouncedValue } from '../../hooks/trading/use-send-token-debounced-value';
14
14
  export { useEasySwapperTrackedAssets } from '../../hooks/trading/use-easy-swapper-tracked-assets';
15
- export { useIsBatchContractWritesTrading } from '../../hooks/trading/use-is-batch-contract-writes-trading';
@@ -11,4 +11,3 @@ export { useContractReadErrorLogging } from '../../hooks/web3/use-contract-read-
11
11
  export { useStaticCallQuery } from '../../hooks/web3/use-static-call-query';
12
12
  export { useInvalidateOnBlock } from '../../hooks/web3/use-invalidate-on-block';
13
13
  export { useInvalidateTradingQueries } from '../../hooks/web3/use-invalidate-trading-queries';
14
- export { useIsBatchContractWritesSupported } from '../../hooks/web3/use-is-batch-contract-writes-supported';
@@ -34,7 +34,6 @@ export interface TradingPanelState {
34
34
  availableAggregators: string[];
35
35
  selectedAggregators: string[];
36
36
  aggregatorLimitPerChain?: Partial<Record<ChainId, string[]>>;
37
- isBatchTransactionsEnabled: boolean;
38
37
  isForceSendEnabled?: boolean;
39
38
  forceSendGas?: number;
40
39
  };
@@ -1,5 +1,5 @@
1
1
  import type { TradingToken } from '@shared/types';
2
- import type { Address, ChainId, Hex } from '../types/web3.types';
2
+ import type { Address, ChainId } from '../types/web3.types';
3
3
  export interface DynamicTradingToken extends TradingToken {
4
4
  isLoading?: boolean;
5
5
  }
@@ -9,7 +9,6 @@ export interface PendingTransaction {
9
9
  symbol: string;
10
10
  chainId: ChainId;
11
11
  txHash?: Address;
12
- batchId?: Hex;
13
12
  }
14
13
  type AddTransaction = {
15
14
  type: 'add';
@@ -23,7 +22,7 @@ type RemoveTransaction = {
23
22
  } & Partial<PendingTransaction>;
24
23
  export type UpdateTransactionsArguments = AddTransaction | UpdateTransaction | RemoveTransaction;
25
24
  export type TradingPanelType = 'deposit' | 'withdraw';
26
- export type TransactionAction = 'deposit' | 'multi_withdraw' | 'single_withdraw' | 'approve' | 'swap' | 'claim' | 'single_withdraw_and_claim' | 'create_limit_sell_order' | 'limit_order_withdraw' | 'delete_limit_order_withdraw';
25
+ export type TransactionAction = 'deposit' | 'multi_withdraw' | 'single_withdraw' | 'approve' | 'swap' | 'claim' | 'single_withdraw_and_claim' | 'create_limit_sell_order' | 'create_limit_buy_order' | 'limit_order_withdraw' | 'delete_limit_order_withdraw';
27
26
  export type SwapEntity = 'token' | 'pool';
28
27
  export interface TokenSelectorPayload {
29
28
  isOpen: boolean;
@@ -15,7 +15,7 @@ export interface BuildZapDepositArgsParams {
15
15
  sendTokenAmount: string;
16
16
  };
17
17
  swapQuotes: SwapDataResponse[] | undefined;
18
- estimate?: EstimateCall;
18
+ estimate: EstimateCall;
19
19
  depositSlippage: number;
20
20
  sendTokenAddress: Address;
21
21
  depositMethod: VaultDepositParams['depositMethod'];
@@ -10,5 +10,4 @@ export * from '../utils/ua';
10
10
  export * from '../utils/flat-money';
11
11
  export * from '../utils/logger';
12
12
  export * from '../utils/gmx';
13
- export * from '../utils/batch-transactions';
14
13
  export * from '../utils/complex-withdraw-asset-data';