@dhedge/trading-widget 6.0.6 → 6.2.0-canary.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/README.md +136 -125
- package/const.cjs +1 -1
- package/const.js +96 -89
- package/core-kit/abi/dytm-office-asset-guard.d.ts +194 -0
- package/core-kit/abi/hyperliquid-withdrawal-manager.d.ts +301 -0
- package/core-kit/abi/index.d.ts +2 -0
- package/core-kit/abi/ondo-gm-token-asset-guard.d.ts +20 -0
- package/core-kit/abi/ondo-price-oracle.d.ts +18 -0
- package/core-kit/const/config.d.ts +1 -1
- package/core-kit/const/hyperliquid.d.ts +8 -0
- package/core-kit/const/index.d.ts +1 -0
- package/core-kit/const/logger.d.ts +4 -0
- package/core-kit/const/trading.d.ts +3 -0
- package/core-kit/hooks/pool/index.d.ts +4 -0
- package/core-kit/hooks/pool/use-asset-guard-address.d.ts +8 -0
- package/core-kit/hooks/pool/use-dytm-vault-data.d.ts +8 -0
- package/core-kit/hooks/pool/use-ondo-price-deviation.d.ts +10 -0
- package/core-kit/hooks/pool/use-ondo-vault-data.d.ts +1 -0
- package/core-kit/hooks/pool/use-pool-assets-with-type.d.ts +14 -0
- package/core-kit/hooks/trading/hyperliquid-withdraw/index.d.ts +12 -0
- package/core-kit/hooks/trading/hyperliquid-withdraw/use-handle-hyperliquid-withdraw-step.d.ts +12 -0
- package/core-kit/hooks/trading/hyperliquid-withdraw/use-hyperliquid-announce-transaction.d.ts +9 -0
- package/core-kit/hooks/trading/hyperliquid-withdraw/use-hyperliquid-cancel-availability.d.ts +5 -0
- package/core-kit/hooks/trading/hyperliquid-withdraw/use-hyperliquid-manager-transaction.d.ts +8 -0
- package/core-kit/hooks/trading/hyperliquid-withdraw/use-hyperliquid-pending-withdrawal.d.ts +313 -0
- package/core-kit/hooks/trading/hyperliquid-withdraw/use-hyperliquid-withdraw-expected-amount.d.ts +4 -0
- package/core-kit/hooks/trading/hyperliquid-withdraw/use-hyperliquid-withdrawal-allowance.d.ts +10 -0
- package/core-kit/hooks/trading/hyperliquid-withdraw/use-is-hyperliquid-withdraw.d.ts +4 -0
- package/core-kit/hooks/trading/hyperliquid-withdraw/use-is-hyperliquid-withdrawal-vault.d.ts +1 -0
- package/core-kit/hooks/trading/hyperliquid-withdraw/use-purge-hyperliquid-pending-transactions.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-dytm-withdraw-asset-data.d.ts +3 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-ondo-withdraw-asset-data.d.ts +3 -2
- package/core-kit/services/ondo/api.d.ts +5 -1
- package/core-kit/services/ondo/index.d.ts +2 -2
- package/core-kit/services/ondo/types.d.ts +9 -0
- package/core-kit/types/trading-panel.types.d.ts +1 -1
- package/core-kit/utils/complex-withdraw-asset-data.d.ts +9 -5
- package/core-kit/utils/dytm.d.ts +51 -0
- package/core-kit/utils/error.d.ts +1 -0
- package/core-kit/utils/hyperliquid-asset-ids.d.ts +32 -0
- package/core-kit/utils/index.d.ts +2 -0
- package/core-kit/utils/ondo.d.ts +2 -1
- package/core-kit/utils/web3.d.ts +5 -1
- package/dytm-C7rdytdA.cjs +1 -0
- package/dytm-DIQAbDy2.js +833 -0
- package/{geoblocking-NkujbQRm.js → geoblocking-C4bMDd1o.js} +15 -9
- package/geoblocking-CUDTwbrq.cjs +1 -0
- package/gmx-BTx7XZoO.cjs +1 -0
- package/{gmx-DQ-wSifY.js → gmx-D2b-KeY_.js} +622 -353
- package/index.cjs +1 -1
- package/index.js +5830 -4447
- package/package.json +2 -2
- package/style.css +1 -1
- package/trading-widget/components/common/tab/tab-button/tab-button.d.ts +1 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/hyperliquid-withdraw-stepper-overlay.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/hyperliquid-withdraw-stepper-overlay.hooks.d.ts +21 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/announce-step.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/announce-step.hooks.d.ts +11 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/approve-step.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/approve-step.hooks.d.ts +10 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/bridge-step.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/bridge-step.hooks.d.ts +10 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/settle-step.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/settle-step.hooks.d.ts +10 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/steps/use-hyperliquid-manager-step.d.ts +14 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/use-auto-fire-hyperliquid-step.d.ts +11 -0
- package/trading-widget/components/widget/widget-overlay/hyperliquid-withdraw-stepper-overlay/use-hyperliquid-step-failure.d.ts +4 -0
- package/trading-widget/components/widget/widget-overlay/index.d.ts +1 -0
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/init-withdraw-step.hooks.d.ts +1 -1
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/oracle-update-step.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/steps/oracle-update-step.hooks.d.ts +11 -0
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-stepper-overlay.hooks.d.ts +10 -2
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-steps.d.ts +2 -9
- package/trading-widget/components/widget/widget-overlay/withdraw-stepper-overlay/withdraw-steps.hooks.d.ts +26 -0
- package/trading-widget/components/widget/widget-tabs/widget-tabs.hooks.d.ts +1 -0
- package/trading-widget/components/withdraw/init-step/button/hyperliquid-withdraw-button/hyperliquid-withdraw-button.d.ts +2 -0
- package/trading-widget/components/withdraw/init-step/button/hyperliquid-withdraw-button/hyperliquid-withdraw-button.hooks.d.ts +4 -0
- package/trading-widget/components/withdraw/init-step/button/valid-init-withdraw-button/valid-init-withdraw-button.hooks.d.ts +2 -0
- package/trading-widget/components/withdraw/init-step/meta/pending-hyperliquid-withdraw-banner.d.ts +2 -0
- package/trading-widget/providers/theme-provider/theme-provider.types.d.ts +1 -0
- package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +10 -0
- package/trading-widget/types/overlay.types.d.ts +1 -0
- package/utils.cjs +1 -1
- package/utils.js +72 -60
- package/geoblocking-9FD_O0-h.cjs +0 -1
- package/gmx-Dejxb5_t.cjs +0 -1
- package/ondo-GwhTVXds.js +0 -540
- package/ondo-rQybmFLf.cjs +0 -1
package/README.md
CHANGED
|
@@ -452,17 +452,18 @@ path: `component.tabContent[name]`
|
|
|
452
452
|
|
|
453
453
|
path: `component.tab[name]`
|
|
454
454
|
|
|
455
|
-
> | name | type | default value | description
|
|
456
|
-
> | ----------------------- | ------ | ------------------------------------ |
|
|
457
|
-
> | `size.px` | string | `global.size.spacer * 9` | Tab padding inline
|
|
458
|
-
> | `size.py` | string | `global.size.spacer * 3` | Tab padding block
|
|
459
|
-
> | `size.fontSize` | string | `global.size.fontSizeSm` | Tab font size
|
|
460
|
-
> | `color.colorBg` | string | `global.color.colorBgNeutral` | Tab bg color
|
|
461
|
-
> | `color.colorText` | string | `global.color.colorTextNeutral` | Tab text color
|
|
462
|
-
> | `color.selectColorText` | string | `global.color.colorTextPrimary` | Tab select text color
|
|
463
|
-
> | `color.colorTextHover` | string | `global.color.colorTextPrimaryHover` | Tab hover text color
|
|
464
|
-
> | `
|
|
465
|
-
> | `style.
|
|
455
|
+
> | name | type | default value | description |
|
|
456
|
+
> | ----------------------- | ------ | ------------------------------------ | --------------------------------------------------------------------------------------- |
|
|
457
|
+
> | `size.px` | string | `global.size.spacer * 9` | Tab padding inline |
|
|
458
|
+
> | `size.py` | string | `global.size.spacer * 3` | Tab padding block |
|
|
459
|
+
> | `size.fontSize` | string | `global.size.fontSizeSm` | Tab font size |
|
|
460
|
+
> | `color.colorBg` | string | `global.color.colorBgNeutral` | Tab bg color |
|
|
461
|
+
> | `color.colorText` | string | `global.color.colorTextNeutral` | Tab text color |
|
|
462
|
+
> | `color.selectColorText` | string | `global.color.colorTextPrimary` | Tab select text color |
|
|
463
|
+
> | `color.colorTextHover` | string | `global.color.colorTextPrimaryHover` | Tab hover text color |
|
|
464
|
+
> | `color.indicatorColor` | string | `global.color.colorTextWarning` | Tab attention indicator dot color (e.g. pending Hyperliquid withdrawal on the Sell tab) |
|
|
465
|
+
> | `style.fontWeight` | string | `global.style.fontWeightBold` | Tab font weight |
|
|
466
|
+
> | `style.lineHeight` | string | `global.size.lineHeightSm` | Tab line height |
|
|
466
467
|
|
|
467
468
|
###### balance
|
|
468
469
|
|
|
@@ -598,120 +599,130 @@ path: `component.meta[name]`
|
|
|
598
599
|
<code>Translation keys</code>
|
|
599
600
|
</summary>|
|
|
600
601
|
|
|
601
|
-
> | name
|
|
602
|
-
> |
|
|
603
|
-
> | `depositSlippageWarning`
|
|
604
|
-
> | `withdrawSlippageWarning`
|
|
605
|
-
> | `minSlippageWarning`
|
|
606
|
-
> | `highSlippageWarning`
|
|
607
|
-
> | `recommendedMinSlippage`
|
|
608
|
-
> | `projectedDailyEarningsTooltip`
|
|
609
|
-
> | `dailyEarnings`
|
|
610
|
-
> | `projectedYearlyEarningsTooltip`
|
|
611
|
-
> | `yearlyEarnings`
|
|
612
|
-
> | `fullReceiveDetails`
|
|
613
|
-
> | `tradeDetails`
|
|
614
|
-
> | `maxSlippage`
|
|
615
|
-
> | `minReceiveAmount`
|
|
616
|
-
> | `minReceived`
|
|
617
|
-
> | `estimatedMultiAssetFractions`
|
|
618
|
-
> | `infinite`
|
|
619
|
-
> | `tokenAllowance`
|
|
620
|
-
> | `entryFee`
|
|
621
|
-
> | `entryFeeExplanation`
|
|
622
|
-
> | `minDepositUsd`
|
|
623
|
-
> | `minDeposit`
|
|
624
|
-
> | `tokensLockTime`
|
|
625
|
-
> | `slippageTolerance`
|
|
626
|
-
> | `bypassEntryFee`
|
|
627
|
-
> | `tokenAmountToApprove`
|
|
628
|
-
> | `auto`
|
|
629
|
-
> | `lengthenLockup`
|
|
630
|
-
> | `deposit`
|
|
631
|
-
> | `withdraw`
|
|
632
|
-
> | `max`
|
|
633
|
-
> | `allAssets`
|
|
634
|
-
> | `all`
|
|
635
|
-
> | `sell`
|
|
636
|
-
> | `sellNow`
|
|
637
|
-
> | `confirmInWallet`
|
|
638
|
-
> | `pending`
|
|
639
|
-
> | `approve`
|
|
640
|
-
> | `connectWallet`
|
|
641
|
-
> | `minimumPurchase`
|
|
642
|
-
> | `poolIsInactive`
|
|
643
|
-
> | `poolDepositsAreMaintenance`
|
|
644
|
-
> | `exceedsDepositCapacity`
|
|
645
|
-
> | `poolWithdrawalsAreMaintenance`
|
|
646
|
-
> | `poolIsPrivate`
|
|
647
|
-
> | `confirmMaxSlippage`
|
|
648
|
-
> | `withdrawalLiquidityDisabled`
|
|
649
|
-
> | `withdrawCooldown`
|
|
650
|
-
> | `termsOfUse`
|
|
651
|
-
> | `termOfUseDepositListTitle`
|
|
652
|
-
> | `termOfUseDepositAssetSlippage`
|
|
653
|
-
> | `termOfUseDepositBugs`
|
|
654
|
-
> | `termOfUseDepositDowntime`
|
|
655
|
-
> | `termOfUseDepositAuditRisk`
|
|
656
|
-
> | `termOfUseDepositAccept`
|
|
657
|
-
> | `back`
|
|
658
|
-
> | `done`
|
|
659
|
-
> | `termOfUseWithdrawAcceptLabel`
|
|
660
|
-
> | `termOfUseWithdrawPoint1`
|
|
661
|
-
> | `termOfUseWithdrawPoint2`
|
|
662
|
-
> | `highSlippage`
|
|
663
|
-
> | `responsibleHighSlippage`
|
|
664
|
-
> | `highSlippageListTitle`
|
|
665
|
-
> | `highSlippageQuoteDiff`
|
|
666
|
-
> | `highSlippageRisk`
|
|
667
|
-
> | `confirm`
|
|
668
|
-
> | `selectToken`
|
|
669
|
-
> | `sendingOrderToWallet`
|
|
670
|
-
> | `settingUpTx`
|
|
671
|
-
> | `miningTx`
|
|
672
|
-
> | `approveSpending`
|
|
673
|
-
> | `pay`
|
|
674
|
-
> | `multiAssetFractions`
|
|
675
|
-
> | `swappableAssets`
|
|
676
|
-
> | `explorer`
|
|
677
|
-
> | `as`
|
|
678
|
-
> | `switchNetwork`
|
|
679
|
-
> | `depositAction`
|
|
680
|
-
> | `withdrawAction`
|
|
681
|
-
> | `swapAction`
|
|
682
|
-
> | `unrollAction`
|
|
683
|
-
> | `unrollAndClaimAction`
|
|
684
|
-
> | `claimAction`
|
|
685
|
-
> | `claimLabel`
|
|
686
|
-
> | `createLimitSellOrder`
|
|
687
|
-
> | `swapAndClaimTo`
|
|
688
|
-
> | `limitOrderWithdrawDescription`
|
|
689
|
-
> | `total`
|
|
690
|
-
> | `showAll`
|
|
691
|
-
> | `hide`
|
|
692
|
-
> | `refreshSwapQuoteTooltip`
|
|
693
|
-
> | `tryAgain`
|
|
694
|
-
> | `proceedWithNextStep`
|
|
695
|
-
> | `aggregatorsLabel`
|
|
696
|
-
> | `aggregatorsTooltip`
|
|
697
|
-
> | `openLimitOrderAfterBuySwitchLabel`
|
|
698
|
-
> | `openNotificationsSettingsLabel`
|
|
699
|
-
> | `addToWallet`
|
|
700
|
-
> | `orderingLabel`
|
|
701
|
-
> | `paidLabel`
|
|
702
|
-
> | `priceLabel`
|
|
703
|
-
> | `transactionLabel`
|
|
704
|
-
> | `stopOrder`
|
|
705
|
-
> | `send`
|
|
706
|
-
> | `cooldown`
|
|
707
|
-
> | `delete`
|
|
708
|
-
> | `withdrawalRequest`
|
|
709
|
-
> | `deleteWithdrawalRequest`
|
|
710
|
-
> | `insufficientBalance`
|
|
711
|
-
> | `expectToReceiveUsdcSoon`
|
|
712
|
-
> | `cancel`
|
|
713
|
-
> | `approveDepositStep`
|
|
714
|
-
> | `depositNowStep`
|
|
602
|
+
> | name | type | default value | description |
|
|
603
|
+
> | --------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
|
|
604
|
+
> | `depositSlippageWarning` | string | Excludes entry fee. | |
|
|
605
|
+
> | `withdrawSlippageWarning` | string | Slippage only applies to single asset withdrawals and withdrawals from vaults with debt positions in Aave. | |
|
|
606
|
+
> | `minSlippageWarning` | string | Flexible min slippage value that is likely enough to process the transaction. | |
|
|
607
|
+
> | `highSlippageWarning` | string | We recommend using another asset to trade with lower slippage. | |
|
|
608
|
+
> | `recommendedMinSlippage` | string | Recommended Min Slippage | |
|
|
609
|
+
> | `projectedDailyEarningsTooltip` | string | Projected daily earnings are based on the current APY and may differ from actual earnings. | |
|
|
610
|
+
> | `dailyEarnings` | string | Daily Earnings | |
|
|
611
|
+
> | `projectedYearlyEarningsTooltip` | string | Projected yearly earnings are based on the current APY and may differ from actual earnings. | |
|
|
612
|
+
> | `yearlyEarnings` | string | Yearly Earnings | |
|
|
613
|
+
> | `fullReceiveDetails` | string | See full details influencing what you will receive. | |
|
|
614
|
+
> | `tradeDetails` | string | Trade details | |
|
|
615
|
+
> | `maxSlippage` | string | Max slippage | |
|
|
616
|
+
> | `minReceiveAmount` | string | You will receive no less than this amount. | |
|
|
617
|
+
> | `minReceived` | string | Minimum Received | |
|
|
618
|
+
> | `estimatedMultiAssetFractions` | string | Estimated multi asset fractions | |
|
|
619
|
+
> | `infinite` | string | Infinite | |
|
|
620
|
+
> | `tokenAllowance` | string | Token Allowance | |
|
|
621
|
+
> | `entryFee` | string | Entry Fee | |
|
|
622
|
+
> | `entryFeeExplanation` | string | When you deposit, the token takes a small entry fee. This fee helps cover the costs when we rebalance the underlying funds, and it's shared among all token holders. | |
|
|
623
|
+
> | `minDepositUsd` | string | Minimum deposit in USD. | |
|
|
624
|
+
> | `minDeposit` | string | Minimum Deposit | |
|
|
625
|
+
> | `tokensLockTime` | string | Purchased tokens will have a {lockTime} lock. | |
|
|
626
|
+
> | `slippageTolerance` | string | Slippage tolerance | |
|
|
627
|
+
> | `bypassEntryFee` | string | Bypass Entry Fee | |
|
|
628
|
+
> | `tokenAmountToApprove` | string | Amount of tokens to be approved. | |
|
|
629
|
+
> | `auto` | string | Auto | |
|
|
630
|
+
> | `lengthenLockup` | string | Lengthen lockup to remove entry fee | |
|
|
631
|
+
> | `deposit` | string | Buy | |
|
|
632
|
+
> | `withdraw` | string | Sell | |
|
|
633
|
+
> | `max` | string | Max | |
|
|
634
|
+
> | `allAssets` | string | All Assets | |
|
|
635
|
+
> | `all` | string | All | |
|
|
636
|
+
> | `sell` | string | Sell | |
|
|
637
|
+
> | `sellNow` | string | Sell now | |
|
|
638
|
+
> | `confirmInWallet` | string | Please confirm in wallet | |
|
|
639
|
+
> | `pending` | string | Pending... | |
|
|
640
|
+
> | `approve` | string | Approve | |
|
|
641
|
+
> | `connectWallet` | string | Connect Wallet | |
|
|
642
|
+
> | `minimumPurchase` | string | Minimum purchase is {value} | |
|
|
643
|
+
> | `poolIsInactive` | string | {poolSymbol} token is no longer active. Please withdraw from them. | |
|
|
644
|
+
> | `poolDepositsAreMaintenance` | string | {poolSymbol} token is under maintenance. Deposits are temporarily blocked. | |
|
|
645
|
+
> | `exceedsDepositCapacity` | string | Deposit amount exceeds available {poolSymbol} deposit capacity. | |
|
|
646
|
+
> | `poolWithdrawalsAreMaintenance` | string | {poolSymbol} token is under maintenance. Withdrawals are temporarily blocked. | |
|
|
647
|
+
> | `poolIsPrivate` | string | This vault is currently private | |
|
|
648
|
+
> | `confirmMaxSlippage` | string | Confirm {slippagePercentage}% max slippage | |
|
|
649
|
+
> | `withdrawalLiquidityDisabled` | string | Intended withdraw value is greater than available liquidity ({value}) | |
|
|
650
|
+
> | `withdrawCooldown` | string | You can sell your {tokenSymbol} tokens in {cooldownEndTime} | |
|
|
651
|
+
> | `termsOfUse` | string | Terms Of Use | |
|
|
652
|
+
> | `termOfUseDepositListTitle` | string | Please know the following before depositing | |
|
|
653
|
+
> | `termOfUseDepositAssetSlippage` | string | When exiting, investors receive single asset or the underlying vault assets. Withdraw slippage can be customized in withdraw settings | |
|
|
654
|
+
> | `termOfUseDepositBugs` | string | There may be interface bugs on the platform | |
|
|
655
|
+
> | `termOfUseDepositDowntime` | string | There may be interface downtime (planned and unplanned) | |
|
|
656
|
+
> | `termOfUseDepositAuditRisk` | string | Smart contracts are audited but a risk is still present | |
|
|
657
|
+
> | `termOfUseDepositAccept` | string | Accept & Deposit | |
|
|
658
|
+
> | `back` | string | Back | |
|
|
659
|
+
> | `done` | string | Done | |
|
|
660
|
+
> | `termOfUseWithdrawAcceptLabel` | string | I understand and accept the withdraw terms | |
|
|
661
|
+
> | `termOfUseWithdrawPoint1` | string | Withdrawal requests are intended to settle in USDC. In rare cases where market conditions or high slippage prevent a USDC swap, the order may be settled in the underlying tokens of the respective vault. | |
|
|
662
|
+
> | `termOfUseWithdrawPoint2` | string | Revoking token approval after placing an order will prevent the order from being executed. | |
|
|
663
|
+
> | `highSlippage` | string | High Slippage Alert | |
|
|
664
|
+
> | `responsibleHighSlippage` | string | By proceeding with this trade, you acknowledge and accept the possibility of experiencing high slippage, resulting in a potential difference between the expected and executed price. | |
|
|
665
|
+
> | `highSlippageListTitle` | string | Please consider the following before confirming | |
|
|
666
|
+
> | `highSlippageQuoteDiff` | string | Be aware that the final amount of assets you receive may be different from the initially quoted value. | |
|
|
667
|
+
> | `highSlippageRisk` | string | Ensure that you understand the risks associated with high slippage and are comfortable proceeding with the trade. | |
|
|
668
|
+
> | `confirm` | string | Confirm | |
|
|
669
|
+
> | `selectToken` | string | Select Token | |
|
|
670
|
+
> | `sendingOrderToWallet` | string | Sending order to your wallet | |
|
|
671
|
+
> | `settingUpTx` | string | Setting up transaction | |
|
|
672
|
+
> | `miningTx` | string | Processing | |
|
|
673
|
+
> | `approveSpending` | string | Approve {symbol} spending | |
|
|
674
|
+
> | `pay` | string | Pay | |
|
|
675
|
+
> | `multiAssetFractions` | string | multi asset fractions | |
|
|
676
|
+
> | `swappableAssets` | string | swappable assets | |
|
|
677
|
+
> | `explorer` | string | Explorer | |
|
|
678
|
+
> | `as` | string | As | |
|
|
679
|
+
> | `switchNetwork` | string | Switch Network | |
|
|
680
|
+
> | `depositAction` | string | Buy | |
|
|
681
|
+
> | `withdrawAction` | string | Sell | |
|
|
682
|
+
> | `swapAction` | string | Swap | |
|
|
683
|
+
> | `unrollAction` | string | Unroll | |
|
|
684
|
+
> | `unrollAndClaimAction` | string | Claim | |
|
|
685
|
+
> | `claimAction` | string | Claim Without Swap | |
|
|
686
|
+
> | `claimLabel` | string | Claim Assets | |
|
|
687
|
+
> | `createLimitSellOrder` | string | Stop order set | |
|
|
688
|
+
> | `swapAndClaimTo` | string | Swap and claim assets to | |
|
|
689
|
+
> | `limitOrderWithdrawDescription` | string | You are about to create a withdrawal request. Your vault tokens will be withdrawn within a few minutes. | |
|
|
690
|
+
> | `total` | string | Total: | |
|
|
691
|
+
> | `showAll` | string | Show All | |
|
|
692
|
+
> | `hide` | string | Hide | |
|
|
693
|
+
> | `refreshSwapQuoteTooltip` | string | Refresh swap quote | |
|
|
694
|
+
> | `tryAgain` | string | Try again | |
|
|
695
|
+
> | `proceedWithNextStep` | string | Please proceed with the next step. | |
|
|
696
|
+
> | `aggregatorsLabel` | string | Swap source | |
|
|
697
|
+
> | `aggregatorsTooltip` | string | Choose which aggregators to use for your trades. | |
|
|
698
|
+
> | `openLimitOrderAfterBuySwitchLabel` | string | Add Stop Order | |
|
|
699
|
+
> | `openNotificationsSettingsLabel` | string | Enable alerts | |
|
|
700
|
+
> | `addToWallet` | string | add to wallet | |
|
|
701
|
+
> | `orderingLabel` | string | Ordering | |
|
|
702
|
+
> | `paidLabel` | string | Paid | |
|
|
703
|
+
> | `priceLabel` | string | Price | |
|
|
704
|
+
> | `transactionLabel` | string | Transaction | |
|
|
705
|
+
> | `stopOrder` | string | Stop Order | |
|
|
706
|
+
> | `send` | string | Send | |
|
|
707
|
+
> | `cooldown` | string | Cooldown | |
|
|
708
|
+
> | `delete` | string | Delete | |
|
|
709
|
+
> | `withdrawalRequest` | string | Withdrawal request | |
|
|
710
|
+
> | `deleteWithdrawalRequest` | string | Delete withdrawal request | |
|
|
711
|
+
> | `insufficientBalance` | string | Insufficient Balance | |
|
|
712
|
+
> | `expectToReceiveUsdcSoon` | string | Expect to receive your USDC over the next few minutes | |
|
|
713
|
+
> | `cancel` | string | Cancel | |
|
|
714
|
+
> | `approveDepositStep` | string | 1/2 Approve Buy | Button text during approve step of deposit flow |
|
|
715
|
+
> | `depositNowStep` | string | 2/2 Buy Now | Button text during final deposit step |
|
|
716
|
+
> | `hyperliquidAnnounceStep` | string | Announce & reduce positions | Hyperliquid withdrawal stepper: announce step |
|
|
717
|
+
> | `hyperliquidBridgeStep` | string | Bridge USDC from Hyperliquid | Hyperliquid withdrawal stepper: bridge step |
|
|
718
|
+
> | `hyperliquidSettleStep` | string | Settle withdrawal | Hyperliquid withdrawal stepper: settle step |
|
|
719
|
+
> | `hyperliquidCancelWithdrawal` | string | Cancel withdrawal | Cancel button for a pending Hyperliquid withdrawal |
|
|
720
|
+
> | `hyperliquidCancelAvailableIn` | string | Cancel available in | Countdown label until cancel unlocks |
|
|
721
|
+
> | `hyperliquidCancelHint` | string | If the withdrawal is stuck, cancelling returns your vault tokens. Nothing is lost. | |
|
|
722
|
+
> | `hyperliquidPendingWithdrawal` | string | You have a pending withdrawal | Pending Hyperliquid withdrawal banner title |
|
|
723
|
+
> | `hyperliquidResumeWithdrawal` | string | Resume withdrawal | Resume button on the pending withdrawal banner |
|
|
724
|
+
> | `hyperliquidFullWithdrawalNotSupported` | string | Withdrawing the entire vault supply in one transaction is not supported. Please reduce the amount. | |
|
|
725
|
+
> | `hyperliquidSettleFailingHint` | string | Settlement is failing — the vault is missing withdrawal liquidity. Cancel the withdrawal to get your vault tokens back — nothing is lost. | |
|
|
715
726
|
|
|
716
727
|
###### Source: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.tsx`
|
|
717
728
|
|
package/const.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./geoblocking-CUDTwbrq.cjs"),_=require("./gmx-BTx7XZoO.cjs"),A=require("wagmi/chains");exports.BLOCKED_COUNTRY_CODES_MAP=E.BLOCKED_COUNTRY_CODES_MAP;exports.COVERED_CALL_VAULT_ADDRESSES=E.COVERED_CALL_VAULT_ADDRESSES;exports.HYPERLIQUID_INFO_API_URL=E.HYPERLIQUID_INFO_API_URL;exports.HYPERLIQUID_WITHDRAWAL_POLLING_INTERVAL=E.HYPERLIQUID_WITHDRAWAL_POLLING_INTERVAL;exports.HYPERLIQUID_WITHDRAWAL_TIMEOUT_MS=E.HYPERLIQUID_WITHDRAWAL_TIMEOUT_MS;exports.HyperliquidWithdrawalState=E.HyperliquidWithdrawalState;exports.LOCAL_STORAGE_KEYS=E.LOCAL_STORAGE_KEYS;exports.ONDO_ASSET_TYPE=E.ONDO_ASSET_TYPE;exports.ONDO_BLOCKED_COUNTRY_CODES_MAP=E.ONDO_BLOCKED_COUNTRY_CODES_MAP;exports.ALCHEMY_RPC_URL_MAP=_.ALCHEMY_RPC_URL_MAP;exports.AddressZero=_.AddressZero;exports.BRIDGED_TOKENS_SYMBOLS=_.BRIDGED_TOKENS_SYMBOLS;exports.CHAIN_MAP=_.CHAIN_MAP;exports.CHAIN_NATIVE_TOKENS=_.CHAIN_NATIVE_TOKENS;exports.COMPLETE_WITHDRAW_ACTIONS=_.COMPLETE_WITHDRAW_ACTIONS;exports.CURRENCY_DECIMALS_MAP=_.CURRENCY_DECIMALS_MAP;exports.CURRENCY_SYMBOL_MAP=_.CURRENCY_SYMBOL_MAP;exports.DEFAULT_DEBOUNCE_TIME=_.DEFAULT_DEBOUNCE_TIME;exports.DEFAULT_DEPOSIT_METHOD=_.DEFAULT_DEPOSIT_METHOD;exports.DEFAULT_DEPOSIT_SLIPPAGE=_.DEFAULT_DEPOSIT_SLIPPAGE;exports.DEFAULT_DEPOSIT_SLIPPAGE_SCALE=_.DEFAULT_DEPOSIT_SLIPPAGE_SCALE;exports.DEFAULT_ERROR_MESSAGE=_.DEFAULT_ERROR_MESSAGE;exports.DEFAULT_LOCK_TIME=_.DEFAULT_LOCK_TIME;exports.DEFAULT_MAX_GAS_LIMIT=_.DEFAULT_MAX_GAS_LIMIT;exports.DEFAULT_MULTI_ASSET_WITHDRAW_METHOD=_.DEFAULT_MULTI_ASSET_WITHDRAW_METHOD;exports.DEFAULT_NOTIFICATION_DURATION_MS=_.DEFAULT_NOTIFICATION_DURATION_MS;exports.DEFAULT_NO_SWAP_MIN_DEPOSIT_AMOUNT_GAP=_.DEFAULT_NO_SWAP_MIN_DEPOSIT_AMOUNT_GAP;exports.DEFAULT_ONDO_WITHDRAWAL_CONTRACT_SLIPPAGE=_.DEFAULT_ONDO_WITHDRAWAL_CONTRACT_SLIPPAGE;exports.DEFAULT_POLLING_INTERVAL=_.DEFAULT_POLLING_INTERVAL;exports.DEFAULT_PRECISION=_.DEFAULT_PRECISION;exports.DEFAULT_PROMISE_TIMEOUT_MS=_.DEFAULT_PROMISE_TIMEOUT_MS;exports.DEFAULT_RECEIVED_VALUE_GAP=_.DEFAULT_RECEIVED_VALUE_GAP;exports.DEFAULT_SIMULATION_ERROR=_.DEFAULT_SIMULATION_ERROR;exports.DEFAULT_SWAP_TRANSACTION_SLIPPAGE=_.DEFAULT_SWAP_TRANSACTION_SLIPPAGE;exports.DEFAULT_VAULT_TOKEN_PRICE=_.DEFAULT_VAULT_TOKEN_PRICE;exports.DEFAULT_VISIBLE_ASSETS_LIMIT=_.DEFAULT_VISIBLE_ASSETS_LIMIT;exports.DEFAULT_WITHDRAW_SLIPPAGE=_.DEFAULT_WITHDRAW_SLIPPAGE;exports.DEPOSIT_SWAP_DATA_ERROR=_.DEPOSIT_SWAP_DATA_ERROR;exports.EASY_SWAPPER_V2_COMPLETE_WITHDRAW_METHOD=_.EASY_SWAPPER_V2_COMPLETE_WITHDRAW_METHOD;exports.EASY_SWAPPER_V2_DEPOSIT_METHODS=_.EASY_SWAPPER_V2_DEPOSIT_METHODS;exports.EASY_SWAPPER_V2_INITIATE_WITHDRAW_METHOD=_.EASY_SWAPPER_V2_INITIATE_WITHDRAW_METHOD;exports.EASY_SWAPPER_V2_UNROLL_AND_CLAIM_METHOD=_.EASY_SWAPPER_V2_UNROLL_AND_CLAIM_METHOD;exports.EMPTY_POOL_CONFIG=_.EMPTY_POOL_CONFIG;exports.EXTENDED_DEBOUNCE_TIME=_.EXTENDED_DEBOUNCE_TIME;exports.EXTENDED_POLLING_INTERVAL=_.EXTENDED_POLLING_INTERVAL;exports.EXTREMELY_SHORT_POLLING_INTERVAL=_.EXTREMELY_SHORT_POLLING_INTERVAL;exports.FALLBACK_ASSETS_MAP=_.FALLBACK_ASSETS_MAP;exports.FLAT_MONEY_COLLATERAL_MAP=_.FLAT_MONEY_COLLATERAL_MAP;exports.FLAT_MONEY_LEVERAGED_ASSET_ADDRESSES=_.FLAT_MONEY_LEVERAGED_ASSET_ADDRESSES;exports.FLAT_MONEY_UNIT_ADDRESSES=_.FLAT_MONEY_UNIT_ADDRESSES;exports.FLAT_MONEY_UNIT_LINK=_.FLAT_MONEY_UNIT_LINK;exports.FLAT_MONEY_V1_UNIT_ADDRESS=_.FLAT_MONEY_V1_UNIT_ADDRESS;exports.FLAT_MONEY_V1_UNIT_LINK=_.FLAT_MONEY_V1_UNIT_LINK;exports.GAS_ESTIMATION_ERROR=_.GAS_ESTIMATION_ERROR;exports.GAS_LIMIT_BUFFER_COEFF=_.GAS_LIMIT_BUFFER_COEFF;exports.GMX_MARKET_ASSETS=_.GMX_MARKET_ASSETS;exports.GMX_MARKET_ASSETS_MAP=_.GMX_MARKET_ASSETS_MAP;exports.GMX_WITHDRAW_ASSET_MAP=_.GMX_WITHDRAW_ASSET_MAP;exports.GMX_WITHDRAW_ASSET_MAP_BY_VAULT_ADDRESS=_.GMX_WITHDRAW_ASSET_MAP_BY_VAULT_ADDRESS;exports.INVALID_PRICES_LIMIT_ORDER_TITLE=_.INVALID_PRICES_LIMIT_ORDER_TITLE;exports.LIMIT_ORDER_TRANSACTION_ERRORS=_.LIMIT_ORDER_TRANSACTION_ERRORS;exports.LOG_EVENT_BY_TRANSACTION_ACTION_MAP=_.LOG_EVENT_BY_TRANSACTION_ACTION_MAP;exports.MANAGER_FEE_DENOMINATOR=_.MANAGER_FEE_DENOMINATOR;exports.MAX_GAS_LIMIT_MAP=_.MAX_GAS_LIMIT_MAP;exports.MULTI_ASSET_TOKEN=_.MULTI_ASSET_TOKEN;exports.MaxUint256=_.MaxUint256;exports.NATIVE_TOKEN_GAS_RESERVE_UNITS=_.NATIVE_TOKEN_GAS_RESERVE_UNITS;exports.ONDO_PRICES_FETCH_TIMEOUT_MS=_.ONDO_PRICES_FETCH_TIMEOUT_MS;exports.ONDO_PRICES_RABBY_SETTLE_DELAY=_.ONDO_PRICES_RABBY_SETTLE_DELAY;exports.ONDO_PRICE_CHECK_TIMEOUT_MS=_.ONDO_PRICE_CHECK_TIMEOUT_MS;exports.ONDO_PRICE_FRESHNESS_WINDOW_MS=_.ONDO_PRICE_FRESHNESS_WINDOW_MS;exports.ONDO_PRICE_MAX_DEVIATION_PERCENT=_.ONDO_PRICE_MAX_DEVIATION_PERCENT;exports.ON_DEMAND_PRICING_ASSET_BY_CHAIN_MAP=_.ON_DEMAND_PRICING_ASSET_BY_CHAIN_MAP;exports.PYTH_API_LINK=_.PYTH_API_LINK;exports.SHORTEN_POLLING_INTERVAL=_.SHORTEN_POLLING_INTERVAL;exports.SIMULATION_TIMEOUT_ERROR=_.SIMULATION_TIMEOUT_ERROR;exports.SLIPPAGE_AUTO_SIMULATION_CANDIDATES=_.SLIPPAGE_AUTO_SIMULATION_CANDIDATES;exports.STABLE_TOKEN_SYMBOLS=_.STABLE_TOKEN_SYMBOLS;exports.SWAP_FAILED_ERROR=_.SWAP_FAILED_ERROR;exports.SWAP_QUOTE_REFRESH_INTERVAL_MS=_.SWAP_QUOTE_REFRESH_INTERVAL_MS;exports.TRADING_LOG_EVENT_PARAM=_.TRADING_LOG_EVENT_PARAM;exports.TRADING_PANEL_LOG_EVENT=_.TRADING_PANEL_LOG_EVENT;exports.TRANSACTION_ERRORS=_.TRANSACTION_ERRORS;exports.TRANSACTION_ERROR_KEYS=_.TRANSACTION_ERROR_KEYS;exports.TRANSACTION_SETTLE_DELAY=_.TRANSACTION_SETTLE_DELAY;exports.WBTC_BY_CHAIN_ID=_.WBTC_BY_CHAIN_ID;exports.WETH_BY_CHAIN_ID=_.WETH_BY_CHAIN_ID;exports.WITHDRAW_SWAP_DATA_ERROR=_.WITHDRAW_SWAP_DATA_ERROR;exports.contractsAbisMap=_.contractsAbisMap;exports.contractsAddressesMap=_.contractsAddressesMap;Object.defineProperty(exports,"arbitrum",{enumerable:!0,get:()=>A.arbitrum});Object.defineProperty(exports,"base",{enumerable:!0,get:()=>A.base});Object.defineProperty(exports,"hyperEvm",{enumerable:!0,get:()=>A.hyperEvm});Object.defineProperty(exports,"mainnet",{enumerable:!0,get:()=>A.mainnet});Object.defineProperty(exports,"optimism",{enumerable:!0,get:()=>A.optimism});Object.defineProperty(exports,"polygon",{enumerable:!0,get:()=>A.polygon});
|