@dhedge/trading-widget 3.5.8-canary.2 → 3.6.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 (431) hide show
  1. package/core-kit/abi/aave/aave-asset-guard.d.ts +50 -0
  2. package/core-kit/abi/aave/aave-lending-pool.d.ts +846 -0
  3. package/core-kit/abi/dhedge-staking-v2.d.ts +127 -0
  4. package/core-kit/abi/easy-swapper-v2.d.ts +1042 -0
  5. package/core-kit/abi/erc20.d.ts +1 -0
  6. package/core-kit/abi/flatcoin-points-module.d.ts +57 -0
  7. package/core-kit/abi/index.d.ts +12 -0
  8. package/core-kit/abi/limit-order.d.ts +736 -0
  9. package/core-kit/abi/pool-factory.d.ts +57 -0
  10. package/core-kit/abi/pool-logic.d.ts +307 -0
  11. package/core-kit/abi/pool-manager-logic.d.ts +107 -0
  12. package/core-kit/abi/reward-distribution.d.ts +121 -0
  13. package/core-kit/abi/synthetix-v3/i-trusted-multicall-forwarder.d.ts +41 -0
  14. package/core-kit/abi/synthetix-v3/ierc-7412.d.ts +53 -0
  15. package/core-kit/abi/synthetix-v3/index.d.ts +5 -0
  16. package/core-kit/abi/synthetix-v3/synthetix-v3-asset-guard.d.ts +37 -0
  17. package/core-kit/abi/synthetix-v3/synthetix-v3-contract-guard.d.ts +45 -0
  18. package/core-kit/abi/synthetix-v3/synthetix-v3-core.d.ts +41 -0
  19. package/core-kit/const/config.d.ts +13 -0
  20. package/core-kit/const/contracts/arbitrum.d.ts +4 -0
  21. package/core-kit/const/contracts/base.d.ts +8 -0
  22. package/core-kit/const/contracts/index.d.ts +5 -0
  23. package/core-kit/const/contracts/optimism.d.ts +5 -0
  24. package/core-kit/const/contracts/polygon.d.ts +4 -0
  25. package/core-kit/const/currency.d.ts +2 -0
  26. package/core-kit/const/default-data.d.ts +28 -0
  27. package/core-kit/const/error.d.ts +14 -0
  28. package/core-kit/const/flat-money.d.ts +10 -0
  29. package/core-kit/const/index.d.ts +13 -0
  30. package/core-kit/const/links.d.ts +3 -0
  31. package/core-kit/const/logger.d.ts +40 -0
  32. package/core-kit/const/network.d.ts +682 -0
  33. package/core-kit/const/synthetix.d.ts +6 -0
  34. package/core-kit/const/tokens/arbitrum.d.ts +8 -0
  35. package/core-kit/const/tokens/base.d.ts +9 -0
  36. package/core-kit/const/tokens/index.d.ts +9 -0
  37. package/core-kit/const/tokens/optimism.d.ts +12 -0
  38. package/core-kit/const/tokens/polygon.d.ts +10 -0
  39. package/core-kit/const/trading.d.ts +10 -0
  40. package/core-kit/const/web3.d.ts +4 -0
  41. package/core-kit/hooks/component/index.d.ts +2 -0
  42. package/core-kit/hooks/component/panel.d.ts +1 -0
  43. package/core-kit/hooks/component/tab.d.ts +2 -0
  44. package/core-kit/hooks/pool/index.d.ts +16 -0
  45. package/core-kit/hooks/pool/multicall/index.d.ts +4 -0
  46. package/core-kit/hooks/pool/multicall/use-pool-manager.dynamic.d.ts +230 -0
  47. package/core-kit/hooks/pool/multicall/use-pool-manager.static.d.ts +340 -0
  48. package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +2434 -0
  49. package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +1096 -0
  50. package/core-kit/hooks/pool/synthetixV3/use-pool-token-price-mutable.d.ts +8 -0
  51. package/core-kit/hooks/pool/synthetixV3/use-synthetix-v3-asset-balance.d.ts +8 -0
  52. package/core-kit/hooks/pool/synthetixV3/use-total-funds-value-mutable.d.ts +8 -0
  53. package/core-kit/hooks/pool/use-check-whitelist.d.ts +2 -0
  54. package/core-kit/hooks/pool/use-contract-pool-composition.d.ts +3 -0
  55. package/core-kit/hooks/pool/use-has-nested-vault-in-composition.d.ts +64 -0
  56. package/core-kit/hooks/pool/use-invalidate-pool-contract-data.d.ts +1 -0
  57. package/core-kit/hooks/pool/use-manager-logic-address.d.ts +2 -0
  58. package/core-kit/hooks/pool/use-pool-composition-with-fraction.d.ts +14 -0
  59. package/core-kit/hooks/pool/use-pool-composition.d.ts +3 -0
  60. package/core-kit/hooks/pool/use-pool-dynamic-contract-data.d.ts +20 -0
  61. package/core-kit/hooks/pool/use-pool-dynamic-exit-remaining-cooldown.d.ts +276 -0
  62. package/core-kit/hooks/pool/use-pool-fees.d.ts +14 -0
  63. package/core-kit/hooks/pool/use-pool-manager-logic-data.d.ts +16 -0
  64. package/core-kit/hooks/pool/use-pool-token-price.d.ts +9 -0
  65. package/core-kit/hooks/pool/use-vault-vested-points.d.ts +73 -0
  66. package/core-kit/hooks/referral/index.d.ts +1 -0
  67. package/core-kit/hooks/referral/use-referral-program.d.ts +2 -0
  68. package/core-kit/hooks/state/action.d.ts +25 -0
  69. package/core-kit/hooks/state/context.d.ts +2 -0
  70. package/core-kit/hooks/state/default-data.d.ts +1 -0
  71. package/core-kit/hooks/state/index.d.ts +9 -0
  72. package/core-kit/hooks/state/input.d.ts +13 -0
  73. package/core-kit/hooks/state/modal.d.ts +5 -0
  74. package/core-kit/hooks/state/pool.d.ts +14 -0
  75. package/core-kit/hooks/state/settings.d.ts +5 -0
  76. package/core-kit/hooks/state/transaction.d.ts +5 -0
  77. package/core-kit/hooks/state/type.d.ts +6 -0
  78. package/core-kit/hooks/trading/allowance/index.d.ts +3 -0
  79. package/core-kit/hooks/trading/allowance/use-approve.d.ts +9 -0
  80. package/core-kit/hooks/trading/allowance/use-can-spend.d.ts +11 -0
  81. package/core-kit/hooks/trading/allowance/use-token-allowance-handler.d.ts +1 -0
  82. package/core-kit/hooks/trading/deposit-v2/index.d.ts +16 -0
  83. package/core-kit/hooks/trading/deposit-v2/use-applied-deposit-slippage.d.ts +1 -0
  84. package/core-kit/hooks/trading/deposit-v2/use-deposit-allowance.d.ts +4 -0
  85. package/core-kit/hooks/trading/deposit-v2/use-deposit-lock-time.d.ts +1 -0
  86. package/core-kit/hooks/trading/deposit-v2/use-deposit-price-diff.d.ts +5 -0
  87. package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +1043 -0
  88. package/core-kit/hooks/trading/deposit-v2/use-deposit-quote.d.ts +1 -0
  89. package/core-kit/hooks/trading/deposit-v2/use-deposit-slippage.d.ts +1 -0
  90. package/core-kit/hooks/trading/deposit-v2/use-deposit.d.ts +2 -0
  91. package/core-kit/hooks/trading/deposit-v2/use-handle-pool-deposit-data.d.ts +1 -0
  92. package/core-kit/hooks/trading/deposit-v2/use-is-custom-cooldown-deposit.d.ts +1 -0
  93. package/core-kit/hooks/trading/deposit-v2/use-is-deposit-with-swap-transaction.d.ts +1 -0
  94. package/core-kit/hooks/trading/deposit-v2/use-is-vault-deposit-locked.d.ts +4 -0
  95. package/core-kit/hooks/trading/deposit-v2/use-min-vault-tokens-received-amount.d.ts +1 -0
  96. package/core-kit/hooks/trading/deposit-v2/use-swap-data-based-on-send-token.d.ts +1 -0
  97. package/core-kit/hooks/trading/deposit-v2/use-vault-deposit-params.d.ts +2 -0
  98. package/core-kit/hooks/trading/deposit-v2/use-vault-deposit-token-amount.d.ts +1 -0
  99. package/core-kit/hooks/trading/deposit-v2/use-vault-deposit-tokens.d.ts +2 -0
  100. package/core-kit/hooks/trading/deposit-v2/use-vault-deposit-transaction-arguments.d.ts +2 -0
  101. package/core-kit/hooks/trading/index.d.ts +14 -0
  102. package/core-kit/hooks/trading/projected-earnings/use-deposit-projected-earnings.d.ts +2 -0
  103. package/core-kit/hooks/trading/projected-earnings/use-projected-earnings-core.d.ts +10 -0
  104. package/core-kit/hooks/trading/synthetix-v3/use-available-withdraw-liquidity.d.ts +47 -0
  105. package/core-kit/hooks/trading/synthetix-v3/use-oracles-update-transaction-data.d.ts +23 -0
  106. package/core-kit/hooks/trading/synthetix-v3/use-send-oracles-update-transaction.d.ts +4 -0
  107. package/core-kit/hooks/trading/synthetix-v3/use-synthetix-v3-oracles-update.d.ts +7 -0
  108. package/core-kit/hooks/trading/synthetix-v3/use-withdraw-liquidity.d.ts +5 -0
  109. package/core-kit/hooks/trading/use-asset-price.d.ts +8 -0
  110. package/core-kit/hooks/trading/use-easy-swapper-tracked-assets.d.ts +1046 -0
  111. package/core-kit/hooks/trading/use-exchange-rate.d.ts +5 -0
  112. package/core-kit/hooks/trading/use-handle-trade.d.ts +6 -0
  113. package/core-kit/hooks/trading/use-is-trading-enabled.d.ts +1 -0
  114. package/core-kit/hooks/trading/use-is-transaction-loading.d.ts +2 -0
  115. package/core-kit/hooks/trading/use-raw-asset-price.d.ts +8 -0
  116. package/core-kit/hooks/trading/use-send-token-debounced-value.d.ts +8 -0
  117. package/core-kit/hooks/trading/use-swap-data-query.d.ts +6 -0
  118. package/core-kit/hooks/trading/use-swaps-data-query.d.ts +13 -0
  119. package/core-kit/hooks/trading/use-trading-result-handling.d.ts +1 -0
  120. package/core-kit/hooks/trading/use-trading-settle-handler.d.ts +3 -0
  121. package/core-kit/hooks/trading/withdraw-v2/complete-step/index.d.ts +10 -0
  122. package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-expected-amount.d.ts +4 -0
  123. package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-quote.d.ts +1 -0
  124. package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-receive-diff.d.ts +1 -0
  125. package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-swap-data.d.ts +1 -0
  126. package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-total-usd-value.d.ts +1 -0
  127. package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-tracked-assets.d.ts +210 -0
  128. package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-transaction.d.ts +6 -0
  129. package/core-kit/hooks/trading/withdraw-v2/complete-step/use-handle-complete-withdraw.d.ts +11 -0
  130. package/core-kit/hooks/trading/withdraw-v2/complete-step/use-has-swappable-assets.d.ts +1 -0
  131. package/core-kit/hooks/trading/withdraw-v2/complete-step/use-is-complete-withdraw-step.d.ts +4 -0
  132. package/core-kit/hooks/trading/withdraw-v2/index.d.ts +4 -0
  133. package/core-kit/hooks/trading/withdraw-v2/init-step/index.d.ts +6 -0
  134. package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-aave-swap-params.d.ts +6 -0
  135. package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-init-withdraw-aave-swap-data.d.ts +5 -0
  136. package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-init-withdraw-complex-asset-data.d.ts +6 -0
  137. package/core-kit/hooks/trading/withdraw-v2/init-step/use-get-init-withdraw-transaction-arguments.d.ts +10 -0
  138. package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-allowance.d.ts +4 -0
  139. package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-estimated-receive-assets.d.ts +210 -0
  140. package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-quote.d.ts +1 -0
  141. package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-transaction.d.ts +6 -0
  142. package/core-kit/hooks/trading/withdraw-v2/init-step/use-is-multi-asset-withdraw.d.ts +1 -0
  143. package/core-kit/hooks/trading/withdraw-v2/init-step/use-is-offchain-aave-withdraw-supported.d.ts +1 -0
  144. package/core-kit/hooks/trading/withdraw-v2/init-step/use-is-unroll-and-claim-transaction.d.ts +1 -0
  145. package/core-kit/hooks/trading/withdraw-v2/use-applied-withdraw-slippage.d.ts +1 -0
  146. package/core-kit/hooks/trading/withdraw-v2/use-min-withdraw-slippage.d.ts +1 -0
  147. package/core-kit/hooks/trading/withdraw-v2/use-withdraw-assets-info.d.ts +219 -0
  148. package/core-kit/hooks/trading/withdraw-v2/use-withdraw-type-handler.d.ts +1 -0
  149. package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +1042 -0
  150. package/core-kit/hooks/user/index.d.ts +4 -0
  151. package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +1113 -0
  152. package/core-kit/hooks/user/use-flatmoney-points-user-balances.d.ts +10 -0
  153. package/core-kit/hooks/user/use-is-dhedge-vault-connected.d.ts +1 -0
  154. package/core-kit/hooks/user/use-is-insufficient-balance.d.ts +1 -0
  155. package/core-kit/hooks/user/use-user-token-balance.d.ts +8 -0
  156. package/core-kit/hooks/utils/index.d.ts +2 -0
  157. package/core-kit/hooks/utils/use-browser-storage.d.ts +1 -0
  158. package/core-kit/hooks/utils/use-debounce.d.ts +1 -0
  159. package/core-kit/hooks/web3/index.d.ts +13 -0
  160. package/core-kit/hooks/web3/use-account.d.ts +7 -0
  161. package/core-kit/hooks/web3/use-balance.d.ts +2 -0
  162. package/core-kit/hooks/web3/use-contract-function.d.ts +17 -0
  163. package/core-kit/hooks/web3/use-contract-read-error-logging.d.ts +6 -0
  164. package/core-kit/hooks/web3/use-contract-reads-error-logging.d.ts +5 -0
  165. package/core-kit/hooks/web3/use-gas-price.d.ts +2 -0
  166. package/core-kit/hooks/web3/use-invalidate-on-block.d.ts +6 -0
  167. package/core-kit/hooks/web3/use-invalidate-trading-queries.d.ts +4 -0
  168. package/core-kit/hooks/web3/use-is-wallet-connected.d.ts +1 -0
  169. package/core-kit/hooks/web3/use-network.d.ts +13 -0
  170. package/core-kit/hooks/web3/use-static-call-query.d.ts +13 -0
  171. package/core-kit/hooks/web3/use-token-allowance.d.ts +9 -0
  172. package/core-kit/index.d.ts +1 -0
  173. package/core-kit/models/estimation-error.d.ts +20 -0
  174. package/core-kit/models/index.d.ts +1 -0
  175. package/core-kit/providers/index.d.ts +6 -0
  176. package/core-kit/types/config.types.d.ts +33 -0
  177. package/core-kit/types/contract.types.d.ts +28 -0
  178. package/core-kit/types/index.d.ts +10 -0
  179. package/core-kit/types/pool.types.d.ts +17 -0
  180. package/core-kit/types/react-query.types.d.ts +11 -0
  181. package/core-kit/types/referral.types.d.ts +12 -0
  182. package/core-kit/types/state.types.d.ts +109 -0
  183. package/core-kit/types/synthetix-v3.types.d.ts +15 -0
  184. package/core-kit/types/trading-panel.types.d.ts +43 -0
  185. package/core-kit/types/trading.types.d.ts +32 -0
  186. package/core-kit/types/web3.types.d.ts +34 -0
  187. package/core-kit/utils/common.d.ts +4 -0
  188. package/core-kit/utils/error.d.ts +17 -0
  189. package/core-kit/utils/flat-money.d.ts +9 -0
  190. package/core-kit/utils/formatter.d.ts +17 -0
  191. package/core-kit/utils/index.d.ts +12 -0
  192. package/core-kit/utils/logger.d.ts +17 -0
  193. package/core-kit/utils/number.d.ts +8 -0
  194. package/core-kit/utils/synthetix-v3/eip-7412.d.ts +21 -0
  195. package/core-kit/utils/synthetix-v3/parse-error.d.ts +3 -0
  196. package/core-kit/utils/synthetix-v3/pyth-adapter.d.ts +13 -0
  197. package/core-kit/utils/synthetix.d.ts +2 -0
  198. package/core-kit/utils/token.d.ts +8 -0
  199. package/core-kit/utils/transaction.d.ts +39 -0
  200. package/core-kit/utils/ua.d.ts +1 -0
  201. package/core-kit/utils/url.d.ts +3 -0
  202. package/core-kit/utils/web3.d.ts +9 -0
  203. package/index-22789f33.cjs +217 -0
  204. package/index-5567d59f.js +42941 -0
  205. package/index.cjs +1 -0
  206. package/index.d.ts +18 -0
  207. package/index.js +242 -0
  208. package/limit-orders/component/common/action-button.d.ts +10 -0
  209. package/limit-orders/component/common/modal-content.d.ts +8 -0
  210. package/limit-orders/component/common/modal-dialog.d.ts +9 -0
  211. package/limit-orders/component/common/price-input.d.ts +20 -0
  212. package/limit-orders/component/input-group/input-group.d.ts +2 -0
  213. package/limit-orders/component/input-group/input-group.hooks.d.ts +15 -0
  214. package/limit-orders/component/limit-order-button/limit-order-approve-button.d.ts +2 -0
  215. package/limit-orders/component/limit-order-button/limit-order-approve-button.hooks.d.ts +5 -0
  216. package/limit-orders/component/limit-order-button/limit-order-button.d.ts +2 -0
  217. package/limit-orders/component/limit-order-button/limit-order-button.hooks.d.ts +9 -0
  218. package/limit-orders/component/limit-order-button/network-check-button.d.ts +2 -0
  219. package/limit-orders/component/limit-order-button/network-check-button.hooks.d.ts +4 -0
  220. package/limit-orders/component/limit-order-modal.d.ts +13 -0
  221. package/limit-orders/component/limit-order-modal.hooks.d.ts +6 -0
  222. package/limit-orders/constants.d.ts +1 -0
  223. package/limit-orders/hooks/state.d.ts +2 -0
  224. package/limit-orders/hooks/use-invalidate-limit-order-query.d.ts +1 -0
  225. package/limit-orders/hooks/use-is-limit-order-approved.d.ts +1 -0
  226. package/limit-orders/hooks/use-limit-order-approve-transaction.d.ts +4 -0
  227. package/limit-orders/hooks/use-listen-limit-order-execution.d.ts +1 -0
  228. package/limit-orders/hooks/use-on-limit-order-settled.d.ts +2 -0
  229. package/limit-orders/hooks/use-user-limit-order.d.ts +753 -0
  230. package/limit-orders/index.d.ts +2 -0
  231. package/limit-orders/providers/state-provider/reducer.d.ts +7 -0
  232. package/limit-orders/providers/state-provider/state-provider.d.ts +6 -0
  233. package/limit-orders/providers/state-provider/state-provider.types.d.ts +51 -0
  234. package/limit-orders/providers/theme-provider/index.d.ts +2 -0
  235. package/limit-orders/providers/theme-provider/theme-provider.d.ts +3 -0
  236. package/limit-orders/providers/theme-provider/theme-provider.types.d.ts +132 -0
  237. package/limit-orders/providers/translation-provider/index.d.ts +3 -0
  238. package/limit-orders/providers/translation-provider/translation-provider.d.ts +4 -0
  239. package/limit-orders/providers/translation-provider/translation-provider.defaults.d.ts +2 -0
  240. package/limit-orders/providers/translation-provider/translation-provider.hooks.d.ts +1 -0
  241. package/limit-orders/providers/translation-provider/translation-provider.types.d.ts +15 -0
  242. package/limit-orders/utils.d.ts +25 -0
  243. package/package.json +4 -20
  244. package/pyth-adapter-7336cdaa.js +5705 -0
  245. package/pyth-adapter-cc16310a.cjs +11 -0
  246. package/style.css +1 -0
  247. package/theme/colors.d.ts +49 -0
  248. package/trading-widget/components/common/alert/alert.d.ts +6 -0
  249. package/trading-widget/components/common/badge/token-badge/token-badge.d.ts +13 -0
  250. package/trading-widget/components/common/balance/balance.d.ts +7 -0
  251. package/trading-widget/components/common/balance/withdraw-assets-composition-table.d.ts +7 -0
  252. package/trading-widget/components/common/button/action-button/action-button.d.ts +10 -0
  253. package/trading-widget/components/common/button/disabled-button-with-prompt/disabled-button-with-prompt.d.ts +6 -0
  254. package/trading-widget/components/common/button/external-link-button/external-link-button.d.ts +9 -0
  255. package/trading-widget/components/common/button/icon-button/icon-button.d.ts +10 -0
  256. package/trading-widget/components/common/button/max-balance-button/max-balance-button.d.ts +6 -0
  257. package/trading-widget/components/common/button/reload-button/reload-button.d.ts +3 -0
  258. package/trading-widget/components/common/button/reload-button/reload-button.hooks.d.ts +10 -0
  259. package/trading-widget/components/common/icon/token-icon/token-icon.d.ts +14 -0
  260. package/trading-widget/components/common/index.d.ts +21 -0
  261. package/trading-widget/components/common/layout/balance/balance.d.ts +2 -0
  262. package/trading-widget/components/common/layout/index.d.ts +18 -0
  263. package/trading-widget/components/common/layout/input-group/input-group.d.ts +2 -0
  264. package/trading-widget/components/common/layout/meta/meta.d.ts +2 -0
  265. package/trading-widget/components/common/layout/notification/notification.d.ts +6 -0
  266. package/trading-widget/components/common/layout/overlay/overlay.d.ts +9 -0
  267. package/trading-widget/components/common/layout/panel/panel.d.ts +2 -0
  268. package/trading-widget/components/common/layout/settings/settings-popover/settings-popover.d.ts +8 -0
  269. package/trading-widget/components/common/layout/settings/settings.d.ts +2 -0
  270. package/trading-widget/components/common/meta/assets-composition-disclosure/assets-composition-disclosure.d.ts +3 -0
  271. package/trading-widget/components/common/meta/transaction-disclosure/transaction-disclosure-item/transaction-disclosure-item.d.ts +12 -0
  272. package/trading-widget/components/common/meta/transaction-disclosure/transaction-disclosure.d.ts +11 -0
  273. package/trading-widget/components/common/overlay/pending-overlay/pending-overlay.d.ts +7 -0
  274. package/trading-widget/components/common/settings/settings-option/settings-option.d.ts +7 -0
  275. package/trading-widget/components/common/skeleton/skeleton.d.ts +8 -0
  276. package/trading-widget/components/common/spinner/spinner.d.ts +6 -0
  277. package/trading-widget/components/common/switch/switch.d.ts +10 -0
  278. package/trading-widget/components/common/tab/tab-button/tab-button.d.ts +7 -0
  279. package/trading-widget/components/common/tooltip/info-tooltip/info-tooltip.d.ts +6 -0
  280. package/trading-widget/components/common/tooltip/tooltip-icon/tooltip-icon.d.ts +7 -0
  281. package/trading-widget/components/common/tooltip/tooltip-wrapper/tooltip-wrapper.d.ts +7 -0
  282. package/trading-widget/components/default-examples/image/image.d.ts +3 -0
  283. package/trading-widget/components/deposit/balance/balance.d.ts +2 -0
  284. package/trading-widget/components/deposit/balance/balance.hooks.d.ts +4 -0
  285. package/trading-widget/components/deposit/button/trade-button/trade-button.d.ts +2 -0
  286. package/trading-widget/components/deposit/button/trade-button/trade-button.hooks.d.ts +6 -0
  287. package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.d.ts +2 -0
  288. package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +18 -0
  289. package/trading-widget/components/deposit/index.d.ts +2 -0
  290. package/trading-widget/components/deposit/input-group/input-group.d.ts +1 -0
  291. package/trading-widget/components/deposit/input-group/input-group.hooks.d.ts +25 -0
  292. package/trading-widget/components/deposit/meta/meta.d.ts +2 -0
  293. package/trading-widget/components/deposit/meta/transaction-disclosure/transaction-disclosure.d.ts +1 -0
  294. package/trading-widget/components/deposit/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +13 -0
  295. package/trading-widget/components/deposit/settings/deposit-settings/deposit-settings.d.ts +2 -0
  296. package/trading-widget/components/deposit/tab-panel/tab-panel.d.ts +3 -0
  297. package/trading-widget/components/deposit/tab-panel/tab-panel.hooks.d.ts +1 -0
  298. package/trading-widget/components/index.d.ts +3 -0
  299. package/trading-widget/components/widget/widget-buttons/approve-button/approve-button.d.ts +3 -0
  300. package/trading-widget/components/widget/widget-buttons/approve-button/approve-button.hooks.d.ts +8 -0
  301. package/trading-widget/components/widget/widget-buttons/connect-wallet-button/connect-wallet-button.d.ts +2 -0
  302. package/trading-widget/components/widget/widget-buttons/index.d.ts +4 -0
  303. package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-deposit-swap-quote-button/reload-deposit-swap-quote-button.d.ts +2 -0
  304. package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-deposit-swap-quote-button/reload-deposit-swap-quote-button.hooks.d.ts +6 -0
  305. package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-swap-quote-button.d.ts +2 -0
  306. package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-withdraw-swap-quote-button/reload-withdraw-swap-quote-button.d.ts +2 -0
  307. package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-withdraw-swap-quote-button/reload-withdraw-swap-quote-button.hooks.d.ts +6 -0
  308. package/trading-widget/components/widget/widget-buttons/switch-network-button/switch-network-button.d.ts +1 -0
  309. package/trading-widget/components/widget/widget-buttons/valid-network-button/valid-network-button.d.ts +2 -0
  310. package/trading-widget/components/widget/widget-buttons/valid-network-button/valid-network-button.hooks.d.ts +4 -0
  311. package/trading-widget/components/widget/widget-input/all-assets-composition-table/all-assets-composition-table.d.ts +2 -0
  312. package/trading-widget/components/widget/widget-input/all-assets-composition-table/all-assets-composition-table.hooks.d.ts +15 -0
  313. package/trading-widget/components/widget/widget-input/all-assets-composition-table/withdraw-explanation-tip.d.ts +4 -0
  314. package/trading-widget/components/widget/widget-input/index.d.ts +1 -0
  315. package/trading-widget/components/widget/widget-input/token-selector/token-selector.d.ts +3 -0
  316. package/trading-widget/components/widget/widget-input/token-selector/token-selector.hooks.d.ts +9 -0
  317. package/trading-widget/components/widget/widget-input/widget-input.d.ts +3 -0
  318. package/trading-widget/components/widget/widget-input/widget-input.hooks.d.ts +27 -0
  319. package/trading-widget/components/widget/widget-input/widget-input.utils.d.ts +3 -0
  320. package/trading-widget/components/widget/widget-meta/exchange-rate/exchange-rate.d.ts +6 -0
  321. package/trading-widget/components/widget/widget-meta/index.d.ts +1 -0
  322. package/trading-widget/components/widget/widget-overlay/fmp-withdrawal-overlay/fmp-withdrawal-overlay.d.ts +3 -0
  323. package/trading-widget/components/widget/widget-overlay/fmp-withdrawal-overlay/fmp-withdrawal-overlay.hooks.d.ts +10 -0
  324. package/trading-widget/components/widget/widget-overlay/high-slippage-overlay/high-slippage-overlay.d.ts +3 -0
  325. package/trading-widget/components/widget/widget-overlay/index.d.ts +8 -0
  326. package/trading-widget/components/widget/widget-overlay/notification-overlay/notification-overlay.d.ts +3 -0
  327. package/trading-widget/components/widget/widget-overlay/notification-overlay/notification-overlay.hooks.d.ts +8 -0
  328. package/trading-widget/components/widget/widget-overlay/overlay-switch/overlay-switch.d.ts +2 -0
  329. package/trading-widget/components/widget/widget-overlay/pool-select-overlay/network-header/network-header.d.ts +7 -0
  330. package/trading-widget/components/widget/widget-overlay/pool-select-overlay/pool-select-overlay.d.ts +3 -0
  331. package/trading-widget/components/widget/widget-overlay/pool-select-overlay/pool-select-overlay.hooks.d.ts +31 -0
  332. package/trading-widget/components/widget/widget-overlay/terms-of-use-overlay/terms-of-use-overlay.d.ts +3 -0
  333. package/trading-widget/components/widget/widget-overlay/token-select-overlay/multi-token-select-item/multi-token-select-item.d.ts +2 -0
  334. package/trading-widget/components/widget/widget-overlay/token-select-overlay/multi-token-select-item/multi-token-select-item.hooks.d.ts +8 -0
  335. package/trading-widget/components/widget/widget-overlay/token-select-overlay/token-select-item/token-select-item.d.ts +2 -0
  336. package/trading-widget/components/widget/widget-overlay/token-select-overlay/token-select-item/token-select-item.hooks.d.ts +11 -0
  337. package/trading-widget/components/widget/widget-overlay/token-select-overlay/token-select-overlay.d.ts +3 -0
  338. package/trading-widget/components/widget/widget-overlay/token-select-overlay/token-select-overlay.hooks.d.ts +12 -0
  339. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-overlay.d.ts +3 -0
  340. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-overlay.hooks.d.ts +10 -0
  341. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/approve-summary.d.ts +7 -0
  342. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/oracles-update-summary.d.ts +2 -0
  343. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/swap-summary.d.ts +7 -0
  344. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/trading-summary.d.ts +2 -0
  345. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/vault-transaction-summary.d.ts +3 -0
  346. package/trading-widget/components/widget/widget-settings/index.d.ts +2 -0
  347. package/trading-widget/components/widget/widget-settings/slippage-selector/slippage-selector.d.ts +2 -0
  348. package/trading-widget/components/widget/widget-settings/slippage-selector/slippage-selector.hooks.d.ts +15 -0
  349. package/trading-widget/components/widget/widget-settings/token-allowance-switch/token-allowance-switch.d.ts +1 -0
  350. package/trading-widget/components/widget/widget-settings/widget-settings.d.ts +7 -0
  351. package/trading-widget/components/widget/widget-tabs/widget-tabs.d.ts +2 -0
  352. package/trading-widget/components/widget/widget.d.ts +2 -0
  353. package/trading-widget/components/widget/widget.hooks.d.ts +5 -0
  354. package/trading-widget/components/withdraw/complete-step/balance/complete-withdraw-balance.d.ts +2 -0
  355. package/trading-widget/components/withdraw/complete-step/balance/complete-withdraw-balance.hooks.d.ts +12 -0
  356. package/trading-widget/components/withdraw/complete-step/button/claim-button/claim-button.d.ts +3 -0
  357. package/trading-widget/components/withdraw/complete-step/button/claim-button/claim-button.hooks.d.ts +7 -0
  358. package/trading-widget/components/withdraw/complete-step/button/swap-button/swap-button.d.ts +2 -0
  359. package/trading-widget/components/withdraw/complete-step/button/swap-button/swap-button.hooks.d.ts +6 -0
  360. package/trading-widget/components/withdraw/complete-step/button/valid-swap-button/valid-swap-button.d.ts +2 -0
  361. package/trading-widget/components/withdraw/complete-step/button/valid-swap-button/valid-swap-button.hooks.d.ts +5 -0
  362. package/trading-widget/components/withdraw/complete-step/complete-step.d.ts +2 -0
  363. package/trading-widget/components/withdraw/complete-step/complete-step.hooks.d.ts +3 -0
  364. package/trading-widget/components/withdraw/complete-step/input-group/complete-withdraw-input-group.d.ts +2 -0
  365. package/trading-widget/components/withdraw/complete-step/input-group/complete-withdraw-input-group.hooks.d.ts +12 -0
  366. package/trading-widget/components/withdraw/complete-step/meta/meta.d.ts +2 -0
  367. package/trading-widget/components/withdraw/complete-step/meta/transaction-disclosure/transaction-disclosure.d.ts +1 -0
  368. package/trading-widget/components/withdraw/complete-step/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +6 -0
  369. package/trading-widget/components/withdraw/index.d.ts +2 -0
  370. package/trading-widget/components/withdraw/init-step/balance/init-withdraw-balance.d.ts +2 -0
  371. package/trading-widget/components/withdraw/init-step/balance/init-withdraw-balance.hooks.d.ts +4 -0
  372. package/trading-widget/components/withdraw/init-step/button/init-withdraw-button/init-withdraw-button.d.ts +2 -0
  373. package/trading-widget/components/withdraw/init-step/button/init-withdraw-button/init-withdraw-button.hooks.d.ts +6 -0
  374. package/trading-widget/components/withdraw/init-step/button/valid-init-withdraw-button/valid-init-withdraw-button.d.ts +2 -0
  375. package/trading-widget/components/withdraw/init-step/button/valid-init-withdraw-button/valid-init-withdraw-button.hooks.d.ts +21 -0
  376. package/trading-widget/components/withdraw/init-step/init-step.d.ts +1 -0
  377. package/trading-widget/components/withdraw/init-step/input-group/init-withdraw-input-group.d.ts +1 -0
  378. package/trading-widget/components/withdraw/init-step/input-group/init-withdraw-input-group.hooks.d.ts +22 -0
  379. package/trading-widget/components/withdraw/init-step/meta/meta.d.ts +2 -0
  380. package/trading-widget/components/withdraw/init-step/meta/transaction-disclosure/transaction-disclosure.d.ts +1 -0
  381. package/trading-widget/components/withdraw/init-step/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +9 -0
  382. package/trading-widget/components/withdraw/settings/withdraw-settings/withdraw-settings.d.ts +2 -0
  383. package/trading-widget/components/withdraw/stepper/withdraw-stepper.d.ts +2 -0
  384. package/trading-widget/components/withdraw/stepper/withdraw-stepper.hooks.d.ts +8 -0
  385. package/trading-widget/components/withdraw/tab-panel/tab-panel.d.ts +2 -0
  386. package/trading-widget/components/withdraw/tab-panel/tab-panel.hooks.d.ts +3 -0
  387. package/trading-widget/constants/synthetix-v3.d.ts +2 -0
  388. package/trading-widget/constants/tab.d.ts +1 -0
  389. package/trading-widget/hooks/index.d.ts +7 -0
  390. package/trading-widget/hooks/use-crypto-icon.d.ts +3 -0
  391. package/trading-widget/hooks/use-get-slippage-placeholder.d.ts +6 -0
  392. package/trading-widget/hooks/use-get-theme-type-by-slippage.d.ts +2 -0
  393. package/trading-widget/hooks/use-high-slippage-check.d.ts +5 -0
  394. package/trading-widget/hooks/use-leveraged-flat-money-withdrawal-checks.d.ts +4 -0
  395. package/trading-widget/hooks/use-synthetix-withdrawal-window.d.ts +4 -0
  396. package/trading-widget/hooks/use-trading-type-name.d.ts +2 -0
  397. package/trading-widget/hooks/use-user-staked-pools.d.ts +5 -0
  398. package/trading-widget/hooks/use-user-vault-balance.d.ts +3 -0
  399. package/trading-widget/hooks/use-user-vaults-balances.d.ts +2 -0
  400. package/trading-widget/providers/component-provider/component-provider.d.ts +14 -0
  401. package/trading-widget/providers/component-provider/component-provider.defaults.d.ts +2 -0
  402. package/trading-widget/providers/component-provider/component-provider.hooks.d.ts +11 -0
  403. package/trading-widget/providers/component-provider/component-provider.types.d.ts +31 -0
  404. package/trading-widget/providers/component-provider/index.d.ts +3 -0
  405. package/trading-widget/providers/config-provider/config-provider.d.ts +4 -0
  406. package/trading-widget/providers/config-provider/config-provider.defaults.d.ts +3 -0
  407. package/trading-widget/providers/config-provider/config-provider.hooks.d.ts +3 -0
  408. package/trading-widget/providers/config-provider/config-provider.types.d.ts +39 -0
  409. package/trading-widget/providers/config-provider/index.d.ts +4 -0
  410. package/trading-widget/providers/index.d.ts +12 -0
  411. package/trading-widget/providers/overlay-provider/index.d.ts +2 -0
  412. package/trading-widget/providers/overlay-provider/overlay-provider.d.ts +2 -0
  413. package/trading-widget/providers/overlay-provider/overlay-provider.hooks.d.ts +16 -0
  414. package/trading-widget/providers/overlay-provider/overlay-provider.types.d.ts +16 -0
  415. package/trading-widget/providers/theme-provider/index.d.ts +2 -0
  416. package/trading-widget/providers/theme-provider/theme-provider.d.ts +3 -0
  417. package/trading-widget/providers/theme-provider/theme-provider.types.d.ts +225 -0
  418. package/trading-widget/providers/translation-provider/index.d.ts +3 -0
  419. package/trading-widget/providers/translation-provider/translation-provider.d.ts +4 -0
  420. package/trading-widget/providers/translation-provider/translation-provider.defaults.d.ts +2 -0
  421. package/trading-widget/providers/translation-provider/translation-provider.hooks.d.ts +1 -0
  422. package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +104 -0
  423. package/trading-widget/types/balance.types.d.ts +9 -0
  424. package/trading-widget/types/index.d.ts +5 -0
  425. package/trading-widget/types/overlay.types.d.ts +13 -0
  426. package/trading-widget/types/staking.types.d.ts +6 -0
  427. package/trading-widget/types/synthetix-v3.types.d.ts +24 -0
  428. package/trading-widget/types/theme.types.d.ts +9 -0
  429. package/trading-widget/utils/format.d.ts +6 -0
  430. package/trading-widget/utils/icon.d.ts +2 -0
  431. package/trading-widget/utils/synthetix-v3.d.ts +39 -0
@@ -0,0 +1,9 @@
1
+ import type { TradingToken } from 'core-kit/types';
2
+ export declare const USDC_BASE: TradingToken;
3
+ export declare const USDCBC_BASE: TradingToken;
4
+ export declare const WETH_BASE: TradingToken;
5
+ export declare const CBETH_BASE: TradingToken;
6
+ export declare const CBBTC_BASE: TradingToken;
7
+ export declare const RETH_BASE: TradingToken;
8
+ export declare const TBTC_BASE: TradingToken;
9
+ export declare const WSTETH_BASE: TradingToken;
@@ -0,0 +1,9 @@
1
+ import type { ChainId, TradingToken } from 'core-kit/types';
2
+ export * from './arbitrum';
3
+ export * from './base';
4
+ export * from './optimism';
5
+ export * from './polygon';
6
+ export declare const MULTI_ASSET_TOKEN: TradingToken;
7
+ export declare const BRIDGED_TOKENS_SYMBOLS: Record<string, string>;
8
+ export declare const WETH_BY_CHAIN_ID: Record<number, TradingToken>;
9
+ export declare const FALLBACK_ASSETS_MAP: Record<ChainId, Record<string, TradingToken>>;
@@ -0,0 +1,12 @@
1
+ import type { TradingToken } from 'core-kit/types';
2
+ export declare const BRIDGED_USDC_OPTIMISM: TradingToken;
3
+ export declare const USDC_OPTIMISM: TradingToken;
4
+ export declare const USDT_OPTIMISM: TradingToken;
5
+ export declare const WETH_OPTIMISM: TradingToken;
6
+ export declare const SUSD_OPTIMISM: TradingToken;
7
+ export declare const DAI_OPTIMISM: TradingToken;
8
+ export declare const WBTC_OPTIMISM: TradingToken;
9
+ export declare const SETH_OPTIMISM: TradingToken;
10
+ export declare const LINK_OPTIMISM: TradingToken;
11
+ export declare const TBTC_OPTIMISM: TradingToken;
12
+ export declare const WSTETH_OPTIMISM: TradingToken;
@@ -0,0 +1,10 @@
1
+ import type { TradingToken } from 'core-kit/types';
2
+ export declare const WETH_POLYGON: TradingToken;
3
+ export declare const BRIDGED_USDC_POLYGON: TradingToken;
4
+ export declare const USDC_POLYGON: TradingToken;
5
+ export declare const PAXG_POLYGON: TradingToken;
6
+ export declare const WBTC_POLYGON: TradingToken;
7
+ export declare const WPOL_POLYGON: TradingToken;
8
+ export declare const USDT_POLYGON: TradingToken;
9
+ export declare const DAI_POLYGON: TradingToken;
10
+ export declare const TBTC_POLYGON: TradingToken;
@@ -0,0 +1,10 @@
1
+ export declare const EASY_SWAPPER_V2_DEPOSIT_METHODS: {
2
+ DEPOSIT: "deposit";
3
+ DEPOSIT_CUSTOM: "depositWithCustomCooldown";
4
+ NATIVE: "nativeDeposit";
5
+ NATIVE_CUSTOM: "nativeDepositWithCustomCooldown";
6
+ ZAP_NATIVE_DEPOSIT: "zapNativeDeposit";
7
+ ZAP_NATIVE_DEPOSIT_CUSTOM: "zapNativeDepositWithCustomCooldown";
8
+ ZAP_DEPOSIT: "zapDeposit";
9
+ ZAP_DEPOSIT_CUSTOM: "zapDepositWithCustomCooldown";
10
+ };
@@ -0,0 +1,4 @@
1
+ import type { Address } from 'core-kit/types';
2
+ declare const AddressZero: Address;
3
+ declare const MaxUint256: bigint;
4
+ export { AddressZero, MaxUint256 };
@@ -0,0 +1,2 @@
1
+ export { useOnTradingTypeChange } from './tab';
2
+ export { useGeneralTradingPanelHandlers } from './panel';
@@ -0,0 +1 @@
1
+ export declare const useGeneralTradingPanelHandlers: () => void;
@@ -0,0 +1,2 @@
1
+ import type { TradingPanelType } from 'core-kit/types/trading-panel.types';
2
+ export declare const useOnTradingTypeChange: () => (type: TradingPanelType) => void;
@@ -0,0 +1,16 @@
1
+ export { useCheckWhitelist } from './use-check-whitelist';
2
+ export { useManagerLogicAddress } from './use-manager-logic-address';
3
+ export { useContractPoolComposition } from './use-contract-pool-composition';
4
+ export { usePoolComposition } from './use-pool-composition';
5
+ export { usePoolDynamicContractData } from './use-pool-dynamic-contract-data';
6
+ export { usePoolManagerLogicData } from './use-pool-manager-logic-data';
7
+ export { usePoolCompositionWithFraction } from './use-pool-composition-with-fraction';
8
+ export { usePoolTokenPrice } from './use-pool-token-price';
9
+ export { usePoolFees } from './use-pool-fees';
10
+ export { useSynthetixV3AssetBalance } from './synthetixV3/use-synthetix-v3-asset-balance';
11
+ export { useTotalFundValueMutable } from './synthetixV3/use-total-funds-value-mutable';
12
+ export { useInvalidatePoolContractData } from './use-invalidate-pool-contract-data';
13
+ export { usePoolsDynamic } from './multicall';
14
+ export { useVaultVestedPoints } from './use-vault-vested-points';
15
+ export { useHasNestedVaultInComposition } from './use-has-nested-vault-in-composition';
16
+ export { usePoolDynamicExitRemainingCooldown } from './use-pool-dynamic-exit-remaining-cooldown';
@@ -0,0 +1,4 @@
1
+ export { usePoolStatic } from './use-pool.static';
2
+ export { usePoolManagerStatic } from './use-pool-manager.static';
3
+ export { usePoolManagerDynamic } from './use-pool-manager.dynamic';
4
+ export { usePoolsDynamic } from './use-pools.dynamic';
@@ -0,0 +1,230 @@
1
+ import type { PoolContractCallParams } from 'core-kit/types';
2
+ export declare const usePoolManagerDynamic: ({ address, chainId, }: PoolContractCallParams) => import("wagmi").UseReadContractsReturnType<readonly [{
3
+ readonly address: `0x${string}`;
4
+ readonly abi: readonly [{
5
+ readonly inputs: readonly [];
6
+ readonly name: "getFundComposition";
7
+ readonly outputs: readonly [{
8
+ readonly components: readonly [{
9
+ readonly internalType: "address";
10
+ readonly name: "asset";
11
+ readonly type: "address";
12
+ }, {
13
+ readonly internalType: "bool";
14
+ readonly name: "isDeposit";
15
+ readonly type: "bool";
16
+ }];
17
+ readonly internalType: "struct IHasSupportedAsset.Asset[]";
18
+ readonly name: "assets";
19
+ readonly type: "tuple[]";
20
+ }, {
21
+ readonly internalType: "uint256[]";
22
+ readonly name: "balances";
23
+ readonly type: "uint256[]";
24
+ }, {
25
+ readonly internalType: "uint256[]";
26
+ readonly name: "rates";
27
+ readonly type: "uint256[]";
28
+ }];
29
+ readonly stateMutability: "view";
30
+ readonly type: "function";
31
+ }, {
32
+ readonly inputs: readonly [];
33
+ readonly name: "getFeeIncreaseInfo";
34
+ readonly outputs: readonly [{
35
+ readonly internalType: "uint256";
36
+ readonly name: "";
37
+ readonly type: "uint256";
38
+ }, {
39
+ readonly internalType: "uint256";
40
+ readonly name: "";
41
+ readonly type: "uint256";
42
+ }, {
43
+ readonly internalType: "uint256";
44
+ readonly name: "";
45
+ readonly type: "uint256";
46
+ }, {
47
+ readonly internalType: "uint256";
48
+ readonly name: "";
49
+ readonly type: "uint256";
50
+ }, {
51
+ readonly internalType: "uint256";
52
+ readonly name: "";
53
+ readonly type: "uint256";
54
+ }];
55
+ readonly stateMutability: "view";
56
+ readonly type: "function";
57
+ }, {
58
+ readonly inputs: readonly [{
59
+ readonly internalType: "address";
60
+ readonly name: "member";
61
+ readonly type: "address";
62
+ }];
63
+ readonly name: "isMemberAllowed";
64
+ readonly outputs: readonly [{
65
+ readonly internalType: "bool";
66
+ readonly name: "";
67
+ readonly type: "bool";
68
+ }];
69
+ readonly stateMutability: "view";
70
+ readonly type: "function";
71
+ }, {
72
+ readonly inputs: readonly [];
73
+ readonly name: "minDepositUSD";
74
+ readonly outputs: readonly [{
75
+ readonly internalType: "uint256";
76
+ readonly name: "";
77
+ readonly type: "uint256";
78
+ }];
79
+ readonly stateMutability: "view";
80
+ readonly type: "function";
81
+ }, {
82
+ readonly inputs: readonly [];
83
+ readonly name: "totalFundValueMutable";
84
+ readonly outputs: readonly [{
85
+ readonly internalType: "uint256";
86
+ readonly name: "";
87
+ readonly type: "uint256";
88
+ }];
89
+ readonly stateMutability: "nonpayable";
90
+ readonly type: "function";
91
+ }, {
92
+ readonly inputs: readonly [];
93
+ readonly name: "getSupportedAssets";
94
+ readonly outputs: readonly [{
95
+ readonly components: readonly [{
96
+ readonly internalType: "address";
97
+ readonly name: "asset";
98
+ readonly type: "address";
99
+ }, {
100
+ readonly internalType: "bool";
101
+ readonly name: "isDeposit";
102
+ readonly type: "bool";
103
+ }];
104
+ readonly internalType: "struct IHasSupportedAsset.Asset[]";
105
+ readonly name: "";
106
+ readonly type: "tuple[]";
107
+ }];
108
+ readonly stateMutability: "view";
109
+ readonly type: "function";
110
+ }];
111
+ readonly functionName: "getFundComposition";
112
+ readonly chainId: number;
113
+ }, {
114
+ readonly address: `0x${string}`;
115
+ readonly abi: readonly [{
116
+ readonly inputs: readonly [];
117
+ readonly name: "getFundComposition";
118
+ readonly outputs: readonly [{
119
+ readonly components: readonly [{
120
+ readonly internalType: "address";
121
+ readonly name: "asset";
122
+ readonly type: "address";
123
+ }, {
124
+ readonly internalType: "bool";
125
+ readonly name: "isDeposit";
126
+ readonly type: "bool";
127
+ }];
128
+ readonly internalType: "struct IHasSupportedAsset.Asset[]";
129
+ readonly name: "assets";
130
+ readonly type: "tuple[]";
131
+ }, {
132
+ readonly internalType: "uint256[]";
133
+ readonly name: "balances";
134
+ readonly type: "uint256[]";
135
+ }, {
136
+ readonly internalType: "uint256[]";
137
+ readonly name: "rates";
138
+ readonly type: "uint256[]";
139
+ }];
140
+ readonly stateMutability: "view";
141
+ readonly type: "function";
142
+ }, {
143
+ readonly inputs: readonly [];
144
+ readonly name: "getFeeIncreaseInfo";
145
+ readonly outputs: readonly [{
146
+ readonly internalType: "uint256";
147
+ readonly name: "";
148
+ readonly type: "uint256";
149
+ }, {
150
+ readonly internalType: "uint256";
151
+ readonly name: "";
152
+ readonly type: "uint256";
153
+ }, {
154
+ readonly internalType: "uint256";
155
+ readonly name: "";
156
+ readonly type: "uint256";
157
+ }, {
158
+ readonly internalType: "uint256";
159
+ readonly name: "";
160
+ readonly type: "uint256";
161
+ }, {
162
+ readonly internalType: "uint256";
163
+ readonly name: "";
164
+ readonly type: "uint256";
165
+ }];
166
+ readonly stateMutability: "view";
167
+ readonly type: "function";
168
+ }, {
169
+ readonly inputs: readonly [{
170
+ readonly internalType: "address";
171
+ readonly name: "member";
172
+ readonly type: "address";
173
+ }];
174
+ readonly name: "isMemberAllowed";
175
+ readonly outputs: readonly [{
176
+ readonly internalType: "bool";
177
+ readonly name: "";
178
+ readonly type: "bool";
179
+ }];
180
+ readonly stateMutability: "view";
181
+ readonly type: "function";
182
+ }, {
183
+ readonly inputs: readonly [];
184
+ readonly name: "minDepositUSD";
185
+ readonly outputs: readonly [{
186
+ readonly internalType: "uint256";
187
+ readonly name: "";
188
+ readonly type: "uint256";
189
+ }];
190
+ readonly stateMutability: "view";
191
+ readonly type: "function";
192
+ }, {
193
+ readonly inputs: readonly [];
194
+ readonly name: "totalFundValueMutable";
195
+ readonly outputs: readonly [{
196
+ readonly internalType: "uint256";
197
+ readonly name: "";
198
+ readonly type: "uint256";
199
+ }];
200
+ readonly stateMutability: "nonpayable";
201
+ readonly type: "function";
202
+ }, {
203
+ readonly inputs: readonly [];
204
+ readonly name: "getSupportedAssets";
205
+ readonly outputs: readonly [{
206
+ readonly components: readonly [{
207
+ readonly internalType: "address";
208
+ readonly name: "asset";
209
+ readonly type: "address";
210
+ }, {
211
+ readonly internalType: "bool";
212
+ readonly name: "isDeposit";
213
+ readonly type: "bool";
214
+ }];
215
+ readonly internalType: "struct IHasSupportedAsset.Asset[]";
216
+ readonly name: "";
217
+ readonly type: "tuple[]";
218
+ }];
219
+ readonly stateMutability: "view";
220
+ readonly type: "function";
221
+ }];
222
+ readonly functionName: "getSupportedAssets";
223
+ readonly chainId: number;
224
+ }], true, {
225
+ getFundComposition: readonly [readonly {
226
+ asset: `0x${string}`;
227
+ isDeposit: boolean;
228
+ }[], readonly bigint[], readonly bigint[]] | undefined;
229
+ getSupportedAssets: `0x${string}`[] | undefined;
230
+ }>;
@@ -0,0 +1,340 @@
1
+ import type { PoolContractCallParams } from 'core-kit/types';
2
+ export declare const usePoolManagerStatic: ({ address, chainId, }: PoolContractCallParams) => import("wagmi").UseReadContractsReturnType<readonly [{
3
+ readonly address: `0x${string}`;
4
+ readonly abi: readonly [{
5
+ readonly inputs: readonly [];
6
+ readonly name: "getFundComposition";
7
+ readonly outputs: readonly [{
8
+ readonly components: readonly [{
9
+ readonly internalType: "address";
10
+ readonly name: "asset";
11
+ readonly type: "address";
12
+ }, {
13
+ readonly internalType: "bool";
14
+ readonly name: "isDeposit";
15
+ readonly type: "bool";
16
+ }];
17
+ readonly internalType: "struct IHasSupportedAsset.Asset[]";
18
+ readonly name: "assets";
19
+ readonly type: "tuple[]";
20
+ }, {
21
+ readonly internalType: "uint256[]";
22
+ readonly name: "balances";
23
+ readonly type: "uint256[]";
24
+ }, {
25
+ readonly internalType: "uint256[]";
26
+ readonly name: "rates";
27
+ readonly type: "uint256[]";
28
+ }];
29
+ readonly stateMutability: "view";
30
+ readonly type: "function";
31
+ }, {
32
+ readonly inputs: readonly [];
33
+ readonly name: "getFeeIncreaseInfo";
34
+ readonly outputs: readonly [{
35
+ readonly internalType: "uint256";
36
+ readonly name: "";
37
+ readonly type: "uint256";
38
+ }, {
39
+ readonly internalType: "uint256";
40
+ readonly name: "";
41
+ readonly type: "uint256";
42
+ }, {
43
+ readonly internalType: "uint256";
44
+ readonly name: "";
45
+ readonly type: "uint256";
46
+ }, {
47
+ readonly internalType: "uint256";
48
+ readonly name: "";
49
+ readonly type: "uint256";
50
+ }, {
51
+ readonly internalType: "uint256";
52
+ readonly name: "";
53
+ readonly type: "uint256";
54
+ }];
55
+ readonly stateMutability: "view";
56
+ readonly type: "function";
57
+ }, {
58
+ readonly inputs: readonly [{
59
+ readonly internalType: "address";
60
+ readonly name: "member";
61
+ readonly type: "address";
62
+ }];
63
+ readonly name: "isMemberAllowed";
64
+ readonly outputs: readonly [{
65
+ readonly internalType: "bool";
66
+ readonly name: "";
67
+ readonly type: "bool";
68
+ }];
69
+ readonly stateMutability: "view";
70
+ readonly type: "function";
71
+ }, {
72
+ readonly inputs: readonly [];
73
+ readonly name: "minDepositUSD";
74
+ readonly outputs: readonly [{
75
+ readonly internalType: "uint256";
76
+ readonly name: "";
77
+ readonly type: "uint256";
78
+ }];
79
+ readonly stateMutability: "view";
80
+ readonly type: "function";
81
+ }, {
82
+ readonly inputs: readonly [];
83
+ readonly name: "totalFundValueMutable";
84
+ readonly outputs: readonly [{
85
+ readonly internalType: "uint256";
86
+ readonly name: "";
87
+ readonly type: "uint256";
88
+ }];
89
+ readonly stateMutability: "nonpayable";
90
+ readonly type: "function";
91
+ }, {
92
+ readonly inputs: readonly [];
93
+ readonly name: "getSupportedAssets";
94
+ readonly outputs: readonly [{
95
+ readonly components: readonly [{
96
+ readonly internalType: "address";
97
+ readonly name: "asset";
98
+ readonly type: "address";
99
+ }, {
100
+ readonly internalType: "bool";
101
+ readonly name: "isDeposit";
102
+ readonly type: "bool";
103
+ }];
104
+ readonly internalType: "struct IHasSupportedAsset.Asset[]";
105
+ readonly name: "";
106
+ readonly type: "tuple[]";
107
+ }];
108
+ readonly stateMutability: "view";
109
+ readonly type: "function";
110
+ }];
111
+ readonly functionName: "getFeeIncreaseInfo";
112
+ readonly chainId: number;
113
+ }, {
114
+ readonly address: `0x${string}`;
115
+ readonly abi: readonly [{
116
+ readonly inputs: readonly [];
117
+ readonly name: "getFundComposition";
118
+ readonly outputs: readonly [{
119
+ readonly components: readonly [{
120
+ readonly internalType: "address";
121
+ readonly name: "asset";
122
+ readonly type: "address";
123
+ }, {
124
+ readonly internalType: "bool";
125
+ readonly name: "isDeposit";
126
+ readonly type: "bool";
127
+ }];
128
+ readonly internalType: "struct IHasSupportedAsset.Asset[]";
129
+ readonly name: "assets";
130
+ readonly type: "tuple[]";
131
+ }, {
132
+ readonly internalType: "uint256[]";
133
+ readonly name: "balances";
134
+ readonly type: "uint256[]";
135
+ }, {
136
+ readonly internalType: "uint256[]";
137
+ readonly name: "rates";
138
+ readonly type: "uint256[]";
139
+ }];
140
+ readonly stateMutability: "view";
141
+ readonly type: "function";
142
+ }, {
143
+ readonly inputs: readonly [];
144
+ readonly name: "getFeeIncreaseInfo";
145
+ readonly outputs: readonly [{
146
+ readonly internalType: "uint256";
147
+ readonly name: "";
148
+ readonly type: "uint256";
149
+ }, {
150
+ readonly internalType: "uint256";
151
+ readonly name: "";
152
+ readonly type: "uint256";
153
+ }, {
154
+ readonly internalType: "uint256";
155
+ readonly name: "";
156
+ readonly type: "uint256";
157
+ }, {
158
+ readonly internalType: "uint256";
159
+ readonly name: "";
160
+ readonly type: "uint256";
161
+ }, {
162
+ readonly internalType: "uint256";
163
+ readonly name: "";
164
+ readonly type: "uint256";
165
+ }];
166
+ readonly stateMutability: "view";
167
+ readonly type: "function";
168
+ }, {
169
+ readonly inputs: readonly [{
170
+ readonly internalType: "address";
171
+ readonly name: "member";
172
+ readonly type: "address";
173
+ }];
174
+ readonly name: "isMemberAllowed";
175
+ readonly outputs: readonly [{
176
+ readonly internalType: "bool";
177
+ readonly name: "";
178
+ readonly type: "bool";
179
+ }];
180
+ readonly stateMutability: "view";
181
+ readonly type: "function";
182
+ }, {
183
+ readonly inputs: readonly [];
184
+ readonly name: "minDepositUSD";
185
+ readonly outputs: readonly [{
186
+ readonly internalType: "uint256";
187
+ readonly name: "";
188
+ readonly type: "uint256";
189
+ }];
190
+ readonly stateMutability: "view";
191
+ readonly type: "function";
192
+ }, {
193
+ readonly inputs: readonly [];
194
+ readonly name: "totalFundValueMutable";
195
+ readonly outputs: readonly [{
196
+ readonly internalType: "uint256";
197
+ readonly name: "";
198
+ readonly type: "uint256";
199
+ }];
200
+ readonly stateMutability: "nonpayable";
201
+ readonly type: "function";
202
+ }, {
203
+ readonly inputs: readonly [];
204
+ readonly name: "getSupportedAssets";
205
+ readonly outputs: readonly [{
206
+ readonly components: readonly [{
207
+ readonly internalType: "address";
208
+ readonly name: "asset";
209
+ readonly type: "address";
210
+ }, {
211
+ readonly internalType: "bool";
212
+ readonly name: "isDeposit";
213
+ readonly type: "bool";
214
+ }];
215
+ readonly internalType: "struct IHasSupportedAsset.Asset[]";
216
+ readonly name: "";
217
+ readonly type: "tuple[]";
218
+ }];
219
+ readonly stateMutability: "view";
220
+ readonly type: "function";
221
+ }];
222
+ readonly functionName: "minDepositUSD";
223
+ readonly chainId: number;
224
+ }, {
225
+ readonly address: `0x${string}`;
226
+ readonly abi: readonly [{
227
+ readonly inputs: readonly [];
228
+ readonly name: "getFundComposition";
229
+ readonly outputs: readonly [{
230
+ readonly components: readonly [{
231
+ readonly internalType: "address";
232
+ readonly name: "asset";
233
+ readonly type: "address";
234
+ }, {
235
+ readonly internalType: "bool";
236
+ readonly name: "isDeposit";
237
+ readonly type: "bool";
238
+ }];
239
+ readonly internalType: "struct IHasSupportedAsset.Asset[]";
240
+ readonly name: "assets";
241
+ readonly type: "tuple[]";
242
+ }, {
243
+ readonly internalType: "uint256[]";
244
+ readonly name: "balances";
245
+ readonly type: "uint256[]";
246
+ }, {
247
+ readonly internalType: "uint256[]";
248
+ readonly name: "rates";
249
+ readonly type: "uint256[]";
250
+ }];
251
+ readonly stateMutability: "view";
252
+ readonly type: "function";
253
+ }, {
254
+ readonly inputs: readonly [];
255
+ readonly name: "getFeeIncreaseInfo";
256
+ readonly outputs: readonly [{
257
+ readonly internalType: "uint256";
258
+ readonly name: "";
259
+ readonly type: "uint256";
260
+ }, {
261
+ readonly internalType: "uint256";
262
+ readonly name: "";
263
+ readonly type: "uint256";
264
+ }, {
265
+ readonly internalType: "uint256";
266
+ readonly name: "";
267
+ readonly type: "uint256";
268
+ }, {
269
+ readonly internalType: "uint256";
270
+ readonly name: "";
271
+ readonly type: "uint256";
272
+ }, {
273
+ readonly internalType: "uint256";
274
+ readonly name: "";
275
+ readonly type: "uint256";
276
+ }];
277
+ readonly stateMutability: "view";
278
+ readonly type: "function";
279
+ }, {
280
+ readonly inputs: readonly [{
281
+ readonly internalType: "address";
282
+ readonly name: "member";
283
+ readonly type: "address";
284
+ }];
285
+ readonly name: "isMemberAllowed";
286
+ readonly outputs: readonly [{
287
+ readonly internalType: "bool";
288
+ readonly name: "";
289
+ readonly type: "bool";
290
+ }];
291
+ readonly stateMutability: "view";
292
+ readonly type: "function";
293
+ }, {
294
+ readonly inputs: readonly [];
295
+ readonly name: "minDepositUSD";
296
+ readonly outputs: readonly [{
297
+ readonly internalType: "uint256";
298
+ readonly name: "";
299
+ readonly type: "uint256";
300
+ }];
301
+ readonly stateMutability: "view";
302
+ readonly type: "function";
303
+ }, {
304
+ readonly inputs: readonly [];
305
+ readonly name: "totalFundValueMutable";
306
+ readonly outputs: readonly [{
307
+ readonly internalType: "uint256";
308
+ readonly name: "";
309
+ readonly type: "uint256";
310
+ }];
311
+ readonly stateMutability: "nonpayable";
312
+ readonly type: "function";
313
+ }, {
314
+ readonly inputs: readonly [];
315
+ readonly name: "getSupportedAssets";
316
+ readonly outputs: readonly [{
317
+ readonly components: readonly [{
318
+ readonly internalType: "address";
319
+ readonly name: "asset";
320
+ readonly type: "address";
321
+ }, {
322
+ readonly internalType: "bool";
323
+ readonly name: "isDeposit";
324
+ readonly type: "bool";
325
+ }];
326
+ readonly internalType: "struct IHasSupportedAsset.Asset[]";
327
+ readonly name: "";
328
+ readonly type: "tuple[]";
329
+ }];
330
+ readonly stateMutability: "view";
331
+ readonly type: "function";
332
+ }];
333
+ readonly functionName: "isMemberAllowed";
334
+ readonly args: readonly [`0x${string}`];
335
+ readonly chainId: number;
336
+ }], true, {
337
+ getFeeIncreaseInfo: readonly [bigint, bigint, bigint, bigint, bigint] | undefined;
338
+ minDepositUSD: bigint | undefined;
339
+ isMemberAllowed: boolean | undefined;
340
+ }>;