@dhedge/trading-widget 5.8.1 → 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 +64 -31
- package/complex-withdraw-asset-data-DKDPznHy.cjs +1 -0
- package/{complex-withdraw-asset-data-Cf9Ea0VI.js → complex-withdraw-asset-data-DzhKTztw.js} +119 -144
- package/const.cjs +1 -1
- package/const.js +32 -32
- package/core-kit/const/gmx.d.ts +1 -1
- 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 +1 -1
- package/core-kit/hooks/state/aggregators.d.ts +11 -0
- package/core-kit/hooks/state/index.d.ts +1 -0
- 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 +1 -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-DhvdxqW3.js → gmx-BroDb_q_.js} +157 -161
- package/gmx-CLiWBUH_.cjs +1 -0
- package/index.cjs +1 -1
- package/index.d.ts +5 -3
- package/index.js +6335 -5493
- 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 +1 -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-Cmnlgieq.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-Bbr6G6F3.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
|
@@ -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';
|
|
@@ -33,7 +33,7 @@ export interface TradingPanelState {
|
|
|
33
33
|
isMaxSlippageLoading: boolean;
|
|
34
34
|
availableAggregators: string[];
|
|
35
35
|
selectedAggregators: string[];
|
|
36
|
-
|
|
36
|
+
aggregatorLimitPerChain?: Partial<Record<ChainId, string[]>>;
|
|
37
37
|
isForceSendEnabled?: boolean;
|
|
38
38
|
forceSendGas?: number;
|
|
39
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'];
|
|
@@ -3,14 +3,14 @@ import { formatDuration as j } from "date-fns";
|
|
|
3
3
|
import { erc20Abi as Q } from "viem";
|
|
4
4
|
const J = "0x0000000000000000000000000000000000000000", Be = BigInt(
|
|
5
5
|
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
6
|
-
), l = 18, Ue = "1000000000000000000", We = 59e3, Fe = 3e4, ke = 15e3,
|
|
6
|
+
), l = 18, Ue = "1000000000000000000", We = 59e3, Fe = 3e4, ke = 15e3, Ve = 5e3, ee = 400, He = ee * 1.2, Ye = j({ hours: 24 }), Ge = {
|
|
7
7
|
address: J,
|
|
8
8
|
symbol: "",
|
|
9
9
|
chainId: t.id,
|
|
10
10
|
depositParams: { customTokens: [] },
|
|
11
11
|
withdrawParams: { customTokens: [] },
|
|
12
12
|
deprecated: !1
|
|
13
|
-
}, Ke = "deposit", ze = 0.5, te = 0, Xe = 0.5, qe = 0.02, Ze = 0.5, $e = [te], je = "withdrawSafe", Qe = "initWithdrawal", Je = "unrollAndClaim", et = "completeWithdrawal", tt = 3e7, at = 1.25, nt = 1e4, st = 13e3, it = 3,
|
|
13
|
+
}, Ke = "deposit", ze = 0.5, te = 0, Xe = 0.5, qe = 0.02, Ze = 0.5, $e = [te], je = "withdrawSafe", Qe = "initWithdrawal", Je = "unrollAndClaim", et = "completeWithdrawal", tt = 3e7, at = 1.25, nt = 1e4, st = 13e3, it = 3, pt = 2e4, rt = 15e3, dt = {
|
|
14
14
|
[a.id]: a,
|
|
15
15
|
[i.id]: i,
|
|
16
16
|
[t.id]: t,
|
|
@@ -76,7 +76,7 @@ const J = "0x0000000000000000000000000000000000000000", Be = BigInt(
|
|
|
76
76
|
USD: 2,
|
|
77
77
|
ETH: 4,
|
|
78
78
|
BTC: 6
|
|
79
|
-
}, ct = ["USDC", "USDT"],
|
|
79
|
+
}, ct = ["USDC", "USDT"], r = {
|
|
80
80
|
INVEST_INPUT_FOCUS: "invest_input_focus",
|
|
81
81
|
APPROVED_TOKEN: "approved_token",
|
|
82
82
|
DEPOSIT: "deposit",
|
|
@@ -88,39 +88,40 @@ const J = "0x0000000000000000000000000000000000000000", Be = BigInt(
|
|
|
88
88
|
WITHDRAWAL: "withdrawal",
|
|
89
89
|
TRADING_SETTINGS_OPENED: "trading_settings_opened",
|
|
90
90
|
INFINITE_ALLOWANCE_CHANGE: "infinite_allowance_change",
|
|
91
|
-
BATCH_TRANSACTIONS_CHANGE: "batch_transactions_change",
|
|
92
91
|
CREATE_LIMIT_SELL_ORDER: "limit_order_create",
|
|
92
|
+
CREATE_LIMIT_BUY_ORDER: "limit_buy_order_create",
|
|
93
93
|
OPEN_LIMIT_SELL_VIEW: "open_limit_sell_view",
|
|
94
|
+
OPEN_LIMIT_BUY_VIEW: "open_limit_buy_view",
|
|
94
95
|
LIMIT_ORDER_WITHDRAW: "limit_order_withdraw",
|
|
95
96
|
LIMIT_ORDER_WITHDRAW_DELETE: "limit_order_withdraw_delete"
|
|
96
97
|
}, Tt = {
|
|
97
|
-
approve: [
|
|
98
|
-
deposit: [
|
|
98
|
+
approve: [r.APPROVED_TOKEN],
|
|
99
|
+
deposit: [r.DEPOSIT],
|
|
99
100
|
multi_withdraw: [
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
r.WITHDRAWAL,
|
|
102
|
+
r.MULTI_ASSET_WITHDRAW
|
|
102
103
|
],
|
|
103
104
|
single_withdraw: [
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
r.WITHDRAWAL,
|
|
106
|
+
r.SINGLE_ASSET_WITHDRAW
|
|
106
107
|
],
|
|
107
108
|
single_withdraw_and_claim: [
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
r.WITHDRAWAL,
|
|
110
|
+
r.SINGLE_ASSET_WITHDRAW_AND_CLAIM
|
|
110
111
|
],
|
|
111
|
-
claim: [
|
|
112
|
-
swap: [
|
|
113
|
-
create_limit_sell_order: [
|
|
114
|
-
|
|
112
|
+
claim: [r.CLAIM],
|
|
113
|
+
swap: [r.SWAP],
|
|
114
|
+
create_limit_sell_order: [r.CREATE_LIMIT_SELL_ORDER],
|
|
115
|
+
create_limit_buy_order: [r.CREATE_LIMIT_BUY_ORDER],
|
|
116
|
+
limit_order_withdraw: [r.LIMIT_ORDER_WITHDRAW],
|
|
115
117
|
delete_limit_order_withdraw: [
|
|
116
|
-
|
|
118
|
+
r.LIMIT_ORDER_WITHDRAW_DELETE
|
|
117
119
|
]
|
|
118
120
|
}, bt = {
|
|
119
121
|
IS_INFINITE: { NAME: "is_infinite", TYPE: "number" },
|
|
120
122
|
SYMBOL: { NAME: "symbol", TYPE: "string" },
|
|
121
123
|
CHAIN_ID: { NAME: "chain_id", TYPE: "number" },
|
|
122
124
|
ADDRESS: { NAME: "address", TYPE: "string" },
|
|
123
|
-
IS_BATCH_TRANSACTIONS_ENABLED: { NAME: "is_batch_enabled", TYPE: "number" },
|
|
124
125
|
SOURCE: { NAME: "source", TYPE: "string" }
|
|
125
126
|
};
|
|
126
127
|
var o = /* @__PURE__ */ ((u) => (u.ETH = "ETH", u.MAINNET = "MAINNET", u.POLYGON = "POLYGON", u.OE = "OPTIMISM", u.ARBI = "ARBITRUM", u.BASE = "BASE", u))(o || {});
|
|
@@ -167,10 +168,10 @@ const ft = {
|
|
|
167
168
|
};
|
|
168
169
|
o.ETH + "", a.id, o.MAINNET + "", a.id, o.POLYGON + "", i.id, o.OE + "", t.id, o.ARBI + "", s.id, o.BASE + "", n.id;
|
|
169
170
|
a.id + "", t.id + "", i.id + "", s.id + "", n.id + "", y.id + "";
|
|
170
|
-
const
|
|
171
|
+
const I = "0x0000000000000000000000000000000000000000";
|
|
171
172
|
BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
|
172
173
|
a.id + "", BigInt(100), t.id + "", BigInt(600), i.id + "", BigInt(600), n.id + "", BigInt(600), s.id + "", BigInt(5300);
|
|
173
|
-
const
|
|
174
|
+
const S = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d", R = "0xbDd84294bC8299861A2121F749A25EFEb7168a32", w = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", M = "0xffFb5fB14606EB3a548C113026355020dDF27535", h = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", O = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", g = "0x26a687e8244f1866E9Aa2D400c8b9957Aa8e6Ad4", v = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", C = "0xf067575Eb60c7587C11e867907AA7284833704d1", ae = "0x59525b9b23adc475ef91d98dae06b568ba574ce5", _t = "0xa907504d7a4c415b4e6e1d0866d96afe8202f0e5", At = "0x1849324228d852a67eb7443e42d967e480ffe95d", L = "0xa238dd80c259a72e81d7e4664a9801593f98d1c5", P = "0xFcBEc28c43E356693971a24bf3F2Fd7D965E2ebA", ne = "0x07e144e336fcc3fe928a8a2a5714da64354c1aab", x = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", N = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", B = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", U = "0x3bFE2a472d2964Ea4070725b7Fb0A868b3f08b63", W = "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", se = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", F = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", k = "0x45b90480D6F643dE2f128db091A357C3c90399f2", V = "0xB71410736d2C8F2DAf30dA9D332dA10534d2624d", ie = "0x615037C2Df6FA97634c5aD2d8144708b9dd3B176", pe = "0x47065E508433E22d73Be3c5B61EB9abafD450364", Dt = "0x4F754e0F0924afD74980886b0B479Fa1D7C58D0D";
|
|
174
175
|
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "";
|
|
175
176
|
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "";
|
|
176
177
|
a.id + "", s.id + "", n.id + "", t.id + "", i.id + "";
|
|
@@ -965,7 +966,7 @@ const E = [
|
|
|
965
966
|
stateMutability: "nonpayable",
|
|
966
967
|
type: "function"
|
|
967
968
|
}
|
|
968
|
-
],
|
|
969
|
+
], re = [
|
|
969
970
|
{
|
|
970
971
|
inputs: [
|
|
971
972
|
{
|
|
@@ -1431,7 +1432,7 @@ const E = [
|
|
|
1431
1432
|
}
|
|
1432
1433
|
]
|
|
1433
1434
|
}
|
|
1434
|
-
],
|
|
1435
|
+
], It = [
|
|
1435
1436
|
{
|
|
1436
1437
|
type: "tuple",
|
|
1437
1438
|
components: [
|
|
@@ -4088,9 +4089,9 @@ const E = [
|
|
|
4088
4089
|
stateMutability: "nonpayable",
|
|
4089
4090
|
type: "function"
|
|
4090
4091
|
}
|
|
4091
|
-
],
|
|
4092
|
+
], St = {
|
|
4092
4093
|
[a.id]: {
|
|
4093
|
-
factory:
|
|
4094
|
+
factory: S,
|
|
4094
4095
|
easySwapperV2: R,
|
|
4095
4096
|
aaveLendingPoolV3: w
|
|
4096
4097
|
},
|
|
@@ -4099,7 +4100,7 @@ const E = [
|
|
|
4099
4100
|
aaveLendingPoolV2: se,
|
|
4100
4101
|
aaveLendingPoolV3: F,
|
|
4101
4102
|
easySwapperV2: k,
|
|
4102
|
-
limitOrder:
|
|
4103
|
+
limitOrder: V
|
|
4103
4104
|
},
|
|
4104
4105
|
[t.id]: {
|
|
4105
4106
|
factory: x,
|
|
@@ -4123,10 +4124,10 @@ const E = [
|
|
|
4123
4124
|
},
|
|
4124
4125
|
[y.id]: {
|
|
4125
4126
|
factory: ie,
|
|
4126
|
-
easySwapperV2:
|
|
4127
|
+
easySwapperV2: pe
|
|
4127
4128
|
}
|
|
4128
4129
|
}, Rt = {
|
|
4129
|
-
factory:
|
|
4130
|
+
factory: re,
|
|
4130
4131
|
aaveLendingPoolV2: E,
|
|
4131
4132
|
aaveLendingPoolV3: E,
|
|
4132
4133
|
rewardDistribution: ye,
|
|
@@ -4296,12 +4297,12 @@ const E = [
|
|
|
4296
4297
|
}, gt = [
|
|
4297
4298
|
...Object.keys(_e),
|
|
4298
4299
|
...Object.keys(De)
|
|
4299
|
-
], e = 18,
|
|
4300
|
+
], e = 18, H = {
|
|
4300
4301
|
address: "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
|
|
4301
4302
|
symbol: "USDCe",
|
|
4302
4303
|
decimals: 6,
|
|
4303
4304
|
value: ""
|
|
4304
|
-
},
|
|
4305
|
+
}, d = {
|
|
4305
4306
|
address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
4306
4307
|
symbol: "USDC",
|
|
4307
4308
|
decimals: 6,
|
|
@@ -4356,7 +4357,7 @@ const E = [
|
|
|
4356
4357
|
symbol: "USDbC",
|
|
4357
4358
|
decimals: 6,
|
|
4358
4359
|
value: ""
|
|
4359
|
-
},
|
|
4360
|
+
}, Y = {
|
|
4360
4361
|
address: "0x4200000000000000000000000000000000000006",
|
|
4361
4362
|
symbol: "WETH",
|
|
4362
4363
|
decimals: e,
|
|
@@ -4366,7 +4367,7 @@ const E = [
|
|
|
4366
4367
|
symbol: "cbETH",
|
|
4367
4368
|
decimals: e,
|
|
4368
4369
|
value: ""
|
|
4369
|
-
},
|
|
4370
|
+
}, Ie = {
|
|
4370
4371
|
address: "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
|
|
4371
4372
|
symbol: "cbBTC",
|
|
4372
4373
|
decimals: 8,
|
|
@@ -4386,12 +4387,12 @@ const E = [
|
|
|
4386
4387
|
symbol: "wstETH",
|
|
4387
4388
|
decimals: e,
|
|
4388
4389
|
value: ""
|
|
4389
|
-
},
|
|
4390
|
+
}, G = {
|
|
4390
4391
|
address: "0x7F5c764cBc14f9669B88837ca1490cCa17c31607",
|
|
4391
4392
|
symbol: "USDCe",
|
|
4392
4393
|
decimals: 6,
|
|
4393
4394
|
value: ""
|
|
4394
|
-
},
|
|
4395
|
+
}, Se = {
|
|
4395
4396
|
address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
|
|
4396
4397
|
symbol: "USDC",
|
|
4397
4398
|
decimals: 6,
|
|
@@ -4421,22 +4422,22 @@ const E = [
|
|
|
4421
4422
|
symbol: "WBTC",
|
|
4422
4423
|
decimals: 8,
|
|
4423
4424
|
value: ""
|
|
4424
|
-
},
|
|
4425
|
+
}, Vt = {
|
|
4425
4426
|
address: "0xe405de8f52ba7559f9df3c368500b6e6ae6cee49",
|
|
4426
4427
|
symbol: "sETH",
|
|
4427
4428
|
decimals: e,
|
|
4428
4429
|
value: ""
|
|
4429
|
-
},
|
|
4430
|
+
}, Ht = {
|
|
4430
4431
|
address: "0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6",
|
|
4431
4432
|
symbol: "LINK",
|
|
4432
4433
|
decimals: e,
|
|
4433
4434
|
value: ""
|
|
4434
|
-
},
|
|
4435
|
+
}, Yt = {
|
|
4435
4436
|
address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
|
|
4436
4437
|
symbol: "tBTC",
|
|
4437
4438
|
decimals: e,
|
|
4438
4439
|
value: ""
|
|
4439
|
-
},
|
|
4440
|
+
}, Gt = {
|
|
4440
4441
|
address: "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb",
|
|
4441
4442
|
symbol: "wstETH",
|
|
4442
4443
|
decimals: e,
|
|
@@ -4512,32 +4513,32 @@ const E = [
|
|
|
4512
4513
|
decimals: 6,
|
|
4513
4514
|
value: ""
|
|
4514
4515
|
}, qt = {
|
|
4515
|
-
address:
|
|
4516
|
+
address: I,
|
|
4516
4517
|
symbol: "all",
|
|
4517
4518
|
decimals: e,
|
|
4518
4519
|
value: ""
|
|
4519
4520
|
}, Zt = {
|
|
4520
|
-
[
|
|
4521
|
-
[
|
|
4521
|
+
[H.address.toLowerCase()]: "USDCe",
|
|
4522
|
+
[G.address.toLowerCase()]: "USDCe",
|
|
4522
4523
|
[X.address.toLowerCase()]: "USDCe"
|
|
4523
4524
|
}, $t = {
|
|
4524
4525
|
[a.id]: Z,
|
|
4525
4526
|
[t.id]: K,
|
|
4526
|
-
[n.id]:
|
|
4527
|
+
[n.id]: Y,
|
|
4527
4528
|
[i.id]: z,
|
|
4528
4529
|
[s.id]: A
|
|
4529
4530
|
}, jt = {
|
|
4530
4531
|
[t.id]: f,
|
|
4531
|
-
[n.id]:
|
|
4532
|
+
[n.id]: Ie,
|
|
4532
4533
|
[i.id]: q,
|
|
4533
4534
|
[s.id]: c,
|
|
4534
4535
|
[a.id]: $
|
|
4535
4536
|
}, Qt = {
|
|
4536
4537
|
[t.id]: {
|
|
4537
4538
|
WETH: K,
|
|
4538
|
-
USDC:
|
|
4539
|
+
USDC: Se,
|
|
4539
4540
|
WBTC: f,
|
|
4540
|
-
USDCe:
|
|
4541
|
+
USDCe: G,
|
|
4541
4542
|
USDT: Re,
|
|
4542
4543
|
DAI: we
|
|
4543
4544
|
},
|
|
@@ -4552,12 +4553,12 @@ const E = [
|
|
|
4552
4553
|
},
|
|
4553
4554
|
[s.id]: {
|
|
4554
4555
|
WETH: A,
|
|
4555
|
-
USDC:
|
|
4556
|
+
USDC: d,
|
|
4556
4557
|
WBTC: c,
|
|
4557
|
-
USDCe:
|
|
4558
|
+
USDCe: H
|
|
4558
4559
|
},
|
|
4559
4560
|
[n.id]: {
|
|
4560
|
-
WETH:
|
|
4561
|
+
WETH: Y,
|
|
4561
4562
|
USDC: Ee
|
|
4562
4563
|
},
|
|
4563
4564
|
[a.id]: {
|
|
@@ -4600,7 +4601,7 @@ const E = [
|
|
|
4600
4601
|
[s.id]: 300,
|
|
4601
4602
|
[i.id]: 300,
|
|
4602
4603
|
[y.id]: 300
|
|
4603
|
-
},
|
|
4604
|
+
}, pa = {
|
|
4604
4605
|
DEPOSIT: "deposit",
|
|
4605
4606
|
DEPOSIT_CUSTOM: "depositWithCustomCooldown",
|
|
4606
4607
|
NATIVE: "nativeDeposit",
|
|
@@ -4609,12 +4610,12 @@ const E = [
|
|
|
4609
4610
|
ZAP_NATIVE_DEPOSIT_CUSTOM: "zapNativeDepositWithCustomCooldown",
|
|
4610
4611
|
ZAP_DEPOSIT: "zapDeposit",
|
|
4611
4612
|
ZAP_DEPOSIT_CUSTOM: "zapDepositWithCustomCooldown"
|
|
4612
|
-
},
|
|
4613
|
+
}, ra = [
|
|
4613
4614
|
"multi_withdraw",
|
|
4614
4615
|
"swap",
|
|
4615
4616
|
"claim",
|
|
4616
4617
|
"single_withdraw_and_claim"
|
|
4617
|
-
],
|
|
4618
|
+
], p = {
|
|
4618
4619
|
SOL_ARBITRUM: "0x09400d9db990d5ed3f35d7be61dfaeb900af03c9",
|
|
4619
4620
|
BTC_ARBITRUM: "0x47c031236e19d024b42f8ae6780e44a573170703",
|
|
4620
4621
|
WETH_WETH_ARBITRUM: "0x70d95587d40a2caf56bd97485ab3eec10bee6336",
|
|
@@ -4625,39 +4626,35 @@ const E = [
|
|
|
4625
4626
|
CRV_ARBITRUM: "0x0e46941f9bff8d0784bffa3d0d7883cdb82d7ae7",
|
|
4626
4627
|
HYPE_ARBITRUM: "0xbcb8fe13d02b023e8f94f6881cc0192fd918a5c0",
|
|
4627
4628
|
BNB_ARBITRUM: "0x2d340912aa47e33c90efb078e69e70efe2b34b9b",
|
|
4628
|
-
BNB_WBTC_USDC_ARBITRUM: "
|
|
4629
|
+
BNB_WBTC_USDC_ARBITRUM: "0x065577d05c3d4c11505ed7bc97bbf85d462a6a6f",
|
|
4629
4630
|
LINK_ARBITRUM: "0x7f1fa204bb700853d36994da19f830b6ad18455c",
|
|
4630
4631
|
PUMP_ARBITRUM: "0x4c0bb704529fa49a26bd854802d70206982c6f1b",
|
|
4631
4632
|
GOLD_ARBITRUM: "0xeb28ad1a2e497f4acc5d9b87e7b496623c93061e",
|
|
4632
4633
|
AAVE_ARBITRUM: "0x1cbba6346f110c8a5ea739ef2d1eb182990e4eb2"
|
|
4633
4634
|
}, da = Object.values(
|
|
4634
|
-
|
|
4635
|
+
p
|
|
4635
4636
|
), oa = {
|
|
4636
|
-
[
|
|
4637
|
-
[
|
|
4638
|
-
[
|
|
4639
|
-
[
|
|
4640
|
-
[
|
|
4641
|
-
[
|
|
4642
|
-
[
|
|
4643
|
-
[
|
|
4644
|
-
[
|
|
4645
|
-
[
|
|
4646
|
-
[
|
|
4647
|
-
[
|
|
4648
|
-
[
|
|
4649
|
-
[
|
|
4650
|
-
[
|
|
4637
|
+
[p.SOL_ARBITRUM]: d,
|
|
4638
|
+
[p.BTC_ARBITRUM]: c,
|
|
4639
|
+
[p.WETH_WETH_ARBITRUM]: A,
|
|
4640
|
+
[p.WETH_USDC_ARBITRUM]: A,
|
|
4641
|
+
[p.SUI_ARBITRUM]: d,
|
|
4642
|
+
[p.DOGE_ARBITRUM]: d,
|
|
4643
|
+
[p.XRP_ARBITRUM]: d,
|
|
4644
|
+
[p.CRV_ARBITRUM]: d,
|
|
4645
|
+
[p.HYPE_ARBITRUM]: d,
|
|
4646
|
+
[p.BNB_ARBITRUM]: d,
|
|
4647
|
+
[p.LINK_ARBITRUM]: d,
|
|
4648
|
+
[p.PUMP_ARBITRUM]: d,
|
|
4649
|
+
[p.BNB_WBTC_USDC_ARBITRUM]: d,
|
|
4650
|
+
[p.GOLD_ARBITRUM]: d,
|
|
4651
|
+
[p.AAVE_ARBITRUM]: d
|
|
4651
4652
|
}, ya = {
|
|
4652
|
-
"0x9a916e55f5b67226734cd7b465d51bce1d11a89a":
|
|
4653
|
+
"0x9a916e55f5b67226734cd7b465d51bce1d11a89a": d
|
|
4653
4654
|
// USDmny Arbitrum
|
|
4654
|
-
}, ua = {
|
|
4655
|
-
IS_BATCH_TRANSACTIONS_ENABLED: "isBatchTransactionsEnabled",
|
|
4656
|
-
REFERRER: "referrer",
|
|
4657
|
-
REF_POOL: "ref_pool"
|
|
4658
4655
|
};
|
|
4659
4656
|
export {
|
|
4660
|
-
|
|
4657
|
+
nt as $,
|
|
4661
4658
|
ut as A,
|
|
4662
4659
|
Zt as B,
|
|
4663
4660
|
dt as C,
|
|
@@ -4665,10 +4662,10 @@ export {
|
|
|
4665
4662
|
et as E,
|
|
4666
4663
|
Qe as F,
|
|
4667
4664
|
Je as G,
|
|
4668
|
-
|
|
4669
|
-
|
|
4665
|
+
Ge as H,
|
|
4666
|
+
He as I,
|
|
4670
4667
|
We as J,
|
|
4671
|
-
|
|
4668
|
+
Ve as K,
|
|
4672
4669
|
Qt as L,
|
|
4673
4670
|
na as M,
|
|
4674
4671
|
aa as N,
|
|
@@ -4679,105 +4676,104 @@ export {
|
|
|
4679
4676
|
wt as S,
|
|
4680
4677
|
at as T,
|
|
4681
4678
|
da as U,
|
|
4682
|
-
|
|
4679
|
+
p as V,
|
|
4683
4680
|
oa as W,
|
|
4684
4681
|
ya as X,
|
|
4685
4682
|
Ae as Y,
|
|
4686
4683
|
De as Z,
|
|
4687
|
-
|
|
4684
|
+
Tt as _,
|
|
4688
4685
|
ia as a,
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4686
|
+
c as a$,
|
|
4687
|
+
yt as a0,
|
|
4688
|
+
qt as a1,
|
|
4689
|
+
Be as a2,
|
|
4690
|
+
tt as a3,
|
|
4691
|
+
Jt as a4,
|
|
4692
|
+
ke as a5,
|
|
4693
|
+
Ot as a6,
|
|
4694
|
+
ct as a7,
|
|
4695
|
+
fe as a8,
|
|
4696
|
+
pt as a9,
|
|
4697
|
+
X as aA,
|
|
4698
|
+
Ie as aB,
|
|
4699
|
+
Ut as aC,
|
|
4700
|
+
we as aD,
|
|
4701
|
+
ge as aE,
|
|
4702
|
+
Nt as aF,
|
|
4703
|
+
Ht as aG,
|
|
4704
|
+
Kt as aH,
|
|
4705
|
+
D as aI,
|
|
4706
|
+
ye as aJ,
|
|
4707
|
+
Vt as aK,
|
|
4708
|
+
kt as aL,
|
|
4709
|
+
vt as aM,
|
|
4710
|
+
Wt as aN,
|
|
4711
|
+
Yt as aO,
|
|
4712
|
+
zt as aP,
|
|
4713
|
+
Bt as aQ,
|
|
4714
|
+
d as aR,
|
|
4715
|
+
Ee as aS,
|
|
4716
|
+
ve as aT,
|
|
4717
|
+
Se as aU,
|
|
4718
|
+
Me as aV,
|
|
4719
|
+
Lt as aW,
|
|
4720
|
+
Ce as aX,
|
|
4721
|
+
Re as aY,
|
|
4722
|
+
Oe as aZ,
|
|
4723
|
+
xt as a_,
|
|
4724
|
+
bt as aa,
|
|
4725
|
+
r as ab,
|
|
4726
|
+
_e as ac,
|
|
4727
|
+
gt as ad,
|
|
4728
|
+
jt as ae,
|
|
4729
|
+
$t as af,
|
|
4730
|
+
be as ag,
|
|
4731
|
+
Rt as ah,
|
|
4732
|
+
St as ai,
|
|
4733
|
+
I as aj,
|
|
4734
|
+
Et as ak,
|
|
4735
|
+
It as al,
|
|
4736
|
+
e as am,
|
|
4737
|
+
_t as an,
|
|
4738
|
+
At as ao,
|
|
4739
|
+
re as ap,
|
|
4740
|
+
de as aq,
|
|
4741
|
+
me as ar,
|
|
4742
|
+
oe as as,
|
|
4743
|
+
ue as at,
|
|
4744
|
+
ft as au,
|
|
4745
|
+
Dt as av,
|
|
4746
|
+
ce as aw,
|
|
4747
|
+
E as ax,
|
|
4748
|
+
H as ay,
|
|
4749
|
+
G as az,
|
|
4753
4750
|
J as b,
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
Xt as be,
|
|
4751
|
+
$ as b0,
|
|
4752
|
+
f as b1,
|
|
4753
|
+
q as b2,
|
|
4754
|
+
A as b3,
|
|
4755
|
+
Y as b4,
|
|
4756
|
+
Z as b5,
|
|
4757
|
+
K as b6,
|
|
4758
|
+
z as b7,
|
|
4759
|
+
he as b8,
|
|
4760
|
+
Pt as b9,
|
|
4761
|
+
Ct as ba,
|
|
4762
|
+
Ft as bb,
|
|
4763
|
+
Gt as bc,
|
|
4764
|
+
Xt as bd,
|
|
4769
4765
|
ot as c,
|
|
4770
|
-
|
|
4766
|
+
ra as d,
|
|
4771
4767
|
mt as e,
|
|
4772
4768
|
lt as f,
|
|
4773
4769
|
Ke as g,
|
|
4774
4770
|
te as h,
|
|
4775
4771
|
$e as i,
|
|
4776
4772
|
Mt as j,
|
|
4777
|
-
|
|
4773
|
+
Ye as k,
|
|
4778
4774
|
m as l,
|
|
4779
4775
|
je as m,
|
|
4780
|
-
|
|
4776
|
+
rt as n,
|
|
4781
4777
|
Xe as o,
|
|
4782
4778
|
Fe as p,
|
|
4783
4779
|
l as q,
|
|
@@ -4789,5 +4785,5 @@ export {
|
|
|
4789
4785
|
it as w,
|
|
4790
4786
|
ze as x,
|
|
4791
4787
|
Te as y,
|
|
4792
|
-
|
|
4788
|
+
pa as z
|
|
4793
4789
|
};
|