@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.
- package/README.md +17 -20
- package/complex-withdraw-asset-data-DKDPznHy.cjs +1 -0
- package/{complex-withdraw-asset-data-D8GMw8ql.js → complex-withdraw-asset-data-DzhKTztw.js} +119 -144
- package/const.cjs +1 -1
- package/const.js +32 -32
- package/core-kit/const/logger.d.ts +2 -5
- package/core-kit/const/storage.d.ts +0 -1
- package/core-kit/hooks/state/action.d.ts +0 -1
- package/core-kit/hooks/trading/deposit-v2/deposit-transaction/use-deposit-common.d.ts +1 -1
- package/core-kit/hooks/trading/deposit-v2/use-get-vault-deposit-transaction-arguments.d.ts +1 -1
- package/core-kit/hooks/trading/deposit-v2/use-vault-deposit-tokens.d.ts +5 -1
- package/core-kit/hooks/trading/index.d.ts +0 -1
- package/core-kit/hooks/web3/index.d.ts +0 -1
- package/core-kit/types/state.types.d.ts +0 -1
- package/core-kit/types/trading-panel.types.d.ts +2 -3
- package/core-kit/utils/deposit.d.ts +1 -1
- package/core-kit/utils/index.d.ts +0 -1
- package/{storage-C0zg_Mfy.js → gmx-BroDb_q_.js} +156 -160
- package/gmx-CLiWBUH_.cjs +1 -0
- package/index.cjs +1 -1
- package/index.d.ts +4 -2
- package/index.js +6592 -5772
- package/limit-orders/common/network-check-button.d.ts +7 -0
- package/limit-orders/common/network-check-button.hooks.d.ts +4 -0
- package/limit-orders/common/utils.d.ts +2 -0
- package/limit-orders/index.d.ts +9 -5
- package/limit-orders/limit-buys/component/input-group/input-amount-field.d.ts +2 -0
- package/limit-orders/limit-buys/component/input-group/input-amount-field.hooks.d.ts +11 -0
- package/limit-orders/limit-buys/component/input-group/input-group.d.ts +2 -0
- package/limit-orders/limit-buys/component/input-group/input-group.hooks.d.ts +15 -0
- package/limit-orders/limit-buys/component/input-group/slippage-deadline-fields.d.ts +2 -0
- package/limit-orders/limit-buys/component/input-group/slippage-deadline-fields.hooks.d.ts +5 -0
- package/limit-orders/limit-buys/component/input-group/token-select-overlay.d.ts +10 -0
- package/limit-orders/limit-buys/component/limit-buy-button/sign-limit-buy-button.d.ts +6 -0
- package/limit-orders/limit-buys/component/limit-buy-button/sign-limit-buy-button.hooks.d.ts +6 -0
- package/limit-orders/limit-buys/component/limit-buy-content.d.ts +6 -0
- package/limit-orders/limit-buys/component/limit-buy-order-modal.d.ts +14 -0
- package/limit-orders/limit-buys/component/limit-buy-overlay.d.ts +11 -0
- package/limit-orders/limit-buys/component/terms-confirmation.d.ts +8 -0
- package/limit-orders/limit-buys/constants.d.ts +55 -0
- package/limit-orders/limit-buys/hooks/state.d.ts +2 -0
- package/limit-orders/limit-buys/hooks/use-approve-and-sign-limit-buy.d.ts +7 -0
- package/limit-orders/limit-buys/hooks/use-is-permit2-approved.d.ts +1 -0
- package/limit-orders/limit-buys/hooks/use-permit2-approve-transaction.d.ts +5 -0
- package/limit-orders/limit-buys/hooks/use-sign-limit-buy-order.d.ts +3 -0
- package/limit-orders/limit-buys/providers/state-provider/reducer.d.ts +3 -0
- package/limit-orders/limit-buys/providers/state-provider/state-provider.d.ts +6 -0
- package/limit-orders/limit-buys/providers/state-provider/state-provider.types.d.ts +69 -0
- package/limit-orders/limit-buys/providers/translation-provider/index.d.ts +3 -0
- package/limit-orders/limit-buys/providers/translation-provider/translation-provider.d.ts +4 -0
- package/limit-orders/limit-buys/providers/translation-provider/translation-provider.defaults.d.ts +2 -0
- package/limit-orders/limit-buys/providers/translation-provider/translation-provider.hooks.d.ts +1 -0
- package/limit-orders/limit-buys/providers/translation-provider/translation-provider.types.d.ts +29 -0
- package/limit-orders/limit-buys/types.d.ts +27 -0
- package/limit-orders/limit-buys/utils.d.ts +4 -0
- package/limit-orders/{component → limit-sells/component}/input-group/input-group.hooks.d.ts +0 -2
- package/limit-orders/{component → limit-sells/component}/limit-order-button/approve-and-create-limit-order-button.d.ts +1 -0
- package/limit-orders/{component → limit-sells/component}/limit-order-content.d.ts +1 -1
- package/limit-orders/{component → limit-sells/component}/limit-order-overlay.d.ts +3 -3
- package/limit-orders/{component/limit-order-modal.d.ts → limit-sells/component/limit-sell-order-modal.d.ts} +5 -5
- package/limit-orders/limit-sells/component/terms-confirmation.d.ts +8 -0
- package/limit-orders/{constants.d.ts → limit-sells/constants.d.ts} +2 -2
- package/limit-orders/limit-sells/hooks/use-invalidate-limit-sell-order-query.d.ts +1 -0
- package/limit-orders/{hooks → limit-sells/hooks}/use-on-limit-order-settled.d.ts +1 -1
- package/limit-orders/{hooks/use-user-limit-order.d.ts → limit-sells/hooks/use-user-limit-sell-order.d.ts} +3 -3
- package/limit-orders/{providers → limit-sells/providers}/state-provider/reducer.d.ts +1 -1
- package/limit-orders/{providers → limit-sells/providers}/state-provider/state-provider.d.ts +1 -1
- package/limit-orders/{providers → limit-sells/providers}/state-provider/state-provider.types.d.ts +1 -1
- package/limit-orders/{utils.d.ts → limit-sells/utils.d.ts} +3 -3
- package/limit-orders/providers/translation-provider/translation-provider.types.d.ts +1 -0
- package/package.json +1 -1
- package/{derive-BmKPodpX.js → storage-CSc9iE5L.js} +6 -2
- package/storage-DHoO5PX_.cjs +1 -0
- package/style.css +1 -1
- package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +0 -2
- package/trading-widget/components/widget/widget-buttons/index.d.ts +1 -0
- package/trading-widget/components/widget/widget-buttons/limit-buy-button/limit-buy-button.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/hyper-evm-warning-overlay/hyper-evm-warning-overlay.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/index.d.ts +2 -0
- package/trading-widget/components/widget/widget-overlay/limit-buys-overlay/limit-buys-overlay.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/limit-buys-overlay/limit-buys-overlay.hooks.d.ts +17 -0
- package/trading-widget/components/widget/widget-settings/index.d.ts +0 -1
- package/trading-widget/components/widget/widget-settings/slippage-selector/slippage-selector.hooks.d.ts +0 -1
- package/trading-widget/hooks/index.d.ts +3 -1
- package/trading-widget/hooks/use-display-limit-buy-overlay.d.ts +1 -0
- package/trading-widget/hooks/use-open-limit-buys-overlay.d.ts +4 -0
- package/trading-widget/hooks/use-show-hyper-evm-deposit-warning.d.ts +1 -0
- package/trading-widget/providers/config-provider/config-provider.types.d.ts +3 -0
- package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +7 -5
- package/trading-widget/types/overlay.types.d.ts +2 -0
- package/utils.cjs +1 -1
- package/utils.js +32 -34
- package/complex-withdraw-asset-data-DSjzOaBD.cjs +0 -1
- package/core-kit/hooks/trading/deposit-v2/deposit-transaction/use-batch-approve-transaction.d.ts +0 -141
- package/core-kit/hooks/trading/deposit-v2/deposit-transaction/use-batch-deposit.d.ts +0 -1
- package/core-kit/hooks/trading/trade-handlers/use-batch-trading-settle-handler.d.ts +0 -5
- package/core-kit/hooks/trading/use-is-batch-contract-writes-trading.d.ts +0 -1
- package/core-kit/hooks/web3/use-custom-send-calls.d.ts +0 -14
- package/core-kit/hooks/web3/use-is-batch-contract-writes-supported.d.ts +0 -1
- package/core-kit/utils/batch-transactions.d.ts +0 -2
- package/derive-CsdqSZEg.cjs +0 -1
- package/limit-orders/component/input-group/terms-content.d.ts +0 -6
- package/limit-orders/component/limit-order-button/network-check-button.d.ts +0 -2
- package/limit-orders/component/limit-order-button/network-check-button.hooks.d.ts +0 -4
- package/limit-orders/hooks/use-invalidate-limit-order-query.d.ts +0 -1
- package/storage-B9jNfIvl.cjs +0 -1
- package/trading-widget/components/deposit/button/batch-trade-button.d.ts +0 -2
- package/trading-widget/components/widget/widget-settings/batch-transactions-switch/batch-transactions-switch.d.ts +0 -2
- package/trading-widget/components/widget/widget-settings/batch-transactions-switch/batch-transactions-switch.hooks.d.ts +0 -1
- package/trading-widget/hooks/use-trading-type-name.d.ts +0 -2
- /package/limit-orders/{component/common → common}/action-button.d.ts +0 -0
- /package/limit-orders/{component/common → common}/asset-price-panel.d.ts +0 -0
- /package/limit-orders/{component/common → common}/modal-content.d.ts +0 -0
- /package/limit-orders/{component/common → common}/modal-dialog.d.ts +0 -0
- /package/limit-orders/{component/common → common}/percentage-input.d.ts +0 -0
- /package/limit-orders/{component/common → common}/price-input.d.ts +0 -0
- /package/limit-orders/{component/common → common}/switch-panel.d.ts +0 -0
- /package/limit-orders/{component → limit-sells/component}/input-group/input-group.d.ts +0 -0
- /package/limit-orders/{component → limit-sells/component}/limit-order-button/approve-and-create-limit-order-button.hooks.d.ts +0 -0
- /package/limit-orders/{component → limit-sells/component}/limit-order-button/limit-order-delete-button.d.ts +0 -0
- /package/limit-orders/{component → limit-sells/component}/limit-order-button/limit-order-delete-button.hooks.d.ts +0 -0
- /package/limit-orders/{component → limit-sells/component}/limit-order-content.hooks.d.ts +0 -0
- /package/limit-orders/{component → limit-sells/component}/limit-order-modal.hooks.d.ts +0 -0
- /package/limit-orders/{hooks → limit-sells/hooks}/state.d.ts +0 -0
- /package/limit-orders/{hooks → limit-sells/hooks}/use-approve-and-create-limit-order.d.ts +0 -0
- /package/limit-orders/{hooks → limit-sells/hooks}/use-create-limit-order-transaction.d.ts +0 -0
- /package/limit-orders/{hooks → limit-sells/hooks}/use-existing-limit-order-default-prices.d.ts +0 -0
- /package/limit-orders/{hooks → limit-sells/hooks}/use-is-limit-order-approved.d.ts +0 -0
- /package/limit-orders/{hooks → limit-sells/hooks}/use-limit-order-approve-transaction.d.ts +0 -0
- /package/limit-orders/{hooks → limit-sells/hooks}/use-limit-order-covered-vault-amount.d.ts +0 -0
- /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
|
|
2
|
-
import { C as B_ } from "./
|
|
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
|
-
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
81
|
-
|
|
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;
|
|
@@ -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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
18
|
+
estimate: EstimateCall;
|
|
19
19
|
depositSlippage: number;
|
|
20
20
|
sendTokenAddress: Address;
|
|
21
21
|
depositMethod: VaultDepositParams['depositMethod'];
|