@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.
- package/core-kit/abi/aave/aave-asset-guard.d.ts +50 -0
- package/core-kit/abi/aave/aave-lending-pool.d.ts +846 -0
- package/core-kit/abi/dhedge-staking-v2.d.ts +127 -0
- package/core-kit/abi/easy-swapper-v2.d.ts +1042 -0
- package/core-kit/abi/erc20.d.ts +1 -0
- package/core-kit/abi/flatcoin-points-module.d.ts +57 -0
- package/core-kit/abi/index.d.ts +12 -0
- package/core-kit/abi/limit-order.d.ts +736 -0
- package/core-kit/abi/pool-factory.d.ts +57 -0
- package/core-kit/abi/pool-logic.d.ts +307 -0
- package/core-kit/abi/pool-manager-logic.d.ts +107 -0
- package/core-kit/abi/reward-distribution.d.ts +121 -0
- package/core-kit/abi/synthetix-v3/i-trusted-multicall-forwarder.d.ts +41 -0
- package/core-kit/abi/synthetix-v3/ierc-7412.d.ts +53 -0
- package/core-kit/abi/synthetix-v3/index.d.ts +5 -0
- package/core-kit/abi/synthetix-v3/synthetix-v3-asset-guard.d.ts +37 -0
- package/core-kit/abi/synthetix-v3/synthetix-v3-contract-guard.d.ts +45 -0
- package/core-kit/abi/synthetix-v3/synthetix-v3-core.d.ts +41 -0
- package/core-kit/const/config.d.ts +13 -0
- package/core-kit/const/contracts/arbitrum.d.ts +4 -0
- package/core-kit/const/contracts/base.d.ts +8 -0
- package/core-kit/const/contracts/index.d.ts +5 -0
- package/core-kit/const/contracts/optimism.d.ts +5 -0
- package/core-kit/const/contracts/polygon.d.ts +4 -0
- package/core-kit/const/currency.d.ts +2 -0
- package/core-kit/const/default-data.d.ts +28 -0
- package/core-kit/const/error.d.ts +14 -0
- package/core-kit/const/flat-money.d.ts +10 -0
- package/core-kit/const/index.d.ts +13 -0
- package/core-kit/const/links.d.ts +3 -0
- package/core-kit/const/logger.d.ts +40 -0
- package/core-kit/const/network.d.ts +682 -0
- package/core-kit/const/synthetix.d.ts +6 -0
- package/core-kit/const/tokens/arbitrum.d.ts +8 -0
- package/core-kit/const/tokens/base.d.ts +9 -0
- package/core-kit/const/tokens/index.d.ts +9 -0
- package/core-kit/const/tokens/optimism.d.ts +12 -0
- package/core-kit/const/tokens/polygon.d.ts +10 -0
- package/core-kit/const/trading.d.ts +10 -0
- package/core-kit/const/web3.d.ts +4 -0
- package/core-kit/hooks/component/index.d.ts +2 -0
- package/core-kit/hooks/component/panel.d.ts +1 -0
- package/core-kit/hooks/component/tab.d.ts +2 -0
- package/core-kit/hooks/pool/index.d.ts +16 -0
- package/core-kit/hooks/pool/multicall/index.d.ts +4 -0
- package/core-kit/hooks/pool/multicall/use-pool-manager.dynamic.d.ts +230 -0
- package/core-kit/hooks/pool/multicall/use-pool-manager.static.d.ts +340 -0
- package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +2434 -0
- package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +1096 -0
- package/core-kit/hooks/pool/synthetixV3/use-pool-token-price-mutable.d.ts +8 -0
- package/core-kit/hooks/pool/synthetixV3/use-synthetix-v3-asset-balance.d.ts +8 -0
- package/core-kit/hooks/pool/synthetixV3/use-total-funds-value-mutable.d.ts +8 -0
- package/core-kit/hooks/pool/use-check-whitelist.d.ts +2 -0
- package/core-kit/hooks/pool/use-contract-pool-composition.d.ts +3 -0
- package/core-kit/hooks/pool/use-has-nested-vault-in-composition.d.ts +64 -0
- package/core-kit/hooks/pool/use-invalidate-pool-contract-data.d.ts +1 -0
- package/core-kit/hooks/pool/use-manager-logic-address.d.ts +2 -0
- package/core-kit/hooks/pool/use-pool-composition-with-fraction.d.ts +14 -0
- package/core-kit/hooks/pool/use-pool-composition.d.ts +3 -0
- package/core-kit/hooks/pool/use-pool-dynamic-contract-data.d.ts +20 -0
- package/core-kit/hooks/pool/use-pool-dynamic-exit-remaining-cooldown.d.ts +276 -0
- package/core-kit/hooks/pool/use-pool-fees.d.ts +14 -0
- package/core-kit/hooks/pool/use-pool-manager-logic-data.d.ts +16 -0
- package/core-kit/hooks/pool/use-pool-token-price.d.ts +9 -0
- package/core-kit/hooks/pool/use-vault-vested-points.d.ts +73 -0
- package/core-kit/hooks/referral/index.d.ts +1 -0
- package/core-kit/hooks/referral/use-referral-program.d.ts +2 -0
- package/core-kit/hooks/state/action.d.ts +25 -0
- package/core-kit/hooks/state/context.d.ts +2 -0
- package/core-kit/hooks/state/default-data.d.ts +1 -0
- package/core-kit/hooks/state/index.d.ts +9 -0
- package/core-kit/hooks/state/input.d.ts +13 -0
- package/core-kit/hooks/state/modal.d.ts +5 -0
- package/core-kit/hooks/state/pool.d.ts +14 -0
- package/core-kit/hooks/state/settings.d.ts +5 -0
- package/core-kit/hooks/state/transaction.d.ts +5 -0
- package/core-kit/hooks/state/type.d.ts +6 -0
- package/core-kit/hooks/trading/allowance/index.d.ts +3 -0
- package/core-kit/hooks/trading/allowance/use-approve.d.ts +9 -0
- package/core-kit/hooks/trading/allowance/use-can-spend.d.ts +11 -0
- package/core-kit/hooks/trading/allowance/use-token-allowance-handler.d.ts +1 -0
- package/core-kit/hooks/trading/deposit-v2/index.d.ts +16 -0
- package/core-kit/hooks/trading/deposit-v2/use-applied-deposit-slippage.d.ts +1 -0
- package/core-kit/hooks/trading/deposit-v2/use-deposit-allowance.d.ts +4 -0
- package/core-kit/hooks/trading/deposit-v2/use-deposit-lock-time.d.ts +1 -0
- package/core-kit/hooks/trading/deposit-v2/use-deposit-price-diff.d.ts +5 -0
- package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +1043 -0
- package/core-kit/hooks/trading/deposit-v2/use-deposit-quote.d.ts +1 -0
- package/core-kit/hooks/trading/deposit-v2/use-deposit-slippage.d.ts +1 -0
- package/core-kit/hooks/trading/deposit-v2/use-deposit.d.ts +2 -0
- package/core-kit/hooks/trading/deposit-v2/use-handle-pool-deposit-data.d.ts +1 -0
- package/core-kit/hooks/trading/deposit-v2/use-is-custom-cooldown-deposit.d.ts +1 -0
- package/core-kit/hooks/trading/deposit-v2/use-is-deposit-with-swap-transaction.d.ts +1 -0
- package/core-kit/hooks/trading/deposit-v2/use-is-vault-deposit-locked.d.ts +4 -0
- package/core-kit/hooks/trading/deposit-v2/use-min-vault-tokens-received-amount.d.ts +1 -0
- package/core-kit/hooks/trading/deposit-v2/use-swap-data-based-on-send-token.d.ts +1 -0
- package/core-kit/hooks/trading/deposit-v2/use-vault-deposit-params.d.ts +2 -0
- package/core-kit/hooks/trading/deposit-v2/use-vault-deposit-token-amount.d.ts +1 -0
- package/core-kit/hooks/trading/deposit-v2/use-vault-deposit-tokens.d.ts +2 -0
- package/core-kit/hooks/trading/deposit-v2/use-vault-deposit-transaction-arguments.d.ts +2 -0
- package/core-kit/hooks/trading/index.d.ts +14 -0
- package/core-kit/hooks/trading/projected-earnings/use-deposit-projected-earnings.d.ts +2 -0
- package/core-kit/hooks/trading/projected-earnings/use-projected-earnings-core.d.ts +10 -0
- package/core-kit/hooks/trading/synthetix-v3/use-available-withdraw-liquidity.d.ts +47 -0
- package/core-kit/hooks/trading/synthetix-v3/use-oracles-update-transaction-data.d.ts +23 -0
- package/core-kit/hooks/trading/synthetix-v3/use-send-oracles-update-transaction.d.ts +4 -0
- package/core-kit/hooks/trading/synthetix-v3/use-synthetix-v3-oracles-update.d.ts +7 -0
- package/core-kit/hooks/trading/synthetix-v3/use-withdraw-liquidity.d.ts +5 -0
- package/core-kit/hooks/trading/use-asset-price.d.ts +8 -0
- package/core-kit/hooks/trading/use-easy-swapper-tracked-assets.d.ts +1046 -0
- package/core-kit/hooks/trading/use-exchange-rate.d.ts +5 -0
- package/core-kit/hooks/trading/use-handle-trade.d.ts +6 -0
- package/core-kit/hooks/trading/use-is-trading-enabled.d.ts +1 -0
- package/core-kit/hooks/trading/use-is-transaction-loading.d.ts +2 -0
- package/core-kit/hooks/trading/use-raw-asset-price.d.ts +8 -0
- package/core-kit/hooks/trading/use-send-token-debounced-value.d.ts +8 -0
- package/core-kit/hooks/trading/use-swap-data-query.d.ts +6 -0
- package/core-kit/hooks/trading/use-swaps-data-query.d.ts +13 -0
- package/core-kit/hooks/trading/use-trading-result-handling.d.ts +1 -0
- package/core-kit/hooks/trading/use-trading-settle-handler.d.ts +3 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/index.d.ts +10 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-expected-amount.d.ts +4 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-quote.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-receive-diff.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-swap-data.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-total-usd-value.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-tracked-assets.d.ts +210 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/use-complete-withdraw-transaction.d.ts +6 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/use-handle-complete-withdraw.d.ts +11 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/use-has-swappable-assets.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/use-is-complete-withdraw-step.d.ts +4 -0
- package/core-kit/hooks/trading/withdraw-v2/index.d.ts +4 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/index.d.ts +6 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-aave-swap-params.d.ts +6 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-init-withdraw-aave-swap-data.d.ts +5 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-init-withdraw-complex-asset-data.d.ts +6 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-get-init-withdraw-transaction-arguments.d.ts +10 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-allowance.d.ts +4 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-estimated-receive-assets.d.ts +210 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-quote.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-transaction.d.ts +6 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-is-multi-asset-withdraw.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-is-offchain-aave-withdraw-supported.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-is-unroll-and-claim-transaction.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/use-applied-withdraw-slippage.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/use-min-withdraw-slippage.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/use-withdraw-assets-info.d.ts +219 -0
- package/core-kit/hooks/trading/withdraw-v2/use-withdraw-type-handler.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +1042 -0
- package/core-kit/hooks/user/index.d.ts +4 -0
- package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +1113 -0
- package/core-kit/hooks/user/use-flatmoney-points-user-balances.d.ts +10 -0
- package/core-kit/hooks/user/use-is-dhedge-vault-connected.d.ts +1 -0
- package/core-kit/hooks/user/use-is-insufficient-balance.d.ts +1 -0
- package/core-kit/hooks/user/use-user-token-balance.d.ts +8 -0
- package/core-kit/hooks/utils/index.d.ts +2 -0
- package/core-kit/hooks/utils/use-browser-storage.d.ts +1 -0
- package/core-kit/hooks/utils/use-debounce.d.ts +1 -0
- package/core-kit/hooks/web3/index.d.ts +13 -0
- package/core-kit/hooks/web3/use-account.d.ts +7 -0
- package/core-kit/hooks/web3/use-balance.d.ts +2 -0
- package/core-kit/hooks/web3/use-contract-function.d.ts +17 -0
- package/core-kit/hooks/web3/use-contract-read-error-logging.d.ts +6 -0
- package/core-kit/hooks/web3/use-contract-reads-error-logging.d.ts +5 -0
- package/core-kit/hooks/web3/use-gas-price.d.ts +2 -0
- package/core-kit/hooks/web3/use-invalidate-on-block.d.ts +6 -0
- package/core-kit/hooks/web3/use-invalidate-trading-queries.d.ts +4 -0
- package/core-kit/hooks/web3/use-is-wallet-connected.d.ts +1 -0
- package/core-kit/hooks/web3/use-network.d.ts +13 -0
- package/core-kit/hooks/web3/use-static-call-query.d.ts +13 -0
- package/core-kit/hooks/web3/use-token-allowance.d.ts +9 -0
- package/core-kit/index.d.ts +1 -0
- package/core-kit/models/estimation-error.d.ts +20 -0
- package/core-kit/models/index.d.ts +1 -0
- package/core-kit/providers/index.d.ts +6 -0
- package/core-kit/types/config.types.d.ts +33 -0
- package/core-kit/types/contract.types.d.ts +28 -0
- package/core-kit/types/index.d.ts +10 -0
- package/core-kit/types/pool.types.d.ts +17 -0
- package/core-kit/types/react-query.types.d.ts +11 -0
- package/core-kit/types/referral.types.d.ts +12 -0
- package/core-kit/types/state.types.d.ts +109 -0
- package/core-kit/types/synthetix-v3.types.d.ts +15 -0
- package/core-kit/types/trading-panel.types.d.ts +43 -0
- package/core-kit/types/trading.types.d.ts +32 -0
- package/core-kit/types/web3.types.d.ts +34 -0
- package/core-kit/utils/common.d.ts +4 -0
- package/core-kit/utils/error.d.ts +17 -0
- package/core-kit/utils/flat-money.d.ts +9 -0
- package/core-kit/utils/formatter.d.ts +17 -0
- package/core-kit/utils/index.d.ts +12 -0
- package/core-kit/utils/logger.d.ts +17 -0
- package/core-kit/utils/number.d.ts +8 -0
- package/core-kit/utils/synthetix-v3/eip-7412.d.ts +21 -0
- package/core-kit/utils/synthetix-v3/parse-error.d.ts +3 -0
- package/core-kit/utils/synthetix-v3/pyth-adapter.d.ts +13 -0
- package/core-kit/utils/synthetix.d.ts +2 -0
- package/core-kit/utils/token.d.ts +8 -0
- package/core-kit/utils/transaction.d.ts +39 -0
- package/core-kit/utils/ua.d.ts +1 -0
- package/core-kit/utils/url.d.ts +3 -0
- package/core-kit/utils/web3.d.ts +9 -0
- package/index-22789f33.cjs +217 -0
- package/index-5567d59f.js +42941 -0
- package/index.cjs +1 -0
- package/index.d.ts +18 -0
- package/index.js +242 -0
- package/limit-orders/component/common/action-button.d.ts +10 -0
- package/limit-orders/component/common/modal-content.d.ts +8 -0
- package/limit-orders/component/common/modal-dialog.d.ts +9 -0
- package/limit-orders/component/common/price-input.d.ts +20 -0
- package/limit-orders/component/input-group/input-group.d.ts +2 -0
- package/limit-orders/component/input-group/input-group.hooks.d.ts +15 -0
- package/limit-orders/component/limit-order-button/limit-order-approve-button.d.ts +2 -0
- package/limit-orders/component/limit-order-button/limit-order-approve-button.hooks.d.ts +5 -0
- package/limit-orders/component/limit-order-button/limit-order-button.d.ts +2 -0
- package/limit-orders/component/limit-order-button/limit-order-button.hooks.d.ts +9 -0
- package/limit-orders/component/limit-order-button/network-check-button.d.ts +2 -0
- package/limit-orders/component/limit-order-button/network-check-button.hooks.d.ts +4 -0
- package/limit-orders/component/limit-order-modal.d.ts +13 -0
- package/limit-orders/component/limit-order-modal.hooks.d.ts +6 -0
- package/limit-orders/constants.d.ts +1 -0
- package/limit-orders/hooks/state.d.ts +2 -0
- package/limit-orders/hooks/use-invalidate-limit-order-query.d.ts +1 -0
- package/limit-orders/hooks/use-is-limit-order-approved.d.ts +1 -0
- package/limit-orders/hooks/use-limit-order-approve-transaction.d.ts +4 -0
- package/limit-orders/hooks/use-listen-limit-order-execution.d.ts +1 -0
- package/limit-orders/hooks/use-on-limit-order-settled.d.ts +2 -0
- package/limit-orders/hooks/use-user-limit-order.d.ts +753 -0
- package/limit-orders/index.d.ts +2 -0
- package/limit-orders/providers/state-provider/reducer.d.ts +7 -0
- package/limit-orders/providers/state-provider/state-provider.d.ts +6 -0
- package/limit-orders/providers/state-provider/state-provider.types.d.ts +51 -0
- package/limit-orders/providers/theme-provider/index.d.ts +2 -0
- package/limit-orders/providers/theme-provider/theme-provider.d.ts +3 -0
- package/limit-orders/providers/theme-provider/theme-provider.types.d.ts +132 -0
- package/limit-orders/providers/translation-provider/index.d.ts +3 -0
- package/limit-orders/providers/translation-provider/translation-provider.d.ts +4 -0
- package/limit-orders/providers/translation-provider/translation-provider.defaults.d.ts +2 -0
- package/limit-orders/providers/translation-provider/translation-provider.hooks.d.ts +1 -0
- package/limit-orders/providers/translation-provider/translation-provider.types.d.ts +15 -0
- package/limit-orders/utils.d.ts +25 -0
- package/package.json +4 -20
- package/pyth-adapter-7336cdaa.js +5705 -0
- package/pyth-adapter-cc16310a.cjs +11 -0
- package/style.css +1 -0
- package/theme/colors.d.ts +49 -0
- package/trading-widget/components/common/alert/alert.d.ts +6 -0
- package/trading-widget/components/common/badge/token-badge/token-badge.d.ts +13 -0
- package/trading-widget/components/common/balance/balance.d.ts +7 -0
- package/trading-widget/components/common/balance/withdraw-assets-composition-table.d.ts +7 -0
- package/trading-widget/components/common/button/action-button/action-button.d.ts +10 -0
- package/trading-widget/components/common/button/disabled-button-with-prompt/disabled-button-with-prompt.d.ts +6 -0
- package/trading-widget/components/common/button/external-link-button/external-link-button.d.ts +9 -0
- package/trading-widget/components/common/button/icon-button/icon-button.d.ts +10 -0
- package/trading-widget/components/common/button/max-balance-button/max-balance-button.d.ts +6 -0
- package/trading-widget/components/common/button/reload-button/reload-button.d.ts +3 -0
- package/trading-widget/components/common/button/reload-button/reload-button.hooks.d.ts +10 -0
- package/trading-widget/components/common/icon/token-icon/token-icon.d.ts +14 -0
- package/trading-widget/components/common/index.d.ts +21 -0
- package/trading-widget/components/common/layout/balance/balance.d.ts +2 -0
- package/trading-widget/components/common/layout/index.d.ts +18 -0
- package/trading-widget/components/common/layout/input-group/input-group.d.ts +2 -0
- package/trading-widget/components/common/layout/meta/meta.d.ts +2 -0
- package/trading-widget/components/common/layout/notification/notification.d.ts +6 -0
- package/trading-widget/components/common/layout/overlay/overlay.d.ts +9 -0
- package/trading-widget/components/common/layout/panel/panel.d.ts +2 -0
- package/trading-widget/components/common/layout/settings/settings-popover/settings-popover.d.ts +8 -0
- package/trading-widget/components/common/layout/settings/settings.d.ts +2 -0
- package/trading-widget/components/common/meta/assets-composition-disclosure/assets-composition-disclosure.d.ts +3 -0
- package/trading-widget/components/common/meta/transaction-disclosure/transaction-disclosure-item/transaction-disclosure-item.d.ts +12 -0
- package/trading-widget/components/common/meta/transaction-disclosure/transaction-disclosure.d.ts +11 -0
- package/trading-widget/components/common/overlay/pending-overlay/pending-overlay.d.ts +7 -0
- package/trading-widget/components/common/settings/settings-option/settings-option.d.ts +7 -0
- package/trading-widget/components/common/skeleton/skeleton.d.ts +8 -0
- package/trading-widget/components/common/spinner/spinner.d.ts +6 -0
- package/trading-widget/components/common/switch/switch.d.ts +10 -0
- package/trading-widget/components/common/tab/tab-button/tab-button.d.ts +7 -0
- package/trading-widget/components/common/tooltip/info-tooltip/info-tooltip.d.ts +6 -0
- package/trading-widget/components/common/tooltip/tooltip-icon/tooltip-icon.d.ts +7 -0
- package/trading-widget/components/common/tooltip/tooltip-wrapper/tooltip-wrapper.d.ts +7 -0
- package/trading-widget/components/default-examples/image/image.d.ts +3 -0
- package/trading-widget/components/deposit/balance/balance.d.ts +2 -0
- package/trading-widget/components/deposit/balance/balance.hooks.d.ts +4 -0
- package/trading-widget/components/deposit/button/trade-button/trade-button.d.ts +2 -0
- package/trading-widget/components/deposit/button/trade-button/trade-button.hooks.d.ts +6 -0
- package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.d.ts +2 -0
- package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +18 -0
- package/trading-widget/components/deposit/index.d.ts +2 -0
- package/trading-widget/components/deposit/input-group/input-group.d.ts +1 -0
- package/trading-widget/components/deposit/input-group/input-group.hooks.d.ts +25 -0
- package/trading-widget/components/deposit/meta/meta.d.ts +2 -0
- package/trading-widget/components/deposit/meta/transaction-disclosure/transaction-disclosure.d.ts +1 -0
- package/trading-widget/components/deposit/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +13 -0
- package/trading-widget/components/deposit/settings/deposit-settings/deposit-settings.d.ts +2 -0
- package/trading-widget/components/deposit/tab-panel/tab-panel.d.ts +3 -0
- package/trading-widget/components/deposit/tab-panel/tab-panel.hooks.d.ts +1 -0
- package/trading-widget/components/index.d.ts +3 -0
- package/trading-widget/components/widget/widget-buttons/approve-button/approve-button.d.ts +3 -0
- package/trading-widget/components/widget/widget-buttons/approve-button/approve-button.hooks.d.ts +8 -0
- package/trading-widget/components/widget/widget-buttons/connect-wallet-button/connect-wallet-button.d.ts +2 -0
- package/trading-widget/components/widget/widget-buttons/index.d.ts +4 -0
- 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
- 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
- package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-swap-quote-button.d.ts +2 -0
- 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
- 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
- package/trading-widget/components/widget/widget-buttons/switch-network-button/switch-network-button.d.ts +1 -0
- package/trading-widget/components/widget/widget-buttons/valid-network-button/valid-network-button.d.ts +2 -0
- package/trading-widget/components/widget/widget-buttons/valid-network-button/valid-network-button.hooks.d.ts +4 -0
- package/trading-widget/components/widget/widget-input/all-assets-composition-table/all-assets-composition-table.d.ts +2 -0
- package/trading-widget/components/widget/widget-input/all-assets-composition-table/all-assets-composition-table.hooks.d.ts +15 -0
- package/trading-widget/components/widget/widget-input/all-assets-composition-table/withdraw-explanation-tip.d.ts +4 -0
- package/trading-widget/components/widget/widget-input/index.d.ts +1 -0
- package/trading-widget/components/widget/widget-input/token-selector/token-selector.d.ts +3 -0
- package/trading-widget/components/widget/widget-input/token-selector/token-selector.hooks.d.ts +9 -0
- package/trading-widget/components/widget/widget-input/widget-input.d.ts +3 -0
- package/trading-widget/components/widget/widget-input/widget-input.hooks.d.ts +27 -0
- package/trading-widget/components/widget/widget-input/widget-input.utils.d.ts +3 -0
- package/trading-widget/components/widget/widget-meta/exchange-rate/exchange-rate.d.ts +6 -0
- package/trading-widget/components/widget/widget-meta/index.d.ts +1 -0
- package/trading-widget/components/widget/widget-overlay/fmp-withdrawal-overlay/fmp-withdrawal-overlay.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/fmp-withdrawal-overlay/fmp-withdrawal-overlay.hooks.d.ts +10 -0
- package/trading-widget/components/widget/widget-overlay/high-slippage-overlay/high-slippage-overlay.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/index.d.ts +8 -0
- package/trading-widget/components/widget/widget-overlay/notification-overlay/notification-overlay.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/notification-overlay/notification-overlay.hooks.d.ts +8 -0
- package/trading-widget/components/widget/widget-overlay/overlay-switch/overlay-switch.d.ts +2 -0
- package/trading-widget/components/widget/widget-overlay/pool-select-overlay/network-header/network-header.d.ts +7 -0
- package/trading-widget/components/widget/widget-overlay/pool-select-overlay/pool-select-overlay.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/pool-select-overlay/pool-select-overlay.hooks.d.ts +31 -0
- package/trading-widget/components/widget/widget-overlay/terms-of-use-overlay/terms-of-use-overlay.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/token-select-overlay/multi-token-select-item/multi-token-select-item.d.ts +2 -0
- package/trading-widget/components/widget/widget-overlay/token-select-overlay/multi-token-select-item/multi-token-select-item.hooks.d.ts +8 -0
- package/trading-widget/components/widget/widget-overlay/token-select-overlay/token-select-item/token-select-item.d.ts +2 -0
- package/trading-widget/components/widget/widget-overlay/token-select-overlay/token-select-item/token-select-item.hooks.d.ts +11 -0
- package/trading-widget/components/widget/widget-overlay/token-select-overlay/token-select-overlay.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/token-select-overlay/token-select-overlay.hooks.d.ts +12 -0
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-overlay.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-overlay.hooks.d.ts +10 -0
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/approve-summary.d.ts +7 -0
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/oracles-update-summary.d.ts +2 -0
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/swap-summary.d.ts +7 -0
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/trading-summary.d.ts +2 -0
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/vault-transaction-summary.d.ts +3 -0
- package/trading-widget/components/widget/widget-settings/index.d.ts +2 -0
- package/trading-widget/components/widget/widget-settings/slippage-selector/slippage-selector.d.ts +2 -0
- package/trading-widget/components/widget/widget-settings/slippage-selector/slippage-selector.hooks.d.ts +15 -0
- package/trading-widget/components/widget/widget-settings/token-allowance-switch/token-allowance-switch.d.ts +1 -0
- package/trading-widget/components/widget/widget-settings/widget-settings.d.ts +7 -0
- package/trading-widget/components/widget/widget-tabs/widget-tabs.d.ts +2 -0
- package/trading-widget/components/widget/widget.d.ts +2 -0
- package/trading-widget/components/widget/widget.hooks.d.ts +5 -0
- package/trading-widget/components/withdraw/complete-step/balance/complete-withdraw-balance.d.ts +2 -0
- package/trading-widget/components/withdraw/complete-step/balance/complete-withdraw-balance.hooks.d.ts +12 -0
- package/trading-widget/components/withdraw/complete-step/button/claim-button/claim-button.d.ts +3 -0
- package/trading-widget/components/withdraw/complete-step/button/claim-button/claim-button.hooks.d.ts +7 -0
- package/trading-widget/components/withdraw/complete-step/button/swap-button/swap-button.d.ts +2 -0
- package/trading-widget/components/withdraw/complete-step/button/swap-button/swap-button.hooks.d.ts +6 -0
- package/trading-widget/components/withdraw/complete-step/button/valid-swap-button/valid-swap-button.d.ts +2 -0
- package/trading-widget/components/withdraw/complete-step/button/valid-swap-button/valid-swap-button.hooks.d.ts +5 -0
- package/trading-widget/components/withdraw/complete-step/complete-step.d.ts +2 -0
- package/trading-widget/components/withdraw/complete-step/complete-step.hooks.d.ts +3 -0
- package/trading-widget/components/withdraw/complete-step/input-group/complete-withdraw-input-group.d.ts +2 -0
- package/trading-widget/components/withdraw/complete-step/input-group/complete-withdraw-input-group.hooks.d.ts +12 -0
- package/trading-widget/components/withdraw/complete-step/meta/meta.d.ts +2 -0
- package/trading-widget/components/withdraw/complete-step/meta/transaction-disclosure/transaction-disclosure.d.ts +1 -0
- package/trading-widget/components/withdraw/complete-step/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +6 -0
- package/trading-widget/components/withdraw/index.d.ts +2 -0
- package/trading-widget/components/withdraw/init-step/balance/init-withdraw-balance.d.ts +2 -0
- package/trading-widget/components/withdraw/init-step/balance/init-withdraw-balance.hooks.d.ts +4 -0
- package/trading-widget/components/withdraw/init-step/button/init-withdraw-button/init-withdraw-button.d.ts +2 -0
- package/trading-widget/components/withdraw/init-step/button/init-withdraw-button/init-withdraw-button.hooks.d.ts +6 -0
- package/trading-widget/components/withdraw/init-step/button/valid-init-withdraw-button/valid-init-withdraw-button.d.ts +2 -0
- package/trading-widget/components/withdraw/init-step/button/valid-init-withdraw-button/valid-init-withdraw-button.hooks.d.ts +21 -0
- package/trading-widget/components/withdraw/init-step/init-step.d.ts +1 -0
- package/trading-widget/components/withdraw/init-step/input-group/init-withdraw-input-group.d.ts +1 -0
- package/trading-widget/components/withdraw/init-step/input-group/init-withdraw-input-group.hooks.d.ts +22 -0
- package/trading-widget/components/withdraw/init-step/meta/meta.d.ts +2 -0
- package/trading-widget/components/withdraw/init-step/meta/transaction-disclosure/transaction-disclosure.d.ts +1 -0
- package/trading-widget/components/withdraw/init-step/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +9 -0
- package/trading-widget/components/withdraw/settings/withdraw-settings/withdraw-settings.d.ts +2 -0
- package/trading-widget/components/withdraw/stepper/withdraw-stepper.d.ts +2 -0
- package/trading-widget/components/withdraw/stepper/withdraw-stepper.hooks.d.ts +8 -0
- package/trading-widget/components/withdraw/tab-panel/tab-panel.d.ts +2 -0
- package/trading-widget/components/withdraw/tab-panel/tab-panel.hooks.d.ts +3 -0
- package/trading-widget/constants/synthetix-v3.d.ts +2 -0
- package/trading-widget/constants/tab.d.ts +1 -0
- package/trading-widget/hooks/index.d.ts +7 -0
- package/trading-widget/hooks/use-crypto-icon.d.ts +3 -0
- package/trading-widget/hooks/use-get-slippage-placeholder.d.ts +6 -0
- package/trading-widget/hooks/use-get-theme-type-by-slippage.d.ts +2 -0
- package/trading-widget/hooks/use-high-slippage-check.d.ts +5 -0
- package/trading-widget/hooks/use-leveraged-flat-money-withdrawal-checks.d.ts +4 -0
- package/trading-widget/hooks/use-synthetix-withdrawal-window.d.ts +4 -0
- package/trading-widget/hooks/use-trading-type-name.d.ts +2 -0
- package/trading-widget/hooks/use-user-staked-pools.d.ts +5 -0
- package/trading-widget/hooks/use-user-vault-balance.d.ts +3 -0
- package/trading-widget/hooks/use-user-vaults-balances.d.ts +2 -0
- package/trading-widget/providers/component-provider/component-provider.d.ts +14 -0
- package/trading-widget/providers/component-provider/component-provider.defaults.d.ts +2 -0
- package/trading-widget/providers/component-provider/component-provider.hooks.d.ts +11 -0
- package/trading-widget/providers/component-provider/component-provider.types.d.ts +31 -0
- package/trading-widget/providers/component-provider/index.d.ts +3 -0
- package/trading-widget/providers/config-provider/config-provider.d.ts +4 -0
- package/trading-widget/providers/config-provider/config-provider.defaults.d.ts +3 -0
- package/trading-widget/providers/config-provider/config-provider.hooks.d.ts +3 -0
- package/trading-widget/providers/config-provider/config-provider.types.d.ts +39 -0
- package/trading-widget/providers/config-provider/index.d.ts +4 -0
- package/trading-widget/providers/index.d.ts +12 -0
- package/trading-widget/providers/overlay-provider/index.d.ts +2 -0
- package/trading-widget/providers/overlay-provider/overlay-provider.d.ts +2 -0
- package/trading-widget/providers/overlay-provider/overlay-provider.hooks.d.ts +16 -0
- package/trading-widget/providers/overlay-provider/overlay-provider.types.d.ts +16 -0
- package/trading-widget/providers/theme-provider/index.d.ts +2 -0
- package/trading-widget/providers/theme-provider/theme-provider.d.ts +3 -0
- package/trading-widget/providers/theme-provider/theme-provider.types.d.ts +225 -0
- package/trading-widget/providers/translation-provider/index.d.ts +3 -0
- package/trading-widget/providers/translation-provider/translation-provider.d.ts +4 -0
- package/trading-widget/providers/translation-provider/translation-provider.defaults.d.ts +2 -0
- package/trading-widget/providers/translation-provider/translation-provider.hooks.d.ts +1 -0
- package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +104 -0
- package/trading-widget/types/balance.types.d.ts +9 -0
- package/trading-widget/types/index.d.ts +5 -0
- package/trading-widget/types/overlay.types.d.ts +13 -0
- package/trading-widget/types/staking.types.d.ts +6 -0
- package/trading-widget/types/synthetix-v3.types.d.ts +24 -0
- package/trading-widget/types/theme.types.d.ts +9 -0
- package/trading-widget/utils/format.d.ts +6 -0
- package/trading-widget/utils/icon.d.ts +2 -0
- package/trading-widget/utils/synthetix-v3.d.ts +39 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { TradingToken } from 'core-kit/types';
|
|
2
|
+
import type { OverlayProps } from 'trading-widget/types';
|
|
3
|
+
export interface PoolSelectOverlayProps extends OverlayProps {
|
|
4
|
+
searchQuery: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const usePoolSelectOverlay: ({ searchQuery, type, }: PoolSelectOverlayProps) => {
|
|
7
|
+
poolList: {
|
|
8
|
+
chainId: number;
|
|
9
|
+
configs: {
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
balanceInUsd: string;
|
|
12
|
+
balanceInUsdNumber: number;
|
|
13
|
+
address: `0x${string}`;
|
|
14
|
+
symbol: string;
|
|
15
|
+
chainId: number;
|
|
16
|
+
depositParams: {
|
|
17
|
+
customTokens: TradingToken[];
|
|
18
|
+
defaultDepositTokenSymbol?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
withdrawParams: {
|
|
21
|
+
customTokens: TradingToken[];
|
|
22
|
+
};
|
|
23
|
+
deprecated?: boolean | undefined;
|
|
24
|
+
maintenance?: boolean | undefined;
|
|
25
|
+
maintenanceDeposits?: boolean | undefined;
|
|
26
|
+
maintenanceWithdrawals?: boolean | undefined;
|
|
27
|
+
}[];
|
|
28
|
+
}[];
|
|
29
|
+
onClose: () => void;
|
|
30
|
+
onSelect: ({ address, value, decimals, symbol }: TradingToken) => void;
|
|
31
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TradingToken } from 'core-kit/types';
|
|
2
|
+
export interface MultiTokenSelectItemProps {
|
|
3
|
+
token: TradingToken;
|
|
4
|
+
onSelect: (token: TradingToken) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const useMultiTokenSelectItem: ({ token, onSelect, }: MultiTokenSelectItemProps) => {
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TradingToken } from 'core-kit/types';
|
|
2
|
+
export interface TokenSelectItemProps {
|
|
3
|
+
token: TradingToken;
|
|
4
|
+
onSelect: (token: TradingToken) => void;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const useTokenSelectItem: ({ token, onSelect, isActive, onClose, }: TokenSelectItemProps) => {
|
|
9
|
+
formattedBalance: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TradingToken } from 'core-kit/types';
|
|
2
|
+
import type { OverlayProps } from 'trading-widget/types';
|
|
3
|
+
export interface TokenSelectOverlayProps extends OverlayProps {
|
|
4
|
+
searchQuery: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const useTokenSelectOverlay: ({ searchQuery, type, }: TokenSelectOverlayProps) => {
|
|
7
|
+
tokenList: TradingToken[];
|
|
8
|
+
activeTokens: TradingToken[];
|
|
9
|
+
onSelect: ({ address, value, decimals, symbol }: TradingToken) => void;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
showMultiAssetWithdrawalOption: boolean;
|
|
12
|
+
};
|
package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-overlay.hooks.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OverlayProps } from 'trading-widget/types';
|
|
2
|
+
export interface TradingOverlayProps extends OverlayProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const useTradingOverlay: ({ type }: TradingOverlayProps) => {
|
|
5
|
+
title: string;
|
|
6
|
+
isSuccessTx: boolean;
|
|
7
|
+
link: string | undefined;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
showNextStepTip: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ChangeEvent } from 'react';
|
|
2
|
+
export declare const useSlippageSelector: () => {
|
|
3
|
+
settings: {
|
|
4
|
+
slippage: number | "auto";
|
|
5
|
+
minSlippage?: number | undefined;
|
|
6
|
+
isInfiniteAllowance: boolean;
|
|
7
|
+
isMultiAssetWithdrawalEnabled: boolean;
|
|
8
|
+
isMaxSlippageLoading: boolean;
|
|
9
|
+
};
|
|
10
|
+
tradingType: import("../../../../..").TradingPanelType;
|
|
11
|
+
isCustomSlippage: boolean;
|
|
12
|
+
invalidSlippage: boolean;
|
|
13
|
+
onDefaultSlippageSelect: () => void;
|
|
14
|
+
onCustomSlippageSelect: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TokenAllowanceSwitch: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useCompleteWithdrawBalance: () => {
|
|
2
|
+
assets: {
|
|
3
|
+
address: `0x${string}`;
|
|
4
|
+
symbol: string;
|
|
5
|
+
decimals: number;
|
|
6
|
+
rawBalance: bigint;
|
|
7
|
+
balance: number;
|
|
8
|
+
price: number;
|
|
9
|
+
}[];
|
|
10
|
+
usdAmount: string;
|
|
11
|
+
withdrawalVaultLink: string | undefined;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useCompleteWithdrawInputGroup: () => {
|
|
2
|
+
receiveToken: {
|
|
3
|
+
price: string;
|
|
4
|
+
isLoading?: boolean | undefined;
|
|
5
|
+
address: `0x${string}`;
|
|
6
|
+
symbol: string;
|
|
7
|
+
value: string;
|
|
8
|
+
decimals: number;
|
|
9
|
+
};
|
|
10
|
+
swapDiff: number;
|
|
11
|
+
themeType: import("../../../../types").ThemeType;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CompleteWithdrawTransactionOverviewDisclosure: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const useValidInitWithdrawButton: () => {
|
|
2
|
+
requiresWithdrawalWindow: boolean;
|
|
3
|
+
requiresWithdrawalLiquidity: boolean;
|
|
4
|
+
requiresEndOfCooldown: boolean;
|
|
5
|
+
requiresApprove: boolean;
|
|
6
|
+
requiresHighSlippageConfirm: boolean;
|
|
7
|
+
requiresUpdate: boolean;
|
|
8
|
+
sendTokenSymbol: string;
|
|
9
|
+
slippageToBeUsed: number;
|
|
10
|
+
dynamicCooldownEndsInTime: string;
|
|
11
|
+
withdrawalWindowStartTime: string;
|
|
12
|
+
withdrawalLiquidity: string;
|
|
13
|
+
approve: () => Promise<void>;
|
|
14
|
+
updateOracles: () => Promise<void>;
|
|
15
|
+
handleHighSlippageClick: () => void;
|
|
16
|
+
isCheckOraclesPending: boolean;
|
|
17
|
+
requiresLeveragedCollateralLiquidity: boolean;
|
|
18
|
+
leveragedCollateralValueFormatted: string;
|
|
19
|
+
maintenance: boolean | undefined;
|
|
20
|
+
poolSymbol: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const InitStep: () => import("react/jsx-runtime").JSX.Element;
|
package/trading-widget/components/withdraw/init-step/input-group/init-withdraw-input-group.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const InitWithdrawInputGroup: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const useInitWithdrawInputGroup: () => {
|
|
2
|
+
sendToken: {
|
|
3
|
+
updater: (payload: Partial<import("../../../../..").DynamicTradingToken>) => void;
|
|
4
|
+
balance: string;
|
|
5
|
+
price: string;
|
|
6
|
+
isLoading?: boolean | undefined;
|
|
7
|
+
address: `0x${string}`;
|
|
8
|
+
symbol: string;
|
|
9
|
+
value: string;
|
|
10
|
+
decimals: number;
|
|
11
|
+
};
|
|
12
|
+
onInputChange: (value: string) => void;
|
|
13
|
+
receiveToken: {
|
|
14
|
+
updater: (payload: Partial<import("../../../../..").DynamicTradingToken>) => void;
|
|
15
|
+
price: string;
|
|
16
|
+
isLoading?: boolean | undefined;
|
|
17
|
+
address: `0x${string}`;
|
|
18
|
+
symbol: string;
|
|
19
|
+
value: string;
|
|
20
|
+
decimals: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const InitWithdrawTransactionOverviewDisclosure: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useInitWithdrawTransactionDisclosure: () => {
|
|
2
|
+
slippageTooltipText: string;
|
|
3
|
+
isMaxSlippageLoading: boolean;
|
|
4
|
+
slippagePlaceholder: string;
|
|
5
|
+
exitFee: string;
|
|
6
|
+
minReceivedText: string;
|
|
7
|
+
showMinReceivedText: boolean;
|
|
8
|
+
withdrawalFee: string | null;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TABS: readonly ["deposit", "withdraw"];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { useHighSlippageCheck } from './use-high-slippage-check';
|
|
2
|
+
export { useSynthetixWithdrawalWindow } from './use-synthetix-withdrawal-window';
|
|
3
|
+
export { useGetThemeTypeBySlippage } from './use-get-theme-type-by-slippage';
|
|
4
|
+
export { useGetSlippagePlaceholder } from './use-get-slippage-placeholder';
|
|
5
|
+
export { useTradingTypeName } from './use-trading-type-name';
|
|
6
|
+
export { useCryptoIcon } from './use-crypto-icon';
|
|
7
|
+
export { useUserVaultBalance } from './use-user-vault-balance';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import type { ComponentProviderProps } from './component-provider.types';
|
|
3
|
+
export declare const ComponentProviderContext: import("react").Context<Partial<{
|
|
4
|
+
GeoBlockAlert?: import("react").ComponentType | undefined;
|
|
5
|
+
SanctionedAlert?: import("react").ComponentType | undefined;
|
|
6
|
+
DepositMetaInfo?: import("react").ComponentType | undefined;
|
|
7
|
+
WithdrawMetaInfo?: import("react").ComponentType | undefined;
|
|
8
|
+
ExtraActionButton?: import("react").ComponentType | undefined;
|
|
9
|
+
Image?: import("react").ComponentType<import("./component-provider.types").ImageProps> | undefined;
|
|
10
|
+
LogoSpinner?: import("react").ComponentType<import("react").SVGProps<SVGElement>> | undefined;
|
|
11
|
+
DepositTermsOfUse?: import("react").ComponentType | undefined;
|
|
12
|
+
ActionButton?: import("react").ComponentType<PropsWithChildren<import("./component-provider.types").ButtonProps>> | undefined;
|
|
13
|
+
} | undefined>>;
|
|
14
|
+
export declare const ComponentProvider: FC<PropsWithChildren<ComponentProviderProps>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const useComponentContext: () => Partial<{
|
|
2
|
+
GeoBlockAlert?: import("react").ComponentType | undefined;
|
|
3
|
+
SanctionedAlert?: import("react").ComponentType | undefined;
|
|
4
|
+
DepositMetaInfo?: import("react").ComponentType | undefined;
|
|
5
|
+
WithdrawMetaInfo?: import("react").ComponentType | undefined;
|
|
6
|
+
ExtraActionButton?: import("react").ComponentType | undefined;
|
|
7
|
+
Image?: import("react").ComponentType<import("./component-provider.types").ImageProps> | undefined;
|
|
8
|
+
LogoSpinner?: import("react").ComponentType<import("react").SVGProps<SVGElement>> | undefined;
|
|
9
|
+
DepositTermsOfUse?: import("react").ComponentType | undefined;
|
|
10
|
+
ActionButton?: import("react").ComponentType<import("react").PropsWithChildren<import("./component-provider.types").ButtonProps>> | undefined;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ComponentType, PropsWithChildren, SVGProps } from 'react';
|
|
2
|
+
export interface ImageProps {
|
|
3
|
+
src: string;
|
|
4
|
+
alt: string;
|
|
5
|
+
width?: number | string;
|
|
6
|
+
height?: number | string;
|
|
7
|
+
onError?: () => void;
|
|
8
|
+
onLoad?: () => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ButtonProps {
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
highlighted?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
type?: 'submit' | 'button';
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface ComponentProviderProps {
|
|
20
|
+
config?: {
|
|
21
|
+
GeoBlockAlert?: ComponentType;
|
|
22
|
+
SanctionedAlert?: ComponentType;
|
|
23
|
+
DepositMetaInfo?: ComponentType;
|
|
24
|
+
WithdrawMetaInfo?: ComponentType;
|
|
25
|
+
ExtraActionButton?: ComponentType;
|
|
26
|
+
Image?: ComponentType<ImageProps>;
|
|
27
|
+
LogoSpinner?: ComponentType<SVGProps<SVGElement>>;
|
|
28
|
+
DepositTermsOfUse?: ComponentType;
|
|
29
|
+
ActionButton?: ComponentType<PropsWithChildren<ButtonProps>>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import type { ConfigProviderProps, ConfigProviderState } from './config-provider.types';
|
|
3
|
+
export declare const ConfigProviderContext: import("react").Context<ConfigProviderState>;
|
|
4
|
+
export declare const ConfigProvider: FC<PropsWithChildren<ConfigProviderProps>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const useConfigContext: () => import("./config-provider.types").ConfigProviderState;
|
|
2
|
+
export declare const useConfigContextParams: () => import("./config-provider.types").ConfigProviderParams;
|
|
3
|
+
export declare const useConfigContextActions: () => import("./config-provider.types").ConfigProviderActions;
|