@nexus-cross/dapp-ui 1.3.6-beta.1 → 1.3.7-beta.1

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/dist/index.d.cts CHANGED
@@ -218,10 +218,11 @@ interface TokenStatsResponse {
218
218
  * - `"staking"` : CROSS Staking
219
219
  * - `"gameSwap"` : Gametoken LP
220
220
  * - `"forge"` : Forge
221
+ * - `"crossdPool"` : CROSSD v3 pool 포지션, 내장 Withdraw
221
222
  *
222
223
  * `WalletPortfolioBody` / `WalletInfo`의 섹션 필터에 사용한다.
223
224
  */
224
- type PortfolioSection = "rewards" | "points" | "staking" | "gameSwap" | "forge";
225
+ type PortfolioSection = "rewards" | "points" | "staking" | "gameSwap" | "forge" | "crossdPool";
225
226
  /**
226
227
  * 섹션 필터를 지정하지 않았을 때(=전체 노출)의 기본 표시 순서.
227
228
  * 배열로 필터를 줄 때 어떤 키들이 유효한지에 대한 단일 출처(source of truth).
@@ -474,6 +475,55 @@ interface ForgeTokenDetail {
474
475
  total_supply: string;
475
476
  available_supply: string;
476
477
  }
478
+ /** cross-defi API 토큰 참조 (detail 응답의 pool.token0/token1). */
479
+ interface CrossdPositionTokenRef {
480
+ address?: string;
481
+ symbol?: string;
482
+ name?: string;
483
+ decimals?: number;
484
+ logo_url?: string;
485
+ }
486
+ /** positions list 항목의 pool 요약 — 심볼만 있고 토큰 주소는 없다(detail에서 보강). */
487
+ interface CrossdPositionPoolRef {
488
+ pool_address?: string;
489
+ fee_tier?: number;
490
+ fee_tier_percentage?: string;
491
+ token0_symbol?: string;
492
+ token1_symbol?: string;
493
+ }
494
+ /**
495
+ * cross-defi `GET /api/v1/positions?owner=` 목록 항목 중 포트폴리오가 쓰는 필드.
496
+ * 수량류(liquidity, *_amount, uncollected_*)는 십진 문자열로 내려온다 —
497
+ * 계산에 쓰는 것은 liquidity(BigInt 변환)뿐이고 나머지는 표시 전용.
498
+ */
499
+ interface CrossdPosition {
500
+ token_id?: string;
501
+ /** 0이면 전량 출금된(closed) 포지션 — 섹션에서 제외. */
502
+ liquidity?: string;
503
+ in_range?: boolean;
504
+ is_full_range?: boolean;
505
+ token0_amount?: string;
506
+ token1_amount?: string;
507
+ uncollected_fees_token0?: string;
508
+ uncollected_fees_token1?: string;
509
+ uncollected_fees_usd?: string;
510
+ position_value_usd?: string;
511
+ pool?: CrossdPositionPoolRef;
512
+ }
513
+ /**
514
+ * `GET /api/v1/positions/{token_id}` detail 중 출금에 필요한 부분.
515
+ * list에는 없는 token0/token1의 주소·decimals를 여기서 얻는다
516
+ * (WCROSS 판별 + sweepToken 인자 + 수량 표기).
517
+ */
518
+ interface CrossdPositionDetail {
519
+ token_id?: string;
520
+ liquidity?: string;
521
+ pool?: {
522
+ pool_address?: string;
523
+ token0?: CrossdPositionTokenRef;
524
+ token1?: CrossdPositionTokenRef;
525
+ };
526
+ }
477
527
 
478
528
  /**
479
529
  * dapp-ui가 렌더하는 outlink의 대분류.
@@ -527,6 +577,13 @@ type OutlinkContext = {
527
577
  pool: ForgePool;
528
578
  tokenDetail?: ForgeTokenDetail;
529
579
  };
580
+ } | {
581
+ category: "portfolio";
582
+ origin: "portfolio-crossd-pool";
583
+ payload: {
584
+ position: CrossdPosition;
585
+ detail?: CrossdPositionDetail;
586
+ };
530
587
  } | {
531
588
  category: "send";
532
589
  origin: "send-transaction";
@@ -1649,4 +1706,4 @@ interface SkillsButtonProps {
1649
1706
  declare const DEFAULT_SKILLS_HREF = "https://www.onechain.nexus/skills";
1650
1707
  declare function SkillsButton({ label, href, onClick, className, style, theme, disabled, isLoading, loadingLabel, openInNewTab, type, }: SkillsButtonProps): react_jsx_runtime.JSX.Element;
1651
1708
 
1652
- export { APPLE_ICON, AppLauncher, AppLauncherContent, type AppLauncherContentProps, type AppLauncherProps, AppLauncherTrigger, type AppLauncherTriggerProps, type AppLauncherTriggerStyle, type AppLauncherUsageMode, BINANCE_ICON, type BridgeAmountSource, type BridgeApprovalInfo, type BridgeApproveFn, type BridgeFailedInfo, BridgeFlow, type BridgeFlowProps, type BridgeGetApprovalFn, type BridgeGetToTokensFn, type BridgeHistoryItem, type BridgeInfoRow, type BridgeInfoTokenRef, type BridgeLiquidityInfo, type BridgePathType, type BridgeQuoteFn, type BridgeQuoteInput, type BridgeQuoteResult, type BridgeStatus, type BridgeStep, type BridgeSubmitFn, type BridgeSubmittedInfo, type BridgeToken, type BridgeTxSummary, CONNECTOR_REGISTRY, CROSSX_ICON, type ChainId, ConnectButton, type ConnectButtonProps, type ConnectButtonStyle, ConnectorId, type ConnectorMeta, DEFAULT_SKILLS_HREF, DappUiErrorBoundary, type DappUiErrorBoundaryProps, type DappUiFailureReason, type DappUiFeature, type DappUiFlow, type DrawerDirection$1 as DrawerDirection, type Environment, type EstimateGasArgs, type EstimateGasFn, GOOGLE_ICON, type GameSwapPool, type GameSwapTokenRef, type GasEstimate, type GetTransactionReceiptArgs, type GetTransactionReceiptFn, type GlobalMenu, type GlobalMenuItem, type GlobalMenuItemAssetUrl, type GlobalMenuItemServiceStatus, type GlobalMenuItemUrl, type InitDappUiSentryOptions, type LpBalanceInfo, type LpBalanceReaderFn, METAMASK_ICON, type OnOutlink, type OutlinkCategory, type OutlinkContext, type OutlinkOrigin, PORTFOLIO_SECTIONS, type PortfolioSection, type PreferredToken, type RecentSendAddress, SOCIAL_REGISTRY, type SendAccount, type SendAsset, SendFlow, type SendFlowProps, type SendPageProps, type SendStatus, type SendTransactionArgs, type SendTransactionFn, SkillsButton, type SkillsButtonProps, type SkillsButtonStyle, type SocialConfig, type SocialHandlers, type SocialId, type StakingRewardsInfo, type StakingRewardsReaderFn, TOKEN_STATS_QUERY_KEY, type Theme, type TokenBalance, type TokenBalanceResponse, type TokenStats, type TokenStatsResponse, type TrackDappUiFunnelOptions, type TransactionReceiptResult, USER_BALANCE_QUERY_KEY, WALLET_REGISTRY, type WalletConfig, WalletConnectModal, type WalletConnectModalContentProps, type WalletConnectModalProps, type WalletConnectModalStyle, type WalletConnectModalTriggerProps, type WalletHandlers, type WalletId, WalletInfo, type WalletInfoContentProps, type WalletInfoFooterProps, type WalletInfoNavProps, type WalletInfoProps, type WalletInfoStyle, type WalletInfoTriggerProps, WalletPortfolio, WalletPortfolioBody, type WalletPortfolioBodyProps, type WalletPortfolioContentProps, type WalletPortfolioProps, type WalletPortfolioTriggerProps, type WalletProvider, announceAppLauncherUsage, captureDappUiException, getDappUiSentryScope, initDappUiSentry, normalizeFailureReason, resolveEnvironment, setDappUiAnalyticsUser, trackDappUiEvent, trackDappUiFunnel, useGlobalMenu, useTokenBalance, useTokenStats, useWalletDetect };
1709
+ export { APPLE_ICON, AppLauncher, AppLauncherContent, type AppLauncherContentProps, type AppLauncherProps, AppLauncherTrigger, type AppLauncherTriggerProps, type AppLauncherTriggerStyle, type AppLauncherUsageMode, BINANCE_ICON, type BridgeAmountSource, type BridgeApprovalInfo, type BridgeApproveFn, type BridgeFailedInfo, BridgeFlow, type BridgeFlowProps, type BridgeGetApprovalFn, type BridgeGetToTokensFn, type BridgeHistoryItem, type BridgeInfoRow, type BridgeInfoTokenRef, type BridgeLiquidityInfo, type BridgePathType, type BridgeQuoteFn, type BridgeQuoteInput, type BridgeQuoteResult, type BridgeStatus, type BridgeStep, type BridgeSubmitFn, type BridgeSubmittedInfo, type BridgeToken, type BridgeTxSummary, CONNECTOR_REGISTRY, CROSSX_ICON, type ChainId, ConnectButton, type ConnectButtonProps, type ConnectButtonStyle, ConnectorId, type ConnectorMeta, type CrossdPosition, type CrossdPositionDetail, type CrossdPositionPoolRef, type CrossdPositionTokenRef, DEFAULT_SKILLS_HREF, DappUiErrorBoundary, type DappUiErrorBoundaryProps, type DappUiFailureReason, type DappUiFeature, type DappUiFlow, type DrawerDirection$1 as DrawerDirection, type Environment, type EstimateGasArgs, type EstimateGasFn, GOOGLE_ICON, type GameSwapPool, type GameSwapTokenRef, type GasEstimate, type GetTransactionReceiptArgs, type GetTransactionReceiptFn, type GlobalMenu, type GlobalMenuItem, type GlobalMenuItemAssetUrl, type GlobalMenuItemServiceStatus, type GlobalMenuItemUrl, type InitDappUiSentryOptions, type LpBalanceInfo, type LpBalanceReaderFn, METAMASK_ICON, type OnOutlink, type OutlinkCategory, type OutlinkContext, type OutlinkOrigin, PORTFOLIO_SECTIONS, type PortfolioSection, type PreferredToken, type RecentSendAddress, SOCIAL_REGISTRY, type SendAccount, type SendAsset, SendFlow, type SendFlowProps, type SendPageProps, type SendStatus, type SendTransactionArgs, type SendTransactionFn, SkillsButton, type SkillsButtonProps, type SkillsButtonStyle, type SocialConfig, type SocialHandlers, type SocialId, type StakingRewardsInfo, type StakingRewardsReaderFn, TOKEN_STATS_QUERY_KEY, type Theme, type TokenBalance, type TokenBalanceResponse, type TokenStats, type TokenStatsResponse, type TrackDappUiFunnelOptions, type TransactionReceiptResult, USER_BALANCE_QUERY_KEY, WALLET_REGISTRY, type WalletConfig, WalletConnectModal, type WalletConnectModalContentProps, type WalletConnectModalProps, type WalletConnectModalStyle, type WalletConnectModalTriggerProps, type WalletHandlers, type WalletId, WalletInfo, type WalletInfoContentProps, type WalletInfoFooterProps, type WalletInfoNavProps, type WalletInfoProps, type WalletInfoStyle, type WalletInfoTriggerProps, WalletPortfolio, WalletPortfolioBody, type WalletPortfolioBodyProps, type WalletPortfolioContentProps, type WalletPortfolioProps, type WalletPortfolioTriggerProps, type WalletProvider, announceAppLauncherUsage, captureDappUiException, getDappUiSentryScope, initDappUiSentry, normalizeFailureReason, resolveEnvironment, setDappUiAnalyticsUser, trackDappUiEvent, trackDappUiFunnel, useGlobalMenu, useTokenBalance, useTokenStats, useWalletDetect };
package/dist/index.d.ts CHANGED
@@ -218,10 +218,11 @@ interface TokenStatsResponse {
218
218
  * - `"staking"` : CROSS Staking
219
219
  * - `"gameSwap"` : Gametoken LP
220
220
  * - `"forge"` : Forge
221
+ * - `"crossdPool"` : CROSSD v3 pool 포지션, 내장 Withdraw
221
222
  *
222
223
  * `WalletPortfolioBody` / `WalletInfo`의 섹션 필터에 사용한다.
223
224
  */
224
- type PortfolioSection = "rewards" | "points" | "staking" | "gameSwap" | "forge";
225
+ type PortfolioSection = "rewards" | "points" | "staking" | "gameSwap" | "forge" | "crossdPool";
225
226
  /**
226
227
  * 섹션 필터를 지정하지 않았을 때(=전체 노출)의 기본 표시 순서.
227
228
  * 배열로 필터를 줄 때 어떤 키들이 유효한지에 대한 단일 출처(source of truth).
@@ -474,6 +475,55 @@ interface ForgeTokenDetail {
474
475
  total_supply: string;
475
476
  available_supply: string;
476
477
  }
478
+ /** cross-defi API 토큰 참조 (detail 응답의 pool.token0/token1). */
479
+ interface CrossdPositionTokenRef {
480
+ address?: string;
481
+ symbol?: string;
482
+ name?: string;
483
+ decimals?: number;
484
+ logo_url?: string;
485
+ }
486
+ /** positions list 항목의 pool 요약 — 심볼만 있고 토큰 주소는 없다(detail에서 보강). */
487
+ interface CrossdPositionPoolRef {
488
+ pool_address?: string;
489
+ fee_tier?: number;
490
+ fee_tier_percentage?: string;
491
+ token0_symbol?: string;
492
+ token1_symbol?: string;
493
+ }
494
+ /**
495
+ * cross-defi `GET /api/v1/positions?owner=` 목록 항목 중 포트폴리오가 쓰는 필드.
496
+ * 수량류(liquidity, *_amount, uncollected_*)는 십진 문자열로 내려온다 —
497
+ * 계산에 쓰는 것은 liquidity(BigInt 변환)뿐이고 나머지는 표시 전용.
498
+ */
499
+ interface CrossdPosition {
500
+ token_id?: string;
501
+ /** 0이면 전량 출금된(closed) 포지션 — 섹션에서 제외. */
502
+ liquidity?: string;
503
+ in_range?: boolean;
504
+ is_full_range?: boolean;
505
+ token0_amount?: string;
506
+ token1_amount?: string;
507
+ uncollected_fees_token0?: string;
508
+ uncollected_fees_token1?: string;
509
+ uncollected_fees_usd?: string;
510
+ position_value_usd?: string;
511
+ pool?: CrossdPositionPoolRef;
512
+ }
513
+ /**
514
+ * `GET /api/v1/positions/{token_id}` detail 중 출금에 필요한 부분.
515
+ * list에는 없는 token0/token1의 주소·decimals를 여기서 얻는다
516
+ * (WCROSS 판별 + sweepToken 인자 + 수량 표기).
517
+ */
518
+ interface CrossdPositionDetail {
519
+ token_id?: string;
520
+ liquidity?: string;
521
+ pool?: {
522
+ pool_address?: string;
523
+ token0?: CrossdPositionTokenRef;
524
+ token1?: CrossdPositionTokenRef;
525
+ };
526
+ }
477
527
 
478
528
  /**
479
529
  * dapp-ui가 렌더하는 outlink의 대분류.
@@ -527,6 +577,13 @@ type OutlinkContext = {
527
577
  pool: ForgePool;
528
578
  tokenDetail?: ForgeTokenDetail;
529
579
  };
580
+ } | {
581
+ category: "portfolio";
582
+ origin: "portfolio-crossd-pool";
583
+ payload: {
584
+ position: CrossdPosition;
585
+ detail?: CrossdPositionDetail;
586
+ };
530
587
  } | {
531
588
  category: "send";
532
589
  origin: "send-transaction";
@@ -1649,4 +1706,4 @@ interface SkillsButtonProps {
1649
1706
  declare const DEFAULT_SKILLS_HREF = "https://www.onechain.nexus/skills";
1650
1707
  declare function SkillsButton({ label, href, onClick, className, style, theme, disabled, isLoading, loadingLabel, openInNewTab, type, }: SkillsButtonProps): react_jsx_runtime.JSX.Element;
1651
1708
 
1652
- export { APPLE_ICON, AppLauncher, AppLauncherContent, type AppLauncherContentProps, type AppLauncherProps, AppLauncherTrigger, type AppLauncherTriggerProps, type AppLauncherTriggerStyle, type AppLauncherUsageMode, BINANCE_ICON, type BridgeAmountSource, type BridgeApprovalInfo, type BridgeApproveFn, type BridgeFailedInfo, BridgeFlow, type BridgeFlowProps, type BridgeGetApprovalFn, type BridgeGetToTokensFn, type BridgeHistoryItem, type BridgeInfoRow, type BridgeInfoTokenRef, type BridgeLiquidityInfo, type BridgePathType, type BridgeQuoteFn, type BridgeQuoteInput, type BridgeQuoteResult, type BridgeStatus, type BridgeStep, type BridgeSubmitFn, type BridgeSubmittedInfo, type BridgeToken, type BridgeTxSummary, CONNECTOR_REGISTRY, CROSSX_ICON, type ChainId, ConnectButton, type ConnectButtonProps, type ConnectButtonStyle, ConnectorId, type ConnectorMeta, DEFAULT_SKILLS_HREF, DappUiErrorBoundary, type DappUiErrorBoundaryProps, type DappUiFailureReason, type DappUiFeature, type DappUiFlow, type DrawerDirection$1 as DrawerDirection, type Environment, type EstimateGasArgs, type EstimateGasFn, GOOGLE_ICON, type GameSwapPool, type GameSwapTokenRef, type GasEstimate, type GetTransactionReceiptArgs, type GetTransactionReceiptFn, type GlobalMenu, type GlobalMenuItem, type GlobalMenuItemAssetUrl, type GlobalMenuItemServiceStatus, type GlobalMenuItemUrl, type InitDappUiSentryOptions, type LpBalanceInfo, type LpBalanceReaderFn, METAMASK_ICON, type OnOutlink, type OutlinkCategory, type OutlinkContext, type OutlinkOrigin, PORTFOLIO_SECTIONS, type PortfolioSection, type PreferredToken, type RecentSendAddress, SOCIAL_REGISTRY, type SendAccount, type SendAsset, SendFlow, type SendFlowProps, type SendPageProps, type SendStatus, type SendTransactionArgs, type SendTransactionFn, SkillsButton, type SkillsButtonProps, type SkillsButtonStyle, type SocialConfig, type SocialHandlers, type SocialId, type StakingRewardsInfo, type StakingRewardsReaderFn, TOKEN_STATS_QUERY_KEY, type Theme, type TokenBalance, type TokenBalanceResponse, type TokenStats, type TokenStatsResponse, type TrackDappUiFunnelOptions, type TransactionReceiptResult, USER_BALANCE_QUERY_KEY, WALLET_REGISTRY, type WalletConfig, WalletConnectModal, type WalletConnectModalContentProps, type WalletConnectModalProps, type WalletConnectModalStyle, type WalletConnectModalTriggerProps, type WalletHandlers, type WalletId, WalletInfo, type WalletInfoContentProps, type WalletInfoFooterProps, type WalletInfoNavProps, type WalletInfoProps, type WalletInfoStyle, type WalletInfoTriggerProps, WalletPortfolio, WalletPortfolioBody, type WalletPortfolioBodyProps, type WalletPortfolioContentProps, type WalletPortfolioProps, type WalletPortfolioTriggerProps, type WalletProvider, announceAppLauncherUsage, captureDappUiException, getDappUiSentryScope, initDappUiSentry, normalizeFailureReason, resolveEnvironment, setDappUiAnalyticsUser, trackDappUiEvent, trackDappUiFunnel, useGlobalMenu, useTokenBalance, useTokenStats, useWalletDetect };
1709
+ export { APPLE_ICON, AppLauncher, AppLauncherContent, type AppLauncherContentProps, type AppLauncherProps, AppLauncherTrigger, type AppLauncherTriggerProps, type AppLauncherTriggerStyle, type AppLauncherUsageMode, BINANCE_ICON, type BridgeAmountSource, type BridgeApprovalInfo, type BridgeApproveFn, type BridgeFailedInfo, BridgeFlow, type BridgeFlowProps, type BridgeGetApprovalFn, type BridgeGetToTokensFn, type BridgeHistoryItem, type BridgeInfoRow, type BridgeInfoTokenRef, type BridgeLiquidityInfo, type BridgePathType, type BridgeQuoteFn, type BridgeQuoteInput, type BridgeQuoteResult, type BridgeStatus, type BridgeStep, type BridgeSubmitFn, type BridgeSubmittedInfo, type BridgeToken, type BridgeTxSummary, CONNECTOR_REGISTRY, CROSSX_ICON, type ChainId, ConnectButton, type ConnectButtonProps, type ConnectButtonStyle, ConnectorId, type ConnectorMeta, type CrossdPosition, type CrossdPositionDetail, type CrossdPositionPoolRef, type CrossdPositionTokenRef, DEFAULT_SKILLS_HREF, DappUiErrorBoundary, type DappUiErrorBoundaryProps, type DappUiFailureReason, type DappUiFeature, type DappUiFlow, type DrawerDirection$1 as DrawerDirection, type Environment, type EstimateGasArgs, type EstimateGasFn, GOOGLE_ICON, type GameSwapPool, type GameSwapTokenRef, type GasEstimate, type GetTransactionReceiptArgs, type GetTransactionReceiptFn, type GlobalMenu, type GlobalMenuItem, type GlobalMenuItemAssetUrl, type GlobalMenuItemServiceStatus, type GlobalMenuItemUrl, type InitDappUiSentryOptions, type LpBalanceInfo, type LpBalanceReaderFn, METAMASK_ICON, type OnOutlink, type OutlinkCategory, type OutlinkContext, type OutlinkOrigin, PORTFOLIO_SECTIONS, type PortfolioSection, type PreferredToken, type RecentSendAddress, SOCIAL_REGISTRY, type SendAccount, type SendAsset, SendFlow, type SendFlowProps, type SendPageProps, type SendStatus, type SendTransactionArgs, type SendTransactionFn, SkillsButton, type SkillsButtonProps, type SkillsButtonStyle, type SocialConfig, type SocialHandlers, type SocialId, type StakingRewardsInfo, type StakingRewardsReaderFn, TOKEN_STATS_QUERY_KEY, type Theme, type TokenBalance, type TokenBalanceResponse, type TokenStats, type TokenStatsResponse, type TrackDappUiFunnelOptions, type TransactionReceiptResult, USER_BALANCE_QUERY_KEY, WALLET_REGISTRY, type WalletConfig, WalletConnectModal, type WalletConnectModalContentProps, type WalletConnectModalProps, type WalletConnectModalStyle, type WalletConnectModalTriggerProps, type WalletHandlers, type WalletId, WalletInfo, type WalletInfoContentProps, type WalletInfoFooterProps, type WalletInfoNavProps, type WalletInfoProps, type WalletInfoStyle, type WalletInfoTriggerProps, WalletPortfolio, WalletPortfolioBody, type WalletPortfolioBodyProps, type WalletPortfolioContentProps, type WalletPortfolioProps, type WalletPortfolioTriggerProps, type WalletProvider, announceAppLauncherUsage, captureDappUiException, getDappUiSentryScope, initDappUiSentry, normalizeFailureReason, resolveEnvironment, setDappUiAnalyticsUser, trackDappUiEvent, trackDappUiFunnel, useGlobalMenu, useTokenBalance, useTokenStats, useWalletDetect };