@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,682 @@
1
+ import { arbitrum, base, optimism, polygon } from 'wagmi/chains';
2
+ import type { ChainId, ChainNativeTokenMap } from 'core-kit/types';
3
+ export declare const CHAIN_MAP: {
4
+ readonly 137: {
5
+ blockExplorers: {
6
+ readonly default: {
7
+ readonly name: "PolygonScan";
8
+ readonly url: "https://polygonscan.com";
9
+ readonly apiUrl: "https://api.polygonscan.com/api";
10
+ };
11
+ };
12
+ contracts: {
13
+ readonly multicall3: {
14
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
15
+ readonly blockCreated: 25770160;
16
+ };
17
+ };
18
+ id: 137;
19
+ name: "Polygon";
20
+ nativeCurrency: {
21
+ readonly name: "POL";
22
+ readonly symbol: "POL";
23
+ readonly decimals: 18;
24
+ };
25
+ rpcUrls: {
26
+ readonly default: {
27
+ readonly http: readonly ["https://polygon-rpc.com"];
28
+ };
29
+ };
30
+ sourceId?: number | undefined;
31
+ testnet?: boolean | undefined;
32
+ custom?: Record<string, unknown> | undefined;
33
+ fees?: import("viem").ChainFees<undefined> | undefined;
34
+ formatters?: undefined;
35
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable<bigint, number>> | undefined;
36
+ };
37
+ readonly 10: {
38
+ blockExplorers: {
39
+ readonly default: {
40
+ readonly name: "Optimism Explorer";
41
+ readonly url: "https://optimistic.etherscan.io";
42
+ readonly apiUrl: "https://api-optimistic.etherscan.io/api";
43
+ };
44
+ };
45
+ contracts: {
46
+ readonly disputeGameFactory: {
47
+ readonly 1: {
48
+ readonly address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9";
49
+ };
50
+ };
51
+ readonly l2OutputOracle: {
52
+ readonly 1: {
53
+ readonly address: "0xdfe97868233d1aa22e815a266982f2cf17685a27";
54
+ };
55
+ };
56
+ readonly multicall3: {
57
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
58
+ readonly blockCreated: 4286263;
59
+ };
60
+ readonly portal: {
61
+ readonly 1: {
62
+ readonly address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed";
63
+ };
64
+ };
65
+ readonly l1StandardBridge: {
66
+ readonly 1: {
67
+ readonly address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1";
68
+ };
69
+ };
70
+ readonly gasPriceOracle: {
71
+ readonly address: "0x420000000000000000000000000000000000000F";
72
+ };
73
+ readonly l1Block: {
74
+ readonly address: "0x4200000000000000000000000000000000000015";
75
+ };
76
+ readonly l2CrossDomainMessenger: {
77
+ readonly address: "0x4200000000000000000000000000000000000007";
78
+ };
79
+ readonly l2Erc721Bridge: {
80
+ readonly address: "0x4200000000000000000000000000000000000014";
81
+ };
82
+ readonly l2StandardBridge: {
83
+ readonly address: "0x4200000000000000000000000000000000000010";
84
+ };
85
+ readonly l2ToL1MessagePasser: {
86
+ readonly address: "0x4200000000000000000000000000000000000016";
87
+ };
88
+ };
89
+ id: 10;
90
+ name: "OP Mainnet";
91
+ nativeCurrency: {
92
+ readonly name: "Ether";
93
+ readonly symbol: "ETH";
94
+ readonly decimals: 18;
95
+ };
96
+ rpcUrls: {
97
+ readonly default: {
98
+ readonly http: readonly ["https://mainnet.optimism.io"];
99
+ };
100
+ };
101
+ sourceId: 1;
102
+ testnet?: boolean | undefined;
103
+ custom?: Record<string, unknown> | undefined;
104
+ fees?: import("viem").ChainFees<undefined> | undefined;
105
+ formatters: {
106
+ readonly block: {
107
+ exclude: [] | undefined;
108
+ format: (args: import("wagmi/chains").OpStackRpcBlock<import("viem").BlockTag, boolean>) => {
109
+ baseFeePerGas: bigint | null;
110
+ blobGasUsed: bigint;
111
+ difficulty: bigint;
112
+ excessBlobGas: bigint;
113
+ extraData: `0x${string}`;
114
+ gasLimit: bigint;
115
+ gasUsed: bigint;
116
+ hash: `0x${string}` | null;
117
+ logsBloom: `0x${string}` | null;
118
+ miner: `0x${string}`;
119
+ mixHash: `0x${string}`;
120
+ nonce: `0x${string}` | null;
121
+ number: bigint | null;
122
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
123
+ parentHash: `0x${string}`;
124
+ receiptsRoot: `0x${string}`;
125
+ sealFields: `0x${string}`[];
126
+ sha3Uncles: `0x${string}`;
127
+ size: bigint;
128
+ stateRoot: `0x${string}`;
129
+ timestamp: bigint;
130
+ totalDifficulty: bigint | null;
131
+ transactions: `0x${string}`[] | import("wagmi/chains").OpStackTransaction<boolean>[];
132
+ transactionsRoot: `0x${string}`;
133
+ uncles: `0x${string}`[];
134
+ withdrawals?: import("viem").Withdrawal[] | undefined;
135
+ withdrawalsRoot?: `0x${string}` | undefined;
136
+ };
137
+ type: "block";
138
+ };
139
+ readonly transaction: {
140
+ exclude: [] | undefined;
141
+ format: (args: import("wagmi/chains").OpStackRpcTransaction<boolean>) => {
142
+ blockHash: `0x${string}` | null;
143
+ blockNumber: bigint | null;
144
+ from: `0x${string}`;
145
+ gas: bigint;
146
+ hash: `0x${string}`;
147
+ input: `0x${string}`;
148
+ nonce: number;
149
+ r: `0x${string}`;
150
+ s: `0x${string}`;
151
+ to: `0x${string}` | null;
152
+ transactionIndex: number | null;
153
+ typeHex: `0x${string}` | null;
154
+ v: bigint;
155
+ value: bigint;
156
+ yParity: number;
157
+ gasPrice?: undefined;
158
+ maxFeePerBlobGas?: undefined;
159
+ maxFeePerGas: bigint;
160
+ maxPriorityFeePerGas: bigint;
161
+ isSystemTx?: boolean | undefined;
162
+ mint?: bigint | undefined;
163
+ sourceHash: `0x${string}`;
164
+ type: "deposit";
165
+ } | {
166
+ r: `0x${string}`;
167
+ s: `0x${string}`;
168
+ v: bigint;
169
+ to: `0x${string}` | null;
170
+ from: `0x${string}`;
171
+ gas: bigint;
172
+ nonce: number;
173
+ value: bigint;
174
+ blockHash: `0x${string}` | null;
175
+ blockNumber: bigint | null;
176
+ hash: `0x${string}`;
177
+ input: `0x${string}`;
178
+ transactionIndex: number | null;
179
+ typeHex: `0x${string}` | null;
180
+ accessList?: undefined;
181
+ authorizationList?: undefined;
182
+ blobVersionedHashes?: undefined;
183
+ chainId?: number | undefined;
184
+ yParity?: undefined;
185
+ type: "legacy";
186
+ gasPrice: bigint;
187
+ maxFeePerBlobGas?: undefined;
188
+ maxFeePerGas?: undefined;
189
+ maxPriorityFeePerGas?: undefined;
190
+ isSystemTx?: undefined;
191
+ mint?: undefined;
192
+ sourceHash?: undefined;
193
+ } | {
194
+ blockHash: `0x${string}` | null;
195
+ blockNumber: bigint | null;
196
+ from: `0x${string}`;
197
+ gas: bigint;
198
+ hash: `0x${string}`;
199
+ input: `0x${string}`;
200
+ nonce: number;
201
+ r: `0x${string}`;
202
+ s: `0x${string}`;
203
+ to: `0x${string}` | null;
204
+ transactionIndex: number | null;
205
+ typeHex: `0x${string}` | null;
206
+ v: bigint;
207
+ value: bigint;
208
+ yParity: number;
209
+ accessList: import("viem").AccessList;
210
+ authorizationList?: undefined;
211
+ blobVersionedHashes?: undefined;
212
+ chainId: number;
213
+ type: "eip2930";
214
+ gasPrice: bigint;
215
+ maxFeePerBlobGas?: undefined;
216
+ maxFeePerGas?: undefined;
217
+ maxPriorityFeePerGas?: undefined;
218
+ isSystemTx?: undefined;
219
+ mint?: undefined;
220
+ sourceHash?: undefined;
221
+ } | {
222
+ blockHash: `0x${string}` | null;
223
+ blockNumber: bigint | null;
224
+ from: `0x${string}`;
225
+ gas: bigint;
226
+ hash: `0x${string}`;
227
+ input: `0x${string}`;
228
+ nonce: number;
229
+ r: `0x${string}`;
230
+ s: `0x${string}`;
231
+ to: `0x${string}` | null;
232
+ transactionIndex: number | null;
233
+ typeHex: `0x${string}` | null;
234
+ v: bigint;
235
+ value: bigint;
236
+ yParity: number;
237
+ accessList: import("viem").AccessList;
238
+ authorizationList?: undefined;
239
+ blobVersionedHashes?: undefined;
240
+ chainId: number;
241
+ type: "eip1559";
242
+ gasPrice?: undefined;
243
+ maxFeePerBlobGas?: undefined;
244
+ maxFeePerGas: bigint;
245
+ maxPriorityFeePerGas: bigint;
246
+ isSystemTx?: undefined;
247
+ mint?: undefined;
248
+ sourceHash?: undefined;
249
+ } | {
250
+ blockHash: `0x${string}` | null;
251
+ blockNumber: bigint | null;
252
+ from: `0x${string}`;
253
+ gas: bigint;
254
+ hash: `0x${string}`;
255
+ input: `0x${string}`;
256
+ nonce: number;
257
+ r: `0x${string}`;
258
+ s: `0x${string}`;
259
+ to: `0x${string}` | null;
260
+ transactionIndex: number | null;
261
+ typeHex: `0x${string}` | null;
262
+ v: bigint;
263
+ value: bigint;
264
+ yParity: number;
265
+ accessList: import("viem").AccessList;
266
+ authorizationList?: undefined;
267
+ blobVersionedHashes: readonly `0x${string}`[];
268
+ chainId: number;
269
+ type: "eip4844";
270
+ gasPrice?: undefined;
271
+ maxFeePerBlobGas: bigint;
272
+ maxFeePerGas: bigint;
273
+ maxPriorityFeePerGas: bigint;
274
+ isSystemTx?: undefined;
275
+ mint?: undefined;
276
+ sourceHash?: undefined;
277
+ } | {
278
+ blockHash: `0x${string}` | null;
279
+ blockNumber: bigint | null;
280
+ from: `0x${string}`;
281
+ gas: bigint;
282
+ hash: `0x${string}`;
283
+ input: `0x${string}`;
284
+ nonce: number;
285
+ r: `0x${string}`;
286
+ s: `0x${string}`;
287
+ to: `0x${string}` | null;
288
+ transactionIndex: number | null;
289
+ typeHex: `0x${string}` | null;
290
+ v: bigint;
291
+ value: bigint;
292
+ yParity: number;
293
+ accessList: import("viem").AccessList;
294
+ authorizationList: import("viem/experimental").SignedAuthorizationList<number>;
295
+ blobVersionedHashes?: undefined;
296
+ chainId: number;
297
+ type: "eip7702";
298
+ gasPrice?: undefined;
299
+ maxFeePerBlobGas?: undefined;
300
+ maxFeePerGas: bigint;
301
+ maxPriorityFeePerGas: bigint;
302
+ isSystemTx?: undefined;
303
+ mint?: undefined;
304
+ sourceHash?: undefined;
305
+ };
306
+ type: "transaction";
307
+ };
308
+ readonly transactionReceipt: {
309
+ exclude: [] | undefined;
310
+ format: (args: import("wagmi/chains").OpStackRpcTransactionReceipt) => {
311
+ blobGasPrice?: bigint | undefined;
312
+ blobGasUsed?: bigint | undefined;
313
+ blockHash: `0x${string}`;
314
+ blockNumber: bigint;
315
+ contractAddress: `0x${string}` | null | undefined;
316
+ cumulativeGasUsed: bigint;
317
+ effectiveGasPrice: bigint;
318
+ from: `0x${string}`;
319
+ gasUsed: bigint;
320
+ logs: import("viem").Log<bigint, number, false, undefined, undefined, undefined, undefined>[];
321
+ logsBloom: `0x${string}`;
322
+ root?: `0x${string}` | undefined;
323
+ status: "success" | "reverted";
324
+ to: `0x${string}` | null;
325
+ transactionHash: `0x${string}`;
326
+ transactionIndex: number;
327
+ type: import("viem").TransactionType;
328
+ l1GasPrice: bigint | null;
329
+ l1GasUsed: bigint | null;
330
+ l1Fee: bigint | null;
331
+ l1FeeScalar: number | null;
332
+ };
333
+ type: "transactionReceipt";
334
+ };
335
+ };
336
+ serializers: {
337
+ readonly transaction: typeof import("wagmi/chains").serializeTransactionOpStack;
338
+ };
339
+ };
340
+ readonly 42161: {
341
+ blockExplorers: {
342
+ readonly default: {
343
+ readonly name: "Arbiscan";
344
+ readonly url: "https://arbiscan.io";
345
+ readonly apiUrl: "https://api.arbiscan.io/api";
346
+ };
347
+ };
348
+ contracts: {
349
+ readonly multicall3: {
350
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
351
+ readonly blockCreated: 7654707;
352
+ };
353
+ };
354
+ id: 42161;
355
+ name: "Arbitrum One";
356
+ nativeCurrency: {
357
+ readonly name: "Ether";
358
+ readonly symbol: "ETH";
359
+ readonly decimals: 18;
360
+ };
361
+ rpcUrls: {
362
+ readonly default: {
363
+ readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
364
+ };
365
+ };
366
+ sourceId?: number | undefined;
367
+ testnet?: boolean | undefined;
368
+ custom?: Record<string, unknown> | undefined;
369
+ fees?: import("viem").ChainFees<undefined> | undefined;
370
+ formatters?: undefined;
371
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable<bigint, number>> | undefined;
372
+ };
373
+ readonly 8453: {
374
+ blockExplorers: {
375
+ readonly default: {
376
+ readonly name: "Basescan";
377
+ readonly url: "https://basescan.org";
378
+ readonly apiUrl: "https://api.basescan.org/api";
379
+ };
380
+ };
381
+ contracts: {
382
+ readonly disputeGameFactory: {
383
+ readonly 1: {
384
+ readonly address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e";
385
+ };
386
+ };
387
+ readonly l2OutputOracle: {
388
+ readonly 1: {
389
+ readonly address: "0x56315b90c40730925ec5485cf004d835058518A0";
390
+ };
391
+ };
392
+ readonly multicall3: {
393
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
394
+ readonly blockCreated: 5022;
395
+ };
396
+ readonly portal: {
397
+ readonly 1: {
398
+ readonly address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
399
+ readonly blockCreated: 17482143;
400
+ };
401
+ };
402
+ readonly l1StandardBridge: {
403
+ readonly 1: {
404
+ readonly address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
405
+ readonly blockCreated: 17482143;
406
+ };
407
+ };
408
+ readonly gasPriceOracle: {
409
+ readonly address: "0x420000000000000000000000000000000000000F";
410
+ };
411
+ readonly l1Block: {
412
+ readonly address: "0x4200000000000000000000000000000000000015";
413
+ };
414
+ readonly l2CrossDomainMessenger: {
415
+ readonly address: "0x4200000000000000000000000000000000000007";
416
+ };
417
+ readonly l2Erc721Bridge: {
418
+ readonly address: "0x4200000000000000000000000000000000000014";
419
+ };
420
+ readonly l2StandardBridge: {
421
+ readonly address: "0x4200000000000000000000000000000000000010";
422
+ };
423
+ readonly l2ToL1MessagePasser: {
424
+ readonly address: "0x4200000000000000000000000000000000000016";
425
+ };
426
+ };
427
+ id: 8453;
428
+ name: "Base";
429
+ nativeCurrency: {
430
+ readonly name: "Ether";
431
+ readonly symbol: "ETH";
432
+ readonly decimals: 18;
433
+ };
434
+ rpcUrls: {
435
+ readonly default: {
436
+ readonly http: readonly ["https://mainnet.base.org"];
437
+ };
438
+ };
439
+ sourceId: 1;
440
+ testnet?: boolean | undefined;
441
+ custom?: Record<string, unknown> | undefined;
442
+ fees?: import("viem").ChainFees<undefined> | undefined;
443
+ formatters: {
444
+ readonly block: {
445
+ exclude: [] | undefined;
446
+ format: (args: import("wagmi/chains").OpStackRpcBlock<import("viem").BlockTag, boolean>) => {
447
+ baseFeePerGas: bigint | null;
448
+ blobGasUsed: bigint;
449
+ difficulty: bigint;
450
+ excessBlobGas: bigint;
451
+ extraData: `0x${string}`;
452
+ gasLimit: bigint;
453
+ gasUsed: bigint;
454
+ hash: `0x${string}` | null;
455
+ logsBloom: `0x${string}` | null;
456
+ miner: `0x${string}`;
457
+ mixHash: `0x${string}`;
458
+ nonce: `0x${string}` | null;
459
+ number: bigint | null;
460
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
461
+ parentHash: `0x${string}`;
462
+ receiptsRoot: `0x${string}`;
463
+ sealFields: `0x${string}`[];
464
+ sha3Uncles: `0x${string}`;
465
+ size: bigint;
466
+ stateRoot: `0x${string}`;
467
+ timestamp: bigint;
468
+ totalDifficulty: bigint | null;
469
+ transactions: `0x${string}`[] | import("wagmi/chains").OpStackTransaction<boolean>[];
470
+ transactionsRoot: `0x${string}`;
471
+ uncles: `0x${string}`[];
472
+ withdrawals?: import("viem").Withdrawal[] | undefined;
473
+ withdrawalsRoot?: `0x${string}` | undefined;
474
+ };
475
+ type: "block";
476
+ };
477
+ readonly transaction: {
478
+ exclude: [] | undefined;
479
+ format: (args: import("wagmi/chains").OpStackRpcTransaction<boolean>) => {
480
+ blockHash: `0x${string}` | null;
481
+ blockNumber: bigint | null;
482
+ from: `0x${string}`;
483
+ gas: bigint;
484
+ hash: `0x${string}`;
485
+ input: `0x${string}`;
486
+ nonce: number;
487
+ r: `0x${string}`;
488
+ s: `0x${string}`;
489
+ to: `0x${string}` | null;
490
+ transactionIndex: number | null;
491
+ typeHex: `0x${string}` | null;
492
+ v: bigint;
493
+ value: bigint;
494
+ yParity: number;
495
+ gasPrice?: undefined;
496
+ maxFeePerBlobGas?: undefined;
497
+ maxFeePerGas: bigint;
498
+ maxPriorityFeePerGas: bigint;
499
+ isSystemTx?: boolean | undefined;
500
+ mint?: bigint | undefined;
501
+ sourceHash: `0x${string}`;
502
+ type: "deposit";
503
+ } | {
504
+ r: `0x${string}`;
505
+ s: `0x${string}`;
506
+ v: bigint;
507
+ to: `0x${string}` | null;
508
+ from: `0x${string}`;
509
+ gas: bigint;
510
+ nonce: number;
511
+ value: bigint;
512
+ blockHash: `0x${string}` | null;
513
+ blockNumber: bigint | null;
514
+ hash: `0x${string}`;
515
+ input: `0x${string}`;
516
+ transactionIndex: number | null;
517
+ typeHex: `0x${string}` | null;
518
+ accessList?: undefined;
519
+ authorizationList?: undefined;
520
+ blobVersionedHashes?: undefined;
521
+ chainId?: number | undefined;
522
+ yParity?: undefined;
523
+ type: "legacy";
524
+ gasPrice: bigint;
525
+ maxFeePerBlobGas?: undefined;
526
+ maxFeePerGas?: undefined;
527
+ maxPriorityFeePerGas?: undefined;
528
+ isSystemTx?: undefined;
529
+ mint?: undefined;
530
+ sourceHash?: undefined;
531
+ } | {
532
+ blockHash: `0x${string}` | null;
533
+ blockNumber: bigint | null;
534
+ from: `0x${string}`;
535
+ gas: bigint;
536
+ hash: `0x${string}`;
537
+ input: `0x${string}`;
538
+ nonce: number;
539
+ r: `0x${string}`;
540
+ s: `0x${string}`;
541
+ to: `0x${string}` | null;
542
+ transactionIndex: number | null;
543
+ typeHex: `0x${string}` | null;
544
+ v: bigint;
545
+ value: bigint;
546
+ yParity: number;
547
+ accessList: import("viem").AccessList;
548
+ authorizationList?: undefined;
549
+ blobVersionedHashes?: undefined;
550
+ chainId: number;
551
+ type: "eip2930";
552
+ gasPrice: bigint;
553
+ maxFeePerBlobGas?: undefined;
554
+ maxFeePerGas?: undefined;
555
+ maxPriorityFeePerGas?: undefined;
556
+ isSystemTx?: undefined;
557
+ mint?: undefined;
558
+ sourceHash?: undefined;
559
+ } | {
560
+ blockHash: `0x${string}` | null;
561
+ blockNumber: bigint | null;
562
+ from: `0x${string}`;
563
+ gas: bigint;
564
+ hash: `0x${string}`;
565
+ input: `0x${string}`;
566
+ nonce: number;
567
+ r: `0x${string}`;
568
+ s: `0x${string}`;
569
+ to: `0x${string}` | null;
570
+ transactionIndex: number | null;
571
+ typeHex: `0x${string}` | null;
572
+ v: bigint;
573
+ value: bigint;
574
+ yParity: number;
575
+ accessList: import("viem").AccessList;
576
+ authorizationList?: undefined;
577
+ blobVersionedHashes?: undefined;
578
+ chainId: number;
579
+ type: "eip1559";
580
+ gasPrice?: undefined;
581
+ maxFeePerBlobGas?: undefined;
582
+ maxFeePerGas: bigint;
583
+ maxPriorityFeePerGas: bigint;
584
+ isSystemTx?: undefined;
585
+ mint?: undefined;
586
+ sourceHash?: undefined;
587
+ } | {
588
+ blockHash: `0x${string}` | null;
589
+ blockNumber: bigint | null;
590
+ from: `0x${string}`;
591
+ gas: bigint;
592
+ hash: `0x${string}`;
593
+ input: `0x${string}`;
594
+ nonce: number;
595
+ r: `0x${string}`;
596
+ s: `0x${string}`;
597
+ to: `0x${string}` | null;
598
+ transactionIndex: number | null;
599
+ typeHex: `0x${string}` | null;
600
+ v: bigint;
601
+ value: bigint;
602
+ yParity: number;
603
+ accessList: import("viem").AccessList;
604
+ authorizationList?: undefined;
605
+ blobVersionedHashes: readonly `0x${string}`[];
606
+ chainId: number;
607
+ type: "eip4844";
608
+ gasPrice?: undefined;
609
+ maxFeePerBlobGas: bigint;
610
+ maxFeePerGas: bigint;
611
+ maxPriorityFeePerGas: bigint;
612
+ isSystemTx?: undefined;
613
+ mint?: undefined;
614
+ sourceHash?: undefined;
615
+ } | {
616
+ blockHash: `0x${string}` | null;
617
+ blockNumber: bigint | null;
618
+ from: `0x${string}`;
619
+ gas: bigint;
620
+ hash: `0x${string}`;
621
+ input: `0x${string}`;
622
+ nonce: number;
623
+ r: `0x${string}`;
624
+ s: `0x${string}`;
625
+ to: `0x${string}` | null;
626
+ transactionIndex: number | null;
627
+ typeHex: `0x${string}` | null;
628
+ v: bigint;
629
+ value: bigint;
630
+ yParity: number;
631
+ accessList: import("viem").AccessList;
632
+ authorizationList: import("viem/experimental").SignedAuthorizationList<number>;
633
+ blobVersionedHashes?: undefined;
634
+ chainId: number;
635
+ type: "eip7702";
636
+ gasPrice?: undefined;
637
+ maxFeePerBlobGas?: undefined;
638
+ maxFeePerGas: bigint;
639
+ maxPriorityFeePerGas: bigint;
640
+ isSystemTx?: undefined;
641
+ mint?: undefined;
642
+ sourceHash?: undefined;
643
+ };
644
+ type: "transaction";
645
+ };
646
+ readonly transactionReceipt: {
647
+ exclude: [] | undefined;
648
+ format: (args: import("wagmi/chains").OpStackRpcTransactionReceipt) => {
649
+ blobGasPrice?: bigint | undefined;
650
+ blobGasUsed?: bigint | undefined;
651
+ blockHash: `0x${string}`;
652
+ blockNumber: bigint;
653
+ contractAddress: `0x${string}` | null | undefined;
654
+ cumulativeGasUsed: bigint;
655
+ effectiveGasPrice: bigint;
656
+ from: `0x${string}`;
657
+ gasUsed: bigint;
658
+ logs: import("viem").Log<bigint, number, false, undefined, undefined, undefined, undefined>[];
659
+ logsBloom: `0x${string}`;
660
+ root?: `0x${string}` | undefined;
661
+ status: "success" | "reverted";
662
+ to: `0x${string}` | null;
663
+ transactionHash: `0x${string}`;
664
+ transactionIndex: number;
665
+ type: import("viem").TransactionType;
666
+ l1GasPrice: bigint | null;
667
+ l1GasUsed: bigint | null;
668
+ l1Fee: bigint | null;
669
+ l1FeeScalar: number | null;
670
+ };
671
+ type: "transactionReceipt";
672
+ };
673
+ };
674
+ serializers: {
675
+ readonly transaction: typeof import("wagmi/chains").serializeTransactionOpStack;
676
+ };
677
+ };
678
+ };
679
+ export declare const CHAIN_NATIVE_TOKENS: ChainNativeTokenMap;
680
+ export declare const MAX_GAS_LIMIT_MAP: Record<ChainId, number>;
681
+ export declare const ALCHEMY_RPC_URL_MAP: Record<number, string>;
682
+ export { polygon, optimism, arbitrum, base };
@@ -0,0 +1,6 @@
1
+ import type { Address, ChainId } from 'core-kit/types';
2
+ export declare const DHEDGE_SYNTHETIX_V3_ASSETS_MAP: Record<ChainId, Address>;
3
+ export declare const DHEDGE_SYNTHETIX_V3_VAULT_ADDRESSES: Address[];
4
+ export declare const SYNTHETIX_V3_VAULTS_WITHDRAW_ASSET_SYMBOL_MAP: Record<string, string>;
5
+ export declare const SYNTHETIX_V3_POSITION_DEBT_ARGUMENTS: Record<string, string[]>;
6
+ export declare const WITHDRAWAL_FEE_MAP: Map<`0x${string}`, number>;
@@ -0,0 +1,8 @@
1
+ import type { TradingToken } from 'core-kit/types';
2
+ export declare const BRIDGED_USDC_ARBITRUM: TradingToken;
3
+ export declare const USDC_ARBITRUM: TradingToken;
4
+ export declare const WETH_ARBITRUM: TradingToken;
5
+ export declare const WBTC_ARBITRUM: TradingToken;
6
+ export declare const TBTC_ARBITRUM: TradingToken;
7
+ export declare const WSTETH_ARBITRUM: TradingToken;
8
+ export declare const USDT_ARBITRUM: TradingToken;