@dhedge/trading-widget 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BPGFTGZB-348a28e3.cjs +1101 -0
- package/BPGFTGZB-3ace16f5.js +9284 -0
- package/core-kit/abi/aave-lending-pool.d.ts +846 -0
- package/core-kit/abi/dhedge-easy-swapper.d.ts +231 -0
- package/core-kit/abi/dhedge-staking-v2.d.ts +127 -0
- package/core-kit/abi/erc20.d.ts +1 -0
- package/core-kit/abi/index.d.ts +9 -0
- package/core-kit/abi/pool-factory.d.ts +57 -0
- package/core-kit/abi/pool-logic.d.ts +823 -0
- package/core-kit/abi/pool-manager-logic.d.ts +70 -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-2771-context.d.ts +15 -0
- package/core-kit/abi/synthetix-v3/ierc-7412.d.ts +41 -0
- package/core-kit/abi/synthetix-v3/index.d.ts +6 -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 +10 -0
- package/core-kit/const/contracts/arbitrum.d.ts +3 -0
- package/core-kit/const/contracts/base.d.ts +2 -0
- package/core-kit/const/contracts/index.d.ts +4 -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 +23 -0
- package/core-kit/const/error.d.ts +4 -0
- package/core-kit/const/index.d.ts +11 -0
- package/core-kit/const/links.d.ts +1 -0
- package/core-kit/const/logger.d.ts +38 -0
- package/core-kit/const/network.d.ts +2232 -0
- package/core-kit/const/synthetix.d.ts +4 -0
- package/core-kit/const/tokens/arbitrum.d.ts +5 -0
- package/core-kit/const/tokens/base.d.ts +5 -0
- package/core-kit/const/tokens/index.d.ts +8 -0
- package/core-kit/const/tokens/optimism.d.ts +10 -0
- package/core-kit/const/tokens/polygon.d.ts +9 -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 +14 -0
- package/core-kit/hooks/pool/multicall/index.d.ts +4 -0
- package/core-kit/hooks/pool/multicall/use-pool-manager.dynamic.d.ts +910 -0
- package/core-kit/hooks/pool/multicall/use-pool-manager.static.d.ts +153 -0
- package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +2432 -0
- package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +2489 -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-invalidate-pool-contract-data.d.ts +1 -0
- package/core-kit/hooks/pool/use-is-dhedge-pool.d.ts +5 -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 +19 -0
- package/core-kit/hooks/pool/use-pool-fees.d.ts +12 -0
- package/core-kit/hooks/pool/use-pool-manager-logic-data.d.ts +14 -0
- package/core-kit/hooks/pool/use-pool-token-price.d.ts +9 -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 +23 -0
- package/core-kit/hooks/state/context.d.ts +2 -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/meta.d.ts +8 -0
- package/core-kit/hooks/state/modal.d.ts +5 -0
- package/core-kit/hooks/state/pool.d.ts +16 -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/index.d.ts +9 -0
- package/core-kit/hooks/trading/deposit/use-deposit-allowance.d.ts +4 -0
- package/core-kit/hooks/trading/deposit/use-deposit-method-handler.d.ts +2 -0
- package/core-kit/hooks/trading/deposit/use-deposit-quote.d.ts +2 -0
- package/core-kit/hooks/trading/deposit/use-deposit-slippage.d.ts +1 -0
- package/core-kit/hooks/trading/deposit/use-deposit.d.ts +2 -0
- package/core-kit/hooks/trading/deposit/use-handle-pool-deposit-data.d.ts +1 -0
- package/core-kit/hooks/trading/deposit/use-pool-deposit-asset-address.d.ts +9 -0
- package/core-kit/hooks/trading/deposit/use-pool-deposit-tokens.d.ts +2 -0
- package/core-kit/hooks/trading/deposit/use-should-be-whitelisted.d.ts +4 -0
- package/core-kit/hooks/trading/index.d.ts +15 -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/use-asset-price.d.ts +8 -0
- package/core-kit/hooks/trading/use-exchange-rate.d.ts +5 -0
- package/core-kit/hooks/trading/use-handle-pool-swap-info.d.ts +1 -0
- package/core-kit/hooks/trading/use-handle-trade.d.ts +6 -0
- package/core-kit/hooks/trading/use-is-easy-swapper-trading.d.ts +1 -0
- package/core-kit/hooks/trading/use-is-trading-enabled.d.ts +1 -0
- package/core-kit/hooks/trading/use-max-slippage-placeholder.d.ts +1 -0
- package/core-kit/hooks/trading/use-min-receive-text.d.ts +4 -0
- package/core-kit/hooks/trading/use-raw-asset-price.d.ts +8 -0
- package/core-kit/hooks/trading/use-synthetix-v3-oracles-update.d.ts +10 -0
- package/core-kit/hooks/trading/use-trading-params.d.ts +2 -0
- package/core-kit/hooks/trading/use-trading-price-diff.d.ts +8 -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/index.d.ts +6 -0
- package/core-kit/hooks/trading/withdraw/use-is-multi-asset-withdraw.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw/use-withdraw-allowance.d.ts +4 -0
- package/core-kit/hooks/trading/withdraw/use-withdraw-quote.d.ts +2 -0
- package/core-kit/hooks/trading/withdraw/use-withdraw-slippage.d.ts +9 -0
- package/core-kit/hooks/trading/withdraw/use-withdraw-type-handler.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw/use-withdraw.d.ts +2 -0
- package/core-kit/hooks/user/index.d.ts +3 -0
- package/core-kit/hooks/user/use-is-insufficient-balance.d.ts +1 -0
- package/core-kit/hooks/user/use-is-pool-manager-account.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 +12 -0
- package/core-kit/hooks/web3/use-token-allowance.d.ts +3 -0
- package/core-kit/index.d.ts +1 -0
- package/core-kit/models/buying-with-easyswapper-args.d.ts +18 -0
- package/core-kit/models/buying-with-native-asset-args.d.ts +16 -0
- package/core-kit/models/buying-with-pool-logic-args.d.ts +14 -0
- package/core-kit/models/default-selling-params.d.ts +18 -0
- package/core-kit/models/estimation-error.d.ts +20 -0
- package/core-kit/models/index.d.ts +5 -0
- package/core-kit/providers/index.d.ts +6 -0
- package/core-kit/providers/wagmi-provider.d.ts +2 -0
- package/core-kit/types/config.types.d.ts +29 -0
- package/core-kit/types/index.d.ts +8 -0
- package/core-kit/types/pool.types.d.ts +16 -0
- package/core-kit/types/referral.types.d.ts +12 -0
- package/core-kit/types/state.types.d.ts +113 -0
- package/core-kit/types/synthetix-v3.types.d.ts +9 -0
- package/core-kit/types/trading-panel.types.d.ts +49 -0
- package/core-kit/types/trading.types.d.ts +21 -0
- package/core-kit/types/web3.types.d.ts +51 -0
- package/core-kit/utils/error.d.ts +10 -0
- package/core-kit/utils/formatter.d.ts +16 -0
- package/core-kit/utils/index.d.ts +9 -0
- package/core-kit/utils/number.d.ts +8 -0
- package/core-kit/utils/synthetix-v3/eip-7412.d.ts +10 -0
- package/core-kit/utils/synthetix-v3/multicall-forwarder-batcher.d.ts +8 -0
- package/core-kit/utils/synthetix-v3/parse-error.d.ts +3 -0
- package/core-kit/utils/synthetix-v3/pyth-adapter.d.ts +12 -0
- package/core-kit/utils/synthetix.d.ts +10 -0
- package/core-kit/utils/token.d.ts +4 -0
- package/core-kit/utils/transaction.d.ts +4 -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 +11 -0
- package/index-09acee2a.js +42963 -0
- package/index-d35b75f0.cjs +227 -0
- package/index.cjs +1 -0
- package/index.d.ts +18 -1
- package/index.js +264 -337
- package/package.json +19 -11
- package/style.css +1 -1
- package/{components → trading-widget/components}/common/badge/token-badge/token-badge.d.ts +1 -1
- package/{components → trading-widget/components}/common/icon/token-icon/token-icon.d.ts +1 -1
- package/trading-widget/components/common/layout/overlay/overlay.d.ts +7 -0
- package/{components → trading-widget/components}/common/meta/transaction-disclosure/transaction-disclosure-item/transaction-disclosure-item.d.ts +1 -1
- package/{components → trading-widget/components}/common/meta/transaction-disclosure/transaction-disclosure.d.ts +1 -1
- package/{components → trading-widget/components}/common/spinner/spinner.d.ts +1 -1
- package/{components → trading-widget/components}/common/tab/tab-button/tab-button.d.ts +1 -1
- package/trading-widget/components/default-examples/image/image.d.ts +3 -0
- package/trading-widget/components/deposit/button/trade-button/trade-button.hooks.d.ts +5 -0
- package/{components → trading-widget/components}/deposit/input-group/input-group.hooks.d.ts +1 -1
- package/{components → trading-widget/components}/deposit/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +2 -2
- package/{components → trading-widget/components}/index.d.ts +1 -1
- package/{components → trading-widget/components}/widget/widget-input/asset-composition-table/asset-composition-table.hooks.d.ts +2 -2
- package/{components → trading-widget/components}/widget/widget-input/token-selector/token-selector.d.ts +1 -1
- package/{components → trading-widget/components}/widget/widget-input/widget-input.hooks.d.ts +1 -1
- 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 +4 -0
- package/trading-widget/components/widget/widget-overlay/overlay-switch/overlay-switch.d.ts +2 -0
- package/trading-widget/components/widget/widget-overlay/terms-of-use-overlay/terms-of-use-overlay.d.ts +3 -0
- package/{components → trading-widget/components}/widget/widget-settings/slippage-selector/slippage-selector.hooks.d.ts +1 -1
- package/{components → trading-widget/components}/widget/widget-settings/widget-settings.d.ts +1 -1
- package/{components → trading-widget/components}/widget/widget.hooks.d.ts +1 -1
- package/{components → trading-widget/components}/withdraw/button/valid-withdraw-button/valid-withdraw-button.hooks.d.ts +1 -1
- package/{components → trading-widget/components}/withdraw/input-group/input-group.hooks.d.ts +1 -1
- package/{components → trading-widget/components}/withdraw/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +1 -1
- package/{constants → trading-widget/constants}/synthetix-v3.d.ts +1 -1
- package/{hooks → trading-widget/hooks}/use-get-slippage-placeholder.d.ts +1 -1
- package/{hooks → trading-widget/hooks}/use-get-theme-type-by-slippage.d.ts +1 -1
- package/{hooks → trading-widget/hooks}/use-trading-type-name.d.ts +1 -1
- package/{hooks → trading-widget/hooks}/use-user-staked-pools.d.ts +1 -1
- package/trading-widget/hooks/use-user-vault-balance.d.ts +3 -0
- package/{hooks → trading-widget/hooks}/use-user-vaults-balances.d.ts +1 -1
- package/{providers → trading-widget/providers}/component-provider/component-provider.d.ts +1 -0
- package/{providers → trading-widget/providers}/component-provider/component-provider.hooks.d.ts +1 -0
- package/{providers → trading-widget/providers}/component-provider/component-provider.types.d.ts +2 -0
- package/{providers → trading-widget/providers}/config-provider/config-provider.types.d.ts +3 -1
- 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 +12 -0
- package/trading-widget/providers/overlay-provider/overlay-provider.types.d.ts +12 -0
- package/{providers → trading-widget/providers}/theme-provider/theme-provider.types.d.ts +3 -3
- package/{providers → trading-widget/providers}/translation-provider/translation-provider.types.d.ts +14 -0
- package/{types → trading-widget/types}/index.d.ts +1 -0
- package/trading-widget/types/overlay.types.d.ts +8 -0
- package/{types → trading-widget/types}/staking.types.d.ts +1 -1
- package/{utils → trading-widget/utils}/format.d.ts +1 -1
- package/{utils → trading-widget/utils}/synthetix-v3.d.ts +3 -3
- package/components/common/layout/overlay/overlay.d.ts +0 -2
- package/components/default-examples/image/image.d.ts +0 -3
- package/components/widget/widget-overlay/index.d.ts +0 -1
- package/hooks/use-user-vault-balance.d.ts +0 -3
- package/index.mjs +0 -54443
- package/native-15074a2a.mjs +0 -15
- package/native-243c3d4c.js +0 -1
- /package/{components → trading-widget/components}/common/balance/balance.d.ts +0 -0
- /package/{components → trading-widget/components}/common/button/action-button/action-button.d.ts +0 -0
- /package/{components → trading-widget/components}/common/button/disabled-button-with-prompt/disabled-button-with-prompt.d.ts +0 -0
- /package/{components → trading-widget/components}/common/button/icon-button/icon-button.d.ts +0 -0
- /package/{components → trading-widget/components}/common/button/max-balance-button/max-balance-button.d.ts +0 -0
- /package/{components → trading-widget/components}/common/index.d.ts +0 -0
- /package/{components → trading-widget/components}/common/layout/balance/balance.d.ts +0 -0
- /package/{components → trading-widget/components}/common/layout/index.d.ts +0 -0
- /package/{components → trading-widget/components}/common/layout/input-group/input-group.d.ts +0 -0
- /package/{components → trading-widget/components}/common/layout/meta/meta.d.ts +0 -0
- /package/{components → trading-widget/components}/common/layout/panel/panel.d.ts +0 -0
- /package/{components → trading-widget/components}/common/layout/settings/settings-popover/settings-popover.d.ts +0 -0
- /package/{components → trading-widget/components}/common/layout/settings/settings.d.ts +0 -0
- /package/{components → trading-widget/components}/common/overlay/pending-overlay/pending-overlay.d.ts +0 -0
- /package/{components → trading-widget/components}/common/settings/settings-option/settings-option.d.ts +0 -0
- /package/{components → trading-widget/components}/common/skeleton/skeleton.d.ts +0 -0
- /package/{components → trading-widget/components}/common/switch/switch.d.ts +0 -0
- /package/{components → trading-widget/components}/common/tooltip/info-tooltip/info-tooltip.d.ts +0 -0
- /package/{components → trading-widget/components}/common/tooltip/tooltip-icon/tooltip-icon.d.ts +0 -0
- /package/{components → trading-widget/components}/common/tooltip/tooltip-wrapper/tooltip-wrapper.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/balance/balance.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/balance/balance.hooks.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/button/trade-button/trade-button.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/button/valid-deposit-button/valid-deposit-button.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/index.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/input-group/input-group.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/meta/meta.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/meta/transaction-disclosure/transaction-disclosure.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/settings/deposit-fee-switch/deposit-fee-switch.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/settings/deposit-fee-switch/deposit-fee-switch.hooks.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/settings/deposit-settings/deposit-settings.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/settings/deposit-settings/deposit-settings.hooks.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/tab-panel/tab-panel.d.ts +0 -0
- /package/{components → trading-widget/components}/deposit/tab-panel/tab-panel.hooks.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-buttons/approve-button/approve-button.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-buttons/approve-button/approve-button.hooks.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-buttons/connect-wallet-button/connect-wallet-button.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-buttons/index.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-buttons/switch-network-button/switch-network-button.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-buttons/valid-network-button/valid-network-button.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-buttons/valid-network-button/valid-network-button.hooks.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-input/asset-composition-table/asset-composition-table.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-input/index.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-input/token-selector/token-selector.hooks.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-input/widget-input.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-input/widget-input.utils.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-meta/exchange-rate/exchange-rate.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-meta/index.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-overlay/pending-approval-overlay/pending-approval-overlay.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-overlay/pending-approval-overlay/pending-approval-overlay.hooks.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-settings/index.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-settings/slippage-selector/slippage-selector.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-settings/token-allowance-switch/token-allowance-switch.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget-tabs/widget-tabs.d.ts +0 -0
- /package/{components → trading-widget/components}/widget/widget.d.ts +0 -0
- /package/{components → trading-widget/components}/withdraw/balance/balance.d.ts +0 -0
- /package/{components → trading-widget/components}/withdraw/balance/balance.hooks.d.ts +0 -0
- /package/{components → trading-widget/components}/withdraw/button/trade-button/trade-button.d.ts +0 -0
- /package/{components → trading-widget/components}/withdraw/button/valid-withdraw-button/valid-withdraw-button.d.ts +0 -0
- /package/{components → trading-widget/components}/withdraw/index.d.ts +0 -0
- /package/{components → trading-widget/components}/withdraw/input-group/input-group.d.ts +0 -0
- /package/{components → trading-widget/components}/withdraw/meta/meta.d.ts +0 -0
- /package/{components → trading-widget/components}/withdraw/meta/transaction-disclosure/transaction-disclosure.d.ts +0 -0
- /package/{components → trading-widget/components}/withdraw/settings/withdraw-settings/withdraw-settings.d.ts +0 -0
- /package/{components → trading-widget/components}/withdraw/tab-panel/tab-panel.d.ts +0 -0
- /package/{components → trading-widget/components}/withdraw/tab-panel/tab-panel.hooks.d.ts +0 -0
- /package/{constants → trading-widget/constants}/tab.d.ts +0 -0
- /package/{hooks → trading-widget/hooks}/index.d.ts +0 -0
- /package/{hooks → trading-widget/hooks}/use-crypto-icon.d.ts +0 -0
- /package/{hooks → trading-widget/hooks}/use-high-slippage-check.d.ts +0 -0
- /package/{hooks → trading-widget/hooks}/use-synthetix-withdrawal-window.d.ts +0 -0
- /package/{providers → trading-widget/providers}/component-provider/index.d.ts +0 -0
- /package/{providers → trading-widget/providers}/config-provider/config-provider.d.ts +0 -0
- /package/{providers → trading-widget/providers}/config-provider/config-provider.defaults.d.ts +0 -0
- /package/{providers → trading-widget/providers}/config-provider/config-provider.hooks.d.ts +0 -0
- /package/{providers → trading-widget/providers}/config-provider/index.d.ts +0 -0
- /package/{providers → trading-widget/providers}/index.d.ts +0 -0
- /package/{providers → trading-widget/providers}/theme-provider/index.d.ts +0 -0
- /package/{providers → trading-widget/providers}/theme-provider/theme-provider.d.ts +0 -0
- /package/{providers → trading-widget/providers}/translation-provider/index.d.ts +0 -0
- /package/{providers → trading-widget/providers}/translation-provider/translation-provider.d.ts +0 -0
- /package/{providers → trading-widget/providers}/translation-provider/translation-provider.defaults.d.ts +0 -0
- /package/{providers → trading-widget/providers}/translation-provider/translation-provider.hooks.d.ts +0 -0
- /package/{types → trading-widget/types}/balance.types.d.ts +0 -0
- /package/{types → trading-widget/types}/synthetix-v3.types.d.ts +0 -0
- /package/{types → trading-widget/types}/theme.types.d.ts +0 -0
- /package/{utils → trading-widget/utils}/icon.d.ts +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const PoolManagerLogicAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly name: "getFundComposition";
|
|
4
|
+
readonly outputs: readonly [{
|
|
5
|
+
readonly components: readonly [{
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
readonly name: "asset";
|
|
8
|
+
readonly type: "address";
|
|
9
|
+
}, {
|
|
10
|
+
readonly internalType: "bool";
|
|
11
|
+
readonly name: "isDeposit";
|
|
12
|
+
readonly type: "bool";
|
|
13
|
+
}];
|
|
14
|
+
readonly internalType: "struct IHasSupportedAsset.Asset[]";
|
|
15
|
+
readonly name: "assets";
|
|
16
|
+
readonly type: "tuple[]";
|
|
17
|
+
}, {
|
|
18
|
+
readonly internalType: "uint256[]";
|
|
19
|
+
readonly name: "balances";
|
|
20
|
+
readonly type: "uint256[]";
|
|
21
|
+
}, {
|
|
22
|
+
readonly internalType: "uint256[]";
|
|
23
|
+
readonly name: "rates";
|
|
24
|
+
readonly type: "uint256[]";
|
|
25
|
+
}];
|
|
26
|
+
readonly stateMutability: "view";
|
|
27
|
+
readonly type: "function";
|
|
28
|
+
}, {
|
|
29
|
+
readonly inputs: readonly [];
|
|
30
|
+
readonly name: "getFeeIncreaseInfo";
|
|
31
|
+
readonly outputs: readonly [{
|
|
32
|
+
readonly internalType: "uint256";
|
|
33
|
+
readonly name: "";
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}, {
|
|
36
|
+
readonly internalType: "uint256";
|
|
37
|
+
readonly name: "";
|
|
38
|
+
readonly type: "uint256";
|
|
39
|
+
}, {
|
|
40
|
+
readonly internalType: "uint256";
|
|
41
|
+
readonly name: "";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}, {
|
|
44
|
+
readonly internalType: "uint256";
|
|
45
|
+
readonly name: "";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
}];
|
|
48
|
+
readonly stateMutability: "view";
|
|
49
|
+
readonly type: "function";
|
|
50
|
+
}, {
|
|
51
|
+
readonly inputs: readonly [];
|
|
52
|
+
readonly name: "minDepositUSD";
|
|
53
|
+
readonly outputs: readonly [{
|
|
54
|
+
readonly internalType: "uint256";
|
|
55
|
+
readonly name: "";
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
}];
|
|
58
|
+
readonly stateMutability: "view";
|
|
59
|
+
readonly type: "function";
|
|
60
|
+
}, {
|
|
61
|
+
readonly inputs: readonly [];
|
|
62
|
+
readonly name: "totalFundValueMutable";
|
|
63
|
+
readonly outputs: readonly [{
|
|
64
|
+
readonly internalType: "uint256";
|
|
65
|
+
readonly name: "";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
}];
|
|
68
|
+
readonly stateMutability: "nonpayable";
|
|
69
|
+
readonly type: "function";
|
|
70
|
+
}];
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export declare const RewardDistributionAbi: readonly [{
|
|
2
|
+
readonly anonymous: false;
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly components: readonly [{
|
|
5
|
+
readonly internalType: "address";
|
|
6
|
+
readonly name: "pool";
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
}, {
|
|
9
|
+
readonly internalType: "uint256";
|
|
10
|
+
readonly name: "amount";
|
|
11
|
+
readonly type: "uint256";
|
|
12
|
+
}];
|
|
13
|
+
readonly indexed: false;
|
|
14
|
+
readonly internalType: "struct RewardDistribution.RewardSummary[]";
|
|
15
|
+
readonly name: "distributedRewards";
|
|
16
|
+
readonly type: "tuple[]";
|
|
17
|
+
}, {
|
|
18
|
+
readonly indexed: false;
|
|
19
|
+
readonly internalType: "uint256";
|
|
20
|
+
readonly name: "totalDistributedRewards";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
}];
|
|
23
|
+
readonly name: "RewardsDistribution";
|
|
24
|
+
readonly type: "event";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [];
|
|
27
|
+
readonly name: "calculateEligiblePoolsRewards";
|
|
28
|
+
readonly outputs: readonly [{
|
|
29
|
+
readonly components: readonly [{
|
|
30
|
+
readonly internalType: "address";
|
|
31
|
+
readonly name: "pool";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
}, {
|
|
34
|
+
readonly internalType: "uint256";
|
|
35
|
+
readonly name: "amount";
|
|
36
|
+
readonly type: "uint256";
|
|
37
|
+
}];
|
|
38
|
+
readonly internalType: "struct RewardDistribution.RewardSummary[]";
|
|
39
|
+
readonly name: "rewards";
|
|
40
|
+
readonly type: "tuple[]";
|
|
41
|
+
}, {
|
|
42
|
+
readonly internalType: "uint256";
|
|
43
|
+
readonly name: "totalRewardsToDistribute";
|
|
44
|
+
readonly type: "uint256";
|
|
45
|
+
}];
|
|
46
|
+
readonly stateMutability: "view";
|
|
47
|
+
readonly type: "function";
|
|
48
|
+
}, {
|
|
49
|
+
readonly inputs: readonly [];
|
|
50
|
+
readonly name: "getEligiblePoolsWithTvl";
|
|
51
|
+
readonly outputs: readonly [{
|
|
52
|
+
readonly internalType: "uint256";
|
|
53
|
+
readonly name: "tvl";
|
|
54
|
+
readonly type: "uint256";
|
|
55
|
+
}, {
|
|
56
|
+
readonly components: readonly [{
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
readonly name: "pool";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
}, {
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
readonly name: "tvl";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}];
|
|
65
|
+
readonly internalType: "struct RewardDistribution.EligiblePool[]";
|
|
66
|
+
readonly name: "eligiblePools";
|
|
67
|
+
readonly type: "tuple[]";
|
|
68
|
+
}];
|
|
69
|
+
readonly stateMutability: "view";
|
|
70
|
+
readonly type: "function";
|
|
71
|
+
}, {
|
|
72
|
+
readonly inputs: readonly [];
|
|
73
|
+
readonly name: "getRewardsAPY";
|
|
74
|
+
readonly outputs: readonly [{
|
|
75
|
+
readonly internalType: "uint256";
|
|
76
|
+
readonly name: "apy";
|
|
77
|
+
readonly type: "uint256";
|
|
78
|
+
}];
|
|
79
|
+
readonly stateMutability: "view";
|
|
80
|
+
readonly type: "function";
|
|
81
|
+
}, {
|
|
82
|
+
readonly inputs: readonly [];
|
|
83
|
+
readonly name: "getWhitelistedPools";
|
|
84
|
+
readonly outputs: readonly [{
|
|
85
|
+
readonly internalType: "address[]";
|
|
86
|
+
readonly name: "";
|
|
87
|
+
readonly type: "address[]";
|
|
88
|
+
}];
|
|
89
|
+
readonly stateMutability: "view";
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly name: "lastDistributionTime";
|
|
94
|
+
readonly outputs: readonly [{
|
|
95
|
+
readonly internalType: "uint256";
|
|
96
|
+
readonly name: "";
|
|
97
|
+
readonly type: "uint256";
|
|
98
|
+
}];
|
|
99
|
+
readonly stateMutability: "view";
|
|
100
|
+
readonly type: "function";
|
|
101
|
+
}, {
|
|
102
|
+
readonly inputs: readonly [];
|
|
103
|
+
readonly name: "rewardAmountPerSecond";
|
|
104
|
+
readonly outputs: readonly [{
|
|
105
|
+
readonly internalType: "uint256";
|
|
106
|
+
readonly name: "";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
}];
|
|
109
|
+
readonly stateMutability: "view";
|
|
110
|
+
readonly type: "function";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [];
|
|
113
|
+
readonly name: "rewardToken";
|
|
114
|
+
readonly outputs: readonly [{
|
|
115
|
+
readonly internalType: "contract IERC20";
|
|
116
|
+
readonly name: "";
|
|
117
|
+
readonly type: "address";
|
|
118
|
+
}];
|
|
119
|
+
readonly stateMutability: "view";
|
|
120
|
+
readonly type: "function";
|
|
121
|
+
}];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const ITrustedMulticallForwarderAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly components: readonly [{
|
|
4
|
+
readonly internalType: "address";
|
|
5
|
+
readonly name: "target";
|
|
6
|
+
readonly type: "address";
|
|
7
|
+
}, {
|
|
8
|
+
readonly internalType: "bool";
|
|
9
|
+
readonly name: "requireSuccess";
|
|
10
|
+
readonly type: "bool";
|
|
11
|
+
}, {
|
|
12
|
+
readonly internalType: "uint256";
|
|
13
|
+
readonly name: "value";
|
|
14
|
+
readonly type: "uint256";
|
|
15
|
+
}, {
|
|
16
|
+
readonly internalType: "bytes";
|
|
17
|
+
readonly name: "callData";
|
|
18
|
+
readonly type: "bytes";
|
|
19
|
+
}];
|
|
20
|
+
readonly internalType: "struct TrustedMulticallForwarder.Call3Value[]";
|
|
21
|
+
readonly name: "calls";
|
|
22
|
+
readonly type: "tuple[]";
|
|
23
|
+
}];
|
|
24
|
+
readonly name: "aggregate3Value";
|
|
25
|
+
readonly outputs: readonly [{
|
|
26
|
+
readonly components: readonly [{
|
|
27
|
+
readonly internalType: "bool";
|
|
28
|
+
readonly name: "success";
|
|
29
|
+
readonly type: "bool";
|
|
30
|
+
}, {
|
|
31
|
+
readonly internalType: "bytes";
|
|
32
|
+
readonly name: "returnData";
|
|
33
|
+
readonly type: "bytes";
|
|
34
|
+
}];
|
|
35
|
+
readonly internalType: "struct TrustedMulticallForwarder.Result[]";
|
|
36
|
+
readonly name: "returnData";
|
|
37
|
+
readonly type: "tuple[]";
|
|
38
|
+
}];
|
|
39
|
+
readonly stateMutability: "payable";
|
|
40
|
+
readonly type: "function";
|
|
41
|
+
}];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const IERC2771ContextAbi: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "isTrustedForwarder";
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly name: "forwarder";
|
|
6
|
+
readonly type: "address";
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
}];
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly type: "bool";
|
|
12
|
+
readonly internalType: "bool";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "view";
|
|
15
|
+
}];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const IERC7412Abi: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "fulfillOracleQuery";
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly name: "signedOffchainData";
|
|
6
|
+
readonly type: "bytes";
|
|
7
|
+
readonly internalType: "bytes";
|
|
8
|
+
}];
|
|
9
|
+
readonly outputs: readonly [];
|
|
10
|
+
readonly stateMutability: "payable";
|
|
11
|
+
}, {
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
readonly name: "oracleId";
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly outputs: readonly [{
|
|
16
|
+
readonly name: "";
|
|
17
|
+
readonly type: "bytes32";
|
|
18
|
+
readonly internalType: "bytes32";
|
|
19
|
+
}];
|
|
20
|
+
readonly stateMutability: "view";
|
|
21
|
+
}, {
|
|
22
|
+
readonly type: "error";
|
|
23
|
+
readonly name: "FeeRequired";
|
|
24
|
+
readonly inputs: readonly [{
|
|
25
|
+
readonly name: "feeAmount";
|
|
26
|
+
readonly type: "uint256";
|
|
27
|
+
readonly internalType: "uint256";
|
|
28
|
+
}];
|
|
29
|
+
}, {
|
|
30
|
+
readonly type: "error";
|
|
31
|
+
readonly name: "OracleDataRequired";
|
|
32
|
+
readonly inputs: readonly [{
|
|
33
|
+
readonly name: "oracleContract";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "oracleQuery";
|
|
38
|
+
readonly type: "bytes";
|
|
39
|
+
readonly internalType: "bytes";
|
|
40
|
+
}];
|
|
41
|
+
}];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { SynthetixV3AssetGuard } from './synthetix-v3-asset-guard';
|
|
2
|
+
export { SynthetixV3ContractGuard } from './synthetix-v3-contract-guard';
|
|
3
|
+
export { IERC2771ContextAbi } from './ierc-2771-context';
|
|
4
|
+
export { IERC7412Abi } from './ierc-7412';
|
|
5
|
+
export { ITrustedMulticallForwarderAbi } from './i-trusted-multicall-forwarder';
|
|
6
|
+
export { SynthetixV3CoreAbi } from './synthetix-v3-core';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const SynthetixV3AssetGuard: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "pool";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "asset";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}];
|
|
11
|
+
readonly name: "getBalanceMutable";
|
|
12
|
+
readonly outputs: readonly [{
|
|
13
|
+
readonly internalType: "uint256";
|
|
14
|
+
readonly name: "balance";
|
|
15
|
+
readonly type: "uint256";
|
|
16
|
+
}];
|
|
17
|
+
readonly stateMutability: "view";
|
|
18
|
+
readonly type: "function";
|
|
19
|
+
}, {
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly internalType: "address";
|
|
22
|
+
readonly name: "pool";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}, {
|
|
25
|
+
readonly internalType: "address";
|
|
26
|
+
readonly name: "asset";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
}];
|
|
29
|
+
readonly name: "getBalance";
|
|
30
|
+
readonly outputs: readonly [{
|
|
31
|
+
readonly internalType: "uint256";
|
|
32
|
+
readonly name: "balance";
|
|
33
|
+
readonly type: "uint256";
|
|
34
|
+
}];
|
|
35
|
+
readonly stateMutability: "view";
|
|
36
|
+
readonly type: "function";
|
|
37
|
+
}];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const SynthetixV3ContractGuard: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "_poolLogic";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "_to";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}];
|
|
11
|
+
readonly name: "getAccountNftTokenId";
|
|
12
|
+
readonly outputs: readonly [{
|
|
13
|
+
readonly internalType: "uint128";
|
|
14
|
+
readonly name: "tokenId";
|
|
15
|
+
readonly type: "uint128";
|
|
16
|
+
}];
|
|
17
|
+
readonly stateMutability: "view";
|
|
18
|
+
readonly type: "function";
|
|
19
|
+
}, {
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly internalType: "address";
|
|
22
|
+
readonly name: "";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}];
|
|
25
|
+
readonly name: "dHedgeVaultsWhitelist";
|
|
26
|
+
readonly outputs: readonly [{
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
readonly name: "poolLogic";
|
|
29
|
+
readonly type: "address";
|
|
30
|
+
}, {
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
readonly name: "collateralAsset";
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
}, {
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
readonly name: "debtAsset";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}, {
|
|
39
|
+
readonly internalType: "uint128";
|
|
40
|
+
readonly name: "snxLiquidityPoolId";
|
|
41
|
+
readonly type: "uint128";
|
|
42
|
+
}];
|
|
43
|
+
readonly stateMutability: "view";
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
}];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const SynthetixV3CoreAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "uint128";
|
|
4
|
+
readonly name: "accountId";
|
|
5
|
+
readonly type: "uint128";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "uint128";
|
|
8
|
+
readonly name: "poolId";
|
|
9
|
+
readonly type: "uint128";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "collateralType";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}];
|
|
15
|
+
readonly name: "getPositionDebt";
|
|
16
|
+
readonly outputs: readonly [{
|
|
17
|
+
readonly internalType: "int256";
|
|
18
|
+
readonly name: "debtD18";
|
|
19
|
+
readonly type: "int256";
|
|
20
|
+
}];
|
|
21
|
+
readonly stateMutability: "nonpayable";
|
|
22
|
+
readonly type: "function";
|
|
23
|
+
}, {
|
|
24
|
+
readonly inputs: readonly [{
|
|
25
|
+
readonly internalType: "uint128";
|
|
26
|
+
readonly name: "accountId";
|
|
27
|
+
readonly type: "uint128";
|
|
28
|
+
}, {
|
|
29
|
+
readonly internalType: "address";
|
|
30
|
+
readonly name: "collateralType";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}];
|
|
33
|
+
readonly name: "getAccountAvailableCollateral";
|
|
34
|
+
readonly outputs: readonly [{
|
|
35
|
+
readonly internalType: "uint256";
|
|
36
|
+
readonly name: "";
|
|
37
|
+
readonly type: "uint256";
|
|
38
|
+
}];
|
|
39
|
+
readonly stateMutability: "view";
|
|
40
|
+
readonly type: "function";
|
|
41
|
+
}];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Address, ChainId } from 'core-kit/types/web3.types';
|
|
2
|
+
export type ContractId = 'factory' | 'easySwapper' | 'rewardDistribution' | 'aaveLendingPoolV2' | 'aaveLendingPoolV3' | 'stakingV2' | 'poolManagerLogic' | 'erc20' | 'poolLogic' | 'synthetixV3AssetGuard' | 'synthetixV3Core';
|
|
3
|
+
type ContractsAddressesMap = Readonly<Record<ChainId, {
|
|
4
|
+
[id in ContractId]?: Address;
|
|
5
|
+
}>>;
|
|
6
|
+
export declare const contractsAddressesMap: ContractsAddressesMap;
|
|
7
|
+
export declare const contractsAbisMap: {
|
|
8
|
+
[id in ContractId]: any;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const FACTORY_ADDRESS_ARBITRUM = "0xffFb5fB14606EB3a548C113026355020dDF27535";
|
|
2
|
+
export declare const EASY_SWAPPER_ADDRESS_ARBITRUM = "0x80b9411977C4fF8D618f2aC3f29F1e2D623C4d34";
|
|
3
|
+
export declare const AAVE_LENDING_POOL_V3_ADDRESS_ARBITRUM = "0x794a61358D6845594F94dc1DB02A252b5b4814aD";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const REWARD_DISTRIBUTION_ADDRESS_OPTIMISM = "0x07e144e336fcc3fe928a8a2a5714da64354c1aab";
|
|
2
|
+
export declare const FACTORY_ADDRESS_OPTIMISM = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6";
|
|
3
|
+
export declare const EASY_SWAPPER_ADDRESS_OPTIMISM = "0x3988513793bCE39f0167064A9F7fC3617FaF35AB";
|
|
4
|
+
export declare const STAKING_V2_ADDRESS_OPTIMISM = "0xf165ca3d75120d817b7428eef8c39ea5cb33b612";
|
|
5
|
+
export declare const AAVE_LENDING_POOL_V3_ADDRESS_OPTIMISM = "0x794a61358D6845594F94dc1DB02A252b5b4814aD";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const FACTORY_ADDRESS_POLYGON = "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0";
|
|
2
|
+
export declare const EASY_SWAPPER_ADDRESS_POLYGON = "0xB2F1498983bf9c9442c35F772e6C1AdE66a8DeDE";
|
|
3
|
+
export declare const AAVE_LENDING_POOL_V2_ADDRESS_POLYGON = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf";
|
|
4
|
+
export declare const AAVE_LENDING_POOL_V3_ADDRESS_POLYGON = "0x794a61358D6845594F94dc1DB02A252b5b4814aD";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { PoolConfig } from 'core-kit/types/config.types';
|
|
2
|
+
import type { DepositMethodName } from 'core-kit/types/trading-panel.types';
|
|
3
|
+
import type { PoolDepositMethodName } from 'core-kit/types/trading.types';
|
|
4
|
+
export declare const DEFAULT_PRECISION = 18;
|
|
5
|
+
export declare const DEFAULT_POLLING_INTERVAL = 59000;
|
|
6
|
+
export declare const SHORTEN_POLLING_INTERVAL = 30000;
|
|
7
|
+
export declare const DEFAULT_LOCK_TIME: string;
|
|
8
|
+
export declare const CUSTOM_LOCK_TIME: string;
|
|
9
|
+
export declare const DEFAULT_DEPOSIT_LOCKTIME_MAP: Record<PoolDepositMethodName, string>;
|
|
10
|
+
export declare const DEFAULT_CHAIN_ID: 10;
|
|
11
|
+
export declare const EMPTY_POOL_CONFIG: PoolConfig;
|
|
12
|
+
export declare const DEFAULT_DEPOSIT_METHOD: DepositMethodName;
|
|
13
|
+
export declare const DEFAULT_WITHDRAW_SLIPPAGE = 3;
|
|
14
|
+
export declare const DEFAULT_DEPOSIT_SLIPPAGE = 0;
|
|
15
|
+
export declare const DEFAULT_WITHDRAW_SLIPPAGE_SCALE: number[];
|
|
16
|
+
export declare const DEFAULT_DEPOSIT_SLIPPAGE_SCALE: number[];
|
|
17
|
+
export declare const DEFAULT_WITHDRAW_METHOD = "withdraw";
|
|
18
|
+
export declare const NATIVE_TOKEN_DEPOSIT_GAS_LIMIT = 4200000;
|
|
19
|
+
export declare const GAS_LIMIT_BUFFER_COEFF = 1.25;
|
|
20
|
+
export declare const DEPOSIT_QUOTE_MULTIPLIER_DEFAULT = 0.9997;
|
|
21
|
+
export declare const DEPOSIT_QUOTE_MULTIPLIER_CUSTOM = 0.999;
|
|
22
|
+
export declare const MANAGER_FEE_DENOMINATOR = 10000;
|
|
23
|
+
export declare const DEFAULT_PROMISE_TIMEOUT_MS = 13000;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const GAS_ESTIMATION_ERROR = "Gas estimate error occurred";
|
|
2
|
+
export declare const DEFAULT_ERROR_MESSAGE = "See console logs to report error details.";
|
|
3
|
+
export declare const DEFAULT_SIMULATION_ERROR = "Missing simulation params";
|
|
4
|
+
export declare const SIMULATION_TIMEOUT_ERROR = "Simulation timeout";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './network';
|
|
2
|
+
export * from './currency';
|
|
3
|
+
export * from './default-data';
|
|
4
|
+
export * from './logger';
|
|
5
|
+
export * from './web3';
|
|
6
|
+
export * from './contracts';
|
|
7
|
+
export * from './config';
|
|
8
|
+
export * from './error';
|
|
9
|
+
export * from './tokens';
|
|
10
|
+
export * from './synthetix';
|
|
11
|
+
export * from './links';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PYTH_API_LINK = "https://hermes.pyth.network";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const TRADING_PANEL_LOG_EVENT: {
|
|
2
|
+
INVEST_INPUT_FOCUS: string;
|
|
3
|
+
APPROVED_TOKEN: string;
|
|
4
|
+
DEPOSIT: string;
|
|
5
|
+
WITHDRAWAL: string;
|
|
6
|
+
TRADING_SETTINGS_OPENED: string;
|
|
7
|
+
DEPOSIT_METHOD_CHANGE: string;
|
|
8
|
+
INFINITE_ALLOWANCE_CHANGE: string;
|
|
9
|
+
MULTI_ASSET_WITHDRAWAL_CHANGE: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Limits: Up to 50 custom event parameters per project;
|
|
13
|
+
* 40 must be numeric and 10 textual
|
|
14
|
+
* Parameter names can be up to 40 characters long alfanumeric with underscores
|
|
15
|
+
* Parameter textual values can be up to 100 characters long
|
|
16
|
+
*/
|
|
17
|
+
export declare const TRADING_LOG_EVENT_PARAM: {
|
|
18
|
+
IS_INFINITE: {
|
|
19
|
+
NAME: string;
|
|
20
|
+
TYPE: string;
|
|
21
|
+
};
|
|
22
|
+
IS_MULTI_ASSET: {
|
|
23
|
+
NAME: string;
|
|
24
|
+
TYPE: string;
|
|
25
|
+
};
|
|
26
|
+
SYMBOL: {
|
|
27
|
+
NAME: string;
|
|
28
|
+
TYPE: string;
|
|
29
|
+
};
|
|
30
|
+
CHAIN_ID: {
|
|
31
|
+
NAME: string;
|
|
32
|
+
TYPE: string;
|
|
33
|
+
};
|
|
34
|
+
ADDRESS: {
|
|
35
|
+
NAME: string;
|
|
36
|
+
TYPE: string;
|
|
37
|
+
};
|
|
38
|
+
};
|