@dhedge/trading-widget 6.0.6 → 6.2.0-canary.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 (88) hide show
  1. package/README.md +136 -125
  2. package/const.cjs +1 -1
  3. package/const.js +96 -89
  4. package/core-kit/abi/dytm-office-asset-guard.d.ts +194 -0
  5. package/core-kit/abi/hyperliquid-withdrawal-manager.d.ts +301 -0
  6. package/core-kit/abi/index.d.ts +2 -0
  7. package/core-kit/abi/ondo-gm-token-asset-guard.d.ts +20 -0
  8. package/core-kit/abi/ondo-price-oracle.d.ts +18 -0
  9. package/core-kit/const/config.d.ts +1 -1
  10. package/core-kit/const/hyperliquid.d.ts +8 -0
  11. package/core-kit/const/index.d.ts +1 -0
  12. package/core-kit/const/logger.d.ts +4 -0
  13. package/core-kit/const/trading.d.ts +3 -0
  14. package/core-kit/hooks/pool/index.d.ts +4 -0
  15. package/core-kit/hooks/pool/use-asset-guard-address.d.ts +8 -0
  16. package/core-kit/hooks/pool/use-dytm-vault-data.d.ts +8 -0
  17. package/core-kit/hooks/pool/use-ondo-price-deviation.d.ts +10 -0
  18. package/core-kit/hooks/pool/use-ondo-vault-data.d.ts +1 -0
  19. package/core-kit/hooks/pool/use-pool-assets-with-type.d.ts +14 -0
  20. package/core-kit/hooks/trading/hyperliquid-withdraw/index.d.ts +12 -0
  21. package/core-kit/hooks/trading/hyperliquid-withdraw/use-handle-hyperliquid-withdraw-step.d.ts +12 -0
  22. package/core-kit/hooks/trading/hyperliquid-withdraw/use-hyperliquid-announce-transaction.d.ts +9 -0
  23. package/core-kit/hooks/trading/hyperliquid-withdraw/use-hyperliquid-cancel-availability.d.ts +5 -0
  24. package/core-kit/hooks/trading/hyperliquid-withdraw/use-hyperliquid-manager-transaction.d.ts +8 -0
  25. package/core-kit/hooks/trading/hyperliquid-withdraw/use-hyperliquid-pending-withdrawal.d.ts +313 -0
  26. package/core-kit/hooks/trading/hyperliquid-withdraw/use-hyperliquid-withdraw-expected-amount.d.ts +4 -0
  27. package/core-kit/hooks/trading/hyperliquid-withdraw/use-hyperliquid-withdrawal-allowance.d.ts +10 -0
  28. package/core-kit/hooks/trading/hyperliquid-withdraw/use-is-hyperliquid-withdraw.d.ts +4 -0
  29. package/core-kit/hooks/trading/hyperliquid-withdraw/use-is-hyperliquid-withdrawal-vault.d.ts +1 -0
  30. package/core-kit/hooks/trading/hyperliquid-withdraw/use-purge-hyperliquid-pending-transactions.d.ts +1 -0
  31. package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-dytm-withdraw-asset-data.d.ts +3 -0
  32. package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-ondo-withdraw-asset-data.d.ts +3 -2
  33. package/core-kit/services/ondo/api.d.ts +5 -1
  34. package/core-kit/services/ondo/index.d.ts +2 -2
  35. package/core-kit/services/ondo/types.d.ts +9 -0
  36. package/core-kit/types/trading-panel.types.d.ts +1 -1
  37. package/core-kit/utils/complex-withdraw-asset-data.d.ts +9 -5
  38. package/core-kit/utils/dytm.d.ts +51 -0
  39. package/core-kit/utils/error.d.ts +1 -0
  40. package/core-kit/utils/hyperliquid-asset-ids.d.ts +32 -0
  41. package/core-kit/utils/index.d.ts +2 -0
  42. package/core-kit/utils/ondo.d.ts +2 -1
  43. package/core-kit/utils/web3.d.ts +5 -1
  44. package/dytm-C7rdytdA.cjs +1 -0
  45. package/dytm-DIQAbDy2.js +833 -0
  46. package/{geoblocking-NkujbQRm.js → geoblocking-C4bMDd1o.js} +15 -9
  47. package/geoblocking-CUDTwbrq.cjs +1 -0
  48. package/gmx-BTx7XZoO.cjs +1 -0
  49. package/{gmx-DQ-wSifY.js → gmx-D2b-KeY_.js} +622 -353
  50. package/index.cjs +1 -1
  51. package/index.js +5830 -4447
  52. package/package.json +2 -2
  53. package/style.css +1 -1
  54. package/trading-widget/components/common/tab/tab-button/tab-button.d.ts +1 -0
  55. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/hyperliquid-withdraw-stepper-overlay.d.ts +3 -0
  56. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/hyperliquid-withdraw-stepper-overlay.hooks.d.ts +21 -0
  57. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/announce-step.d.ts +3 -0
  58. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/announce-step.hooks.d.ts +11 -0
  59. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/approve-step.d.ts +3 -0
  60. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/approve-step.hooks.d.ts +10 -0
  61. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/bridge-step.d.ts +3 -0
  62. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/bridge-step.hooks.d.ts +10 -0
  63. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/settle-step.d.ts +3 -0
  64. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/settle-step.hooks.d.ts +10 -0
  65. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/use-hyperliquid-manager-step.d.ts +14 -0
  66. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/use-auto-fire-hyperliquid-step.d.ts +11 -0
  67. package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/use-hyperliquid-step-failure.d.ts +4 -0
  68. package/trading-widget/components/widget/widget-overlay/index.d.ts +1 -0
  69. package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/init-withdraw-step.hooks.d.ts +1 -1
  70. package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/oracle-update-step.d.ts +3 -0
  71. package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/oracle-update-step.hooks.d.ts +11 -0
  72. package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-stepper-overlay.hooks.d.ts +10 -2
  73. package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-steps.d.ts +2 -9
  74. package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-steps.hooks.d.ts +26 -0
  75. package/trading-widget/components/widget/widget-tabs/widget-tabs.hooks.d.ts +1 -0
  76. package/trading-widget/components/withdraw/init-step/button/hyperliquid-withdraw-button/hyperliquid-withdraw-button.d.ts +2 -0
  77. package/trading-widget/components/withdraw/init-step/button/hyperliquid-withdraw-button/hyperliquid-withdraw-button.hooks.d.ts +4 -0
  78. package/trading-widget/components/withdraw/init-step/button/valid-init-withdraw-button/valid-init-withdraw-button.hooks.d.ts +2 -0
  79. package/trading-widget/components/withdraw/init-step/meta/pending-hyperliquid-withdraw-banner.d.ts +2 -0
  80. package/trading-widget/providers/theme-provider/theme-provider.types.d.ts +1 -0
  81. package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +10 -0
  82. package/trading-widget/types/overlay.types.d.ts +1 -0
  83. package/utils.cjs +1 -1
  84. package/utils.js +72 -60
  85. package/geoblocking-9FD_O0-h.cjs +0 -1
  86. package/gmx-Dejxb5_t.cjs +0 -1
  87. package/ondo-GwhTVXds.js +0 -540
  88. package/ondo-rQybmFLf.cjs +0 -1
@@ -1,16 +1,16 @@
1
- import { optimism as t, hyperEvm as p, base as n, arbitrum as s, polygon as i, mainnet as a } from "wagmi/chains";
1
+ import { optimism as a, hyperEvm as p, base as n, arbitrum as s, polygon as i, mainnet as t } from "wagmi/chains";
2
2
  import { formatDuration as te } from "date-fns";
3
3
  import { erc20Abi as ae } from "viem";
4
- const ne = "0x0000000000000000000000000000000000000000", Ve = BigInt(
4
+ const ne = "0x0000000000000000000000000000000000000000", Ge = BigInt(
5
5
  "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
6
- ), l = 18, He = "1000000000000000000", Ye = 59e3, Ge = 3e4, Ke = 15e3, ze = 5e3, se = 400, qe = se * 1.2, Xe = te({ hours: 24 }), Ze = {
6
+ ), l = 18, qe = "1000000000000000000", Ke = 59e3, ze = 3e4, Xe = 15e3, Qe = 5e3, se = 400, Ze = se * 1.2, $e = te({ hours: 24 }), je = {
7
7
  address: ne,
8
8
  symbol: "",
9
- chainId: t.id,
9
+ chainId: a.id,
10
10
  depositParams: { customTokens: [] },
11
11
  withdrawParams: { customTokens: [] },
12
12
  deprecated: !1
13
- }, $e = "deposit", je = 0.5, ie = 0, Qe = 0.5, Je = 0.02, et = 0.5, tt = [ie], at = [
13
+ }, Je = "deposit", et = 0.5, ie = 0, tt = 0.5, at = 0.02, nt = 0.5, st = [ie], it = [
14
14
  0.05,
15
15
  0.1,
16
16
  0.3,
@@ -21,15 +21,15 @@ const ne = "0x0000000000000000000000000000000000000000", Ve = BigInt(
21
21
  2,
22
22
  3,
23
23
  5
24
- ], nt = "withdrawSafe", st = "initWithdrawal", it = "unrollAndClaim", pt = "completeWithdrawal", rt = 2e6, dt = 1.25, ot = 1e4, yt = 13e3, ut = 3, lt = 2e4, mt = 1e4, ct = {
25
- [a.id]: a,
26
- [i.id]: i,
24
+ ], rt = "withdrawSafe", pt = "initWithdrawal", dt = "unrollAndClaim", ot = "completeWithdrawal", yt = 2e6, ut = 1.25, lt = 1e4, mt = 13e3, ct = 3, Tt = 2e4, bt = 1e4, _t = {
27
25
  [t.id]: t,
26
+ [i.id]: i,
27
+ [a.id]: a,
28
28
  [s.id]: s,
29
29
  [n.id]: n,
30
30
  [p.id]: p
31
- }, Tt = {
32
- [a.id]: {
31
+ }, ft = {
32
+ [t.id]: {
33
33
  nativeTokenSymbol: "ETH",
34
34
  wrappedNativeTokenName: "WETH",
35
35
  address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
@@ -41,7 +41,7 @@ const ne = "0x0000000000000000000000000000000000000000", Ve = BigInt(
41
41
  address: "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
42
42
  decimals: l
43
43
  },
44
- [t.id]: {
44
+ [a.id]: {
45
45
  nativeTokenSymbol: "ETH",
46
46
  wrappedNativeTokenName: "WETH",
47
47
  address: "0x4200000000000000000000000000000000000006",
@@ -65,29 +65,29 @@ const ne = "0x0000000000000000000000000000000000000000", Ve = BigInt(
65
65
  address: "0x5555555555555555555555555555555555555555",
66
66
  decimals: l
67
67
  }
68
- }, m = 299e5, bt = {
69
- [a.id]: m,
70
- [i.id]: m,
68
+ }, m = 299e5, At = {
71
69
  [t.id]: m,
70
+ [i.id]: m,
71
+ [a.id]: m,
72
72
  [s.id]: m,
73
73
  [n.id]: m,
74
74
  [p.id]: m
75
- }, ft = {
76
- [a.id]: "https://eth-mainnet.g.alchemy.com/v2",
77
- [t.id]: "https://opt-mainnet.g.alchemy.com/v2",
75
+ }, Dt = {
76
+ [t.id]: "https://eth-mainnet.g.alchemy.com/v2",
77
+ [a.id]: "https://opt-mainnet.g.alchemy.com/v2",
78
78
  [i.id]: "https://polygon-mainnet.g.alchemy.com/v2",
79
79
  [s.id]: "https://arb-mainnet.g.alchemy.com/v2",
80
80
  [n.id]: "https://base-mainnet.g.alchemy.com/v2",
81
81
  [p.id]: "https://hyperliquid-mainnet.g.alchemy.com/v2"
82
- }, _t = {
82
+ }, Et = {
83
83
  USD: "$",
84
84
  ETH: "Ξ",
85
85
  BTC: "₿"
86
- }, At = {
86
+ }, It = {
87
87
  USD: 2,
88
88
  ETH: 4,
89
89
  BTC: 6
90
- }, Dt = ["USDC", "USDT"], d = {
90
+ }, St = ["USDC", "USDT"], r = {
91
91
  INVEST_INPUT_FOCUS: "invest_input_focus",
92
92
  APPROVED_TOKEN: "approved_token",
93
93
  DEPOSIT: "deposit",
@@ -105,32 +105,49 @@ const ne = "0x0000000000000000000000000000000000000000", Ve = BigInt(
105
105
  OPEN_LIMIT_BUY_VIEW: "open_limit_buy_view",
106
106
  LIMIT_ORDER_WITHDRAW: "limit_order_withdraw",
107
107
  LIMIT_ORDER_WITHDRAW_DELETE: "limit_order_withdraw_delete",
108
- UPDATE_ONDO_PRICES: "update_ondo_prices"
109
- }, Et = {
110
- approve: [d.APPROVED_TOKEN],
111
- deposit: [d.DEPOSIT],
108
+ UPDATE_ONDO_PRICES: "update_ondo_prices",
109
+ HYPERLIQUID_ANNOUNCE_WITHDRAW: "hyperliquid_announce_withdraw",
110
+ HYPERLIQUID_BRIDGE_WITHDRAW: "hyperliquid_bridge_withdraw",
111
+ HYPERLIQUID_SETTLE_WITHDRAW: "hyperliquid_settle_withdraw",
112
+ HYPERLIQUID_CANCEL_WITHDRAW: "hyperliquid_cancel_withdraw"
113
+ }, wt = {
114
+ approve: [r.APPROVED_TOKEN],
115
+ deposit: [r.DEPOSIT],
112
116
  multi_withdraw: [
113
- d.WITHDRAWAL,
114
- d.MULTI_ASSET_WITHDRAW
117
+ r.WITHDRAWAL,
118
+ r.MULTI_ASSET_WITHDRAW
115
119
  ],
116
120
  single_withdraw: [
117
- d.WITHDRAWAL,
118
- d.SINGLE_ASSET_WITHDRAW
121
+ r.WITHDRAWAL,
122
+ r.SINGLE_ASSET_WITHDRAW
119
123
  ],
120
124
  single_withdraw_and_claim: [
121
- d.WITHDRAWAL,
122
- d.SINGLE_ASSET_WITHDRAW_AND_CLAIM
125
+ r.WITHDRAWAL,
126
+ r.SINGLE_ASSET_WITHDRAW_AND_CLAIM
123
127
  ],
124
- claim: [d.CLAIM],
125
- swap: [d.SWAP],
126
- create_limit_sell_order: [d.CREATE_LIMIT_SELL_ORDER],
127
- create_limit_buy_order: [d.CREATE_LIMIT_BUY_ORDER],
128
- limit_order_withdraw: [d.LIMIT_ORDER_WITHDRAW],
128
+ claim: [r.CLAIM],
129
+ swap: [r.SWAP],
130
+ create_limit_sell_order: [r.CREATE_LIMIT_SELL_ORDER],
131
+ create_limit_buy_order: [r.CREATE_LIMIT_BUY_ORDER],
132
+ limit_order_withdraw: [r.LIMIT_ORDER_WITHDRAW],
129
133
  delete_limit_order_withdraw: [
130
- d.LIMIT_ORDER_WITHDRAW_DELETE
134
+ r.LIMIT_ORDER_WITHDRAW_DELETE
131
135
  ],
132
- update_ondo_prices: [d.UPDATE_ONDO_PRICES]
133
- }, It = {
136
+ update_ondo_prices: [r.UPDATE_ONDO_PRICES],
137
+ hyperliquid_announce_withdraw: [
138
+ r.WITHDRAWAL,
139
+ r.HYPERLIQUID_ANNOUNCE_WITHDRAW
140
+ ],
141
+ hyperliquid_bridge_withdraw: [
142
+ r.HYPERLIQUID_BRIDGE_WITHDRAW
143
+ ],
144
+ hyperliquid_settle_withdraw: [
145
+ r.HYPERLIQUID_SETTLE_WITHDRAW
146
+ ],
147
+ hyperliquid_cancel_withdraw: [
148
+ r.HYPERLIQUID_CANCEL_WITHDRAW
149
+ ]
150
+ }, Rt = {
134
151
  IS_INFINITE: { NAME: "is_infinite", TYPE: "number" },
135
152
  SYMBOL: { NAME: "symbol", TYPE: "string" },
136
153
  CHAIN_ID: { NAME: "chain_id", TYPE: "number" },
@@ -139,8 +156,8 @@ const ne = "0x0000000000000000000000000000000000000000", Ve = BigInt(
139
156
  };
140
157
  var y = /* @__PURE__ */ ((u) => (u.ETH = "ETH", u.MAINNET = "MAINNET", u.POLYGON = "POLYGON", u.OE = "OPTIMISM", u.ARBI = "ARBITRUM", u.BASE = "BASE", u.HYPEREVM = "HYPEREVM", u))(y || {});
141
158
  const T = process.env.NEXT_PUBLIC_INFURA_API_KEY;
142
- s.id + "", `${T}`, t.id + "", `${T}`, i.id + "", `${T}`, n.id + "", `${T}`, a.id + "", `${T}`, p.id + "";
143
- const St = {
159
+ s.id + "", `${T}`, a.id + "", `${T}`, i.id + "", `${T}`, n.id + "", `${T}`, t.id + "", `${T}`, p.id + "";
160
+ const Mt = {
144
161
  [s.id]: {
145
162
  ...s,
146
163
  name: "Arbitrum",
@@ -149,11 +166,11 @@ const St = {
149
166
  shortName: "ARB",
150
167
  blockchainCode: y.ARBI
151
168
  },
152
- [t.id]: {
153
- ...t,
169
+ [a.id]: {
170
+ ...a,
154
171
  name: "Optimism",
155
172
  iconPath: "/icons/optimism-network.svg",
156
- chainId: t.id,
173
+ chainId: a.id,
157
174
  shortName: "OP",
158
175
  blockchainCode: y.OE
159
176
  },
@@ -171,9 +188,9 @@ const St = {
171
188
  shortName: "BASE",
172
189
  blockchainCode: y.BASE
173
190
  },
174
- [a.id]: {
175
- ...a,
176
- chainId: a.id,
191
+ [t.id]: {
192
+ ...t,
193
+ chainId: t.id,
177
194
  iconPath: "/icons/ethereum-network.svg",
178
195
  shortName: "ETHEREUM",
179
196
  blockchainCode: y.MAINNET
@@ -186,16 +203,17 @@ const St = {
186
203
  blockchainCode: y.HYPEREVM
187
204
  }
188
205
  };
189
- y.ETH + "", a.id, y.MAINNET + "", a.id, y.POLYGON + "", i.id, y.OE + "", t.id, y.ARBI + "", s.id, y.BASE + "", n.id, y.HYPEREVM + "", p.id;
190
- a.id + "", t.id + "", i.id + "", s.id + "", n.id + "", p.id + "";
206
+ y.ETH + "", t.id, y.MAINNET + "", t.id, y.POLYGON + "", i.id, y.OE + "", a.id, y.ARBI + "", s.id, y.BASE + "", n.id, y.HYPEREVM + "", p.id;
207
+ t.id + "", a.id + "", i.id + "", s.id + "", n.id + "", p.id + "";
191
208
  const I = "0x0000000000000000000000000000000000000000";
192
209
  BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
193
- a.id + "", BigInt(100), t.id + "", BigInt(600), i.id + "", BigInt(600), n.id + "", BigInt(600), s.id + "", BigInt(5300), p.id + "", BigInt(6e3);
194
- const S = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d", R = "0xbDd84294bC8299861A2121F749A25EFEb7168a32", M = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", w = "0x95B19De479bc693721cab39Da98FfECE062f5Ea4", pe = "0xD6049430DDFa9bCd1F33064BF697313A1a93ace9", O = "0xffFb5fB14606EB3a548C113026355020dDF27535", h = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", g = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", v = "0x26a687e8244f1866E9Aa2D400c8b9957Aa8e6Ad4", C = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", P = "0xf067575Eb60c7587C11e867907AA7284833704d1", re = "0x59525b9b23adc475ef91d98dae06b568ba574ce5", Rt = "0xa907504d7a4c415b4e6e1d0866d96afe8202f0e5", Mt = "0x1849324228d852a67eb7443e42d967e480ffe95d", L = "0xa238dd80c259a72e81d7e4664a9801593f98d1c5", x = "0xFcBEc28c43E356693971a24bf3F2Fd7D965E2ebA", de = "0x07e144e336fcc3fe928a8a2a5714da64354c1aab", N = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", B = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", U = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", W = "0x3bFE2a472d2964Ea4070725b7Fb0A868b3f08b63", F = "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", oe = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", k = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", V = "0x45b90480D6F643dE2f128db091A357C3c90399f2", H = "0xB71410736d2C8F2DAf30dA9D332dA10534d2624d", Y = "0x615037C2Df6FA97634c5aD2d8144708b9dd3B176", G = "0x47065E508433E22d73Be3c5B61EB9abafD450364", K = "0x6b696eA2602068a7043C92961B5F202a65A3eF9C", wt = "0x4F754e0F0924afD74980886b0B479Fa1D7C58D0D";
195
- a.id + "", s.id + "", n.id + "", t.id + "", i.id + "", p.id + "";
196
- a.id + "", s.id + "", n.id + "", t.id + "", i.id + "", p.id + "";
197
- a.id + "", s.id + "", n.id + "", t.id + "", i.id + "", p.id + "";
198
- a.id + "", s.id + "", n.id + "", t.id + "", i.id + "", p.id + "";
210
+ t.id + "", BigInt(100), a.id + "", BigInt(600), i.id + "", BigInt(600), n.id + "", BigInt(600), s.id + "", BigInt(5300), p.id + "", BigInt(6e3);
211
+ const S = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d", w = "0xbDd84294bC8299861A2121F749A25EFEb7168a32", R = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", M = "0x95B19De479bc693721cab39Da98FfECE062f5Ea4", re = "0xD6049430DDFa9bCd1F33064BF697313A1a93ace9", pe = "0x0ff1ceB93DbADfB13722058D60c4B8cD122b06ea", ht = "0xde41399145F23936b03dD1474eC16c1519c0DC2a", h = "0xffFb5fB14606EB3a548C113026355020dDF27535", g = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", O = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", v = "0x26a687e8244f1866E9Aa2D400c8b9957Aa8e6Ad4", P = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", C = "0xf067575Eb60c7587C11e867907AA7284833704d1", de = "0x59525b9b23adc475ef91d98dae06b568ba574ce5", gt = "0xa907504d7a4c415b4e6e1d0866d96afe8202f0e5", Ot = "0x1849324228d852a67eb7443e42d967e480ffe95d", L = "0xa238dd80c259a72e81d7e4664a9801593f98d1c5", N = "0xFcBEc28c43E356693971a24bf3F2Fd7D965E2ebA", oe = "0x07e144e336fcc3fe928a8a2a5714da64354c1aab", x = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", W = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", U = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", B = "0x3bFE2a472d2964Ea4070725b7Fb0A868b3f08b63", H = "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", ye = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", F = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", k = "0x45b90480D6F643dE2f128db091A357C3c90399f2", V = "0xB71410736d2C8F2DAf30dA9D332dA10534d2624d", Y = "0x615037C2Df6FA97634c5aD2d8144708b9dd3B176", G = "0x47065E508433E22d73Be3c5B61EB9abafD450364", q = "0x6b696eA2602068a7043C92961B5F202a65A3eF9C", ue = "0xE63275a043c60DbdD7fF6315208de553F4127c5c", vt = "0x4F754e0F0924afD74980886b0B479Fa1D7C58D0D";
212
+ t.id + "", s.id + "", n.id + "", a.id + "", i.id + "", p.id + "";
213
+ t.id + "", s.id + "", n.id + "", a.id + "", i.id + "", p.id + "";
214
+ t.id + "", s.id + "", n.id + "", a.id + "", i.id + "", p.id + "";
215
+ t.id + "";
216
+ t.id + "", s.id + "", n.id + "", a.id + "", i.id + "", p.id + "";
199
217
  const E = [
200
218
  {
201
219
  anonymous: !1,
@@ -986,7 +1004,7 @@ const E = [
986
1004
  stateMutability: "nonpayable",
987
1005
  type: "function"
988
1006
  }
989
- ], ye = [
1007
+ ], le = [
990
1008
  {
991
1009
  inputs: [
992
1010
  {
@@ -1095,7 +1113,7 @@ const E = [
1095
1113
  stateMutability: "view",
1096
1114
  type: "function"
1097
1115
  }
1098
- ], ue = [
1116
+ ], me = [
1099
1117
  {
1100
1118
  inputs: [
1101
1119
  {
@@ -1443,7 +1461,7 @@ const E = [
1443
1461
  stateMutability: "nonpayable",
1444
1462
  type: "function"
1445
1463
  }
1446
- ], Ot = [
1464
+ ], Pt = [
1447
1465
  {
1448
1466
  type: "tuple[]",
1449
1467
  components: [
@@ -1471,7 +1489,7 @@ const E = [
1471
1489
  }
1472
1490
  ]
1473
1491
  }
1474
- ], ht = [
1492
+ ], Ct = [
1475
1493
  {
1476
1494
  type: "tuple",
1477
1495
  components: [
@@ -1499,7 +1517,7 @@ const E = [
1499
1517
  }
1500
1518
  ]
1501
1519
  }
1502
- ], le = [
1520
+ ], ce = [
1503
1521
  {
1504
1522
  inputs: [],
1505
1523
  name: "getFundComposition",
@@ -1664,7 +1682,7 @@ const E = [
1664
1682
  stateMutability: "view",
1665
1683
  type: "function"
1666
1684
  }
1667
- ], me = [
1685
+ ], Te = [
1668
1686
  {
1669
1687
  anonymous: !1,
1670
1688
  inputs: [
@@ -1821,7 +1839,7 @@ const E = [
1821
1839
  stateMutability: "view",
1822
1840
  type: "function"
1823
1841
  }
1824
- ], ce = [
1842
+ ], be = [
1825
1843
  {
1826
1844
  inputs: [
1827
1845
  {
@@ -1898,7 +1916,7 @@ const E = [
1898
1916
  stateMutability: "view",
1899
1917
  type: "function"
1900
1918
  }
1901
- ], Te = [
1919
+ ], _e = [
1902
1920
  {
1903
1921
  inputs: [],
1904
1922
  name: "EmptyPayload",
@@ -2055,8 +2073,8 @@ const E = [
2055
2073
  name: "UnsupportedTokenTransferMethod",
2056
2074
  type: "error"
2057
2075
  }
2058
- ], be = [
2059
- ...Te,
2076
+ ], fe = [
2077
+ ..._e,
2060
2078
  {
2061
2079
  anonymous: !1,
2062
2080
  inputs: [
@@ -3480,7 +3498,237 @@ const E = [
3480
3498
  stateMutability: "payable",
3481
3499
  type: "function"
3482
3500
  }
3483
- ], fe = [
3501
+ ], Ae = [
3502
+ {
3503
+ inputs: [],
3504
+ name: "HyperliquidWithdrawalManager__ZeroAmount",
3505
+ type: "error"
3506
+ },
3507
+ {
3508
+ inputs: [],
3509
+ name: "HyperliquidWithdrawalManager__WithdrawalAlreadyPending",
3510
+ type: "error"
3511
+ },
3512
+ {
3513
+ inputs: [],
3514
+ name: "HyperliquidWithdrawalManager__InvalidPool",
3515
+ type: "error"
3516
+ },
3517
+ {
3518
+ inputs: [],
3519
+ name: "HyperliquidWithdrawalManager__PoolHasNoHLIntegration",
3520
+ type: "error"
3521
+ },
3522
+ {
3523
+ inputs: [
3524
+ {
3525
+ internalType: "enum IHyperliquidWithdrawalManager.WithdrawalState",
3526
+ name: "current",
3527
+ type: "uint8"
3528
+ },
3529
+ {
3530
+ internalType: "enum IHyperliquidWithdrawalManager.WithdrawalState",
3531
+ name: "expected",
3532
+ type: "uint8"
3533
+ }
3534
+ ],
3535
+ name: "HyperliquidWithdrawalManager__InvalidState",
3536
+ type: "error"
3537
+ },
3538
+ {
3539
+ inputs: [{ internalType: "uint32", name: "asset", type: "uint32" }],
3540
+ name: "HyperliquidWithdrawalManager__NoPositionForAsset",
3541
+ type: "error"
3542
+ },
3543
+ {
3544
+ inputs: [{ internalType: "uint32", name: "asset", type: "uint32" }],
3545
+ name: "HyperliquidWithdrawalManager__NoSpotBalanceForAsset",
3546
+ type: "error"
3547
+ },
3548
+ {
3549
+ inputs: [{ internalType: "uint32", name: "asset", type: "uint32" }],
3550
+ name: "HyperliquidWithdrawalManager__SpotAssetNotSupported",
3551
+ type: "error"
3552
+ },
3553
+ {
3554
+ inputs: [],
3555
+ name: "HyperliquidWithdrawalManager__NoPendingWithdrawal",
3556
+ type: "error"
3557
+ },
3558
+ {
3559
+ inputs: [],
3560
+ name: "HyperliquidWithdrawalManager__TimeoutNotReached",
3561
+ type: "error"
3562
+ },
3563
+ {
3564
+ inputs: [],
3565
+ name: "HyperliquidWithdrawalManager__NothingToBridge",
3566
+ type: "error"
3567
+ },
3568
+ {
3569
+ inputs: [],
3570
+ name: "HyperliquidWithdrawalManager__NoSpotUsdcFreed",
3571
+ type: "error"
3572
+ },
3573
+ { inputs: [], name: "HyperliquidWithdrawalManager__TooEarly", type: "error" },
3574
+ {
3575
+ inputs: [],
3576
+ name: "HyperliquidWithdrawalManager__FullWithdrawalNotSupported",
3577
+ type: "error"
3578
+ },
3579
+ {
3580
+ inputs: [],
3581
+ name: "HyperliquidWithdrawalManager__UnreducedPerpPosition",
3582
+ type: "error"
3583
+ },
3584
+ {
3585
+ inputs: [],
3586
+ name: "HyperliquidWithdrawalManager__NoBridgeNeeded",
3587
+ type: "error"
3588
+ },
3589
+ {
3590
+ inputs: [],
3591
+ name: "HyperliquidWithdrawalManager__UnsortedAssetIds",
3592
+ type: "error"
3593
+ },
3594
+ {
3595
+ anonymous: !1,
3596
+ inputs: [
3597
+ { indexed: !0, internalType: "address", name: "user", type: "address" },
3598
+ { indexed: !0, internalType: "address", name: "pool", type: "address" },
3599
+ {
3600
+ indexed: !1,
3601
+ internalType: "uint256",
3602
+ name: "amount",
3603
+ type: "uint256"
3604
+ }
3605
+ ],
3606
+ name: "WithdrawalAnnounced",
3607
+ type: "event"
3608
+ },
3609
+ {
3610
+ anonymous: !1,
3611
+ inputs: [
3612
+ { indexed: !0, internalType: "address", name: "user", type: "address" },
3613
+ { indexed: !0, internalType: "address", name: "pool", type: "address" }
3614
+ ],
3615
+ name: "WithdrawalBridged",
3616
+ type: "event"
3617
+ },
3618
+ {
3619
+ anonymous: !1,
3620
+ inputs: [
3621
+ { indexed: !0, internalType: "address", name: "user", type: "address" },
3622
+ { indexed: !0, internalType: "address", name: "pool", type: "address" },
3623
+ {
3624
+ indexed: !1,
3625
+ internalType: "uint256",
3626
+ name: "amount",
3627
+ type: "uint256"
3628
+ }
3629
+ ],
3630
+ name: "WithdrawalSettled",
3631
+ type: "event"
3632
+ },
3633
+ {
3634
+ anonymous: !1,
3635
+ inputs: [
3636
+ { indexed: !0, internalType: "address", name: "user", type: "address" },
3637
+ { indexed: !0, internalType: "address", name: "pool", type: "address" },
3638
+ {
3639
+ indexed: !1,
3640
+ internalType: "uint256",
3641
+ name: "amount",
3642
+ type: "uint256"
3643
+ }
3644
+ ],
3645
+ name: "WithdrawalCancelled",
3646
+ type: "event"
3647
+ },
3648
+ {
3649
+ inputs: [
3650
+ { internalType: "address", name: "pool", type: "address" },
3651
+ { internalType: "uint256", name: "tokenAmount", type: "uint256" },
3652
+ { internalType: "uint32[]", name: "perpAssetIds", type: "uint32[]" },
3653
+ { internalType: "uint32[]", name: "spotAssetIds", type: "uint32[]" }
3654
+ ],
3655
+ name: "announceAndReduce",
3656
+ outputs: [],
3657
+ stateMutability: "nonpayable",
3658
+ type: "function"
3659
+ },
3660
+ {
3661
+ inputs: [{ internalType: "address", name: "pool", type: "address" }],
3662
+ name: "bridge",
3663
+ outputs: [],
3664
+ stateMutability: "nonpayable",
3665
+ type: "function"
3666
+ },
3667
+ {
3668
+ inputs: [{ internalType: "address", name: "pool", type: "address" }],
3669
+ name: "settle",
3670
+ outputs: [],
3671
+ stateMutability: "nonpayable",
3672
+ type: "function"
3673
+ },
3674
+ {
3675
+ inputs: [{ internalType: "address", name: "pool", type: "address" }],
3676
+ name: "cancel",
3677
+ outputs: [],
3678
+ stateMutability: "nonpayable",
3679
+ type: "function"
3680
+ },
3681
+ {
3682
+ inputs: [
3683
+ { internalType: "address", name: "user", type: "address" },
3684
+ { internalType: "address", name: "pool", type: "address" }
3685
+ ],
3686
+ name: "pendingWithdrawals",
3687
+ outputs: [
3688
+ {
3689
+ components: [
3690
+ { internalType: "uint256", name: "amount", type: "uint256" },
3691
+ { internalType: "uint256", name: "announcedAt", type: "uint256" },
3692
+ { internalType: "uint256", name: "announcedBlock", type: "uint256" },
3693
+ { internalType: "uint256", name: "bridgedBlock", type: "uint256" },
3694
+ {
3695
+ internalType: "enum IHyperliquidWithdrawalManager.WithdrawalState",
3696
+ name: "state",
3697
+ type: "uint8"
3698
+ },
3699
+ { internalType: "uint32[]", name: "spotAssetIds", type: "uint32[]" },
3700
+ { internalType: "uint256", name: "reservedBridge", type: "uint256" }
3701
+ ],
3702
+ internalType: "struct IHyperliquidWithdrawalManager.PendingWithdrawal",
3703
+ name: "",
3704
+ type: "tuple"
3705
+ }
3706
+ ],
3707
+ stateMutability: "view",
3708
+ type: "function"
3709
+ },
3710
+ {
3711
+ inputs: [{ internalType: "address", name: "pool", type: "address" }],
3712
+ name: "hasPendingWithdrawal",
3713
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
3714
+ stateMutability: "view",
3715
+ type: "function"
3716
+ },
3717
+ {
3718
+ inputs: [{ internalType: "address", name: "pool", type: "address" }],
3719
+ name: "totalPendingTokens",
3720
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3721
+ stateMutability: "view",
3722
+ type: "function"
3723
+ },
3724
+ {
3725
+ inputs: [],
3726
+ name: "WITHDRAWAL_TIMEOUT",
3727
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3728
+ stateMutability: "view",
3729
+ type: "function"
3730
+ }
3731
+ ], De = [
3484
3732
  { inputs: [], name: "ExternalCallerNotAllowed", type: "error" },
3485
3733
  {
3486
3734
  inputs: [{ internalType: "address", name: "asset", type: "address" }],
@@ -4128,7 +4376,17 @@ const E = [
4128
4376
  stateMutability: "nonpayable",
4129
4377
  type: "function"
4130
4378
  }
4131
- ], _e = [
4379
+ ], Ee = [
4380
+ {
4381
+ inputs: [{ internalType: "address", name: "_gmToken", type: "address" }],
4382
+ name: "getPrice",
4383
+ outputs: [
4384
+ { internalType: "uint256", name: "price", type: "uint256" },
4385
+ { internalType: "uint256", name: "updatedAt", type: "uint256" }
4386
+ ],
4387
+ stateMutability: "view",
4388
+ type: "function"
4389
+ },
4132
4390
  {
4133
4391
  inputs: [
4134
4392
  {
@@ -4158,68 +4416,70 @@ const E = [
4158
4416
  stateMutability: "nonpayable",
4159
4417
  type: "function"
4160
4418
  }
4161
- ], gt = {
4162
- [a.id]: {
4419
+ ], Lt = {
4420
+ [t.id]: {
4163
4421
  factory: S,
4164
- easySwapperV2: R,
4165
- aaveLendingPoolV3: M,
4166
- limitOrder: w,
4167
- ondoPriceOracle: pe
4422
+ easySwapperV2: w,
4423
+ aaveLendingPoolV3: R,
4424
+ limitOrder: M,
4425
+ ondoPriceOracle: re
4168
4426
  },
4169
4427
  [i.id]: {
4170
- factory: F,
4171
- aaveLendingPoolV2: oe,
4172
- aaveLendingPoolV3: k,
4173
- easySwapperV2: V,
4174
- limitOrder: H
4428
+ factory: H,
4429
+ aaveLendingPoolV2: ye,
4430
+ aaveLendingPoolV3: F,
4431
+ easySwapperV2: k,
4432
+ limitOrder: V
4175
4433
  },
4176
- [t.id]: {
4177
- factory: N,
4178
- rewardDistribution: de,
4179
- aaveLendingPoolV3: B,
4434
+ [a.id]: {
4435
+ factory: x,
4436
+ rewardDistribution: oe,
4437
+ aaveLendingPoolV3: W,
4180
4438
  easySwapperV2: U,
4181
- limitOrder: W
4439
+ limitOrder: B
4182
4440
  },
4183
4441
  [s.id]: {
4184
- factory: O,
4185
- aaveLendingPoolV3: h,
4186
- easySwapperV2: g,
4442
+ factory: h,
4443
+ aaveLendingPoolV3: g,
4444
+ easySwapperV2: O,
4187
4445
  limitOrder: v
4188
4446
  },
4189
4447
  [n.id]: {
4190
- factory: C,
4191
- flatcoinPointsModule: re,
4192
- easySwapperV2: P,
4448
+ factory: P,
4449
+ flatcoinPointsModule: de,
4450
+ easySwapperV2: C,
4193
4451
  aaveLendingPoolV3: L,
4194
- limitOrder: x
4452
+ limitOrder: N
4195
4453
  },
4196
4454
  [p.id]: {
4197
4455
  factory: Y,
4198
4456
  easySwapperV2: G,
4199
- limitOrder: K
4457
+ limitOrder: q,
4458
+ hyperliquidWithdrawalManager: ue
4200
4459
  }
4201
- }, vt = {
4202
- factory: ye,
4460
+ }, Nt = {
4461
+ factory: le,
4203
4462
  aaveLendingPoolV2: E,
4204
4463
  aaveLendingPoolV3: E,
4205
- rewardDistribution: me,
4206
- poolManagerLogic: le,
4464
+ rewardDistribution: Te,
4465
+ poolManagerLogic: ce,
4207
4466
  erc20: ae,
4208
- poolLogic: ue,
4209
- flatcoinPointsModule: ce,
4210
- easySwapperV2: be,
4211
- limitOrder: fe,
4212
- ondoPriceOracle: _e
4213
- }, Ct = "Gas estimate error occurred", Pt = "See console logs to report error details.", Lt = "Missing simulation params", xt = "Simulation timeout", Ae = "swap_data_deposit_error", De = "swap_data_withdraw_error", Ee = "SwapFailed", b = {
4467
+ poolLogic: me,
4468
+ flatcoinPointsModule: be,
4469
+ easySwapperV2: fe,
4470
+ limitOrder: De,
4471
+ ondoPriceOracle: Ee,
4472
+ hyperliquidWithdrawalManager: Ae
4473
+ }, xt = "Gas estimate error occurred", Wt = "See console logs to report error details.", Ut = "Missing simulation params", Bt = "Simulation timeout", Ie = "swap_data_deposit_error", Se = "swap_data_withdraw_error", we = "SwapFailed", b = {
4214
4474
  title: "Low Slippage",
4215
4475
  hint: "Please increase slippage tolerance and try again."
4216
- }, Ie = {
4476
+ }, Re = {
4217
4477
  "invalid liquidityMinted": b,
4218
4478
  "high withdraw slippage": b,
4219
4479
  "high deposit slippage": b,
4220
4480
  "high swap slippage": b,
4221
4481
  InsufficientAmountReceived: b,
4222
- [Ee]: {
4482
+ [we]: {
4223
4483
  title: "Oh no we couldn’t swap the assets",
4224
4484
  hint: "Don’t worry your assets are still in your wallet."
4225
4485
  },
@@ -4227,11 +4487,11 @@ const E = [
4227
4487
  title: "Single Asset Withdrawal not available",
4228
4488
  hint: "Please use All Assets option."
4229
4489
  },
4230
- [Ae]: {
4490
+ [Ie]: {
4231
4491
  title: "Oh no we couldn’t swap the assets",
4232
4492
  hint: "Don’t worry your assets are still in your wallet."
4233
4493
  },
4234
- [De]: {
4494
+ [Se]: {
4235
4495
  title: "Oh no we couldn’t swap the assets",
4236
4496
  hint: "Don’t worry your assets are still in your wallet."
4237
4497
  },
@@ -4363,14 +4623,14 @@ const E = [
4363
4623
  title: "Maximum supply cap reached",
4364
4624
  hint: "Cannot mint such amount of vault tokens as it would exceed the maximum supply cap."
4365
4625
  }
4366
- }, Se = "Invalid limit order prices", Re = {
4626
+ }, Me = "Invalid limit order prices", he = {
4367
4627
  InvalidPrices: {
4368
- title: Se
4628
+ title: Me
4369
4629
  }
4370
- }, Nt = [
4371
- ...Object.keys(Ie),
4372
- ...Object.keys(Re)
4373
- ], e = 18, Bt = 4, z = {
4630
+ }, Ht = [
4631
+ ...Object.keys(Re),
4632
+ ...Object.keys(he)
4633
+ ], e = 18, Ft = 4, K = {
4374
4634
  address: "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
4375
4635
  symbol: "USDCe",
4376
4636
  decimals: 6,
@@ -4390,57 +4650,57 @@ const E = [
4390
4650
  symbol: "WBTC",
4391
4651
  decimals: 8,
4392
4652
  value: ""
4393
- }, Ut = {
4653
+ }, kt = {
4394
4654
  address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
4395
4655
  symbol: "tBTC",
4396
4656
  decimals: e,
4397
4657
  value: ""
4398
- }, Wt = {
4658
+ }, Vt = {
4399
4659
  address: "0x5979D7b546E38E414F7E9822514be443A4800529",
4400
4660
  symbol: "wstETH",
4401
4661
  decimals: e,
4402
4662
  value: ""
4403
- }, Ft = {
4663
+ }, Yt = {
4404
4664
  address: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
4405
4665
  symbol: "USDT",
4406
4666
  decimals: 6,
4407
4667
  value: ""
4408
- }, kt = {
4668
+ }, Gt = {
4409
4669
  address: "0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",
4410
4670
  symbol: "SOL",
4411
4671
  decimals: 9,
4412
4672
  value: ""
4413
- }, Vt = {
4673
+ }, qt = {
4414
4674
  address: "0xa9004a5421372e1d83fb1f85b0fc986c912f91f3",
4415
4675
  symbol: "WBNB",
4416
4676
  decimals: e,
4417
4677
  value: ""
4418
- }, Ht = {
4678
+ }, Kt = {
4419
4679
  address: "0xf97f4df75117a78c1a5a0dbb814af92458539fb4",
4420
4680
  symbol: "LINK",
4421
4681
  decimals: e,
4422
4682
  value: ""
4423
- }, Me = {
4683
+ }, ge = {
4424
4684
  address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
4425
4685
  symbol: "USDC",
4426
4686
  decimals: 6,
4427
4687
  value: ""
4428
- }, Yt = {
4688
+ }, zt = {
4429
4689
  address: "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca",
4430
4690
  symbol: "USDbC",
4431
4691
  decimals: 6,
4432
4692
  value: ""
4433
- }, q = {
4693
+ }, z = {
4434
4694
  address: "0x4200000000000000000000000000000000000006",
4435
4695
  symbol: "WETH",
4436
4696
  decimals: e,
4437
4697
  value: ""
4438
- }, Gt = {
4698
+ }, Xt = {
4439
4699
  address: "0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22",
4440
4700
  symbol: "cbETH",
4441
4701
  decimals: e,
4442
4702
  value: ""
4443
- }, we = {
4703
+ }, Oe = {
4444
4704
  address: "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
4445
4705
  symbol: "cbBTC",
4446
4706
  decimals: 8,
@@ -4450,12 +4710,12 @@ const E = [
4450
4710
  symbol: "rETH",
4451
4711
  decimals: e,
4452
4712
  value: ""
4453
- }, Kt = {
4713
+ }, Qt = {
4454
4714
  address: "0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b",
4455
4715
  symbol: "tBTC",
4456
4716
  decimals: e,
4457
4717
  value: ""
4458
- }, zt = {
4718
+ }, Zt = {
4459
4719
  address: "0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452",
4460
4720
  symbol: "wstETH",
4461
4721
  decimals: e,
@@ -4465,97 +4725,97 @@ const E = [
4465
4725
  symbol: "USDCe",
4466
4726
  decimals: 6,
4467
4727
  value: ""
4468
- }, Oe = {
4728
+ }, ve = {
4469
4729
  address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
4470
4730
  symbol: "USDC",
4471
4731
  decimals: 6,
4472
4732
  value: ""
4473
- }, he = {
4733
+ }, Pe = {
4474
4734
  address: "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
4475
4735
  symbol: "USDT",
4476
4736
  decimals: 6,
4477
4737
  value: ""
4478
- }, Z = {
4738
+ }, Q = {
4479
4739
  address: "0x4200000000000000000000000000000000000006",
4480
4740
  symbol: "WETH",
4481
4741
  decimals: e,
4482
4742
  value: ""
4483
- }, qt = {
4743
+ }, $t = {
4484
4744
  address: "0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9",
4485
4745
  symbol: "sUSD",
4486
4746
  decimals: e,
4487
4747
  value: ""
4488
- }, ge = {
4748
+ }, Ce = {
4489
4749
  address: "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
4490
4750
  symbol: "DAI",
4491
4751
  decimals: e,
4492
4752
  value: ""
4493
- }, f = {
4753
+ }, _ = {
4494
4754
  address: "0x68f180fcce6836688e9084f035309e29bf0a2095",
4495
4755
  symbol: "WBTC",
4496
4756
  decimals: 8,
4497
4757
  value: ""
4498
- }, Xt = {
4758
+ }, jt = {
4499
4759
  address: "0xe405de8f52ba7559f9df3c368500b6e6ae6cee49",
4500
4760
  symbol: "sETH",
4501
4761
  decimals: e,
4502
4762
  value: ""
4503
- }, Zt = {
4763
+ }, Jt = {
4504
4764
  address: "0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6",
4505
4765
  symbol: "LINK",
4506
4766
  decimals: e,
4507
4767
  value: ""
4508
- }, $t = {
4768
+ }, ea = {
4509
4769
  address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
4510
4770
  symbol: "tBTC",
4511
4771
  decimals: e,
4512
4772
  value: ""
4513
- }, jt = {
4773
+ }, ta = {
4514
4774
  address: "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb",
4515
4775
  symbol: "wstETH",
4516
4776
  decimals: e,
4517
4777
  value: ""
4518
- }, $ = {
4778
+ }, Z = {
4519
4779
  address: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
4520
4780
  symbol: "WETH",
4521
4781
  decimals: e,
4522
4782
  value: ""
4523
- }, j = {
4783
+ }, $ = {
4524
4784
  address: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
4525
4785
  symbol: "USDCe",
4526
4786
  decimals: 6,
4527
4787
  value: ""
4528
- }, ve = {
4788
+ }, Le = {
4529
4789
  address: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
4530
4790
  symbol: "USDC",
4531
4791
  decimals: 6,
4532
4792
  value: ""
4533
- }, Qt = {
4793
+ }, aa = {
4534
4794
  address: "0x553d3d295e0f695b9228246232edf400ed3560b5",
4535
4795
  symbol: "PAXG",
4536
4796
  decimals: e,
4537
4797
  value: ""
4538
- }, Q = {
4798
+ }, j = {
4539
4799
  address: "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",
4540
4800
  symbol: "WBTC",
4541
4801
  decimals: 8,
4542
4802
  value: ""
4543
- }, Ce = {
4803
+ }, Ne = {
4544
4804
  address: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
4545
4805
  symbol: "WPOL",
4546
4806
  decimals: e,
4547
4807
  value: ""
4548
- }, Pe = {
4808
+ }, xe = {
4549
4809
  address: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
4550
4810
  symbol: "USDT",
4551
4811
  decimals: 6,
4552
4812
  value: ""
4553
- }, Le = {
4813
+ }, We = {
4554
4814
  address: "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
4555
4815
  symbol: "DAI",
4556
4816
  decimals: e,
4557
4817
  value: ""
4558
- }, Jt = {
4818
+ }, na = {
4559
4819
  address: "0x236aa50979d5f3de3bd1eeb40e81137f22ab794b",
4560
4820
  symbol: "tBTC",
4561
4821
  decimals: e,
@@ -4565,7 +4825,7 @@ const E = [
4565
4825
  symbol: "WETH",
4566
4826
  decimals: e,
4567
4827
  value: ""
4568
- }, xe = {
4828
+ }, Ue = {
4569
4829
  address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
4570
4830
  symbol: "USDC",
4571
4831
  decimals: 6,
@@ -4575,112 +4835,112 @@ const E = [
4575
4835
  symbol: "WBTC",
4576
4836
  decimals: 8,
4577
4837
  value: ""
4578
- }, Ne = {
4838
+ }, Be = {
4579
4839
  address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
4580
4840
  symbol: "USDT",
4581
4841
  decimals: 6,
4582
4842
  value: ""
4583
- }, ea = {
4843
+ }, sa = {
4584
4844
  address: "0x68749665ff8d2d112fa859aa293f07a622782f38",
4585
4845
  symbol: "XAUt",
4586
4846
  decimals: 6,
4587
4847
  value: ""
4588
- }, Be = {
4848
+ }, He = {
4589
4849
  address: "0xb88339cb7199b77e23db6e890353e22632ba630f",
4590
4850
  symbol: "USDC",
4591
4851
  decimals: 6,
4592
4852
  value: ""
4593
- }, ta = {
4853
+ }, ia = {
4594
4854
  address: I,
4595
4855
  symbol: "all",
4596
4856
  decimals: e,
4597
4857
  value: ""
4598
- }, aa = {
4599
- [z.address.toLowerCase()]: "USDCe",
4858
+ }, ra = {
4859
+ [K.address.toLowerCase()]: "USDCe",
4600
4860
  [X.address.toLowerCase()]: "USDCe",
4601
- [j.address.toLowerCase()]: "USDCe"
4602
- }, na = {
4603
- [a.id]: J,
4604
- [t.id]: Z,
4605
- [n.id]: q,
4606
- [i.id]: $,
4861
+ [$.address.toLowerCase()]: "USDCe"
4862
+ }, pa = {
4863
+ [t.id]: J,
4864
+ [a.id]: Q,
4865
+ [n.id]: z,
4866
+ [i.id]: Z,
4607
4867
  [s.id]: A
4608
- }, sa = {
4609
- [t.id]: f,
4610
- [n.id]: we,
4611
- [i.id]: Q,
4868
+ }, da = {
4869
+ [a.id]: _,
4870
+ [n.id]: Oe,
4871
+ [i.id]: j,
4612
4872
  [s.id]: c,
4613
- [a.id]: ee
4614
- }, ia = {
4615
- [t.id]: {
4616
- WETH: Z,
4617
- USDC: Oe,
4618
- WBTC: f,
4873
+ [t.id]: ee
4874
+ }, oa = {
4875
+ [a.id]: {
4876
+ WETH: Q,
4877
+ USDC: ve,
4878
+ WBTC: _,
4619
4879
  USDCe: X,
4620
- USDT: he,
4621
- DAI: ge
4880
+ USDT: Pe,
4881
+ DAI: Ce
4622
4882
  },
4623
4883
  [i.id]: {
4624
- WMATIC: Ce,
4625
- WETH: $,
4626
- USDC: ve,
4627
- WBTC: Q,
4628
- USDCe: j,
4629
- USDT: Pe,
4630
- DAI: Le
4884
+ WMATIC: Ne,
4885
+ WETH: Z,
4886
+ USDC: Le,
4887
+ WBTC: j,
4888
+ USDCe: $,
4889
+ USDT: xe,
4890
+ DAI: We
4631
4891
  },
4632
4892
  [s.id]: {
4633
4893
  WETH: A,
4634
4894
  USDC: o,
4635
4895
  WBTC: c,
4636
- USDCe: z
4896
+ USDCe: K
4637
4897
  },
4638
4898
  [n.id]: {
4639
- WETH: q,
4640
- USDC: Me
4899
+ WETH: z,
4900
+ USDC: ge
4641
4901
  },
4642
- [a.id]: {
4902
+ [t.id]: {
4643
4903
  WETH: J,
4644
- USDC: xe,
4904
+ USDC: Ue,
4645
4905
  WBTC: ee,
4646
- USDT: Ne
4906
+ USDT: Be
4647
4907
  }
4648
- }, pa = {
4649
- [p.id]: Be
4650
- }, ra = "https://hermes.pyth.network", da = "https://flat.money/flatcoin", oa = "https://v1.flat.money/flatcoin", _ = {
4908
+ }, ya = {
4909
+ [p.id]: He
4910
+ }, ua = "https://hermes.pyth.network", la = "https://flat.money/flatcoin", ma = "https://v1.flat.money/flatcoin", f = {
4651
4911
  RETH_BASE: "0xdb0cd65dcc7fe07003ce1201f91e1f966fa95768",
4652
4912
  WBTC_OPTIMISM: "0x6d857e9d24a7566bb72a3fb0847a3e0e4e1c2879",
4653
4913
  WBTC_ARBITRUM: "0xb1353d51991e79fefd4bfdba2a03e9f0232814a6"
4654
- }, ya = Object.values(
4655
- _
4656
- ), ua = {
4657
- [_.RETH_BASE]: {
4914
+ }, ca = Object.values(
4915
+ f
4916
+ ), Ta = {
4917
+ [f.RETH_BASE]: {
4658
4918
  symbol: D.symbol,
4659
4919
  decimals: D.decimals,
4660
4920
  address: D.address
4661
4921
  },
4662
- [_.WBTC_OPTIMISM]: {
4663
- symbol: f.symbol,
4664
- decimals: f.decimals,
4665
- address: f.address
4922
+ [f.WBTC_OPTIMISM]: {
4923
+ symbol: _.symbol,
4924
+ decimals: _.decimals,
4925
+ address: _.address
4666
4926
  },
4667
- [_.WBTC_ARBITRUM]: {
4927
+ [f.WBTC_ARBITRUM]: {
4668
4928
  symbol: c.symbol,
4669
4929
  decimals: c.decimals,
4670
4930
  address: c.address
4671
4931
  }
4672
- }, Ue = "0xb95fb324b8a2faf8ec4f76e3df46c718402736e2", la = [
4673
- Ue,
4932
+ }, Fe = "0xb95fb324b8a2faf8ec4f76e3df46c718402736e2", ba = [
4933
+ Fe,
4674
4934
  "0x357cb23571ef7a3d6189b7facfc361ea71f7cab5"
4675
4935
  // WBTC_OPTIMISM
4676
- ], ma = 500n, ca = {
4936
+ ], _a = 500n, fa = {
4677
4937
  [n.id]: 2e3,
4678
- [a.id]: 2e3,
4679
4938
  [t.id]: 2e3,
4939
+ [a.id]: 2e3,
4680
4940
  [s.id]: 500,
4681
4941
  [i.id]: 500,
4682
- [p.id]: 500
4683
- }, Ta = 6e3, ba = 4e4, fa = {
4942
+ [p.id]: 2e3
4943
+ }, Aa = 6e3, Da = 4e4, Ea = 0.5, Ia = 6e3, Sa = 8e3, wa = {
4684
4944
  DEPOSIT: "deposit",
4685
4945
  DEPOSIT_CUSTOM: "depositWithCustomCooldown",
4686
4946
  NATIVE: "nativeDeposit",
@@ -4689,12 +4949,14 @@ const E = [
4689
4949
  ZAP_NATIVE_DEPOSIT_CUSTOM: "zapNativeDepositWithCustomCooldown",
4690
4950
  ZAP_DEPOSIT: "zapDeposit",
4691
4951
  ZAP_DEPOSIT_CUSTOM: "zapDepositWithCustomCooldown"
4692
- }, _a = [
4952
+ }, Ra = [
4693
4953
  "multi_withdraw",
4694
4954
  "swap",
4695
4955
  "claim",
4696
- "single_withdraw_and_claim"
4697
- ], r = {
4956
+ "single_withdraw_and_claim",
4957
+ "hyperliquid_settle_withdraw",
4958
+ "hyperliquid_cancel_withdraw"
4959
+ ], d = {
4698
4960
  SOL_ARBITRUM: "0x09400d9db990d5ed3f35d7be61dfaeb900af03c9",
4699
4961
  BTC_ARBITRUM: "0x47c031236e19d024b42f8ae6780e44a573170703",
4700
4962
  WETH_WETH_ARBITRUM: "0x70d95587d40a2caf56bd97485ab3eec10bee6336",
@@ -4710,166 +4972,173 @@ const E = [
4710
4972
  PUMP_ARBITRUM: "0x4c0bb704529fa49a26bd854802d70206982c6f1b",
4711
4973
  GOLD_ARBITRUM: "0xeb28ad1a2e497f4acc5d9b87e7b496623c93061e",
4712
4974
  AAVE_ARBITRUM: "0x1cbba6346f110c8a5ea739ef2d1eb182990e4eb2"
4713
- }, Aa = Object.values(
4714
- r
4715
- ), Da = {
4716
- [r.SOL_ARBITRUM]: o,
4717
- [r.BTC_ARBITRUM]: c,
4718
- [r.WETH_WETH_ARBITRUM]: A,
4719
- [r.WETH_USDC_ARBITRUM]: A,
4720
- [r.SUI_ARBITRUM]: o,
4721
- [r.DOGE_ARBITRUM]: o,
4722
- [r.XRP_ARBITRUM]: o,
4723
- [r.CRV_ARBITRUM]: o,
4724
- [r.HYPE_ARBITRUM]: o,
4725
- [r.BNB_ARBITRUM]: o,
4726
- [r.LINK_ARBITRUM]: o,
4727
- [r.PUMP_ARBITRUM]: o,
4728
- [r.BNB_WBTC_USDC_ARBITRUM]: o,
4729
- [r.GOLD_ARBITRUM]: o,
4730
- [r.AAVE_ARBITRUM]: o
4731
- }, Ea = {
4975
+ }, Ma = Object.values(
4976
+ d
4977
+ ), ha = {
4978
+ [d.SOL_ARBITRUM]: o,
4979
+ [d.BTC_ARBITRUM]: c,
4980
+ [d.WETH_WETH_ARBITRUM]: A,
4981
+ [d.WETH_USDC_ARBITRUM]: A,
4982
+ [d.SUI_ARBITRUM]: o,
4983
+ [d.DOGE_ARBITRUM]: o,
4984
+ [d.XRP_ARBITRUM]: o,
4985
+ [d.CRV_ARBITRUM]: o,
4986
+ [d.HYPE_ARBITRUM]: o,
4987
+ [d.BNB_ARBITRUM]: o,
4988
+ [d.LINK_ARBITRUM]: o,
4989
+ [d.PUMP_ARBITRUM]: o,
4990
+ [d.BNB_WBTC_USDC_ARBITRUM]: o,
4991
+ [d.GOLD_ARBITRUM]: o,
4992
+ [d.AAVE_ARBITRUM]: o
4993
+ }, ga = {
4732
4994
  "0x9a916e55f5b67226734cd7b465d51bce1d11a89a": o
4733
4995
  // USDmny Arbitrum
4734
4996
  };
4735
4997
  export {
4736
- ot as $,
4737
- ft as A,
4738
- aa as B,
4739
- ct as C,
4998
+ lt as $,
4999
+ Dt as A,
5000
+ ra as B,
5001
+ _t as C,
4740
5002
  se as D,
4741
- pt as E,
4742
- st as F,
4743
- it as G,
4744
- Ze as H,
4745
- qe as I,
4746
- Ye as J,
4747
- ze as K,
4748
- ia as L,
4749
- ua as M,
4750
- ya as N,
4751
- la as O,
4752
- da as P,
4753
- Ue as Q,
4754
- oa as R,
4755
- Ct as S,
4756
- dt as T,
4757
- Aa as U,
4758
- r as V,
4759
- Da as W,
4760
- Ea as X,
4761
- Se as Y,
4762
- Re as Z,
4763
- Et as _,
5003
+ ot as E,
5004
+ pt as F,
5005
+ dt as G,
5006
+ je as H,
5007
+ Ze as I,
5008
+ Ke as J,
5009
+ Qe as K,
5010
+ oa as L,
5011
+ Ta as M,
5012
+ ca as N,
5013
+ ba as O,
5014
+ la as P,
5015
+ Fe as Q,
5016
+ ma as R,
5017
+ xt as S,
5018
+ ut as T,
5019
+ Ma as U,
5020
+ d as V,
5021
+ ha as W,
5022
+ ga as X,
5023
+ Me as Y,
5024
+ he as Z,
5025
+ wt as _,
4764
5026
  ne as a,
4765
- $t as a$,
4766
- bt as a0,
4767
- ta as a1,
4768
- Ve as a2,
4769
- rt as a3,
4770
- Ta as a4,
4771
- ba as a5,
4772
- pa as a6,
4773
- ra as a7,
4774
- Ke as a8,
4775
- xt as a9,
4776
- ye as aA,
4777
- ue as aB,
4778
- be as aC,
5027
+ aa as a$,
5028
+ At as a0,
5029
+ ia as a1,
5030
+ Ge as a2,
5031
+ yt as a3,
5032
+ Ia as a4,
5033
+ Aa as a5,
5034
+ Sa as a6,
5035
+ Da as a7,
5036
+ Ea as a8,
5037
+ ya as a9,
5038
+ ve as aA,
5039
+ ge as aB,
5040
+ o as aC,
4779
5041
  le as aD,
4780
- ce as aE,
4781
- St as aF,
4782
- wt as aG,
4783
- Ne as aH,
4784
- fe as aI,
4785
- Bt as aJ,
4786
- E as aK,
4787
- z as aL,
4788
- X as aM,
4789
- j as aN,
4790
- we as aO,
4791
- Gt as aP,
4792
- ge as aQ,
4793
- Le as aR,
4794
- Ht as aS,
4795
- Zt as aT,
4796
- Qt as aU,
4797
- D as aV,
4798
- me as aW,
4799
- Xt as aX,
4800
- qt as aY,
4801
- Ut as aZ,
4802
- Kt as a_,
4803
- at as aa,
4804
- Dt as ab,
4805
- Ee as ac,
4806
- lt as ad,
4807
- It as ae,
4808
- d as af,
4809
- Ie as ag,
4810
- Nt as ah,
4811
- ca as ai,
4812
- sa as aj,
4813
- na as ak,
4814
- De as al,
4815
- vt as am,
4816
- gt as an,
4817
- I as ao,
4818
- Ot as ap,
4819
- ht as aq,
4820
- e as ar,
4821
- Rt as as,
4822
- Mt as at,
4823
- Be as au,
4824
- xe as av,
4825
- ve as aw,
4826
- Oe as ax,
4827
- Me as ay,
4828
- o as az,
4829
- Tt as b,
4830
- Jt as b0,
4831
- Yt as b1,
4832
- Ft as b2,
4833
- he as b3,
4834
- Pe as b4,
4835
- Vt as b5,
4836
- c as b6,
4837
- ee as b7,
4838
- f as b8,
4839
- Q as b9,
4840
- A as ba,
4841
- q as bb,
4842
- J as bc,
4843
- Z as bd,
4844
- $ as be,
4845
- Ce as bf,
4846
- kt as bg,
4847
- Wt as bh,
4848
- zt as bi,
4849
- jt as bj,
4850
- ea as bk,
4851
- _a as c,
4852
- At as d,
4853
- _t as e,
4854
- $e as f,
5042
+ me as aE,
5043
+ fe as aF,
5044
+ ce as aG,
5045
+ be as aH,
5046
+ Ee as aI,
5047
+ pe as aJ,
5048
+ Mt as aK,
5049
+ ht as aL,
5050
+ vt as aM,
5051
+ Be as aN,
5052
+ De as aO,
5053
+ Ae as aP,
5054
+ Ft as aQ,
5055
+ E as aR,
5056
+ K as aS,
5057
+ X as aT,
5058
+ $ as aU,
5059
+ Oe as aV,
5060
+ Xt as aW,
5061
+ Ce as aX,
5062
+ We as aY,
5063
+ Kt as aZ,
5064
+ Jt as a_,
5065
+ ua as aa,
5066
+ Xe as ab,
5067
+ Bt as ac,
5068
+ it as ad,
5069
+ St as ae,
5070
+ we as af,
5071
+ Tt as ag,
5072
+ Rt as ah,
5073
+ r as ai,
5074
+ Re as aj,
5075
+ Ht as ak,
5076
+ fa as al,
5077
+ da as am,
5078
+ pa as an,
5079
+ Se as ao,
5080
+ Nt as ap,
5081
+ Lt as aq,
5082
+ I as ar,
5083
+ Pt as as,
5084
+ Ct as at,
5085
+ e as au,
5086
+ gt as av,
5087
+ Ot as aw,
5088
+ He as ax,
5089
+ Ue as ay,
5090
+ Le as az,
5091
+ ft as b,
5092
+ D as b0,
5093
+ Te as b1,
5094
+ jt as b2,
5095
+ $t as b3,
5096
+ kt as b4,
5097
+ Qt as b5,
5098
+ ea as b6,
5099
+ na as b7,
5100
+ zt as b8,
5101
+ Yt as b9,
5102
+ Pe as ba,
5103
+ xe as bb,
5104
+ qt as bc,
5105
+ c as bd,
5106
+ ee as be,
5107
+ _ as bf,
5108
+ j as bg,
5109
+ A as bh,
5110
+ z as bi,
5111
+ J as bj,
5112
+ Q as bk,
5113
+ Z as bl,
5114
+ Ne as bm,
5115
+ Gt as bn,
5116
+ Vt as bo,
5117
+ Zt as bp,
5118
+ ta as bq,
5119
+ sa as br,
5120
+ Ra as c,
5121
+ It as d,
5122
+ Et as e,
5123
+ Je as f,
4855
5124
  ie as g,
4856
- tt as h,
4857
- Pt as i,
4858
- Xe as j,
5125
+ st as h,
5126
+ Wt as i,
5127
+ $e as j,
4859
5128
  m as k,
4860
- nt as l,
4861
- mt as m,
4862
- Qe as n,
4863
- ma as o,
4864
- Ge as p,
5129
+ rt as l,
5130
+ bt as m,
5131
+ tt as n,
5132
+ _a as o,
5133
+ ze as p,
4865
5134
  l as q,
4866
- yt as r,
4867
- Je as s,
4868
- Lt as t,
4869
- et as u,
4870
- He as v,
4871
- ut as w,
4872
- je as x,
4873
- Ae as y,
4874
- fa as z
5135
+ mt as r,
5136
+ at as s,
5137
+ Ut as t,
5138
+ nt as u,
5139
+ qe as v,
5140
+ ct as w,
5141
+ et as x,
5142
+ Ie as y,
5143
+ wa as z
4875
5144
  };