@dhedge/trading-widget 3.18.2 → 3.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +125 -99
  2. package/core-kit/const/gmx.d.ts +3 -2
  3. package/core-kit/const/logger.d.ts +1 -0
  4. package/core-kit/types/config.types.d.ts +6 -0
  5. package/core-kit/types/trading-panel.types.d.ts +1 -1
  6. package/index.cjs +57 -57
  7. package/index.d.ts +1 -1
  8. package/index.js +15192 -14902
  9. package/limit-orders/component/common/percentage-input.d.ts +18 -0
  10. package/limit-orders/component/input-group/input-group.hooks.d.ts +5 -0
  11. package/limit-orders/component/limit-order-button/limit-order-approve-button.hooks.d.ts +1 -0
  12. package/limit-orders/component/limit-order-button/limit-order-button.hooks.d.ts +1 -0
  13. package/limit-orders/component/limit-order-content.d.ts +7 -0
  14. package/limit-orders/component/limit-order-overlay.d.ts +11 -0
  15. package/limit-orders/constants.d.ts +1 -0
  16. package/limit-orders/hooks/use-existing-limit-order-default-prices.d.ts +11 -0
  17. package/limit-orders/hooks/use-limit-order-covered-vault-amount.d.ts +5 -0
  18. package/limit-orders/hooks/use-on-limit-order-settled.d.ts +2 -2
  19. package/limit-orders/providers/state-provider/reducer.d.ts +1 -0
  20. package/limit-orders/providers/state-provider/state-provider.types.d.ts +16 -4
  21. package/limit-orders/providers/theme-provider/theme-provider.types.d.ts +1 -0
  22. package/limit-orders/providers/translation-provider/translation-provider.types.d.ts +3 -0
  23. package/package.json +1 -1
  24. package/style.css +1 -1
  25. package/trading-widget/components/widget/widget-overlay/error-notification-overlay/error-notification-overlay.d.ts +3 -0
  26. package/trading-widget/components/widget/widget-overlay/{notification-overlay/notification-overlay.hooks.d.ts → error-notification-overlay/error-notification-overlay.hooks.d.ts} +1 -1
  27. package/trading-widget/components/widget/widget-overlay/index.d.ts +2 -1
  28. package/trading-widget/components/widget/widget-overlay/{notification-overlay/notification-overlay.d.ts → limit-sells-overlay/limit-sells-overlay.d.ts} +1 -1
  29. package/trading-widget/components/widget/widget-overlay/limit-sells-overlay/limit-sells-overlay.hooks.d.ts +12 -0
  30. package/trading-widget/components/widget/widget-overlay/pool-select-overlay/pool-select-overlay.hooks.d.ts +2 -0
  31. package/trading-widget/hooks/index.d.ts +1 -0
  32. package/trading-widget/hooks/use-open-limit-sells-overlay.d.ts +1 -0
  33. package/trading-widget/providers/config-provider/config-provider.types.d.ts +3 -0
  34. package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +2 -0
  35. package/trading-widget/types/overlay.types.d.ts +2 -1
package/README.md CHANGED
@@ -100,6 +100,28 @@ Top level provider component. Headless part of trading logic. API handles params
100
100
 
101
101
  </details>
102
102
 
103
+ <details>
104
+ <summary><code>PoolConfig</code> <code><b>/</b></code> <code>Vault configuration schema</code></summary>
105
+
106
+ > | name | type | default value | description |
107
+ > | ------------------------------------------- | -------------------------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
108
+ > | `address` | `Address` | — | Vault contract address |
109
+ > | `symbol` | `string` | — | Vault token symbol |
110
+ > | `chainId` | `ChainId` | — | Chain identifier where the vault lives |
111
+ > | `depositParams.customTokens` | `TradingToken[]` | `[]` | List of additional assets accepted for deposits |
112
+ > | `depositParams.defaultDepositTokenSymbol` | `string` | `undefined` | Symbol of token to pre-select by default when switching to the **Deposit** tab |
113
+ > | `withdrawParams.customTokens` | `TradingToken[]` | `[]` | List of single-asset options available for withdrawals |
114
+ > | `withdrawParams.defaultWithdrawTokenSymbol` | `string` | `undefined` | Symbol of token to pre-select by default when switching to the **Withdraw** tab (falls back to first `customTokens` item if undefined). |
115
+ > | `deprecated` | `boolean` | `false` | Marks vault as deprecated and blocks trading operations |
116
+ > | `maintenance` | `boolean` | `false` | Enables global vault maintenance mode (blocks deposits & withdrawals) |
117
+ > | `maintenanceDeposits` | `boolean` | `false` | Blocks only deposits |
118
+ > | `maintenanceWithdrawals` | `boolean` | `false` | Blocks only withdrawals |
119
+ > | `pricingAsset` | `{ address: Address; symbol: string }` | `undefined` | Pricing asset used for limit orders |
120
+
121
+ ###### Source: `packages/trading-widget/src/core-kit/types/config.types.ts`
122
+
123
+ </details>
124
+
103
125
  ### TradingWidget
104
126
 
105
127
  UI configuration provider. Manages params to configure custom styling, components, translations and basic trading params. Decomposed into `config`, `components`, `theme` and `translation` params. See below for more details
@@ -130,6 +152,8 @@ UI configuration provider. Manages params to configure custom styling, component
130
152
  > | `chainConfig` | `Partial<Record<ChainId, { name: string; iconPath: string }>>` | `{}` | Sets map of chain `name` and `iconPath` |
131
153
  > | `aaveOffchainWithdrawMinValue` | `number` | `50` | Value in USD when off-chain Aave withdrawal is enabled |
132
154
  > | `getFallbackIconPath` | `(tokenName: string) => string` | `buildIconLink` | Fallback token icon path getter |
155
+ > | `minLimitOrderValue` | `number` | `0` | Minimum USD value required to create a limit sell order |
156
+ > | `limitOrderThemeConfig` | `ThemeProviderConfigProps` | `{}` | Limit sell overlay content theme config |
133
157
 
134
158
  ##### actions
135
159
 
@@ -451,105 +475,107 @@ path: `component.meta[name]`
451
475
  <code>Translation keys</code>
452
476
  </summary>|
453
477
 
454
- > | name | type | default value | description |
455
- > | -------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
456
- > | `depositSlippageWarning` | string | Excludes entry fee. | |
457
- > | `withdrawSlippageWarning` | string | Slippage only applies to single asset withdrawals and withdrawals from vaults with debt positions in Aave. | |
458
- > | `minSlippageWarning` | string | Flexible min slippage value that is likely enough to process the transaction. | |
459
- > | `highSlippageWarning` | string | We recommend using another asset to trade with lower slippage. | |
460
- > | `recommendedMinSlippage` | string | Recommended Min Slippage | |
461
- > | `projectedDailyEarningsTooltip` | string | Projected daily earnings are based on the current APY and may differ from actual earnings. | |
462
- > | `dailyEarnings` | string | Daily Earnings | |
463
- > | `projectedYearlyEarningsTooltip` | string | Projected yearly earnings are based on the current APY and may differ from actual earnings. | |
464
- > | `yearlyEarnings` | string | Yearly Earnings | |
465
- > | `fullReceiveDetails` | string | See full details influencing what you will receive. | |
466
- > | `tradeDetails` | string | Trade details | |
467
- > | `maxSlippage` | string | Max slippage | |
468
- > | `minReceiveAmount` | string | You will receive no less than this amount. | |
469
- > | `minReceived` | string | Minimum Received | |
470
- > | `estimatedMultiAssetFractions` | string | Estimated multi asset fractions | |
471
- > | `infinite` | string | Infinite | |
472
- > | `tokenAllowance` | string | Token Allowance | |
473
- > | `entryFee` | string | Entry Fee | |
474
- > | `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. | |
475
- > | `minDepositUsd` | string | Minimum deposit in USD. | |
476
- > | `minDeposit` | string | Minimum Deposit | |
477
- > | `tokensLockTime` | string | Purchased tokens will have a {lockTime} lock. | |
478
- > | `slippageTolerance` | string | Slippage tolerance | |
479
- > | `bypassEntryFee` | string | Bypass Entry Fee | |
480
- > | `tokenAmountToApprove` | string | Amount of tokens to be approved. | |
481
- > | `auto` | string | Auto | |
482
- > | `lengthenLockup` | string | Lengthen lockup to remove entry fee | |
483
- > | `deposit` | string | Buy | |
484
- > | `withdraw` | string | Sell | |
485
- > | `yourBalance` | string | Your Balance | |
486
- > | `max` | string | Max | |
487
- > | `allAssets` | string | All Assets | |
488
- > | `all` | string | All | |
489
- > | `payWith` | string | Pay with | |
490
- > | `buyEstimated` | string | Buy (estimated) | |
491
- > | `sell` | string | Sell | |
492
- > | `receiveEstimated` | string | Receive (estimated) | |
493
- > | `confirmInWallet` | string | Please confirm in wallet | |
494
- > | `pending` | string | Pending... | |
495
- > | `approve` | string | Approve | |
496
- > | `connectWallet` | string | Connect Wallet | |
497
- > | `minimumPurchase` | string | Minimum purchase is {value} | |
498
- > | `poolIsInactive` | string | {poolSymbol} token is no longer active. Please withdraw from them. | |
499
- > | `poolDepositsAreMaintenance` | string | {poolSymbol} token is under maintenance. Deposits are temporarily blocked. | |
500
- > | `poolWithdrawalsAreMaintenance` | string | {poolSymbol} token is under maintenance. Withdrawals are temporarily blocked. | |
501
- > | `poolIsPrivate` | string | This vault is currently private | |
502
- > | `confirmMaxSlippage` | string | Confirm {slippagePercentage}% max slippage | |
503
- > | `withdrawalLiquidityDisabled` | string | Intended withdraw value is greater than available liquidity ({value}) | |
504
- > | `withdrawCooldown` | string | You can sell your {tokenSymbol} tokens in {cooldownEndTime} | |
505
- > | `termsOfUse` | string | Terms Of Use | |
506
- > | `termOfUseDepositListTitle` | string | Please know the following before depositing | |
507
- > | `termOfUseDepositAssetSlippage` | string | When exiting, investors receive single asset or the underlying vault assets. Withdraw slippage can be customized in withdraw settings | |
508
- > | `termOfUseDepositBugs` | string | There may be interface bugs on the platform | |
509
- > | `termOfUseDepositDowntime` | string | There may be interface downtime (planned and unplanned) | |
510
- > | `termOfUseDepositAuditRisk` | string | Smart contracts are audited but a risk is still present | |
511
- > | `termOfUseDepositAccept` | string | Accept & Deposit | |
512
- > | `back` | string | Back | |
513
- > | `highSlippage` | string | High Slippage Alert | |
514
- > | `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. | |
515
- > | `highSlippageListTitle` | string | Please consider the following before confirming | |
516
- > | `highSlippageQuoteDiff` | string | Be aware that the final amount of assets you receive may be different from the initially quoted value. | |
517
- > | `highSlippageRisk` | string | Ensure that you understand the risks associated with high slippage and are comfortable proceeding with the trade. | |
518
- > | `confirm` | string | Confirm | |
519
- > | `selectToken` | string | Select Token | |
520
- > | `sendingOrderToWallet` | string | Sending order to your wallet | |
521
- > | `settingUpTx` | string | Setting up transaction | |
522
- > | `miningTx` | string | Processing | |
523
- > | `approveSpending` | string | Approve {symbol} spending | |
524
- > | `pay` | string | Pay | |
525
- > | `multiAssetFractions` | string | multi asset fractions | |
526
- > | `swappableAssets` | string | swappable assets | |
527
- > | `explorer` | string | Explorer | |
528
- > | `as` | string | As | |
529
- > | `switchNetwork` | string | Switch Network | |
530
- > | `depositAction` | string | Buy | |
531
- > | `withdrawAction` | string | Sell | |
532
- > | `swapAction` | string | Swap | |
533
- > | `unrollAction` | string | Unroll | |
534
- > | `unrollAndClaimAction` | string | Claim | |
535
- > | `claimAction` | string | Claim Without Swap | |
536
- > | `claimLabel` | string | Claim Assets | |
537
- > | `swapAndClaimTo` | string | Swap and claim assets to | |
538
- > | `initWithdrawDescription` | string | Unroll | |
539
- > | `initWithdrawTooltip` | string | Unroll prepares assets for single asset withdrawal | |
540
- > | `completeWithdrawDescription` | string | Claim | |
541
- > | `completeWithdrawTooltip` | string | This final step swaps all assets to a single asset and sends it to your wallet | |
542
- > | `unrollAndClaimDescription` | string | Claim | |
543
- > | `total` | string | Total: | |
544
- > | `showAll` | string | Show All | |
545
- > | `hide` | string | Hide | |
546
- > | `refreshSwapQuoteTooltip` | string | Refresh swap quote | |
547
- > | `proceedWithNextStep` | string | Please proceed with the next step. | |
548
- > | `aggregatorsLabel` | string | Swap source | |
549
- > | `aggregatorsTooltip` | string | Choose which aggregators to use for your trades. | |
550
- > | `batchTransactionsLabel` | string | Batch transactions | |
551
- > | `batchTransactionsSwitchLabel` | string | Batch | |
552
- > | `batchTransactionsTooltip` | string | Group approve and trade calls into a single batch transaction. Disable if you prefer separate prompts. | |
478
+ > | name | type | default value | description |
479
+ > | ----------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
480
+ > | `depositSlippageWarning` | string | Excludes entry fee. | |
481
+ > | `withdrawSlippageWarning` | string | Slippage only applies to single asset withdrawals and withdrawals from vaults with debt positions in Aave. | |
482
+ > | `minSlippageWarning` | string | Flexible min slippage value that is likely enough to process the transaction. | |
483
+ > | `highSlippageWarning` | string | We recommend using another asset to trade with lower slippage. | |
484
+ > | `recommendedMinSlippage` | string | Recommended Min Slippage | |
485
+ > | `projectedDailyEarningsTooltip` | string | Projected daily earnings are based on the current APY and may differ from actual earnings. | |
486
+ > | `dailyEarnings` | string | Daily Earnings | |
487
+ > | `projectedYearlyEarningsTooltip` | string | Projected yearly earnings are based on the current APY and may differ from actual earnings. | |
488
+ > | `yearlyEarnings` | string | Yearly Earnings | |
489
+ > | `fullReceiveDetails` | string | See full details influencing what you will receive. | |
490
+ > | `tradeDetails` | string | Trade details | |
491
+ > | `maxSlippage` | string | Max slippage | |
492
+ > | `minReceiveAmount` | string | You will receive no less than this amount. | |
493
+ > | `minReceived` | string | Minimum Received | |
494
+ > | `estimatedMultiAssetFractions` | string | Estimated multi asset fractions | |
495
+ > | `infinite` | string | Infinite | |
496
+ > | `tokenAllowance` | string | Token Allowance | |
497
+ > | `entryFee` | string | Entry Fee | |
498
+ > | `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. | |
499
+ > | `minDepositUsd` | string | Minimum deposit in USD. | |
500
+ > | `minDeposit` | string | Minimum Deposit | |
501
+ > | `tokensLockTime` | string | Purchased tokens will have a {lockTime} lock. | |
502
+ > | `slippageTolerance` | string | Slippage tolerance | |
503
+ > | `bypassEntryFee` | string | Bypass Entry Fee | |
504
+ > | `tokenAmountToApprove` | string | Amount of tokens to be approved. | |
505
+ > | `auto` | string | Auto | |
506
+ > | `lengthenLockup` | string | Lengthen lockup to remove entry fee | |
507
+ > | `deposit` | string | Buy | |
508
+ > | `withdraw` | string | Sell | |
509
+ > | `yourBalance` | string | Your Balance | |
510
+ > | `max` | string | Max | |
511
+ > | `allAssets` | string | All Assets | |
512
+ > | `all` | string | All | |
513
+ > | `payWith` | string | Pay with | |
514
+ > | `buyEstimated` | string | Buy (estimated) | |
515
+ > | `sell` | string | Sell | |
516
+ > | `receiveEstimated` | string | Receive (estimated) | |
517
+ > | `confirmInWallet` | string | Please confirm in wallet | |
518
+ > | `pending` | string | Pending... | |
519
+ > | `approve` | string | Approve | |
520
+ > | `connectWallet` | string | Connect Wallet | |
521
+ > | `minimumPurchase` | string | Minimum purchase is {value} | |
522
+ > | `poolIsInactive` | string | {poolSymbol} token is no longer active. Please withdraw from them. | |
523
+ > | `poolDepositsAreMaintenance` | string | {poolSymbol} token is under maintenance. Deposits are temporarily blocked. | |
524
+ > | `poolWithdrawalsAreMaintenance` | string | {poolSymbol} token is under maintenance. Withdrawals are temporarily blocked. | |
525
+ > | `poolIsPrivate` | string | This vault is currently private | |
526
+ > | `confirmMaxSlippage` | string | Confirm {slippagePercentage}% max slippage | |
527
+ > | `withdrawalLiquidityDisabled` | string | Intended withdraw value is greater than available liquidity ({value}) | |
528
+ > | `withdrawCooldown` | string | You can sell your {tokenSymbol} tokens in {cooldownEndTime} | |
529
+ > | `termsOfUse` | string | Terms Of Use | |
530
+ > | `termOfUseDepositListTitle` | string | Please know the following before depositing | |
531
+ > | `termOfUseDepositAssetSlippage` | string | When exiting, investors receive single asset or the underlying vault assets. Withdraw slippage can be customized in withdraw settings | |
532
+ > | `termOfUseDepositBugs` | string | There may be interface bugs on the platform | |
533
+ > | `termOfUseDepositDowntime` | string | There may be interface downtime (planned and unplanned) | |
534
+ > | `termOfUseDepositAuditRisk` | string | Smart contracts are audited but a risk is still present | |
535
+ > | `termOfUseDepositAccept` | string | Accept & Deposit | |
536
+ > | `back` | string | Back | |
537
+ > | `highSlippage` | string | High Slippage Alert | |
538
+ > | `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. | |
539
+ > | `highSlippageListTitle` | string | Please consider the following before confirming | |
540
+ > | `highSlippageQuoteDiff` | string | Be aware that the final amount of assets you receive may be different from the initially quoted value. | |
541
+ > | `highSlippageRisk` | string | Ensure that you understand the risks associated with high slippage and are comfortable proceeding with the trade. | |
542
+ > | `confirm` | string | Confirm | |
543
+ > | `selectToken` | string | Select Token | |
544
+ > | `sendingOrderToWallet` | string | Sending order to your wallet | |
545
+ > | `settingUpTx` | string | Setting up transaction | |
546
+ > | `miningTx` | string | Processing | |
547
+ > | `approveSpending` | string | Approve {symbol} spending | |
548
+ > | `pay` | string | Pay | |
549
+ > | `multiAssetFractions` | string | multi asset fractions | |
550
+ > | `swappableAssets` | string | swappable assets | |
551
+ > | `explorer` | string | Explorer | |
552
+ > | `as` | string | As | |
553
+ > | `switchNetwork` | string | Switch Network | |
554
+ > | `depositAction` | string | Buy | |
555
+ > | `withdrawAction` | string | Sell | |
556
+ > | `swapAction` | string | Swap | |
557
+ > | `unrollAction` | string | Unroll | |
558
+ > | `unrollAndClaimAction` | string | Claim | |
559
+ > | `claimAction` | string | Claim Without Swap | |
560
+ > | `claimLabel` | string | Claim Assets | |
561
+ > | `createLimitSellOrder` | string | Create limit sell order | |
562
+ > | `swapAndClaimTo` | string | Swap and claim assets to | |
563
+ > | `initWithdrawDescription` | string | Unroll | |
564
+ > | `initWithdrawTooltip` | string | Unroll prepares assets for single asset withdrawal | |
565
+ > | `completeWithdrawDescription` | string | Claim | |
566
+ > | `completeWithdrawTooltip` | string | This final step swaps all assets to a single asset and sends it to your wallet | |
567
+ > | `unrollAndClaimDescription` | string | Claim | |
568
+ > | `total` | string | Total: | |
569
+ > | `showAll` | string | Show All | |
570
+ > | `hide` | string | Hide | |
571
+ > | `refreshSwapQuoteTooltip` | string | Refresh swap quote | |
572
+ > | `proceedWithNextStep` | string | Please proceed with the next step. | |
573
+ > | `aggregatorsLabel` | string | Swap source | |
574
+ > | `aggregatorsTooltip` | string | Choose which aggregators to use for your trades. | |
575
+ > | `batchTransactionsLabel` | string | Batch transactions | |
576
+ > | `batchTransactionsSwitchLabel` | string | Batch | |
577
+ > | `batchTransactionsTooltip` | string | Group approve and trade calls into a single batch transaction. Disable if you prefer separate prompts. | |
578
+ > | `openLimitOrderAfterBuySwitchLabel` | string | Add limit sell | |
553
579
 
554
580
  ###### Source: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.tsx`
555
581
 
@@ -1,5 +1,5 @@
1
1
  import type { TradingToken } from 'core-kit/types';
2
- export type GmxMarketAsset = '0x09400d9db990d5ed3f35d7be61dfaeb900af03c9' | '0x47c031236e19d024b42f8ae6780e44a573170703' | '0x70d95587d40a2caf56bd97485ab3eec10bee6336' | '0x450bb6774dd8a756274e0ab4107953259d2ac541' | '0x6ecf2133e2c9751caadcb6958b9654bae198a797' | '0x6853ea96ff216fab11d2d930ce3c508556a4bdc4';
2
+ export type GmxMarketAsset = '0x09400d9db990d5ed3f35d7be61dfaeb900af03c9' | '0x47c031236e19d024b42f8ae6780e44a573170703' | '0x70d95587d40a2caf56bd97485ab3eec10bee6336' | '0x450bb6774dd8a756274e0ab4107953259d2ac541' | '0x6ecf2133e2c9751caadcb6958b9654bae198a797' | '0x6853ea96ff216fab11d2d930ce3c508556a4bdc4' | '0x0ccb4faa6f1f1b30911619f1184082ab4e25813c';
3
3
  export declare const GMX_MARKET_ASSETS_MAP: {
4
4
  readonly SOL_ARBITRUM: "0x09400d9db990d5ed3f35d7be61dfaeb900af03c9";
5
5
  readonly BTC_ARBITRUM: "0x47c031236e19d024b42f8ae6780e44a573170703";
@@ -7,6 +7,7 @@ export declare const GMX_MARKET_ASSETS_MAP: {
7
7
  readonly WETH_USDC_ARBITRUM: "0x450bb6774dd8a756274e0ab4107953259d2ac541";
8
8
  readonly SUI_ARBITRUM: "0x6ecf2133e2c9751caadcb6958b9654bae198a797";
9
9
  readonly DOGE_ARBITRUM: "0x6853ea96ff216fab11d2d930ce3c508556a4bdc4";
10
+ readonly XRP_ARBITRUM: "0x0ccb4faa6f1f1b30911619f1184082ab4e25813c";
10
11
  };
11
- export declare const GMX_MARKET_ASSETS: ("0x09400d9db990d5ed3f35d7be61dfaeb900af03c9" | "0x47c031236e19d024b42f8ae6780e44a573170703" | "0x70d95587d40a2caf56bd97485ab3eec10bee6336" | "0x450bb6774dd8a756274e0ab4107953259d2ac541" | "0x6ecf2133e2c9751caadcb6958b9654bae198a797" | "0x6853ea96ff216fab11d2d930ce3c508556a4bdc4")[];
12
+ export declare const GMX_MARKET_ASSETS: ("0x09400d9db990d5ed3f35d7be61dfaeb900af03c9" | "0x47c031236e19d024b42f8ae6780e44a573170703" | "0x70d95587d40a2caf56bd97485ab3eec10bee6336" | "0x450bb6774dd8a756274e0ab4107953259d2ac541" | "0x6ecf2133e2c9751caadcb6958b9654bae198a797" | "0x6853ea96ff216fab11d2d930ce3c508556a4bdc4" | "0x0ccb4faa6f1f1b30911619f1184082ab4e25813c")[];
12
13
  export declare const GMX_COLLATERAL_MAP: Record<GmxMarketAsset, TradingToken>;
@@ -12,6 +12,7 @@ export declare const TRADING_PANEL_LOG_EVENT: {
12
12
  TRADING_SETTINGS_OPENED: string;
13
13
  INFINITE_ALLOWANCE_CHANGE: string;
14
14
  BATCH_TRANSACTIONS_CHANGE: string;
15
+ CREATE_LIMIT_SELL_ORDER: string;
15
16
  };
16
17
  export declare const LOG_EVENT_BY_TRANSACTION_ACTION_MAP: Record<TransactionAction, string[]>;
17
18
  /**
@@ -1,6 +1,10 @@
1
1
  import type { PoolComposition } from 'core-kit/types/pool.types';
2
2
  import type { ApyCurrency, TradingToken } from 'core-kit/types/trading-panel.types';
3
3
  import type { Address, ChainId } from 'core-kit/types/web3.types';
4
+ export type PricingAsset = {
5
+ address: Address;
6
+ symbol: string;
7
+ };
4
8
  export interface PoolConfig {
5
9
  address: Address;
6
10
  symbol: string;
@@ -11,11 +15,13 @@ export interface PoolConfig {
11
15
  };
12
16
  withdrawParams: {
13
17
  customTokens: TradingToken[];
18
+ defaultWithdrawTokenSymbol?: string;
14
19
  };
15
20
  deprecated?: boolean;
16
21
  maintenance?: boolean;
17
22
  maintenanceDeposits?: boolean;
18
23
  maintenanceWithdrawals?: boolean;
24
+ pricingAsset?: PricingAsset;
19
25
  }
20
26
  export interface PoolFallbackData {
21
27
  address: Address;
@@ -28,7 +28,7 @@ type RemoveTransaction = {
28
28
  } & Partial<PendingTransaction>;
29
29
  export type UpdateTransactionsArguments = AddTransaction | UpdateTransaction | RemoveTransaction;
30
30
  export type TradingPanelType = 'deposit' | 'withdraw';
31
- export type TransactionAction = 'deposit' | 'multi_withdraw' | 'single_withdraw' | 'approve' | 'swap' | 'claim' | 'single_withdraw_and_claim';
31
+ export type TransactionAction = 'deposit' | 'multi_withdraw' | 'single_withdraw' | 'approve' | 'swap' | 'claim' | 'single_withdraw_and_claim' | 'create_limit_sell_order';
32
32
  export type SwapEntity = 'token' | 'pool';
33
33
  export interface TokenSelectorPayload {
34
34
  isOpen: boolean;