@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
package/const.js CHANGED
@@ -1,94 +1,101 @@
1
- import { B as A, C as T, L as S, O as a, a as I } from "./geoblocking-NkujbQRm.js";
2
- import { A as L, a as R, B as N, C as s, b as D, c as M, d as P, e as C, D as U, f as F, g as G, h as W, i as Y, j as H, k as V, l as B, m as K, n as r, o, p as e, q as t, r as m, s as X, t as p, u as i, v as n, w as c, x as d, y as b, E as f, z as x, F as g, G as h, H as l, I as y, J as j, K as k, L as u, M as v, N as Q, O as Z, P as q, Q as w, R as z, S as J, T as $, U as __, V as E_, W as A_, X as T_, Y as S_, Z as a_, _ as I_, $ as O_, a0 as L_, a1 as R_, a2 as N_, a3 as s_, a4 as D_, a5 as M_, a6 as P_, a7 as C_, a8 as U_, a9 as F_, aa as G_, ab as W_, ac as Y_, ad as H_, ae as V_, af as B_, ag as K_, ah as r_, ai as o_, aj as e_, ak as t_, al as m_, am as X_, an as p_ } from "./gmx-DQ-wSifY.js";
3
- import { arbitrum as n_, base as c_, hyperEvm as d_, mainnet as b_, optimism as f_, polygon as x_ } from "wagmi/chains";
1
+ import { B as A, C as T, H as I, a, b as S, c as O, L as R, O as L, d as N } from "./geoblocking-C4bMDd1o.js";
2
+ import { A as s, a as M, B as P, C, b as U, c as F, d as W, e as H, D as Y, f as G, g as V, h as B, i as K, j as r, k as t, l as e, m as o, n as i, o as p, p as X, q as m, r as d, s as n, t as c, u as b, v as f, w as l, x, y as Q, E as h, z as y, F as g, G as q, H as u, I as j, J as k, K as v, L as w, M as Z, N as z, O as J, P as $, Q as __, R as E_, S as A_, T as T_, U as I_, V as a_, W as S_, X as O_, Y as R_, Z as L_, _ as N_, $ as D_, a0 as s_, a1 as M_, a2 as P_, a3 as C_, a4 as U_, a5 as F_, a6 as W_, a7 as H_, a8 as Y_, a9 as G_, aa as V_, ab as B_, ac as K_, ad as r_, ae as t_, af as e_, ag as o_, ah as i_, ai as p_, aj as X_, ak as m_, al as d_, am as n_, an as c_, ao as b_, ap as f_, aq as l_ } from "./gmx-D2b-KeY_.js";
3
+ import { arbitrum as Q_, base as h_, hyperEvm as y_, mainnet as g_, optimism as q_, polygon as u_ } from "wagmi/chains";
4
4
  export {
5
- L as ALCHEMY_RPC_URL_MAP,
6
- R as AddressZero,
5
+ s as ALCHEMY_RPC_URL_MAP,
6
+ M as AddressZero,
7
7
  A as BLOCKED_COUNTRY_CODES_MAP,
8
- N as BRIDGED_TOKENS_SYMBOLS,
9
- s as CHAIN_MAP,
10
- D as CHAIN_NATIVE_TOKENS,
11
- M as COMPLETE_WITHDRAW_ACTIONS,
8
+ P as BRIDGED_TOKENS_SYMBOLS,
9
+ C as CHAIN_MAP,
10
+ U as CHAIN_NATIVE_TOKENS,
11
+ F as COMPLETE_WITHDRAW_ACTIONS,
12
12
  T as COVERED_CALL_VAULT_ADDRESSES,
13
- P as CURRENCY_DECIMALS_MAP,
14
- C as CURRENCY_SYMBOL_MAP,
15
- U as DEFAULT_DEBOUNCE_TIME,
16
- F as DEFAULT_DEPOSIT_METHOD,
17
- G as DEFAULT_DEPOSIT_SLIPPAGE,
18
- W as DEFAULT_DEPOSIT_SLIPPAGE_SCALE,
19
- Y as DEFAULT_ERROR_MESSAGE,
20
- H as DEFAULT_LOCK_TIME,
21
- V as DEFAULT_MAX_GAS_LIMIT,
22
- B as DEFAULT_MULTI_ASSET_WITHDRAW_METHOD,
23
- K as DEFAULT_NOTIFICATION_DURATION_MS,
24
- r as DEFAULT_NO_SWAP_MIN_DEPOSIT_AMOUNT_GAP,
25
- o as DEFAULT_ONDO_WITHDRAWAL_CONTRACT_SLIPPAGE,
26
- e as DEFAULT_POLLING_INTERVAL,
27
- t as DEFAULT_PRECISION,
28
- m as DEFAULT_PROMISE_TIMEOUT_MS,
29
- X as DEFAULT_RECEIVED_VALUE_GAP,
30
- p as DEFAULT_SIMULATION_ERROR,
31
- i as DEFAULT_SWAP_TRANSACTION_SLIPPAGE,
32
- n as DEFAULT_VAULT_TOKEN_PRICE,
33
- c as DEFAULT_VISIBLE_ASSETS_LIMIT,
34
- d as DEFAULT_WITHDRAW_SLIPPAGE,
35
- b as DEPOSIT_SWAP_DATA_ERROR,
36
- f as EASY_SWAPPER_V2_COMPLETE_WITHDRAW_METHOD,
37
- x as EASY_SWAPPER_V2_DEPOSIT_METHODS,
13
+ W as CURRENCY_DECIMALS_MAP,
14
+ H as CURRENCY_SYMBOL_MAP,
15
+ Y as DEFAULT_DEBOUNCE_TIME,
16
+ G as DEFAULT_DEPOSIT_METHOD,
17
+ V as DEFAULT_DEPOSIT_SLIPPAGE,
18
+ B as DEFAULT_DEPOSIT_SLIPPAGE_SCALE,
19
+ K as DEFAULT_ERROR_MESSAGE,
20
+ r as DEFAULT_LOCK_TIME,
21
+ t as DEFAULT_MAX_GAS_LIMIT,
22
+ e as DEFAULT_MULTI_ASSET_WITHDRAW_METHOD,
23
+ o as DEFAULT_NOTIFICATION_DURATION_MS,
24
+ i as DEFAULT_NO_SWAP_MIN_DEPOSIT_AMOUNT_GAP,
25
+ p as DEFAULT_ONDO_WITHDRAWAL_CONTRACT_SLIPPAGE,
26
+ X as DEFAULT_POLLING_INTERVAL,
27
+ m as DEFAULT_PRECISION,
28
+ d as DEFAULT_PROMISE_TIMEOUT_MS,
29
+ n as DEFAULT_RECEIVED_VALUE_GAP,
30
+ c as DEFAULT_SIMULATION_ERROR,
31
+ b as DEFAULT_SWAP_TRANSACTION_SLIPPAGE,
32
+ f as DEFAULT_VAULT_TOKEN_PRICE,
33
+ l as DEFAULT_VISIBLE_ASSETS_LIMIT,
34
+ x as DEFAULT_WITHDRAW_SLIPPAGE,
35
+ Q as DEPOSIT_SWAP_DATA_ERROR,
36
+ h as EASY_SWAPPER_V2_COMPLETE_WITHDRAW_METHOD,
37
+ y as EASY_SWAPPER_V2_DEPOSIT_METHODS,
38
38
  g as EASY_SWAPPER_V2_INITIATE_WITHDRAW_METHOD,
39
- h as EASY_SWAPPER_V2_UNROLL_AND_CLAIM_METHOD,
40
- l as EMPTY_POOL_CONFIG,
41
- y as EXTENDED_DEBOUNCE_TIME,
42
- j as EXTENDED_POLLING_INTERVAL,
43
- k as EXTREMELY_SHORT_POLLING_INTERVAL,
44
- u as FALLBACK_ASSETS_MAP,
45
- v as FLAT_MONEY_COLLATERAL_MAP,
46
- Q as FLAT_MONEY_LEVERAGED_ASSET_ADDRESSES,
47
- Z as FLAT_MONEY_UNIT_ADDRESSES,
48
- q as FLAT_MONEY_UNIT_LINK,
49
- w as FLAT_MONEY_V1_UNIT_ADDRESS,
50
- z as FLAT_MONEY_V1_UNIT_LINK,
51
- J as GAS_ESTIMATION_ERROR,
52
- $ as GAS_LIMIT_BUFFER_COEFF,
53
- __ as GMX_MARKET_ASSETS,
54
- E_ as GMX_MARKET_ASSETS_MAP,
55
- A_ as GMX_WITHDRAW_ASSET_MAP,
56
- T_ as GMX_WITHDRAW_ASSET_MAP_BY_VAULT_ADDRESS,
57
- S_ as INVALID_PRICES_LIMIT_ORDER_TITLE,
58
- a_ as LIMIT_ORDER_TRANSACTION_ERRORS,
59
- S as LOCAL_STORAGE_KEYS,
60
- I_ as LOG_EVENT_BY_TRANSACTION_ACTION_MAP,
61
- O_ as MANAGER_FEE_DENOMINATOR,
62
- L_ as MAX_GAS_LIMIT_MAP,
63
- R_ as MULTI_ASSET_TOKEN,
64
- N_ as MaxUint256,
65
- s_ as NATIVE_TOKEN_GAS_RESERVE_UNITS,
66
- a as ONDO_ASSET_TYPE,
67
- I as ONDO_BLOCKED_COUNTRY_CODES_MAP,
68
- D_ as ONDO_PRICES_RABBY_SETTLE_DELAY,
69
- M_ as ONDO_PRICE_FRESHNESS_WINDOW_MS,
70
- P_ as ON_DEMAND_PRICING_ASSET_BY_CHAIN_MAP,
71
- C_ as PYTH_API_LINK,
72
- U_ as SHORTEN_POLLING_INTERVAL,
73
- F_ as SIMULATION_TIMEOUT_ERROR,
74
- G_ as SLIPPAGE_AUTO_SIMULATION_CANDIDATES,
75
- W_ as STABLE_TOKEN_SYMBOLS,
76
- Y_ as SWAP_FAILED_ERROR,
77
- H_ as SWAP_QUOTE_REFRESH_INTERVAL_MS,
78
- V_ as TRADING_LOG_EVENT_PARAM,
79
- B_ as TRADING_PANEL_LOG_EVENT,
80
- K_ as TRANSACTION_ERRORS,
81
- r_ as TRANSACTION_ERROR_KEYS,
82
- o_ as TRANSACTION_SETTLE_DELAY,
83
- e_ as WBTC_BY_CHAIN_ID,
84
- t_ as WETH_BY_CHAIN_ID,
85
- m_ as WITHDRAW_SWAP_DATA_ERROR,
86
- n_ as arbitrum,
87
- c_ as base,
88
- X_ as contractsAbisMap,
89
- p_ as contractsAddressesMap,
90
- d_ as hyperEvm,
91
- b_ as mainnet,
92
- f_ as optimism,
93
- x_ as polygon
39
+ q as EASY_SWAPPER_V2_UNROLL_AND_CLAIM_METHOD,
40
+ u as EMPTY_POOL_CONFIG,
41
+ j as EXTENDED_DEBOUNCE_TIME,
42
+ k as EXTENDED_POLLING_INTERVAL,
43
+ v as EXTREMELY_SHORT_POLLING_INTERVAL,
44
+ w as FALLBACK_ASSETS_MAP,
45
+ Z as FLAT_MONEY_COLLATERAL_MAP,
46
+ z as FLAT_MONEY_LEVERAGED_ASSET_ADDRESSES,
47
+ J as FLAT_MONEY_UNIT_ADDRESSES,
48
+ $ as FLAT_MONEY_UNIT_LINK,
49
+ __ as FLAT_MONEY_V1_UNIT_ADDRESS,
50
+ E_ as FLAT_MONEY_V1_UNIT_LINK,
51
+ A_ as GAS_ESTIMATION_ERROR,
52
+ T_ as GAS_LIMIT_BUFFER_COEFF,
53
+ I_ as GMX_MARKET_ASSETS,
54
+ a_ as GMX_MARKET_ASSETS_MAP,
55
+ S_ as GMX_WITHDRAW_ASSET_MAP,
56
+ O_ as GMX_WITHDRAW_ASSET_MAP_BY_VAULT_ADDRESS,
57
+ I as HYPERLIQUID_INFO_API_URL,
58
+ a as HYPERLIQUID_WITHDRAWAL_POLLING_INTERVAL,
59
+ S as HYPERLIQUID_WITHDRAWAL_TIMEOUT_MS,
60
+ O as HyperliquidWithdrawalState,
61
+ R_ as INVALID_PRICES_LIMIT_ORDER_TITLE,
62
+ L_ as LIMIT_ORDER_TRANSACTION_ERRORS,
63
+ R as LOCAL_STORAGE_KEYS,
64
+ N_ as LOG_EVENT_BY_TRANSACTION_ACTION_MAP,
65
+ D_ as MANAGER_FEE_DENOMINATOR,
66
+ s_ as MAX_GAS_LIMIT_MAP,
67
+ M_ as MULTI_ASSET_TOKEN,
68
+ P_ as MaxUint256,
69
+ C_ as NATIVE_TOKEN_GAS_RESERVE_UNITS,
70
+ L as ONDO_ASSET_TYPE,
71
+ N as ONDO_BLOCKED_COUNTRY_CODES_MAP,
72
+ U_ as ONDO_PRICES_FETCH_TIMEOUT_MS,
73
+ F_ as ONDO_PRICES_RABBY_SETTLE_DELAY,
74
+ W_ as ONDO_PRICE_CHECK_TIMEOUT_MS,
75
+ H_ as ONDO_PRICE_FRESHNESS_WINDOW_MS,
76
+ Y_ as ONDO_PRICE_MAX_DEVIATION_PERCENT,
77
+ G_ as ON_DEMAND_PRICING_ASSET_BY_CHAIN_MAP,
78
+ V_ as PYTH_API_LINK,
79
+ B_ as SHORTEN_POLLING_INTERVAL,
80
+ K_ as SIMULATION_TIMEOUT_ERROR,
81
+ r_ as SLIPPAGE_AUTO_SIMULATION_CANDIDATES,
82
+ t_ as STABLE_TOKEN_SYMBOLS,
83
+ e_ as SWAP_FAILED_ERROR,
84
+ o_ as SWAP_QUOTE_REFRESH_INTERVAL_MS,
85
+ i_ as TRADING_LOG_EVENT_PARAM,
86
+ p_ as TRADING_PANEL_LOG_EVENT,
87
+ X_ as TRANSACTION_ERRORS,
88
+ m_ as TRANSACTION_ERROR_KEYS,
89
+ d_ as TRANSACTION_SETTLE_DELAY,
90
+ n_ as WBTC_BY_CHAIN_ID,
91
+ c_ as WETH_BY_CHAIN_ID,
92
+ b_ as WITHDRAW_SWAP_DATA_ERROR,
93
+ Q_ as arbitrum,
94
+ h_ as base,
95
+ f_ as contractsAbisMap,
96
+ l_ as contractsAddressesMap,
97
+ y_ as hyperEvm,
98
+ g_ as mainnet,
99
+ q_ as optimism,
100
+ u_ as polygon
94
101
  };
@@ -0,0 +1,194 @@
1
+ export declare const DytmOfficeAssetGuardAbi: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "address";
4
+ readonly name: "_pool";
5
+ readonly type: "address";
6
+ }, {
7
+ readonly internalType: "uint256";
8
+ readonly name: "_poolTokenAmount";
9
+ readonly type: "uint256";
10
+ }];
11
+ readonly name: "previewWithdrawal";
12
+ readonly outputs: readonly [{
13
+ readonly name: "assetData";
14
+ readonly type: "tuple[]";
15
+ readonly components: readonly [{
16
+ readonly name: "asset";
17
+ readonly type: "address";
18
+ }, {
19
+ readonly name: "amount";
20
+ readonly type: "uint256";
21
+ }, {
22
+ readonly name: "assetType";
23
+ readonly type: "uint16";
24
+ }, {
25
+ readonly name: "isPool";
26
+ readonly type: "bool";
27
+ }, {
28
+ readonly name: "isDebt";
29
+ readonly type: "bool";
30
+ }, {
31
+ readonly name: "marketId";
32
+ readonly type: "uint88";
33
+ }, {
34
+ readonly name: "accountId";
35
+ readonly type: "uint256";
36
+ }, {
37
+ readonly name: "tokenId";
38
+ readonly type: "uint256";
39
+ }, {
40
+ readonly name: "debtKey";
41
+ readonly type: "uint248";
42
+ }, {
43
+ readonly name: "shares";
44
+ readonly type: "uint256";
45
+ }];
46
+ }];
47
+ readonly stateMutability: "nonpayable";
48
+ readonly type: "function";
49
+ }, {
50
+ readonly inputs: readonly [];
51
+ readonly name: "dytmWithdrawProcessor";
52
+ readonly outputs: readonly [{
53
+ readonly name: "";
54
+ readonly type: "address";
55
+ }];
56
+ readonly stateMutability: "view";
57
+ readonly type: "function";
58
+ }];
59
+ export declare const DytmOfficeAbi: readonly [{
60
+ readonly inputs: readonly [{
61
+ readonly name: "params";
62
+ readonly type: "tuple";
63
+ readonly components: readonly [{
64
+ readonly name: "account";
65
+ readonly type: "uint256";
66
+ }, {
67
+ readonly name: "tokenId";
68
+ readonly type: "uint256";
69
+ }, {
70
+ readonly name: "receiver";
71
+ readonly type: "address";
72
+ }, {
73
+ readonly name: "assets";
74
+ readonly type: "uint256";
75
+ }, {
76
+ readonly name: "shares";
77
+ readonly type: "uint256";
78
+ }, {
79
+ readonly name: "extraData";
80
+ readonly type: "bytes";
81
+ }];
82
+ }];
83
+ readonly name: "withdraw";
84
+ readonly outputs: readonly [{
85
+ readonly name: "assets";
86
+ readonly type: "uint256";
87
+ }];
88
+ readonly stateMutability: "nonpayable";
89
+ readonly type: "function";
90
+ }, {
91
+ readonly inputs: readonly [{
92
+ readonly name: "params";
93
+ readonly type: "tuple";
94
+ readonly components: readonly [{
95
+ readonly name: "account";
96
+ readonly type: "uint256";
97
+ }, {
98
+ readonly name: "key";
99
+ readonly type: "uint248";
100
+ }, {
101
+ readonly name: "withCollateralType";
102
+ readonly type: "uint8";
103
+ }, {
104
+ readonly name: "assets";
105
+ readonly type: "uint256";
106
+ }, {
107
+ readonly name: "shares";
108
+ readonly type: "uint256";
109
+ }, {
110
+ readonly name: "extraData";
111
+ readonly type: "bytes";
112
+ }];
113
+ }];
114
+ readonly name: "repay";
115
+ readonly outputs: readonly [{
116
+ readonly name: "assetsRepaid";
117
+ readonly type: "uint256";
118
+ }];
119
+ readonly stateMutability: "nonpayable";
120
+ readonly type: "function";
121
+ }];
122
+ export declare const OndoGMSwapAbi: readonly [{
123
+ readonly inputs: readonly [{
124
+ readonly name: "tokenIn";
125
+ readonly type: "address";
126
+ }, {
127
+ readonly name: "amountIn";
128
+ readonly type: "uint256";
129
+ }, {
130
+ readonly name: "tokenOut";
131
+ readonly type: "address";
132
+ }, {
133
+ readonly name: "amountOutMinimum";
134
+ readonly type: "uint256";
135
+ }, {
136
+ readonly name: "attestationSignature";
137
+ readonly type: "bytes";
138
+ }, {
139
+ readonly name: "quote";
140
+ readonly type: "tuple";
141
+ readonly components: readonly [{
142
+ readonly name: "chainId";
143
+ readonly type: "uint256";
144
+ }, {
145
+ readonly name: "attestationId";
146
+ readonly type: "uint256";
147
+ }, {
148
+ readonly name: "userId";
149
+ readonly type: "bytes32";
150
+ }, {
151
+ readonly name: "asset";
152
+ readonly type: "address";
153
+ }, {
154
+ readonly name: "price";
155
+ readonly type: "uint256";
156
+ }, {
157
+ readonly name: "quantity";
158
+ readonly type: "uint256";
159
+ }, {
160
+ readonly name: "expiration";
161
+ readonly type: "uint256";
162
+ }, {
163
+ readonly name: "side";
164
+ readonly type: "uint8";
165
+ }, {
166
+ readonly name: "additionalData";
167
+ readonly type: "bytes32";
168
+ }];
169
+ }];
170
+ readonly name: "swapExactInWithAttestation";
171
+ readonly outputs: readonly [];
172
+ readonly stateMutability: "nonpayable";
173
+ readonly type: "function";
174
+ }];
175
+ export declare const UnwindPlanAbiItem: readonly [{
176
+ readonly type: "tuple";
177
+ readonly components: readonly [{
178
+ readonly name: "actions";
179
+ readonly type: "tuple[]";
180
+ readonly components: readonly [{
181
+ readonly name: "to";
182
+ readonly type: "address";
183
+ }, {
184
+ readonly name: "data";
185
+ readonly type: "bytes";
186
+ }];
187
+ }, {
188
+ readonly name: "outputAsset";
189
+ readonly type: "address";
190
+ }, {
191
+ readonly name: "minOutputAmount";
192
+ readonly type: "uint256";
193
+ }];
194
+ }];
@@ -0,0 +1,301 @@
1
+ export declare const HyperliquidWithdrawalManagerAbi: readonly [{
2
+ readonly inputs: readonly [];
3
+ readonly name: "HyperliquidWithdrawalManager__ZeroAmount";
4
+ readonly type: "error";
5
+ }, {
6
+ readonly inputs: readonly [];
7
+ readonly name: "HyperliquidWithdrawalManager__WithdrawalAlreadyPending";
8
+ readonly type: "error";
9
+ }, {
10
+ readonly inputs: readonly [];
11
+ readonly name: "HyperliquidWithdrawalManager__InvalidPool";
12
+ readonly type: "error";
13
+ }, {
14
+ readonly inputs: readonly [];
15
+ readonly name: "HyperliquidWithdrawalManager__PoolHasNoHLIntegration";
16
+ readonly type: "error";
17
+ }, {
18
+ readonly inputs: readonly [{
19
+ readonly internalType: "enum IHyperliquidWithdrawalManager.WithdrawalState";
20
+ readonly name: "current";
21
+ readonly type: "uint8";
22
+ }, {
23
+ readonly internalType: "enum IHyperliquidWithdrawalManager.WithdrawalState";
24
+ readonly name: "expected";
25
+ readonly type: "uint8";
26
+ }];
27
+ readonly name: "HyperliquidWithdrawalManager__InvalidState";
28
+ readonly type: "error";
29
+ }, {
30
+ readonly inputs: readonly [{
31
+ readonly internalType: "uint32";
32
+ readonly name: "asset";
33
+ readonly type: "uint32";
34
+ }];
35
+ readonly name: "HyperliquidWithdrawalManager__NoPositionForAsset";
36
+ readonly type: "error";
37
+ }, {
38
+ readonly inputs: readonly [{
39
+ readonly internalType: "uint32";
40
+ readonly name: "asset";
41
+ readonly type: "uint32";
42
+ }];
43
+ readonly name: "HyperliquidWithdrawalManager__NoSpotBalanceForAsset";
44
+ readonly type: "error";
45
+ }, {
46
+ readonly inputs: readonly [{
47
+ readonly internalType: "uint32";
48
+ readonly name: "asset";
49
+ readonly type: "uint32";
50
+ }];
51
+ readonly name: "HyperliquidWithdrawalManager__SpotAssetNotSupported";
52
+ readonly type: "error";
53
+ }, {
54
+ readonly inputs: readonly [];
55
+ readonly name: "HyperliquidWithdrawalManager__NoPendingWithdrawal";
56
+ readonly type: "error";
57
+ }, {
58
+ readonly inputs: readonly [];
59
+ readonly name: "HyperliquidWithdrawalManager__TimeoutNotReached";
60
+ readonly type: "error";
61
+ }, {
62
+ readonly inputs: readonly [];
63
+ readonly name: "HyperliquidWithdrawalManager__NothingToBridge";
64
+ readonly type: "error";
65
+ }, {
66
+ readonly inputs: readonly [];
67
+ readonly name: "HyperliquidWithdrawalManager__NoSpotUsdcFreed";
68
+ readonly type: "error";
69
+ }, {
70
+ readonly inputs: readonly [];
71
+ readonly name: "HyperliquidWithdrawalManager__TooEarly";
72
+ readonly type: "error";
73
+ }, {
74
+ readonly inputs: readonly [];
75
+ readonly name: "HyperliquidWithdrawalManager__FullWithdrawalNotSupported";
76
+ readonly type: "error";
77
+ }, {
78
+ readonly inputs: readonly [];
79
+ readonly name: "HyperliquidWithdrawalManager__UnreducedPerpPosition";
80
+ readonly type: "error";
81
+ }, {
82
+ readonly inputs: readonly [];
83
+ readonly name: "HyperliquidWithdrawalManager__NoBridgeNeeded";
84
+ readonly type: "error";
85
+ }, {
86
+ readonly inputs: readonly [];
87
+ readonly name: "HyperliquidWithdrawalManager__UnsortedAssetIds";
88
+ readonly type: "error";
89
+ }, {
90
+ readonly anonymous: false;
91
+ readonly inputs: readonly [{
92
+ readonly indexed: true;
93
+ readonly internalType: "address";
94
+ readonly name: "user";
95
+ readonly type: "address";
96
+ }, {
97
+ readonly indexed: true;
98
+ readonly internalType: "address";
99
+ readonly name: "pool";
100
+ readonly type: "address";
101
+ }, {
102
+ readonly indexed: false;
103
+ readonly internalType: "uint256";
104
+ readonly name: "amount";
105
+ readonly type: "uint256";
106
+ }];
107
+ readonly name: "WithdrawalAnnounced";
108
+ readonly type: "event";
109
+ }, {
110
+ readonly anonymous: false;
111
+ readonly inputs: readonly [{
112
+ readonly indexed: true;
113
+ readonly internalType: "address";
114
+ readonly name: "user";
115
+ readonly type: "address";
116
+ }, {
117
+ readonly indexed: true;
118
+ readonly internalType: "address";
119
+ readonly name: "pool";
120
+ readonly type: "address";
121
+ }];
122
+ readonly name: "WithdrawalBridged";
123
+ readonly type: "event";
124
+ }, {
125
+ readonly anonymous: false;
126
+ readonly inputs: readonly [{
127
+ readonly indexed: true;
128
+ readonly internalType: "address";
129
+ readonly name: "user";
130
+ readonly type: "address";
131
+ }, {
132
+ readonly indexed: true;
133
+ readonly internalType: "address";
134
+ readonly name: "pool";
135
+ readonly type: "address";
136
+ }, {
137
+ readonly indexed: false;
138
+ readonly internalType: "uint256";
139
+ readonly name: "amount";
140
+ readonly type: "uint256";
141
+ }];
142
+ readonly name: "WithdrawalSettled";
143
+ readonly type: "event";
144
+ }, {
145
+ readonly anonymous: false;
146
+ readonly inputs: readonly [{
147
+ readonly indexed: true;
148
+ readonly internalType: "address";
149
+ readonly name: "user";
150
+ readonly type: "address";
151
+ }, {
152
+ readonly indexed: true;
153
+ readonly internalType: "address";
154
+ readonly name: "pool";
155
+ readonly type: "address";
156
+ }, {
157
+ readonly indexed: false;
158
+ readonly internalType: "uint256";
159
+ readonly name: "amount";
160
+ readonly type: "uint256";
161
+ }];
162
+ readonly name: "WithdrawalCancelled";
163
+ readonly type: "event";
164
+ }, {
165
+ readonly inputs: readonly [{
166
+ readonly internalType: "address";
167
+ readonly name: "pool";
168
+ readonly type: "address";
169
+ }, {
170
+ readonly internalType: "uint256";
171
+ readonly name: "tokenAmount";
172
+ readonly type: "uint256";
173
+ }, {
174
+ readonly internalType: "uint32[]";
175
+ readonly name: "perpAssetIds";
176
+ readonly type: "uint32[]";
177
+ }, {
178
+ readonly internalType: "uint32[]";
179
+ readonly name: "spotAssetIds";
180
+ readonly type: "uint32[]";
181
+ }];
182
+ readonly name: "announceAndReduce";
183
+ readonly outputs: readonly [];
184
+ readonly stateMutability: "nonpayable";
185
+ readonly type: "function";
186
+ }, {
187
+ readonly inputs: readonly [{
188
+ readonly internalType: "address";
189
+ readonly name: "pool";
190
+ readonly type: "address";
191
+ }];
192
+ readonly name: "bridge";
193
+ readonly outputs: readonly [];
194
+ readonly stateMutability: "nonpayable";
195
+ readonly type: "function";
196
+ }, {
197
+ readonly inputs: readonly [{
198
+ readonly internalType: "address";
199
+ readonly name: "pool";
200
+ readonly type: "address";
201
+ }];
202
+ readonly name: "settle";
203
+ readonly outputs: readonly [];
204
+ readonly stateMutability: "nonpayable";
205
+ readonly type: "function";
206
+ }, {
207
+ readonly inputs: readonly [{
208
+ readonly internalType: "address";
209
+ readonly name: "pool";
210
+ readonly type: "address";
211
+ }];
212
+ readonly name: "cancel";
213
+ readonly outputs: readonly [];
214
+ readonly stateMutability: "nonpayable";
215
+ readonly type: "function";
216
+ }, {
217
+ readonly inputs: readonly [{
218
+ readonly internalType: "address";
219
+ readonly name: "user";
220
+ readonly type: "address";
221
+ }, {
222
+ readonly internalType: "address";
223
+ readonly name: "pool";
224
+ readonly type: "address";
225
+ }];
226
+ readonly name: "pendingWithdrawals";
227
+ readonly outputs: readonly [{
228
+ readonly components: readonly [{
229
+ readonly internalType: "uint256";
230
+ readonly name: "amount";
231
+ readonly type: "uint256";
232
+ }, {
233
+ readonly internalType: "uint256";
234
+ readonly name: "announcedAt";
235
+ readonly type: "uint256";
236
+ }, {
237
+ readonly internalType: "uint256";
238
+ readonly name: "announcedBlock";
239
+ readonly type: "uint256";
240
+ }, {
241
+ readonly internalType: "uint256";
242
+ readonly name: "bridgedBlock";
243
+ readonly type: "uint256";
244
+ }, {
245
+ readonly internalType: "enum IHyperliquidWithdrawalManager.WithdrawalState";
246
+ readonly name: "state";
247
+ readonly type: "uint8";
248
+ }, {
249
+ readonly internalType: "uint32[]";
250
+ readonly name: "spotAssetIds";
251
+ readonly type: "uint32[]";
252
+ }, {
253
+ readonly internalType: "uint256";
254
+ readonly name: "reservedBridge";
255
+ readonly type: "uint256";
256
+ }];
257
+ readonly internalType: "struct IHyperliquidWithdrawalManager.PendingWithdrawal";
258
+ readonly name: "";
259
+ readonly type: "tuple";
260
+ }];
261
+ readonly stateMutability: "view";
262
+ readonly type: "function";
263
+ }, {
264
+ readonly inputs: readonly [{
265
+ readonly internalType: "address";
266
+ readonly name: "pool";
267
+ readonly type: "address";
268
+ }];
269
+ readonly name: "hasPendingWithdrawal";
270
+ readonly outputs: readonly [{
271
+ readonly internalType: "bool";
272
+ readonly name: "";
273
+ readonly type: "bool";
274
+ }];
275
+ readonly stateMutability: "view";
276
+ readonly type: "function";
277
+ }, {
278
+ readonly inputs: readonly [{
279
+ readonly internalType: "address";
280
+ readonly name: "pool";
281
+ readonly type: "address";
282
+ }];
283
+ readonly name: "totalPendingTokens";
284
+ readonly outputs: readonly [{
285
+ readonly internalType: "uint256";
286
+ readonly name: "";
287
+ readonly type: "uint256";
288
+ }];
289
+ readonly stateMutability: "view";
290
+ readonly type: "function";
291
+ }, {
292
+ readonly inputs: readonly [];
293
+ readonly name: "WITHDRAWAL_TIMEOUT";
294
+ readonly outputs: readonly [{
295
+ readonly internalType: "uint256";
296
+ readonly name: "";
297
+ readonly type: "uint256";
298
+ }];
299
+ readonly stateMutability: "view";
300
+ readonly type: "function";
301
+ }];