@dhedge/trading-widget 0.0.1 → 0.0.2

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 (312) hide show
  1. package/BPGFTGZB-348a28e3.cjs +1101 -0
  2. package/BPGFTGZB-3ace16f5.js +9284 -0
  3. package/core-kit/abi/aave-lending-pool.d.ts +846 -0
  4. package/core-kit/abi/dhedge-easy-swapper.d.ts +231 -0
  5. package/core-kit/abi/dhedge-staking-v2.d.ts +127 -0
  6. package/core-kit/abi/erc20.d.ts +1 -0
  7. package/core-kit/abi/index.d.ts +9 -0
  8. package/core-kit/abi/pool-factory.d.ts +57 -0
  9. package/core-kit/abi/pool-logic.d.ts +823 -0
  10. package/core-kit/abi/pool-manager-logic.d.ts +70 -0
  11. package/core-kit/abi/reward-distribution.d.ts +121 -0
  12. package/core-kit/abi/synthetix-v3/i-trusted-multicall-forwarder.d.ts +41 -0
  13. package/core-kit/abi/synthetix-v3/ierc-2771-context.d.ts +15 -0
  14. package/core-kit/abi/synthetix-v3/ierc-7412.d.ts +41 -0
  15. package/core-kit/abi/synthetix-v3/index.d.ts +6 -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 +10 -0
  20. package/core-kit/const/contracts/arbitrum.d.ts +3 -0
  21. package/core-kit/const/contracts/base.d.ts +2 -0
  22. package/core-kit/const/contracts/index.d.ts +4 -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 +23 -0
  27. package/core-kit/const/error.d.ts +4 -0
  28. package/core-kit/const/index.d.ts +11 -0
  29. package/core-kit/const/links.d.ts +1 -0
  30. package/core-kit/const/logger.d.ts +38 -0
  31. package/core-kit/const/network.d.ts +2232 -0
  32. package/core-kit/const/synthetix.d.ts +4 -0
  33. package/core-kit/const/tokens/arbitrum.d.ts +5 -0
  34. package/core-kit/const/tokens/base.d.ts +5 -0
  35. package/core-kit/const/tokens/index.d.ts +8 -0
  36. package/core-kit/const/tokens/optimism.d.ts +10 -0
  37. package/core-kit/const/tokens/polygon.d.ts +9 -0
  38. package/core-kit/const/web3.d.ts +4 -0
  39. package/core-kit/hooks/component/index.d.ts +2 -0
  40. package/core-kit/hooks/component/panel.d.ts +1 -0
  41. package/core-kit/hooks/component/tab.d.ts +2 -0
  42. package/core-kit/hooks/pool/index.d.ts +14 -0
  43. package/core-kit/hooks/pool/multicall/index.d.ts +4 -0
  44. package/core-kit/hooks/pool/multicall/use-pool-manager.dynamic.d.ts +910 -0
  45. package/core-kit/hooks/pool/multicall/use-pool-manager.static.d.ts +153 -0
  46. package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +2432 -0
  47. package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +2489 -0
  48. package/core-kit/hooks/pool/synthetixV3/use-pool-token-price-mutable.d.ts +8 -0
  49. package/core-kit/hooks/pool/synthetixV3/use-synthetix-v3-asset-balance.d.ts +8 -0
  50. package/core-kit/hooks/pool/synthetixV3/use-total-funds-value-mutable.d.ts +8 -0
  51. package/core-kit/hooks/pool/use-check-whitelist.d.ts +2 -0
  52. package/core-kit/hooks/pool/use-contract-pool-composition.d.ts +3 -0
  53. package/core-kit/hooks/pool/use-invalidate-pool-contract-data.d.ts +1 -0
  54. package/core-kit/hooks/pool/use-is-dhedge-pool.d.ts +5 -0
  55. package/core-kit/hooks/pool/use-manager-logic-address.d.ts +2 -0
  56. package/core-kit/hooks/pool/use-pool-composition-with-fraction.d.ts +14 -0
  57. package/core-kit/hooks/pool/use-pool-composition.d.ts +3 -0
  58. package/core-kit/hooks/pool/use-pool-dynamic-contract-data.d.ts +19 -0
  59. package/core-kit/hooks/pool/use-pool-fees.d.ts +12 -0
  60. package/core-kit/hooks/pool/use-pool-manager-logic-data.d.ts +14 -0
  61. package/core-kit/hooks/pool/use-pool-token-price.d.ts +9 -0
  62. package/core-kit/hooks/referral/index.d.ts +1 -0
  63. package/core-kit/hooks/referral/use-referral-program.d.ts +2 -0
  64. package/core-kit/hooks/state/action.d.ts +23 -0
  65. package/core-kit/hooks/state/context.d.ts +2 -0
  66. package/core-kit/hooks/state/index.d.ts +9 -0
  67. package/core-kit/hooks/state/input.d.ts +13 -0
  68. package/core-kit/hooks/state/meta.d.ts +8 -0
  69. package/core-kit/hooks/state/modal.d.ts +5 -0
  70. package/core-kit/hooks/state/pool.d.ts +16 -0
  71. package/core-kit/hooks/state/settings.d.ts +5 -0
  72. package/core-kit/hooks/state/transaction.d.ts +5 -0
  73. package/core-kit/hooks/state/type.d.ts +6 -0
  74. package/core-kit/hooks/trading/allowance/index.d.ts +3 -0
  75. package/core-kit/hooks/trading/allowance/use-approve.d.ts +9 -0
  76. package/core-kit/hooks/trading/allowance/use-can-spend.d.ts +11 -0
  77. package/core-kit/hooks/trading/allowance/use-token-allowance-handler.d.ts +1 -0
  78. package/core-kit/hooks/trading/deposit/index.d.ts +9 -0
  79. package/core-kit/hooks/trading/deposit/use-deposit-allowance.d.ts +4 -0
  80. package/core-kit/hooks/trading/deposit/use-deposit-method-handler.d.ts +2 -0
  81. package/core-kit/hooks/trading/deposit/use-deposit-quote.d.ts +2 -0
  82. package/core-kit/hooks/trading/deposit/use-deposit-slippage.d.ts +1 -0
  83. package/core-kit/hooks/trading/deposit/use-deposit.d.ts +2 -0
  84. package/core-kit/hooks/trading/deposit/use-handle-pool-deposit-data.d.ts +1 -0
  85. package/core-kit/hooks/trading/deposit/use-pool-deposit-asset-address.d.ts +9 -0
  86. package/core-kit/hooks/trading/deposit/use-pool-deposit-tokens.d.ts +2 -0
  87. package/core-kit/hooks/trading/deposit/use-should-be-whitelisted.d.ts +4 -0
  88. package/core-kit/hooks/trading/index.d.ts +15 -0
  89. package/core-kit/hooks/trading/projected-earnings/use-deposit-projected-earnings.d.ts +2 -0
  90. package/core-kit/hooks/trading/projected-earnings/use-projected-earnings-core.d.ts +10 -0
  91. package/core-kit/hooks/trading/use-asset-price.d.ts +8 -0
  92. package/core-kit/hooks/trading/use-exchange-rate.d.ts +5 -0
  93. package/core-kit/hooks/trading/use-handle-pool-swap-info.d.ts +1 -0
  94. package/core-kit/hooks/trading/use-handle-trade.d.ts +6 -0
  95. package/core-kit/hooks/trading/use-is-easy-swapper-trading.d.ts +1 -0
  96. package/core-kit/hooks/trading/use-is-trading-enabled.d.ts +1 -0
  97. package/core-kit/hooks/trading/use-max-slippage-placeholder.d.ts +1 -0
  98. package/core-kit/hooks/trading/use-min-receive-text.d.ts +4 -0
  99. package/core-kit/hooks/trading/use-raw-asset-price.d.ts +8 -0
  100. package/core-kit/hooks/trading/use-synthetix-v3-oracles-update.d.ts +10 -0
  101. package/core-kit/hooks/trading/use-trading-params.d.ts +2 -0
  102. package/core-kit/hooks/trading/use-trading-price-diff.d.ts +8 -0
  103. package/core-kit/hooks/trading/use-trading-result-handling.d.ts +1 -0
  104. package/core-kit/hooks/trading/use-trading-settle-handler.d.ts +3 -0
  105. package/core-kit/hooks/trading/withdraw/index.d.ts +6 -0
  106. package/core-kit/hooks/trading/withdraw/use-is-multi-asset-withdraw.d.ts +1 -0
  107. package/core-kit/hooks/trading/withdraw/use-withdraw-allowance.d.ts +4 -0
  108. package/core-kit/hooks/trading/withdraw/use-withdraw-quote.d.ts +2 -0
  109. package/core-kit/hooks/trading/withdraw/use-withdraw-slippage.d.ts +9 -0
  110. package/core-kit/hooks/trading/withdraw/use-withdraw-type-handler.d.ts +1 -0
  111. package/core-kit/hooks/trading/withdraw/use-withdraw.d.ts +2 -0
  112. package/core-kit/hooks/user/index.d.ts +3 -0
  113. package/core-kit/hooks/user/use-is-insufficient-balance.d.ts +1 -0
  114. package/core-kit/hooks/user/use-is-pool-manager-account.d.ts +1 -0
  115. package/core-kit/hooks/user/use-user-token-balance.d.ts +8 -0
  116. package/core-kit/hooks/utils/index.d.ts +2 -0
  117. package/core-kit/hooks/utils/use-browser-storage.d.ts +1 -0
  118. package/core-kit/hooks/utils/use-debounce.d.ts +1 -0
  119. package/core-kit/hooks/web3/index.d.ts +13 -0
  120. package/core-kit/hooks/web3/use-account.d.ts +7 -0
  121. package/core-kit/hooks/web3/use-balance.d.ts +2 -0
  122. package/core-kit/hooks/web3/use-contract-function.d.ts +17 -0
  123. package/core-kit/hooks/web3/use-contract-read-error-logging.d.ts +6 -0
  124. package/core-kit/hooks/web3/use-contract-reads-error-logging.d.ts +5 -0
  125. package/core-kit/hooks/web3/use-gas-price.d.ts +2 -0
  126. package/core-kit/hooks/web3/use-invalidate-on-block.d.ts +6 -0
  127. package/core-kit/hooks/web3/use-invalidate-trading-queries.d.ts +4 -0
  128. package/core-kit/hooks/web3/use-is-wallet-connected.d.ts +1 -0
  129. package/core-kit/hooks/web3/use-network.d.ts +13 -0
  130. package/core-kit/hooks/web3/use-static-call-query.d.ts +12 -0
  131. package/core-kit/hooks/web3/use-token-allowance.d.ts +3 -0
  132. package/core-kit/index.d.ts +1 -0
  133. package/core-kit/models/buying-with-easyswapper-args.d.ts +18 -0
  134. package/core-kit/models/buying-with-native-asset-args.d.ts +16 -0
  135. package/core-kit/models/buying-with-pool-logic-args.d.ts +14 -0
  136. package/core-kit/models/default-selling-params.d.ts +18 -0
  137. package/core-kit/models/estimation-error.d.ts +20 -0
  138. package/core-kit/models/index.d.ts +5 -0
  139. package/core-kit/providers/index.d.ts +6 -0
  140. package/core-kit/providers/wagmi-provider.d.ts +2 -0
  141. package/core-kit/types/config.types.d.ts +29 -0
  142. package/core-kit/types/index.d.ts +8 -0
  143. package/core-kit/types/pool.types.d.ts +16 -0
  144. package/core-kit/types/referral.types.d.ts +12 -0
  145. package/core-kit/types/state.types.d.ts +113 -0
  146. package/core-kit/types/synthetix-v3.types.d.ts +9 -0
  147. package/core-kit/types/trading-panel.types.d.ts +49 -0
  148. package/core-kit/types/trading.types.d.ts +21 -0
  149. package/core-kit/types/web3.types.d.ts +51 -0
  150. package/core-kit/utils/error.d.ts +10 -0
  151. package/core-kit/utils/formatter.d.ts +16 -0
  152. package/core-kit/utils/index.d.ts +9 -0
  153. package/core-kit/utils/number.d.ts +8 -0
  154. package/core-kit/utils/synthetix-v3/eip-7412.d.ts +10 -0
  155. package/core-kit/utils/synthetix-v3/multicall-forwarder-batcher.d.ts +8 -0
  156. package/core-kit/utils/synthetix-v3/parse-error.d.ts +3 -0
  157. package/core-kit/utils/synthetix-v3/pyth-adapter.d.ts +12 -0
  158. package/core-kit/utils/synthetix.d.ts +10 -0
  159. package/core-kit/utils/token.d.ts +4 -0
  160. package/core-kit/utils/transaction.d.ts +4 -0
  161. package/core-kit/utils/ua.d.ts +1 -0
  162. package/core-kit/utils/url.d.ts +3 -0
  163. package/core-kit/utils/web3.d.ts +11 -0
  164. package/index-09acee2a.js +42963 -0
  165. package/index-d35b75f0.cjs +227 -0
  166. package/index.cjs +1 -0
  167. package/index.d.ts +18 -1
  168. package/index.js +264 -337
  169. package/package.json +19 -11
  170. package/style.css +1 -1
  171. package/{components → trading-widget/components}/common/badge/token-badge/token-badge.d.ts +1 -1
  172. package/{components → trading-widget/components}/common/icon/token-icon/token-icon.d.ts +1 -1
  173. package/trading-widget/components/common/layout/overlay/overlay.d.ts +7 -0
  174. package/{components → trading-widget/components}/common/meta/transaction-disclosure/transaction-disclosure-item/transaction-disclosure-item.d.ts +1 -1
  175. package/{components → trading-widget/components}/common/meta/transaction-disclosure/transaction-disclosure.d.ts +1 -1
  176. package/{components → trading-widget/components}/common/spinner/spinner.d.ts +1 -1
  177. package/{components → trading-widget/components}/common/tab/tab-button/tab-button.d.ts +1 -1
  178. package/trading-widget/components/default-examples/image/image.d.ts +3 -0
  179. package/trading-widget/components/deposit/button/trade-button/trade-button.hooks.d.ts +5 -0
  180. package/{components → trading-widget/components}/deposit/input-group/input-group.hooks.d.ts +1 -1
  181. package/{components → trading-widget/components}/deposit/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +2 -2
  182. package/{components → trading-widget/components}/index.d.ts +1 -1
  183. package/{components → trading-widget/components}/widget/widget-input/asset-composition-table/asset-composition-table.hooks.d.ts +2 -2
  184. package/{components → trading-widget/components}/widget/widget-input/token-selector/token-selector.d.ts +1 -1
  185. package/{components → trading-widget/components}/widget/widget-input/widget-input.hooks.d.ts +1 -1
  186. package/trading-widget/components/widget/widget-overlay/high-slippage-overlay/high-slippage-overlay.d.ts +3 -0
  187. package/trading-widget/components/widget/widget-overlay/index.d.ts +4 -0
  188. package/trading-widget/components/widget/widget-overlay/overlay-switch/overlay-switch.d.ts +2 -0
  189. package/trading-widget/components/widget/widget-overlay/terms-of-use-overlay/terms-of-use-overlay.d.ts +3 -0
  190. package/{components → trading-widget/components}/widget/widget-settings/slippage-selector/slippage-selector.hooks.d.ts +1 -1
  191. package/{components → trading-widget/components}/widget/widget-settings/widget-settings.d.ts +1 -1
  192. package/{components → trading-widget/components}/widget/widget.hooks.d.ts +1 -1
  193. package/{components → trading-widget/components}/withdraw/button/valid-withdraw-button/valid-withdraw-button.hooks.d.ts +1 -1
  194. package/{components → trading-widget/components}/withdraw/input-group/input-group.hooks.d.ts +1 -1
  195. package/{components → trading-widget/components}/withdraw/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +1 -1
  196. package/{constants → trading-widget/constants}/synthetix-v3.d.ts +1 -1
  197. package/{hooks → trading-widget/hooks}/use-get-slippage-placeholder.d.ts +1 -1
  198. package/{hooks → trading-widget/hooks}/use-get-theme-type-by-slippage.d.ts +1 -1
  199. package/{hooks → trading-widget/hooks}/use-trading-type-name.d.ts +1 -1
  200. package/{hooks → trading-widget/hooks}/use-user-staked-pools.d.ts +1 -1
  201. package/trading-widget/hooks/use-user-vault-balance.d.ts +3 -0
  202. package/{hooks → trading-widget/hooks}/use-user-vaults-balances.d.ts +1 -1
  203. package/{providers → trading-widget/providers}/component-provider/component-provider.d.ts +1 -0
  204. package/{providers → trading-widget/providers}/component-provider/component-provider.hooks.d.ts +1 -0
  205. package/{providers → trading-widget/providers}/component-provider/component-provider.types.d.ts +2 -0
  206. package/{providers → trading-widget/providers}/config-provider/config-provider.types.d.ts +3 -1
  207. package/trading-widget/providers/overlay-provider/index.d.ts +2 -0
  208. package/trading-widget/providers/overlay-provider/overlay-provider.d.ts +2 -0
  209. package/trading-widget/providers/overlay-provider/overlay-provider.hooks.d.ts +12 -0
  210. package/trading-widget/providers/overlay-provider/overlay-provider.types.d.ts +12 -0
  211. package/{providers → trading-widget/providers}/theme-provider/theme-provider.types.d.ts +3 -3
  212. package/{providers → trading-widget/providers}/translation-provider/translation-provider.types.d.ts +14 -0
  213. package/{types → trading-widget/types}/index.d.ts +1 -0
  214. package/trading-widget/types/overlay.types.d.ts +8 -0
  215. package/{types → trading-widget/types}/staking.types.d.ts +1 -1
  216. package/{utils → trading-widget/utils}/format.d.ts +1 -1
  217. package/{utils → trading-widget/utils}/synthetix-v3.d.ts +3 -3
  218. package/components/common/layout/overlay/overlay.d.ts +0 -2
  219. package/components/default-examples/image/image.d.ts +0 -3
  220. package/components/widget/widget-overlay/index.d.ts +0 -1
  221. package/hooks/use-user-vault-balance.d.ts +0 -3
  222. package/index.mjs +0 -54443
  223. package/native-15074a2a.mjs +0 -15
  224. package/native-243c3d4c.js +0 -1
  225. /package/{components → trading-widget/components}/common/balance/balance.d.ts +0 -0
  226. /package/{components → trading-widget/components}/common/button/action-button/action-button.d.ts +0 -0
  227. /package/{components → trading-widget/components}/common/button/disabled-button-with-prompt/disabled-button-with-prompt.d.ts +0 -0
  228. /package/{components → trading-widget/components}/common/button/icon-button/icon-button.d.ts +0 -0
  229. /package/{components → trading-widget/components}/common/button/max-balance-button/max-balance-button.d.ts +0 -0
  230. /package/{components → trading-widget/components}/common/index.d.ts +0 -0
  231. /package/{components → trading-widget/components}/common/layout/balance/balance.d.ts +0 -0
  232. /package/{components → trading-widget/components}/common/layout/index.d.ts +0 -0
  233. /package/{components → trading-widget/components}/common/layout/input-group/input-group.d.ts +0 -0
  234. /package/{components → trading-widget/components}/common/layout/meta/meta.d.ts +0 -0
  235. /package/{components → trading-widget/components}/common/layout/panel/panel.d.ts +0 -0
  236. /package/{components → trading-widget/components}/common/layout/settings/settings-popover/settings-popover.d.ts +0 -0
  237. /package/{components → trading-widget/components}/common/layout/settings/settings.d.ts +0 -0
  238. /package/{components → trading-widget/components}/common/overlay/pending-overlay/pending-overlay.d.ts +0 -0
  239. /package/{components → trading-widget/components}/common/settings/settings-option/settings-option.d.ts +0 -0
  240. /package/{components → trading-widget/components}/common/skeleton/skeleton.d.ts +0 -0
  241. /package/{components → trading-widget/components}/common/switch/switch.d.ts +0 -0
  242. /package/{components → trading-widget/components}/common/tooltip/info-tooltip/info-tooltip.d.ts +0 -0
  243. /package/{components → trading-widget/components}/common/tooltip/tooltip-icon/tooltip-icon.d.ts +0 -0
  244. /package/{components → trading-widget/components}/common/tooltip/tooltip-wrapper/tooltip-wrapper.d.ts +0 -0
  245. /package/{components → trading-widget/components}/deposit/balance/balance.d.ts +0 -0
  246. /package/{components → trading-widget/components}/deposit/balance/balance.hooks.d.ts +0 -0
  247. /package/{components → trading-widget/components}/deposit/button/trade-button/trade-button.d.ts +0 -0
  248. /package/{components → trading-widget/components}/deposit/button/valid-deposit-button/valid-deposit-button.d.ts +0 -0
  249. /package/{components → trading-widget/components}/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +0 -0
  250. /package/{components → trading-widget/components}/deposit/index.d.ts +0 -0
  251. /package/{components → trading-widget/components}/deposit/input-group/input-group.d.ts +0 -0
  252. /package/{components → trading-widget/components}/deposit/meta/meta.d.ts +0 -0
  253. /package/{components → trading-widget/components}/deposit/meta/transaction-disclosure/transaction-disclosure.d.ts +0 -0
  254. /package/{components → trading-widget/components}/deposit/settings/deposit-fee-switch/deposit-fee-switch.d.ts +0 -0
  255. /package/{components → trading-widget/components}/deposit/settings/deposit-fee-switch/deposit-fee-switch.hooks.d.ts +0 -0
  256. /package/{components → trading-widget/components}/deposit/settings/deposit-settings/deposit-settings.d.ts +0 -0
  257. /package/{components → trading-widget/components}/deposit/settings/deposit-settings/deposit-settings.hooks.d.ts +0 -0
  258. /package/{components → trading-widget/components}/deposit/tab-panel/tab-panel.d.ts +0 -0
  259. /package/{components → trading-widget/components}/deposit/tab-panel/tab-panel.hooks.d.ts +0 -0
  260. /package/{components → trading-widget/components}/widget/widget-buttons/approve-button/approve-button.d.ts +0 -0
  261. /package/{components → trading-widget/components}/widget/widget-buttons/approve-button/approve-button.hooks.d.ts +0 -0
  262. /package/{components → trading-widget/components}/widget/widget-buttons/connect-wallet-button/connect-wallet-button.d.ts +0 -0
  263. /package/{components → trading-widget/components}/widget/widget-buttons/index.d.ts +0 -0
  264. /package/{components → trading-widget/components}/widget/widget-buttons/switch-network-button/switch-network-button.d.ts +0 -0
  265. /package/{components → trading-widget/components}/widget/widget-buttons/valid-network-button/valid-network-button.d.ts +0 -0
  266. /package/{components → trading-widget/components}/widget/widget-buttons/valid-network-button/valid-network-button.hooks.d.ts +0 -0
  267. /package/{components → trading-widget/components}/widget/widget-input/asset-composition-table/asset-composition-table.d.ts +0 -0
  268. /package/{components → trading-widget/components}/widget/widget-input/index.d.ts +0 -0
  269. /package/{components → trading-widget/components}/widget/widget-input/token-selector/token-selector.hooks.d.ts +0 -0
  270. /package/{components → trading-widget/components}/widget/widget-input/widget-input.d.ts +0 -0
  271. /package/{components → trading-widget/components}/widget/widget-input/widget-input.utils.d.ts +0 -0
  272. /package/{components → trading-widget/components}/widget/widget-meta/exchange-rate/exchange-rate.d.ts +0 -0
  273. /package/{components → trading-widget/components}/widget/widget-meta/index.d.ts +0 -0
  274. /package/{components → trading-widget/components}/widget/widget-overlay/pending-approval-overlay/pending-approval-overlay.d.ts +0 -0
  275. /package/{components → trading-widget/components}/widget/widget-overlay/pending-approval-overlay/pending-approval-overlay.hooks.d.ts +0 -0
  276. /package/{components → trading-widget/components}/widget/widget-settings/index.d.ts +0 -0
  277. /package/{components → trading-widget/components}/widget/widget-settings/slippage-selector/slippage-selector.d.ts +0 -0
  278. /package/{components → trading-widget/components}/widget/widget-settings/token-allowance-switch/token-allowance-switch.d.ts +0 -0
  279. /package/{components → trading-widget/components}/widget/widget-tabs/widget-tabs.d.ts +0 -0
  280. /package/{components → trading-widget/components}/widget/widget.d.ts +0 -0
  281. /package/{components → trading-widget/components}/withdraw/balance/balance.d.ts +0 -0
  282. /package/{components → trading-widget/components}/withdraw/balance/balance.hooks.d.ts +0 -0
  283. /package/{components → trading-widget/components}/withdraw/button/trade-button/trade-button.d.ts +0 -0
  284. /package/{components → trading-widget/components}/withdraw/button/valid-withdraw-button/valid-withdraw-button.d.ts +0 -0
  285. /package/{components → trading-widget/components}/withdraw/index.d.ts +0 -0
  286. /package/{components → trading-widget/components}/withdraw/input-group/input-group.d.ts +0 -0
  287. /package/{components → trading-widget/components}/withdraw/meta/meta.d.ts +0 -0
  288. /package/{components → trading-widget/components}/withdraw/meta/transaction-disclosure/transaction-disclosure.d.ts +0 -0
  289. /package/{components → trading-widget/components}/withdraw/settings/withdraw-settings/withdraw-settings.d.ts +0 -0
  290. /package/{components → trading-widget/components}/withdraw/tab-panel/tab-panel.d.ts +0 -0
  291. /package/{components → trading-widget/components}/withdraw/tab-panel/tab-panel.hooks.d.ts +0 -0
  292. /package/{constants → trading-widget/constants}/tab.d.ts +0 -0
  293. /package/{hooks → trading-widget/hooks}/index.d.ts +0 -0
  294. /package/{hooks → trading-widget/hooks}/use-crypto-icon.d.ts +0 -0
  295. /package/{hooks → trading-widget/hooks}/use-high-slippage-check.d.ts +0 -0
  296. /package/{hooks → trading-widget/hooks}/use-synthetix-withdrawal-window.d.ts +0 -0
  297. /package/{providers → trading-widget/providers}/component-provider/index.d.ts +0 -0
  298. /package/{providers → trading-widget/providers}/config-provider/config-provider.d.ts +0 -0
  299. /package/{providers → trading-widget/providers}/config-provider/config-provider.defaults.d.ts +0 -0
  300. /package/{providers → trading-widget/providers}/config-provider/config-provider.hooks.d.ts +0 -0
  301. /package/{providers → trading-widget/providers}/config-provider/index.d.ts +0 -0
  302. /package/{providers → trading-widget/providers}/index.d.ts +0 -0
  303. /package/{providers → trading-widget/providers}/theme-provider/index.d.ts +0 -0
  304. /package/{providers → trading-widget/providers}/theme-provider/theme-provider.d.ts +0 -0
  305. /package/{providers → trading-widget/providers}/translation-provider/index.d.ts +0 -0
  306. /package/{providers → trading-widget/providers}/translation-provider/translation-provider.d.ts +0 -0
  307. /package/{providers → trading-widget/providers}/translation-provider/translation-provider.defaults.d.ts +0 -0
  308. /package/{providers → trading-widget/providers}/translation-provider/translation-provider.hooks.d.ts +0 -0
  309. /package/{types → trading-widget/types}/balance.types.d.ts +0 -0
  310. /package/{types → trading-widget/types}/synthetix-v3.types.d.ts +0 -0
  311. /package/{types → trading-widget/types}/theme.types.d.ts +0 -0
  312. /package/{utils → trading-widget/utils}/icon.d.ts +0 -0
@@ -0,0 +1,231 @@
1
+ export declare const DhedgeEasySwapperAbi: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "address";
4
+ readonly name: "";
5
+ readonly type: "address";
6
+ }];
7
+ readonly name: "allowedPools";
8
+ readonly outputs: readonly [{
9
+ readonly internalType: "bool";
10
+ readonly name: "";
11
+ readonly type: "bool";
12
+ }];
13
+ readonly stateMutability: "view";
14
+ readonly type: "function";
15
+ }, {
16
+ readonly inputs: readonly [{
17
+ readonly internalType: "address";
18
+ readonly name: "pool";
19
+ readonly type: "address";
20
+ }, {
21
+ readonly internalType: "contract IERC20Extended";
22
+ readonly name: "depositAsset";
23
+ readonly type: "address";
24
+ }, {
25
+ readonly internalType: "uint256";
26
+ readonly name: "amount";
27
+ readonly type: "uint256";
28
+ }, {
29
+ readonly internalType: "contract IERC20Extended";
30
+ readonly name: "poolDepositAsset";
31
+ readonly type: "address";
32
+ }, {
33
+ readonly internalType: "uint256";
34
+ readonly name: "expectedLiquidityMinted";
35
+ readonly type: "uint256";
36
+ }];
37
+ readonly name: "deposit";
38
+ readonly outputs: readonly [{
39
+ readonly internalType: "uint256";
40
+ readonly name: "liquidityMinted";
41
+ readonly type: "uint256";
42
+ }];
43
+ readonly stateMutability: "nonpayable";
44
+ readonly type: "function";
45
+ }, {
46
+ readonly inputs: readonly [{
47
+ readonly internalType: "address";
48
+ readonly name: "pool";
49
+ readonly type: "address";
50
+ }, {
51
+ readonly internalType: "contract IERC20Extended";
52
+ readonly name: "depositAsset";
53
+ readonly type: "address";
54
+ }, {
55
+ readonly internalType: "uint256";
56
+ readonly name: "amount";
57
+ readonly type: "uint256";
58
+ }, {
59
+ readonly internalType: "contract IERC20Extended";
60
+ readonly name: "poolDepositAsset";
61
+ readonly type: "address";
62
+ }, {
63
+ readonly internalType: "uint256";
64
+ readonly name: "expectedLiquidityMinted";
65
+ readonly type: "uint256";
66
+ }];
67
+ readonly name: "depositWithCustomCooldown";
68
+ readonly outputs: readonly [{
69
+ readonly internalType: "uint256";
70
+ readonly name: "liquidityMinted";
71
+ readonly type: "uint256";
72
+ }];
73
+ readonly stateMutability: "nonpayable";
74
+ readonly type: "function";
75
+ }, {
76
+ readonly inputs: readonly [{
77
+ readonly internalType: "address";
78
+ readonly name: "pool";
79
+ readonly type: "address";
80
+ }, {
81
+ readonly internalType: "contract IERC20Extended";
82
+ readonly name: "poolDepositAsset";
83
+ readonly type: "address";
84
+ }, {
85
+ readonly internalType: "uint256";
86
+ readonly name: "expectedLiquidityMinted";
87
+ readonly type: "uint256";
88
+ }];
89
+ readonly name: "depositNative";
90
+ readonly outputs: readonly [{
91
+ readonly internalType: "uint256";
92
+ readonly name: "liquidityMinted";
93
+ readonly type: "uint256";
94
+ }];
95
+ readonly stateMutability: "payable";
96
+ readonly type: "function";
97
+ }, {
98
+ readonly inputs: readonly [{
99
+ readonly internalType: "address";
100
+ readonly name: "pool";
101
+ readonly type: "address";
102
+ }, {
103
+ readonly internalType: "contract IERC20Extended";
104
+ readonly name: "poolDepositAsset";
105
+ readonly type: "address";
106
+ }, {
107
+ readonly internalType: "uint256";
108
+ readonly name: "expectedLiquidityMinted";
109
+ readonly type: "uint256";
110
+ }];
111
+ readonly name: "depositNativeWithCustomCooldown";
112
+ readonly outputs: readonly [{
113
+ readonly internalType: "uint256";
114
+ readonly name: "liquidityMinted";
115
+ readonly type: "uint256";
116
+ }];
117
+ readonly stateMutability: "payable";
118
+ readonly type: "function";
119
+ }, {
120
+ readonly inputs: readonly [{
121
+ readonly internalType: "address";
122
+ readonly name: "pool";
123
+ readonly type: "address";
124
+ }, {
125
+ readonly internalType: "contract IERC20Extended";
126
+ readonly name: "depositAsset";
127
+ readonly type: "address";
128
+ }, {
129
+ readonly internalType: "uint256";
130
+ readonly name: "amount";
131
+ readonly type: "uint256";
132
+ }, {
133
+ readonly internalType: "contract IERC20Extended";
134
+ readonly name: "poolDepositAsset";
135
+ readonly type: "address";
136
+ }, {
137
+ readonly internalType: "bool";
138
+ readonly name: "customCooldown";
139
+ readonly type: "bool";
140
+ }];
141
+ readonly name: "depositQuote";
142
+ readonly outputs: readonly [{
143
+ readonly internalType: "uint256";
144
+ readonly name: "expectedLiquidityMinted";
145
+ readonly type: "uint256";
146
+ }];
147
+ readonly stateMutability: "view";
148
+ readonly type: "function";
149
+ }, {
150
+ readonly inputs: readonly [];
151
+ readonly name: "feeDenominator";
152
+ readonly outputs: readonly [{
153
+ readonly internalType: "uint256";
154
+ readonly name: "";
155
+ readonly type: "uint256";
156
+ }];
157
+ readonly stateMutability: "view";
158
+ readonly type: "function";
159
+ }, {
160
+ readonly inputs: readonly [];
161
+ readonly name: "feeNumerator";
162
+ readonly outputs: readonly [{
163
+ readonly internalType: "uint256";
164
+ readonly name: "";
165
+ readonly type: "uint256";
166
+ }];
167
+ readonly stateMutability: "view";
168
+ readonly type: "function";
169
+ }, {
170
+ readonly inputs: readonly [{
171
+ readonly internalType: "address";
172
+ readonly name: "pool";
173
+ readonly type: "address";
174
+ }, {
175
+ readonly internalType: "uint256";
176
+ readonly name: "fundTokenAmount";
177
+ readonly type: "uint256";
178
+ }, {
179
+ readonly internalType: "contract IERC20Extended";
180
+ readonly name: "withdrawalAsset";
181
+ readonly type: "address";
182
+ }, {
183
+ readonly internalType: "uint256";
184
+ readonly name: "expectedAmountOut";
185
+ readonly type: "uint256";
186
+ }];
187
+ readonly name: "withdraw";
188
+ readonly outputs: readonly [];
189
+ readonly stateMutability: "nonpayable";
190
+ readonly type: "function";
191
+ }, {
192
+ readonly inputs: readonly [{
193
+ readonly internalType: "address";
194
+ readonly name: "pool";
195
+ readonly type: "address";
196
+ }, {
197
+ readonly internalType: "uint256";
198
+ readonly name: "fundTokenAmount";
199
+ readonly type: "uint256";
200
+ }, {
201
+ readonly internalType: "uint256";
202
+ readonly name: "expectedAmountOut";
203
+ readonly type: "uint256";
204
+ }];
205
+ readonly name: "withdrawNative";
206
+ readonly outputs: readonly [];
207
+ readonly stateMutability: "nonpayable";
208
+ readonly type: "function";
209
+ }, {
210
+ readonly inputs: readonly [{
211
+ readonly internalType: "address";
212
+ readonly name: "pool";
213
+ readonly type: "address";
214
+ }, {
215
+ readonly internalType: "uint256";
216
+ readonly name: "fundTokenAmount";
217
+ readonly type: "uint256";
218
+ }, {
219
+ readonly internalType: "contract IERC20Extended";
220
+ readonly name: "intermediateAsset";
221
+ readonly type: "address";
222
+ }, {
223
+ readonly internalType: "uint256";
224
+ readonly name: "expectedAmountSUSD";
225
+ readonly type: "uint256";
226
+ }];
227
+ readonly name: "withdrawSUSD";
228
+ readonly outputs: readonly [];
229
+ readonly stateMutability: "nonpayable";
230
+ readonly type: "function";
231
+ }];
@@ -0,0 +1,127 @@
1
+ export declare const DHedgeStakingV2Abi: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "address";
4
+ readonly name: "dhedgePoolAddress";
5
+ readonly type: "address";
6
+ }];
7
+ readonly name: "getPoolConfiguration";
8
+ readonly outputs: readonly [{
9
+ readonly components: readonly [{
10
+ readonly internalType: "bool";
11
+ readonly name: "configured";
12
+ readonly type: "bool";
13
+ }, {
14
+ readonly internalType: "uint256";
15
+ readonly name: "stakeCap";
16
+ readonly type: "uint256";
17
+ }, {
18
+ readonly internalType: "uint256";
19
+ readonly name: "stakedSoFar";
20
+ readonly type: "uint256";
21
+ }];
22
+ readonly internalType: "struct IDhedgeStakingV2Storage.PoolConfiguration";
23
+ readonly name: "";
24
+ readonly type: "tuple";
25
+ }];
26
+ readonly stateMutability: "view";
27
+ readonly type: "function";
28
+ }, {
29
+ readonly inputs: readonly [{
30
+ readonly internalType: "address";
31
+ readonly name: "owner";
32
+ readonly type: "address";
33
+ }];
34
+ readonly name: "balanceOf";
35
+ readonly outputs: readonly [{
36
+ readonly internalType: "uint256";
37
+ readonly name: "";
38
+ readonly type: "uint256";
39
+ }];
40
+ readonly stateMutability: "view";
41
+ readonly type: "function";
42
+ }, {
43
+ readonly inputs: readonly [{
44
+ readonly internalType: "address";
45
+ readonly name: "owner";
46
+ readonly type: "address";
47
+ }, {
48
+ readonly internalType: "uint256";
49
+ readonly name: "index";
50
+ readonly type: "uint256";
51
+ }];
52
+ readonly name: "tokenOfOwnerByIndex";
53
+ readonly outputs: readonly [{
54
+ readonly internalType: "uint256";
55
+ readonly name: "stakeId";
56
+ readonly type: "uint256";
57
+ }];
58
+ readonly stateMutability: "view";
59
+ readonly type: "function";
60
+ }, {
61
+ readonly inputs: readonly [{
62
+ readonly internalType: "uint256";
63
+ readonly name: "tokenId";
64
+ readonly type: "uint256";
65
+ }];
66
+ readonly name: "getStake";
67
+ readonly outputs: readonly [{
68
+ readonly components: readonly [{
69
+ readonly internalType: "uint256";
70
+ readonly name: "dhtAmount";
71
+ readonly type: "uint256";
72
+ }, {
73
+ readonly internalType: "uint256";
74
+ readonly name: "dhtStakeStartTime";
75
+ readonly type: "uint256";
76
+ }, {
77
+ readonly internalType: "address";
78
+ readonly name: "dhedgePoolAddress";
79
+ readonly type: "address";
80
+ }, {
81
+ readonly internalType: "uint256";
82
+ readonly name: "dhedgePoolAmount";
83
+ readonly type: "uint256";
84
+ }, {
85
+ readonly internalType: "uint256";
86
+ readonly name: "dhedgePoolStakeStartTime";
87
+ readonly type: "uint256";
88
+ }, {
89
+ readonly internalType: "uint256";
90
+ readonly name: "stakeStartTokenPrice";
91
+ readonly type: "uint256";
92
+ }, {
93
+ readonly internalType: "bool";
94
+ readonly name: "unstaked";
95
+ readonly type: "bool";
96
+ }, {
97
+ readonly internalType: "uint256";
98
+ readonly name: "unstakeTime";
99
+ readonly type: "uint256";
100
+ }, {
101
+ readonly internalType: "uint256";
102
+ readonly name: "reward";
103
+ readonly type: "uint256";
104
+ }, {
105
+ readonly internalType: "uint256";
106
+ readonly name: "claimedReward";
107
+ readonly type: "uint256";
108
+ }, {
109
+ readonly internalType: "uint256";
110
+ readonly name: "rewardParamsEmissionsRate";
111
+ readonly type: "uint256";
112
+ }, {
113
+ readonly internalType: "uint256";
114
+ readonly name: "stakeFinishTokenPrice";
115
+ readonly type: "uint256";
116
+ }, {
117
+ readonly internalType: "uint256";
118
+ readonly name: "vdhtAccruedAtUnstake";
119
+ readonly type: "uint256";
120
+ }];
121
+ readonly internalType: "struct IDhedgeStakingV2Storage.Stake";
122
+ readonly name: "";
123
+ readonly type: "tuple";
124
+ }];
125
+ readonly stateMutability: "view";
126
+ readonly type: "function";
127
+ }];
@@ -0,0 +1 @@
1
+ export { erc20Abi } from 'viem';
@@ -0,0 +1,9 @@
1
+ export { erc20Abi } from './erc20';
2
+ export { AaveLendingPoolAbi } from './aave-lending-pool';
3
+ export { DhedgeEasySwapperAbi } from './dhedge-easy-swapper';
4
+ export { DHedgeStakingV2Abi } from './dhedge-staking-v2';
5
+ export { PoolFactoryAbi } from './pool-factory';
6
+ export { PoolLogicAbi } from './pool-logic';
7
+ export { PoolManagerLogicAbi } from './pool-manager-logic';
8
+ export { RewardDistributionAbi } from './reward-distribution';
9
+ export { ITrustedMulticallForwarderAbi, IERC2771ContextAbi, IERC7412Abi, SynthetixV3CoreAbi, SynthetixV3AssetGuard, SynthetixV3ContractGuard, } from './synthetix-v3';
@@ -0,0 +1,57 @@
1
+ export declare const PoolFactoryAbi: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "address";
4
+ readonly name: "asset";
5
+ readonly type: "address";
6
+ }];
7
+ readonly name: "getAssetPrice";
8
+ readonly outputs: readonly [{
9
+ readonly internalType: "uint256";
10
+ readonly name: "price";
11
+ readonly type: "uint256";
12
+ }];
13
+ readonly stateMutability: "view";
14
+ readonly type: "function";
15
+ }, {
16
+ readonly inputs: readonly [{
17
+ readonly internalType: "address";
18
+ readonly name: "";
19
+ readonly type: "address";
20
+ }];
21
+ readonly name: "isPool";
22
+ readonly outputs: readonly [{
23
+ readonly internalType: "bool";
24
+ readonly name: "";
25
+ readonly type: "bool";
26
+ }];
27
+ readonly stateMutability: "view";
28
+ readonly type: "function";
29
+ }, {
30
+ readonly inputs: readonly [{
31
+ readonly internalType: "address";
32
+ readonly name: "extContract";
33
+ readonly type: "address";
34
+ }];
35
+ readonly name: "getAssetGuard";
36
+ readonly outputs: readonly [{
37
+ readonly internalType: "address";
38
+ readonly name: "guard";
39
+ readonly type: "address";
40
+ }];
41
+ readonly stateMutability: "view";
42
+ readonly type: "function";
43
+ }, {
44
+ readonly inputs: readonly [{
45
+ readonly internalType: "address";
46
+ readonly name: "extContract";
47
+ readonly type: "address";
48
+ }];
49
+ readonly name: "getContractGuard";
50
+ readonly outputs: readonly [{
51
+ readonly internalType: "address";
52
+ readonly name: "guard";
53
+ readonly type: "address";
54
+ }];
55
+ readonly stateMutability: "view";
56
+ readonly type: "function";
57
+ }];