@liberfi.io/ui-tokens 1.0.0 → 2.0.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/dist/index.d.mts +627 -20
- package/dist/index.d.ts +627 -20
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, ComponentType } from 'react';
|
|
3
3
|
import * as _liberfi_io_types from '@liberfi.io/types';
|
|
4
|
-
import { Token, Chain, TraderTag, HolderTag, TokenSocialMedias, API, TokenHolder, Activity, TokenStats, TokenSecurity as TokenSecurity$1, TokenLiquidity, TokenProtocol } from '@liberfi.io/types';
|
|
4
|
+
import { Token, Chain, TraderTag, HolderTag, TokenSocialMedias, API, TokenHolder, Activity, TokenStats, TokenSecurity as TokenSecurity$1, TokenLiquidity, PortfolioPnl, LimitOrderState, LimitOrder, TokenProtocol } from '@liberfi.io/types';
|
|
5
5
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
6
6
|
import { PopoverProps } from '@liberfi.io/ui';
|
|
7
7
|
export { formatAmount } from '@liberfi.io/utils';
|
|
@@ -13,7 +13,7 @@ declare global {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
declare const _default: "
|
|
16
|
+
declare const _default: "2.0.0";
|
|
17
17
|
|
|
18
18
|
interface PulseListProps {
|
|
19
19
|
/** list title */
|
|
@@ -613,10 +613,24 @@ interface TokenHoldersListProps {
|
|
|
613
613
|
/** Phase 3 sortBy */
|
|
614
614
|
sortBy: TokenHoldersListSortBy;
|
|
615
615
|
onSortByChange: (sortBy: TokenHoldersListSortBy) => void;
|
|
616
|
+
/**
|
|
617
|
+
* Axiom-style `Only Tracked` filter. Narrows the visible rows to holders
|
|
618
|
+
* that carry at least one classification tag. Client-side; parent owns
|
|
619
|
+
* state.
|
|
620
|
+
*/
|
|
621
|
+
onlyTracked?: boolean;
|
|
622
|
+
onOnlyTrackedChange?: (value: boolean) => void;
|
|
616
623
|
onLoadMore?: () => void;
|
|
617
624
|
hasMore?: boolean;
|
|
618
625
|
/** reference time for age display; defaults to `Date.now()` */
|
|
619
626
|
now?: number;
|
|
627
|
+
/**
|
|
628
|
+
* Optional map of known wallet addresses → human-readable label (e.g.
|
|
629
|
+
* `{ [poolAddress]: "LIQUIDITY POOL" }`). When the holder's address is
|
|
630
|
+
* in this map, the Wallet cell renders the label instead of a truncated
|
|
631
|
+
* address.
|
|
632
|
+
*/
|
|
633
|
+
wellKnownAddresses?: Record<string, string>;
|
|
620
634
|
className?: string;
|
|
621
635
|
/** render a wallet cell — useful to wire app-level links / tooltips */
|
|
622
636
|
renderAddress?: (address: string) => React.ReactNode;
|
|
@@ -627,7 +641,7 @@ interface TokenHoldersListProps {
|
|
|
627
641
|
* age. The caller owns the sort state to preserve cursor semantics (changing
|
|
628
642
|
* `sortBy` invalidates cursors).
|
|
629
643
|
*/
|
|
630
|
-
declare function TokenHoldersList({ holders, isLoading, sortBy, onSortByChange, onLoadMore, hasMore, now, className, renderAddress, }: TokenHoldersListProps): react_jsx_runtime.JSX.Element;
|
|
644
|
+
declare function TokenHoldersList({ holders, isLoading, sortBy, onSortByChange, onlyTracked, onOnlyTrackedChange, onLoadMore, hasMore, now, wellKnownAddresses, className, renderAddress, }: TokenHoldersListProps): react_jsx_runtime.JSX.Element;
|
|
631
645
|
|
|
632
646
|
interface UseTokenHoldersListScriptParams {
|
|
633
647
|
chain: Chain;
|
|
@@ -663,17 +677,30 @@ interface TokenHoldersListWidgetProps {
|
|
|
663
677
|
address: string;
|
|
664
678
|
limit?: number;
|
|
665
679
|
initialSortBy?: TokenHoldersListSortBy;
|
|
680
|
+
/** Initial `Only Tracked` toggle state. */
|
|
681
|
+
initialOnlyTracked?: boolean;
|
|
682
|
+
/** Map of known-wallet addresses → human-readable labels. */
|
|
683
|
+
wellKnownAddresses?: Record<string, string>;
|
|
666
684
|
className?: string;
|
|
667
685
|
renderAddress?: (address: string) => React.ReactNode;
|
|
668
686
|
}
|
|
669
687
|
/**
|
|
670
688
|
* Live-paginated, sortable token holders list consuming the Phase 3
|
|
671
|
-
* `/v2/token/{chain}/{address}/holders` endpoint.
|
|
672
|
-
*
|
|
689
|
+
* `/v2/token/{chain}/{address}/holders` endpoint. Axiom-parity upgrades:
|
|
690
|
+
* adds a client-side `Only Tracked` filter and supports a
|
|
691
|
+
* `wellKnownAddresses` map that replaces known pool / named-wallet
|
|
692
|
+
* addresses with a human-readable badge (e.g. `LIQUIDITY POOL`).
|
|
673
693
|
*/
|
|
674
|
-
declare function TokenHoldersListWidget({ chain, address, limit, initialSortBy, className, renderAddress, }: TokenHoldersListWidgetProps): react_jsx_runtime.JSX.Element;
|
|
694
|
+
declare function TokenHoldersListWidget({ chain, address, limit, initialSortBy, initialOnlyTracked, wellKnownAddresses, className, renderAddress, }: TokenHoldersListWidgetProps): react_jsx_runtime.JSX.Element;
|
|
675
695
|
|
|
676
696
|
type TokenActivitiesListSortBy = API.ActivitiesSortBy;
|
|
697
|
+
/**
|
|
698
|
+
* Axiom-style trader-tag filter applied client-side on top of the paged
|
|
699
|
+
* result. `all` is the default; `dev` / `tracked` / `you` narrow the view.
|
|
700
|
+
*/
|
|
701
|
+
type TokenActivitiesListTraderFilter = "all" | "dev" | "tracked" | "you";
|
|
702
|
+
/** Amount column currency toggle (USD vs native). */
|
|
703
|
+
type TokenActivitiesListCurrency = "usd" | "native";
|
|
677
704
|
interface TokenActivitiesListProps {
|
|
678
705
|
activities: Array<Activity>;
|
|
679
706
|
isLoading?: boolean;
|
|
@@ -682,6 +709,17 @@ interface TokenActivitiesListProps {
|
|
|
682
709
|
/** filter by activity type; "all" shows everything including liquidity / red packets */
|
|
683
710
|
typeFilter?: "all" | "buy" | "sell";
|
|
684
711
|
onTypeFilterChange?: (t: "all" | "buy" | "sell") => void;
|
|
712
|
+
/**
|
|
713
|
+
* Axiom-style DEV / TRACKED / YOU filter. Purely client-side; narrows
|
|
714
|
+
* the visible rows without refetching.
|
|
715
|
+
*/
|
|
716
|
+
traderFilter?: TokenActivitiesListTraderFilter;
|
|
717
|
+
onTraderFilterChange?: (t: TokenActivitiesListTraderFilter) => void;
|
|
718
|
+
/** Your wallet address — required for the `you` filter to work. */
|
|
719
|
+
youWalletAddress?: string;
|
|
720
|
+
/** USD / native currency toggle. Defaults to `usd`. */
|
|
721
|
+
currency?: TokenActivitiesListCurrency;
|
|
722
|
+
onCurrencyChange?: (c: TokenActivitiesListCurrency) => void;
|
|
685
723
|
onLoadMore?: () => void;
|
|
686
724
|
hasMore?: boolean;
|
|
687
725
|
/** reference time for age display; defaults to `Date.now()` */
|
|
@@ -693,16 +731,7 @@ interface TokenActivitiesListProps {
|
|
|
693
731
|
className?: string;
|
|
694
732
|
onRowClick?: (activity: Activity) => void;
|
|
695
733
|
}
|
|
696
|
-
|
|
697
|
-
* Presentational token activities list (Phase 3). Shows per-activity:
|
|
698
|
-
* - side (buy/sell/liquidity/red packet)
|
|
699
|
-
* - trader address + trader tags
|
|
700
|
-
* - amount (native + usd)
|
|
701
|
-
* - price
|
|
702
|
-
* - gas fee (native denominated)
|
|
703
|
-
* - age
|
|
704
|
-
*/
|
|
705
|
-
declare function TokenActivitiesList({ activities, isLoading, sortBy, onSortByChange, typeFilter, onTypeFilterChange, onLoadMore, hasMore, now, nativeDecimals, nativeSymbol, className, onRowClick, }: TokenActivitiesListProps): react_jsx_runtime.JSX.Element;
|
|
734
|
+
declare function TokenActivitiesList({ activities, isLoading, sortBy, onSortByChange, typeFilter, onTypeFilterChange, traderFilter, onTraderFilterChange, youWalletAddress, currency, onCurrencyChange, onLoadMore, hasMore, now, nativeDecimals, nativeSymbol, className, onRowClick, }: TokenActivitiesListProps): react_jsx_runtime.JSX.Element;
|
|
706
735
|
|
|
707
736
|
interface UseTokenActivitiesListScriptParams {
|
|
708
737
|
chain: Chain;
|
|
@@ -741,6 +770,12 @@ interface TokenActivitiesListWidgetProps {
|
|
|
741
770
|
limit?: number;
|
|
742
771
|
initialSortBy?: TokenActivitiesListSortBy;
|
|
743
772
|
initialTypeFilter?: "all" | "buy" | "sell";
|
|
773
|
+
/** Axiom-style DEV / TRACKED / YOU filter. Defaults to `all`. */
|
|
774
|
+
initialTraderFilter?: TokenActivitiesListTraderFilter;
|
|
775
|
+
/** Initial USD / native toggle state. Defaults to `usd`. */
|
|
776
|
+
initialCurrency?: TokenActivitiesListCurrency;
|
|
777
|
+
/** Your wallet address — required for the `you` filter option to light up. */
|
|
778
|
+
youWalletAddress?: string;
|
|
744
779
|
/** native token decimals for gas-fee formatting, default 9 (lamports on SOL) */
|
|
745
780
|
nativeDecimals?: number;
|
|
746
781
|
/** native token symbol, default "SOL" */
|
|
@@ -749,10 +784,14 @@ interface TokenActivitiesListWidgetProps {
|
|
|
749
784
|
onRowClick?: (activity: Activity) => void;
|
|
750
785
|
}
|
|
751
786
|
/**
|
|
752
|
-
* Phase 3 token-activities list widget
|
|
753
|
-
*
|
|
787
|
+
* Phase 3 token-activities list widget, upgraded to Axiom parity.
|
|
788
|
+
*
|
|
789
|
+
* Replaces the legacy `getTokenTrades` call with `getTokenActivities` and
|
|
790
|
+
* renders `traderTags` + `gasFee`, plus the Axiom-style `DEV / TRACKED /
|
|
791
|
+
* YOU` trader filter and a USD / native currency toggle. The trader
|
|
792
|
+
* filter is applied client-side on top of the paged results.
|
|
754
793
|
*/
|
|
755
|
-
declare function TokenActivitiesListWidget({ chain, address, limit, initialSortBy, initialTypeFilter, nativeDecimals, nativeSymbol, className, onRowClick, }: TokenActivitiesListWidgetProps): react_jsx_runtime.JSX.Element;
|
|
794
|
+
declare function TokenActivitiesListWidget({ chain, address, limit, initialSortBy, initialTypeFilter, initialTraderFilter, initialCurrency, youWalletAddress, nativeDecimals, nativeSymbol, className, onRowClick, }: TokenActivitiesListWidgetProps): react_jsx_runtime.JSX.Element;
|
|
756
795
|
|
|
757
796
|
type OverviewResolution = keyof TokenStats;
|
|
758
797
|
interface TokenTradersOverviewProps {
|
|
@@ -983,6 +1022,574 @@ interface TokenCategoriesWidgetProps {
|
|
|
983
1022
|
}
|
|
984
1023
|
declare function TokenCategoriesWidget({ chain, address, collapseAt, className, onCategoryClick, }: TokenCategoriesWidgetProps): react_jsx_runtime.JSX.Element;
|
|
985
1024
|
|
|
1025
|
+
/**
|
|
1026
|
+
* Resolution used by the base stat cells. Axiom uses the chart's active
|
|
1027
|
+
* resolution here (defaults to `5m`).
|
|
1028
|
+
*/
|
|
1029
|
+
type TokenStatsFlipBaseResolution = "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "24h";
|
|
1030
|
+
/**
|
|
1031
|
+
* Time windows displayed in the hover overlay (price change % per window).
|
|
1032
|
+
*
|
|
1033
|
+
* NOTE: Axiom shows `5m / 1h / 6h / 24h`. Our server schema exposes
|
|
1034
|
+
* `5m / 1h / 4h / 24h` (no native 6h window), so we default to that set
|
|
1035
|
+
* and document the delta. Consumers can override via
|
|
1036
|
+
* {@link TokenStatsFlipProps.hoverResolutions}.
|
|
1037
|
+
*/
|
|
1038
|
+
type TokenStatsFlipHoverResolution = TokenStatsFlipBaseResolution;
|
|
1039
|
+
declare const DEFAULT_FLIP_HOVER_RESOLUTIONS: ReadonlyArray<TokenStatsFlipHoverResolution>;
|
|
1040
|
+
interface TokenStatsFlipBaseProps {
|
|
1041
|
+
stats: TokenStats | undefined;
|
|
1042
|
+
resolution: TokenStatsFlipBaseResolution;
|
|
1043
|
+
className?: string;
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Base layer — 4-cell grid showing `Volume / Buys / Sells / Net Volume` for
|
|
1047
|
+
* the active resolution, plus a 2px buy-share bar at the bottom.
|
|
1048
|
+
*/
|
|
1049
|
+
declare function TokenStatsFlipBase({ stats, resolution, className, }: TokenStatsFlipBaseProps): react_jsx_runtime.JSX.Element;
|
|
1050
|
+
interface TokenStatsFlipHoverProps {
|
|
1051
|
+
stats: TokenStats | undefined;
|
|
1052
|
+
resolutions: ReadonlyArray<TokenStatsFlipHoverResolution>;
|
|
1053
|
+
className?: string;
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Hover overlay — 4-cell grid showing `priceChange %` per window with
|
|
1057
|
+
* bullish/bearish tint.
|
|
1058
|
+
*/
|
|
1059
|
+
declare function TokenStatsFlipHover({ stats, resolutions, className, }: TokenStatsFlipHoverProps): react_jsx_runtime.JSX.Element;
|
|
1060
|
+
interface TokenStatsFlipProps {
|
|
1061
|
+
stats: TokenStats | undefined;
|
|
1062
|
+
/** Resolution displayed in the base layer. Defaults to `5m`. */
|
|
1063
|
+
baseResolution?: TokenStatsFlipBaseResolution;
|
|
1064
|
+
/** Time windows displayed in the hover overlay. Defaults to `5m/1h/4h/24h`. */
|
|
1065
|
+
hoverResolutions?: ReadonlyArray<TokenStatsFlipHoverResolution>;
|
|
1066
|
+
/** Height override (panel height). Defaults to 64. */
|
|
1067
|
+
height?: number;
|
|
1068
|
+
className?: string;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
interface UseTokenStatsFlipScriptParams {
|
|
1072
|
+
chain: Chain;
|
|
1073
|
+
address: string;
|
|
1074
|
+
}
|
|
1075
|
+
/**
|
|
1076
|
+
* Thin query wrapper for {@link TokenStatsFlipWidget}.
|
|
1077
|
+
*
|
|
1078
|
+
* Fetches the full `TokenStats` object — both base and hover layers read
|
|
1079
|
+
* different resolution slices off the same response, so a single query is
|
|
1080
|
+
* enough; no subscription wiring needed here (the hover resolutions are
|
|
1081
|
+
* refreshed with normal React Query stale/refetch semantics).
|
|
1082
|
+
*/
|
|
1083
|
+
declare function useTokenStatsFlipScript({ chain, address, }: UseTokenStatsFlipScriptParams): {
|
|
1084
|
+
stats: TokenStats | undefined;
|
|
1085
|
+
isLoading: boolean;
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
interface TokenStatsFlipWidgetProps {
|
|
1089
|
+
chain: Chain;
|
|
1090
|
+
address: string;
|
|
1091
|
+
/** Resolution for the base layer. Defaults to `5m`. */
|
|
1092
|
+
baseResolution?: TokenStatsFlipBaseResolution;
|
|
1093
|
+
/** Hover overlay resolutions. Defaults to `5m / 1h / 4h / 24h`. */
|
|
1094
|
+
hoverResolutions?: ReadonlyArray<TokenStatsFlipHoverResolution>;
|
|
1095
|
+
/** Panel height. Defaults to 64. */
|
|
1096
|
+
height?: number;
|
|
1097
|
+
/** Extra className on the panel wrapper. */
|
|
1098
|
+
className?: string;
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* TokenStatsFlipWidget — Axiom-style volume/price-change panel above the
|
|
1102
|
+
* Buy / Sell form.
|
|
1103
|
+
*
|
|
1104
|
+
* At rest shows `{res} Vol / Buys / Sells / Net Vol` for the active
|
|
1105
|
+
* resolution; on hover a blurred overlay cross-fades in with
|
|
1106
|
+
* `priceChange %` per window. A cursor-following radial glow adds the
|
|
1107
|
+
* signature Axiom interaction.
|
|
1108
|
+
*/
|
|
1109
|
+
declare function TokenStatsFlipWidget({ chain, address, baseResolution, hoverResolutions, height, className, }: TokenStatsFlipWidgetProps): react_jsx_runtime.JSX.Element;
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Amount display mode. Axiom offers a USD / SOL toggle; we generalise that
|
|
1113
|
+
* to `usd | native` so the same widget works on any chain. When unset, the
|
|
1114
|
+
* widget defaults to `usd`.
|
|
1115
|
+
*/
|
|
1116
|
+
type TokenPositionsListCurrency = "usd" | "native";
|
|
1117
|
+
interface TokenPositionsListProps {
|
|
1118
|
+
positions: Array<PortfolioPnl>;
|
|
1119
|
+
isLoading?: boolean;
|
|
1120
|
+
hasMore?: boolean;
|
|
1121
|
+
onLoadMore?: () => void;
|
|
1122
|
+
/** Currency toggle. Defaults to `usd`. */
|
|
1123
|
+
currency?: TokenPositionsListCurrency;
|
|
1124
|
+
onCurrencyChange?: (currency: TokenPositionsListCurrency) => void;
|
|
1125
|
+
/** Show-hidden positions filter (UI hook only; parent owns state). */
|
|
1126
|
+
showHidden?: boolean;
|
|
1127
|
+
onShowHiddenChange?: (value: boolean) => void;
|
|
1128
|
+
/** Native token symbol shown in the toggle (e.g. `SOL`, `ETH`). Defaults to `Native`. */
|
|
1129
|
+
nativeSymbol?: string;
|
|
1130
|
+
/** Per-row action slot (buy / sell / hide). Parent owns which actions to render. */
|
|
1131
|
+
renderActions?: (position: PortfolioPnl) => ReactNode;
|
|
1132
|
+
className?: string;
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* Presentational list of a wallet's open positions in a token context —
|
|
1136
|
+
* columns: `Token / Bought / Sold / Remaining / PnL / Actions`.
|
|
1137
|
+
*
|
|
1138
|
+
* The parent owns data and pagination; this component is purely visual.
|
|
1139
|
+
*/
|
|
1140
|
+
declare function TokenPositionsList({ positions, isLoading, hasMore, onLoadMore, currency, onCurrencyChange, showHidden, onShowHiddenChange, nativeSymbol, renderActions, className, }: TokenPositionsListProps): react_jsx_runtime.JSX.Element;
|
|
1141
|
+
|
|
1142
|
+
interface UseTokenPositionsListScriptParams {
|
|
1143
|
+
chain: Chain;
|
|
1144
|
+
/** Wallet address. When empty, the hook remains disabled. */
|
|
1145
|
+
wallet?: string;
|
|
1146
|
+
/** Page size; defaults to 50. */
|
|
1147
|
+
limit?: number;
|
|
1148
|
+
/** Initial show-hidden toggle value. */
|
|
1149
|
+
initialShowHidden?: boolean;
|
|
1150
|
+
}
|
|
1151
|
+
interface UseTokenPositionsListScriptResult {
|
|
1152
|
+
positions: Array<PortfolioPnl>;
|
|
1153
|
+
isLoading: boolean;
|
|
1154
|
+
hasMore: boolean;
|
|
1155
|
+
loadMore: () => void;
|
|
1156
|
+
showHidden: boolean;
|
|
1157
|
+
setShowHidden: (value: boolean) => void;
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* Script for the positions list widget.
|
|
1161
|
+
*
|
|
1162
|
+
* Uses {@link useWalletTokenPositionsQuery} (bridge over
|
|
1163
|
+
* `getWalletPortfolioPnls` with `positionState=open`) and accumulates pages
|
|
1164
|
+
* in local state. Hidden-filter is a purely client-side toggle; the server
|
|
1165
|
+
* does not expose a `hidden` flag on positions so the widget always keeps
|
|
1166
|
+
* the full list and the parent can filter / persist as desired.
|
|
1167
|
+
*
|
|
1168
|
+
* Query stays disabled when `wallet` is empty so the positions tab
|
|
1169
|
+
* renders gracefully for logged-out users.
|
|
1170
|
+
*/
|
|
1171
|
+
declare function useTokenPositionsListScript({ chain, wallet, limit, initialShowHidden, }: UseTokenPositionsListScriptParams): UseTokenPositionsListScriptResult;
|
|
1172
|
+
|
|
1173
|
+
interface TokenPositionsListWidgetProps {
|
|
1174
|
+
chain: Chain;
|
|
1175
|
+
/** Wallet address. When empty, the list is empty and the query is disabled. */
|
|
1176
|
+
wallet?: string;
|
|
1177
|
+
limit?: number;
|
|
1178
|
+
/** Initial currency. Defaults to `usd`. */
|
|
1179
|
+
initialCurrency?: TokenPositionsListCurrency;
|
|
1180
|
+
/** Native chain symbol used in the currency toggle (e.g. `SOL`). */
|
|
1181
|
+
nativeSymbol?: string;
|
|
1182
|
+
/** Optional per-row action slot. */
|
|
1183
|
+
renderActions?: (position: PortfolioPnl) => ReactNode;
|
|
1184
|
+
className?: string;
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Positions tab widget.
|
|
1188
|
+
*
|
|
1189
|
+
* Fetches the caller wallet's open positions via
|
|
1190
|
+
* `getWalletPortfolioPnls({ positionState: 'open' })` and renders the
|
|
1191
|
+
* Axiom-style columns. Currency (USD / native) and show-hidden toggles
|
|
1192
|
+
* are kept in local state; consumers wanting persistence should wrap
|
|
1193
|
+
* the widget and lift these up.
|
|
1194
|
+
*/
|
|
1195
|
+
declare function TokenPositionsListWidget({ chain, wallet, limit, initialCurrency, nativeSymbol, renderActions, className, }: TokenPositionsListWidgetProps): react_jsx_runtime.JSX.Element;
|
|
1196
|
+
|
|
1197
|
+
type TokenOrdersListState = Extract<LimitOrderState, "active" | "filled" | "cancelled" | "expired">;
|
|
1198
|
+
/**
|
|
1199
|
+
* Segmented state filter. Axiom exposes `Active Orders / Order History`; we
|
|
1200
|
+
* mirror that with `active` vs `history` (any non-active).
|
|
1201
|
+
*/
|
|
1202
|
+
type TokenOrdersListStateFilter = "active" | "history";
|
|
1203
|
+
type TokenOrdersListCurrency = "usd" | "native";
|
|
1204
|
+
interface TokenOrdersListProps {
|
|
1205
|
+
orders: Array<LimitOrder>;
|
|
1206
|
+
isLoading?: boolean;
|
|
1207
|
+
/** If true, render a "coming soon" empty state. Used when the backend endpoint is missing. */
|
|
1208
|
+
unavailable?: boolean;
|
|
1209
|
+
hasMore?: boolean;
|
|
1210
|
+
onLoadMore?: () => void;
|
|
1211
|
+
stateFilter: TokenOrdersListStateFilter;
|
|
1212
|
+
onStateFilterChange: (filter: TokenOrdersListStateFilter) => void;
|
|
1213
|
+
/** Token-scope filter ("Only {SYMBOL}"). Parent owns state. */
|
|
1214
|
+
onlyThisToken?: boolean;
|
|
1215
|
+
onOnlyThisTokenChange?: (value: boolean) => void;
|
|
1216
|
+
tokenSymbol?: string;
|
|
1217
|
+
/** Currency toggle. */
|
|
1218
|
+
currency?: TokenOrdersListCurrency;
|
|
1219
|
+
onCurrencyChange?: (currency: TokenOrdersListCurrency) => void;
|
|
1220
|
+
nativeSymbol?: string;
|
|
1221
|
+
/** Cancel-all button click handler; hidden when unset. */
|
|
1222
|
+
onCancelAll?: () => void;
|
|
1223
|
+
/** Per-row action slot. */
|
|
1224
|
+
renderActions?: (order: LimitOrder) => ReactNode;
|
|
1225
|
+
className?: string;
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Presentational list of a wallet's limit orders — columns `Token / Type /
|
|
1229
|
+
* Amount / Current MC / Target MC / Settings / Action`.
|
|
1230
|
+
*
|
|
1231
|
+
* Gracefully renders a "coming soon" empty state when the server endpoint
|
|
1232
|
+
* is not yet implemented (pass `unavailable`).
|
|
1233
|
+
*/
|
|
1234
|
+
declare function TokenOrdersList({ orders, isLoading, unavailable, hasMore, onLoadMore, stateFilter, onStateFilterChange, onlyThisToken, onOnlyThisTokenChange, tokenSymbol, currency, onCurrencyChange, nativeSymbol, onCancelAll, renderActions, className, }: TokenOrdersListProps): react_jsx_runtime.JSX.Element;
|
|
1235
|
+
|
|
1236
|
+
interface UseTokenOrdersListScriptParams {
|
|
1237
|
+
chain: Chain;
|
|
1238
|
+
wallet?: string;
|
|
1239
|
+
/** Token address to use when `onlyThisToken` is true. */
|
|
1240
|
+
tokenAddress: string;
|
|
1241
|
+
limit?: number;
|
|
1242
|
+
initialStateFilter?: TokenOrdersListStateFilter;
|
|
1243
|
+
initialOnlyThisToken?: boolean;
|
|
1244
|
+
}
|
|
1245
|
+
interface UseTokenOrdersListScriptResult {
|
|
1246
|
+
orders: Array<LimitOrder>;
|
|
1247
|
+
isLoading: boolean;
|
|
1248
|
+
/** true when the backend endpoint is not implemented yet. */
|
|
1249
|
+
unavailable: boolean;
|
|
1250
|
+
hasMore: boolean;
|
|
1251
|
+
loadMore: () => void;
|
|
1252
|
+
stateFilter: TokenOrdersListStateFilter;
|
|
1253
|
+
setStateFilter: (filter: TokenOrdersListStateFilter) => void;
|
|
1254
|
+
onlyThisToken: boolean;
|
|
1255
|
+
setOnlyThisToken: (value: boolean) => void;
|
|
1256
|
+
}
|
|
1257
|
+
/**
|
|
1258
|
+
* Script for the orders list widget.
|
|
1259
|
+
*
|
|
1260
|
+
* Because `getWalletLimitOrders` throws `NotImplementedError`, this script
|
|
1261
|
+
* catches that specific error and reports `unavailable: true` so the UI can
|
|
1262
|
+
* render a "coming soon" state instead of a generic error.
|
|
1263
|
+
*/
|
|
1264
|
+
declare function useTokenOrdersListScript({ chain, wallet, tokenAddress, limit, initialStateFilter, initialOnlyThisToken, }: UseTokenOrdersListScriptParams): UseTokenOrdersListScriptResult;
|
|
1265
|
+
|
|
1266
|
+
interface TokenOrdersListWidgetProps {
|
|
1267
|
+
chain: Chain;
|
|
1268
|
+
/** Wallet address. Empty → widget is rendered with a disabled data query. */
|
|
1269
|
+
wallet?: string;
|
|
1270
|
+
/** Token address used by the `Only <symbol>` filter when enabled. */
|
|
1271
|
+
tokenAddress: string;
|
|
1272
|
+
/** Optional token symbol used in the `Only <symbol>` checkbox label. */
|
|
1273
|
+
tokenSymbol?: string;
|
|
1274
|
+
limit?: number;
|
|
1275
|
+
initialStateFilter?: TokenOrdersListStateFilter;
|
|
1276
|
+
initialCurrency?: TokenOrdersListCurrency;
|
|
1277
|
+
nativeSymbol?: string;
|
|
1278
|
+
onCancelAll?: () => void;
|
|
1279
|
+
renderActions?: (order: LimitOrder) => ReactNode;
|
|
1280
|
+
className?: string;
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* Orders tab widget.
|
|
1284
|
+
*
|
|
1285
|
+
* The backend limit-orders endpoint is not shipped yet, so the underlying
|
|
1286
|
+
* client method throws `NotImplementedError`. The script catches that
|
|
1287
|
+
* specific error and reports `unavailable` so the widget renders a
|
|
1288
|
+
* friendly "coming soon" state instead of a generic error.
|
|
1289
|
+
*/
|
|
1290
|
+
declare function TokenOrdersListWidget({ chain, wallet, tokenAddress, tokenSymbol, limit, initialStateFilter, initialCurrency, nativeSymbol, onCancelAll, renderActions, className, }: TokenOrdersListWidgetProps): react_jsx_runtime.JSX.Element;
|
|
1291
|
+
|
|
1292
|
+
interface TokenTopTradersListProps {
|
|
1293
|
+
traders: Array<TokenHolder>;
|
|
1294
|
+
isLoading?: boolean;
|
|
1295
|
+
hasMore?: boolean;
|
|
1296
|
+
onLoadMore?: () => void;
|
|
1297
|
+
/** Only Tracked filter (client-side flag; parent owns state). */
|
|
1298
|
+
onlyTracked?: boolean;
|
|
1299
|
+
onOnlyTrackedChange?: (value: boolean) => void;
|
|
1300
|
+
now?: number;
|
|
1301
|
+
renderAddress?: (address: string) => React.ReactNode;
|
|
1302
|
+
className?: string;
|
|
1303
|
+
}
|
|
1304
|
+
/**
|
|
1305
|
+
* Presentational Top Traders list — visually parallel to
|
|
1306
|
+
* {@link TokenHoldersList} but with its own header + filters.
|
|
1307
|
+
*
|
|
1308
|
+
* The server currently returns the same row shape as holders, ranked by
|
|
1309
|
+
* realised PnL; the Realized PnL column stays blank (`—`) until the API
|
|
1310
|
+
* adds per-holder PnL fields. When that lands, extend
|
|
1311
|
+
* `TokenHolder` with the new fields and wire them into the cells here.
|
|
1312
|
+
*/
|
|
1313
|
+
declare function TokenTopTradersList({ traders, isLoading, hasMore, onLoadMore, onlyTracked, onOnlyTrackedChange, now, renderAddress, className, }: TokenTopTradersListProps): react_jsx_runtime.JSX.Element;
|
|
1314
|
+
|
|
1315
|
+
interface UseTokenTopTradersListScriptParams {
|
|
1316
|
+
chain: Chain;
|
|
1317
|
+
address: string;
|
|
1318
|
+
limit?: number;
|
|
1319
|
+
initialOnlyTracked?: boolean;
|
|
1320
|
+
}
|
|
1321
|
+
interface UseTokenTopTradersListScriptResult {
|
|
1322
|
+
traders: Array<TokenHolder>;
|
|
1323
|
+
isLoading: boolean;
|
|
1324
|
+
hasMore: boolean;
|
|
1325
|
+
loadMore: () => void;
|
|
1326
|
+
onlyTracked: boolean;
|
|
1327
|
+
setOnlyTracked: (value: boolean) => void;
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
* Script for the top-traders list widget.
|
|
1331
|
+
*
|
|
1332
|
+
* Builds on {@link useTokenTopTradersQuery} (bridge over the holders
|
|
1333
|
+
* endpoint with `sortBy=realizedPnl`). `onlyTracked` is a client-side
|
|
1334
|
+
* filter retained for UI parity with Axiom — until the server flags
|
|
1335
|
+
* tracked wallets, the toggle narrows visible rows to those whose `tags`
|
|
1336
|
+
* list is non-empty (a reasonable proxy for "tracked by someone").
|
|
1337
|
+
*/
|
|
1338
|
+
declare function useTokenTopTradersListScript({ chain, address, limit, initialOnlyTracked, }: UseTokenTopTradersListScriptParams): UseTokenTopTradersListScriptResult;
|
|
1339
|
+
|
|
1340
|
+
interface TokenTopTradersListWidgetProps {
|
|
1341
|
+
chain: Chain;
|
|
1342
|
+
address: string;
|
|
1343
|
+
limit?: number;
|
|
1344
|
+
className?: string;
|
|
1345
|
+
renderAddress?: (address: string) => React.ReactNode;
|
|
1346
|
+
}
|
|
1347
|
+
/**
|
|
1348
|
+
* Top Traders list widget.
|
|
1349
|
+
*
|
|
1350
|
+
* Bridges the holders endpoint (ranked by realized PnL) into the Axiom-style
|
|
1351
|
+
* Top Traders view; client-side `Only Tracked` toggle narrows to wallets
|
|
1352
|
+
* that carry at least one classification tag.
|
|
1353
|
+
*/
|
|
1354
|
+
declare function TokenTopTradersListWidget({ chain, address, limit, className, renderAddress, }: TokenTopTradersListWidgetProps): react_jsx_runtime.JSX.Element;
|
|
1355
|
+
|
|
1356
|
+
interface TokenDevTokensListProps {
|
|
1357
|
+
tokens: Array<Token>;
|
|
1358
|
+
isLoading?: boolean;
|
|
1359
|
+
/** Server endpoint not yet shipped — renders a coming-soon state. */
|
|
1360
|
+
unavailable?: boolean;
|
|
1361
|
+
hasMore?: boolean;
|
|
1362
|
+
onLoadMore?: () => void;
|
|
1363
|
+
/** Optional per-row link — pass to render token as a clickable element. */
|
|
1364
|
+
renderTokenLink?: (token: Token) => React.ReactNode;
|
|
1365
|
+
className?: string;
|
|
1366
|
+
}
|
|
1367
|
+
/**
|
|
1368
|
+
* Dev Tokens list — columns `Token / Migrated / Market Cap / ATH /
|
|
1369
|
+
* Liquidity / 1h Volume`. The "Migrated" column surfaces whether the
|
|
1370
|
+
* token has exited a bonding curve launchpad (renders `✓` when
|
|
1371
|
+
* `launchpad.migrated` is true).
|
|
1372
|
+
*/
|
|
1373
|
+
declare function TokenDevTokensList({ tokens, isLoading, unavailable, hasMore, onLoadMore, renderTokenLink, className, }: TokenDevTokensListProps): react_jsx_runtime.JSX.Element;
|
|
1374
|
+
/** Summary block rendered next to the Dev Tokens list on desktop. */
|
|
1375
|
+
interface TokenDevTokensSummaryProps {
|
|
1376
|
+
tokens: Array<Token>;
|
|
1377
|
+
className?: string;
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Aggregated dev summary — total tokens, migrated count (with % donut-like
|
|
1381
|
+
* progress), total 1h volume. Pure presentational; caller supplies data.
|
|
1382
|
+
*/
|
|
1383
|
+
declare function TokenDevTokensSummary({ tokens, className, }: TokenDevTokensSummaryProps): react_jsx_runtime.JSX.Element;
|
|
1384
|
+
|
|
1385
|
+
interface UseTokenDevTokensListScriptParams {
|
|
1386
|
+
chain: Chain;
|
|
1387
|
+
/** Creator wallet address. Empty → query disabled. */
|
|
1388
|
+
creator?: string;
|
|
1389
|
+
limit?: number;
|
|
1390
|
+
}
|
|
1391
|
+
interface UseTokenDevTokensListScriptResult {
|
|
1392
|
+
tokens: Array<Token>;
|
|
1393
|
+
isLoading: boolean;
|
|
1394
|
+
unavailable: boolean;
|
|
1395
|
+
hasMore: boolean;
|
|
1396
|
+
loadMore: () => void;
|
|
1397
|
+
}
|
|
1398
|
+
/**
|
|
1399
|
+
* Script for the dev-tokens list widget.
|
|
1400
|
+
*
|
|
1401
|
+
* The backend endpoint for "tokens created by wallet" has not shipped; the
|
|
1402
|
+
* client method throws `NotImplementedError`. This script detects the
|
|
1403
|
+
* unavailable state so the UI can render a coming-soon message while the
|
|
1404
|
+
* endpoint is being built.
|
|
1405
|
+
*/
|
|
1406
|
+
declare function useTokenDevTokensListScript({ chain, creator, limit, }: UseTokenDevTokensListScriptParams): UseTokenDevTokensListScriptResult;
|
|
1407
|
+
|
|
1408
|
+
interface TokenDevTokensListWidgetProps {
|
|
1409
|
+
chain: Chain;
|
|
1410
|
+
/** Creator wallet address (token's launch wallet). Empty → query disabled. */
|
|
1411
|
+
creator?: string;
|
|
1412
|
+
limit?: number;
|
|
1413
|
+
/** When true, also render the summary sub-widget beside the list. */
|
|
1414
|
+
showSummary?: boolean;
|
|
1415
|
+
renderTokenLink?: (token: Token) => React.ReactNode;
|
|
1416
|
+
className?: string;
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* Dev Tokens tab widget.
|
|
1420
|
+
*
|
|
1421
|
+
* Backend endpoint not yet shipped → surfaces a friendly "coming soon"
|
|
1422
|
+
* empty state courtesy of `NotImplementedError` detection. When the
|
|
1423
|
+
* endpoint lands, no widget changes are required.
|
|
1424
|
+
*/
|
|
1425
|
+
declare function TokenDevTokensListWidget({ chain, creator, limit, showSummary, renderTokenLink, className, }: TokenDevTokensListWidgetProps): react_jsx_runtime.JSX.Element;
|
|
1426
|
+
|
|
1427
|
+
interface TokenChartBannerProps {
|
|
1428
|
+
token?: Token;
|
|
1429
|
+
/**
|
|
1430
|
+
* Optional `ATH` market cap (USD). Not part of the current `TokenMarketData`
|
|
1431
|
+
* schema; consumers can plumb it from a separate source when available.
|
|
1432
|
+
*/
|
|
1433
|
+
athInUsd?: string;
|
|
1434
|
+
/** Optional all-time-high timestamp for the ATH tooltip. */
|
|
1435
|
+
athAt?: Date;
|
|
1436
|
+
/** Optional global-fees-paid (USD) — renders when provided, skipped otherwise. */
|
|
1437
|
+
globalFeesPaidInUsd?: string;
|
|
1438
|
+
/** Optional rank within the chain (e.g. `42`). */
|
|
1439
|
+
rank?: number;
|
|
1440
|
+
/** Handler for the pin button. Passing nothing hides the button. */
|
|
1441
|
+
onTogglePin?: () => void;
|
|
1442
|
+
/** Whether the token is currently pinned (controls the icon state). */
|
|
1443
|
+
pinned?: boolean;
|
|
1444
|
+
className?: string;
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* Compact horizontal banner mirroring Axiom's chart-top stats strip.
|
|
1448
|
+
* Presentational only — consumers (or `TokenChartBannerWidget`) provide
|
|
1449
|
+
* the data and wrap in a `CollapsibleSection` if they want Axiom's
|
|
1450
|
+
* expand/collapse affordance.
|
|
1451
|
+
*/
|
|
1452
|
+
declare function TokenChartBanner({ token, athInUsd, athAt, globalFeesPaidInUsd, rank, onTogglePin, pinned, className, }: TokenChartBannerProps): react_jsx_runtime.JSX.Element;
|
|
1453
|
+
|
|
1454
|
+
interface UseTokenChartBannerScriptParams {
|
|
1455
|
+
chain: Chain;
|
|
1456
|
+
address: string;
|
|
1457
|
+
}
|
|
1458
|
+
interface UseTokenChartBannerScriptResult {
|
|
1459
|
+
token: Token | undefined;
|
|
1460
|
+
isLoading: boolean;
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* Script for {@link TokenChartBannerWidget}. Reuses the shared
|
|
1464
|
+
* {@link useLiveToken} hook so the banner picks up WebSocket deltas
|
|
1465
|
+
* without an extra subscription registration.
|
|
1466
|
+
*/
|
|
1467
|
+
declare function useTokenChartBannerScript({ chain, address, }: UseTokenChartBannerScriptParams): UseTokenChartBannerScriptResult;
|
|
1468
|
+
|
|
1469
|
+
interface TokenChartBannerWidgetProps {
|
|
1470
|
+
chain: Chain;
|
|
1471
|
+
address: string;
|
|
1472
|
+
/** Optional ATH market cap; see the UI props for details. */
|
|
1473
|
+
athInUsd?: string;
|
|
1474
|
+
athAt?: Date;
|
|
1475
|
+
globalFeesPaidInUsd?: string;
|
|
1476
|
+
rank?: number;
|
|
1477
|
+
pinned?: boolean;
|
|
1478
|
+
onTogglePin?: () => void;
|
|
1479
|
+
className?: string;
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* Live, presentational banner mirroring Axiom's chart-top stats strip.
|
|
1483
|
+
* Wraps {@link TokenChartBanner} with {@link useTokenChartBannerScript}
|
|
1484
|
+
* so the banner stays in sync with WebSocket pushes.
|
|
1485
|
+
*/
|
|
1486
|
+
declare function TokenChartBannerWidget({ chain, address, athInUsd, athAt, globalFeesPaidInUsd, rank, pinned, onTogglePin, className, }: TokenChartBannerWidgetProps): react_jsx_runtime.JSX.Element;
|
|
1487
|
+
|
|
1488
|
+
interface TokenSimilarTokensProps {
|
|
1489
|
+
tokens: Array<Token>;
|
|
1490
|
+
isLoading?: boolean;
|
|
1491
|
+
/** When the backend doesn't yet expose similarity, renders an empty-state hint. */
|
|
1492
|
+
unavailable?: boolean;
|
|
1493
|
+
/** Optional per-row click handler (open detail page, etc.). */
|
|
1494
|
+
onTokenClick?: (token: Token) => void;
|
|
1495
|
+
className?: string;
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* Similar Tokens list — a lightweight preview list (image / symbol /
|
|
1499
|
+
* market-cap). Consumers compose this inside a `CollapsibleSection` on
|
|
1500
|
+
* the right column of the desktop token-detail page.
|
|
1501
|
+
*/
|
|
1502
|
+
declare function TokenSimilarTokens({ tokens, isLoading, unavailable, onTokenClick, className, }: TokenSimilarTokensProps): react_jsx_runtime.JSX.Element;
|
|
1503
|
+
|
|
1504
|
+
interface UseTokenSimilarTokensScriptParams {
|
|
1505
|
+
chain: Chain;
|
|
1506
|
+
address: string;
|
|
1507
|
+
/** Search keyword used to surface similar tokens. Usually the token symbol or a category. */
|
|
1508
|
+
keyword?: string;
|
|
1509
|
+
limit?: number;
|
|
1510
|
+
}
|
|
1511
|
+
interface UseTokenSimilarTokensScriptResult {
|
|
1512
|
+
tokens: Array<Token>;
|
|
1513
|
+
isLoading: boolean;
|
|
1514
|
+
unavailable: boolean;
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* Script for {@link TokenSimilarTokensWidget}.
|
|
1518
|
+
*
|
|
1519
|
+
* There is no dedicated "similar tokens" endpoint yet, so we fall back to
|
|
1520
|
+
* a keyword search on the token's symbol, filter out the current token,
|
|
1521
|
+
* and cap the result count. When no keyword is given the script reports
|
|
1522
|
+
* `unavailable: true` so the UI surfaces a coming-soon state.
|
|
1523
|
+
*/
|
|
1524
|
+
declare function useTokenSimilarTokensScript({ chain, address, keyword, limit, }: UseTokenSimilarTokensScriptParams): UseTokenSimilarTokensScriptResult;
|
|
1525
|
+
|
|
1526
|
+
interface TokenSimilarTokensWidgetProps {
|
|
1527
|
+
chain: Chain;
|
|
1528
|
+
address: string;
|
|
1529
|
+
/** Keyword used by the fallback similarity search (typically the token symbol). */
|
|
1530
|
+
keyword?: string;
|
|
1531
|
+
limit?: number;
|
|
1532
|
+
onTokenClick?: (token: Token) => void;
|
|
1533
|
+
className?: string;
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* Similar Tokens widget. Uses a keyword-search fallback until a dedicated
|
|
1537
|
+
* similarity endpoint is exposed; renders a coming-soon state otherwise.
|
|
1538
|
+
*/
|
|
1539
|
+
declare function TokenSimilarTokensWidget({ chain, address, keyword, limit, onTokenClick, className, }: TokenSimilarTokensWidgetProps): react_jsx_runtime.JSX.Element;
|
|
1540
|
+
|
|
1541
|
+
interface TokenReusedImageListProps {
|
|
1542
|
+
/**
|
|
1543
|
+
* List of tokens sharing the same image as the subject token. When
|
|
1544
|
+
* empty and {@link unavailable} is true, the component renders a
|
|
1545
|
+
* coming-soon empty state.
|
|
1546
|
+
*/
|
|
1547
|
+
tokens?: Array<Token>;
|
|
1548
|
+
/** Whether the backend endpoint is unavailable. Defaults to true for now. */
|
|
1549
|
+
unavailable?: boolean;
|
|
1550
|
+
onTokenClick?: (token: Token) => void;
|
|
1551
|
+
className?: string;
|
|
1552
|
+
}
|
|
1553
|
+
/**
|
|
1554
|
+
* Reused Image Tokens — Axiom shows other tokens that reuse the same
|
|
1555
|
+
* image as this token. The backend endpoint has not shipped; the widget
|
|
1556
|
+
* exposes the surface shape so consumers can drop it into layouts
|
|
1557
|
+
* immediately and the implementation can fill in later.
|
|
1558
|
+
*/
|
|
1559
|
+
declare function TokenReusedImageList({ tokens, unavailable, onTokenClick, className, }: TokenReusedImageListProps): react_jsx_runtime.JSX.Element;
|
|
1560
|
+
|
|
1561
|
+
interface UseTokenReusedImageListScriptParams {
|
|
1562
|
+
chain: Chain;
|
|
1563
|
+
address: string;
|
|
1564
|
+
}
|
|
1565
|
+
interface UseTokenReusedImageListScriptResult {
|
|
1566
|
+
tokens: Array<Token>;
|
|
1567
|
+
isLoading: boolean;
|
|
1568
|
+
unavailable: boolean;
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* Script for {@link TokenReusedImageListWidget}.
|
|
1572
|
+
*
|
|
1573
|
+
* The backend has no image-similarity endpoint yet, so this script
|
|
1574
|
+
* returns `unavailable: true` to surface a friendly coming-soon state.
|
|
1575
|
+
* Wire in the real implementation here once the API lands; no widget
|
|
1576
|
+
* changes will be required.
|
|
1577
|
+
*/
|
|
1578
|
+
declare function useTokenReusedImageListScript(_params: UseTokenReusedImageListScriptParams): UseTokenReusedImageListScriptResult;
|
|
1579
|
+
|
|
1580
|
+
interface TokenReusedImageListWidgetProps {
|
|
1581
|
+
chain: Chain;
|
|
1582
|
+
address: string;
|
|
1583
|
+
onTokenClick?: (token: Token) => void;
|
|
1584
|
+
className?: string;
|
|
1585
|
+
}
|
|
1586
|
+
/**
|
|
1587
|
+
* Reused Image Tokens widget. Currently renders a coming-soon state; the
|
|
1588
|
+
* surface is in place so the consuming shell can compose it unchanged
|
|
1589
|
+
* once the backend endpoint ships.
|
|
1590
|
+
*/
|
|
1591
|
+
declare function TokenReusedImageListWidget({ chain, address, onTokenClick, className, }: TokenReusedImageListWidgetProps): react_jsx_runtime.JSX.Element;
|
|
1592
|
+
|
|
986
1593
|
type TokenListResolution = "1m" | "5m" | "1h" | "4h" | "24h";
|
|
987
1594
|
interface TokenListResolutionSelectorProps {
|
|
988
1595
|
/** current resolution */
|
|
@@ -1217,4 +1824,4 @@ declare function useTokens({ chain, addresses, pollMs, }: UseTokensParams): {
|
|
|
1217
1824
|
refetch: () => Promise<void>;
|
|
1218
1825
|
};
|
|
1219
1826
|
|
|
1220
|
-
export { type CexListingEntry, HolderTagBadge, HolderTagBadgeList, type HolderTagBadgeListProps, type HolderTagBadgeProps, NewTokenListWidget, type NewTokenListWidgetProps, type OverviewResolution, PulseFinalStretchListWidget, type PulseFinalStretchListWidgetProps, PulseList, PulseListHeader, type PulseListHeaderProps, PulseListItem, type PulseListItemActionComponent, type PulseListItemActionProps, type PulseListItemProps, PulseListItemSkeleton, type PulseListItemSkeletonProps, type PulseListProps, type PulseListType, PulseMigratedListWidget, type PulseMigratedListWidgetProps, PulseNewListWidget, type PulseNewListWidgetProps, SEARCH_MODAL_ID, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchModal, type SearchModalParams, type SearchModalResult, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListHeader, type SearchResultListHeaderProps, SearchResultListSkeleton, type SearchResultListSkeletonProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchTokensButton, type SearchTokensButtonProps, SearchWidget, type SearchWidgetProps, StockTokenListWidget, type StockTokenListWidgetProps, TRADER_TAG_META, TokenAbout, type TokenAboutProps, TokenAboutWidget, type TokenAboutWidgetProps, TokenActivitiesList, type TokenActivitiesListProps, type TokenActivitiesListSortBy, TokenActivitiesListWidget, type TokenActivitiesListWidgetProps, TokenAvatar, type TokenAvatarProps, TokenBasicInfo, type TokenBasicInfoProps, TokenBasicInfoWidget, type TokenBasicInfoWidgetProps, TokenCategories, type TokenCategoriesProps, TokenCategoriesWidget, type TokenCategoriesWidgetProps, TokenCexListing, type TokenCexListingProps, TokenCexListingWidget, type TokenCexListingWidgetProps, TokenDetailHeader, type TokenDetailHeaderProps, TokenDetailHeaderWidget, type TokenDetailHeaderWidgetProps, TokenHoldersCount, type TokenHoldersCountProps, TokenHoldersCountWidget, type TokenHoldersCountWidgetProps, TokenHoldersList, type TokenHoldersListProps, type TokenHoldersListSortBy, TokenHoldersListWidget, type TokenHoldersListWidgetProps, TokenLiquidities, type TokenLiquiditiesProps, TokenLiquiditiesWidget, type TokenLiquiditiesWidgetProps, TokenList, type TokenListActionsComponent, type TokenListActionsProps, TokenListFilter, TokenListFilterModal, type TokenListFilterModalProps, TokenListFilterPopover, type TokenListFilterPopoverProps, type TokenListFilterProps, TokenListFilterWidget, type TokenListFilterWidgetProps, type TokenListFiltersType, type TokenListProps, type TokenListResolution, TokenListResolutionSelectorDesktop, TokenListResolutionSelectorMobile, type TokenListResolutionSelectorProps, TokenListResolutionSelectorWidget, type TokenListSortDirections, TokenMarketCap, type TokenMarketCapProps, TokenMarketCapWidget, type TokenMarketCapWidgetProps, TokenPrice, type TokenPriceProps, TokenPriceWidget, type TokenPriceWidgetProps, TokenSecurity, type TokenSecurityProps, TokenSecurityWidget, type TokenSecurityWidgetProps, TokenSocialMedia, type TokenSocialMediaProps, TokenSocialMediaWidget, type TokenSocialMediaWidgetProps, TokenTradersOverview, type TokenTradersOverviewProps, TokenTradersOverviewWidget, type TokenTradersOverviewWidgetProps, TokenTransactionsOverview, type TokenTransactionsOverviewProps, TokenTransactionsOverviewWidget, type TokenTransactionsOverviewWidgetProps, TokenVolume, type TokenVolumeProps, TokenVolumeWidget, type TokenVolumeWidgetProps, TokenVolumesOverview, type TokenVolumesOverviewProps, TokenVolumesOverviewWidget, type TokenVolumesOverviewWidgetProps, TraderTagBadge, TraderTagBadgeList, type TraderTagBadgeListProps, type TraderTagBadgeProps, TrendingTokenListWidget, type TrendingTokenListWidgetProps, type UseNewTokensScriptParams, type UseNewTokensScriptResult, type UsePulseFinalStretchListScriptParams, type UsePulseFinalStretchListScriptResult, type UsePulseMigratedListScriptParams, type UsePulseMigratedListScriptResult, type UsePulseNewListScriptParams, type UsePulseNewListScriptResult, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseStockTokensScriptParams, type UseStockTokensScriptResult, type UseTokenActivitiesListScriptParams, type UseTokenActivitiesListScriptResult, type UseTokenHoldersListScriptParams, type UseTokenHoldersListScriptResult, type UseTokensParams, type UseTrendingTokensScriptParams, type UseTrendingTokensScriptResult, useNewTokensScript, usePulseFinalStretchListScript, usePulseMigratedListScript, usePulseNewListScript, useSearchHistory, useSearchResultListScript, useSearchScript, useStockTokensScript, useTokenAboutScript, useTokenActivitiesListScript, useTokenBasicInfoScript, useTokenCategoriesScript, useTokenCexListingScript, useTokenDetailHeaderScript, useTokenHoldersCountScript, useTokenHoldersListScript, useTokenLiquiditiesScript, useTokenMarketCapScript, useTokenPriceScript, useTokenSecurityScript, useTokenSocialMediaScript, useTokenTradersOverviewScript, useTokenTransactionsOverviewScript, useTokenVolumeScript, useTokenVolumesOverviewScript, useTokens, useTrendingTokensScript, _default as version };
|
|
1827
|
+
export { type CexListingEntry, DEFAULT_FLIP_HOVER_RESOLUTIONS, HolderTagBadge, HolderTagBadgeList, type HolderTagBadgeListProps, type HolderTagBadgeProps, NewTokenListWidget, type NewTokenListWidgetProps, type OverviewResolution, PulseFinalStretchListWidget, type PulseFinalStretchListWidgetProps, PulseList, PulseListHeader, type PulseListHeaderProps, PulseListItem, type PulseListItemActionComponent, type PulseListItemActionProps, type PulseListItemProps, PulseListItemSkeleton, type PulseListItemSkeletonProps, type PulseListProps, type PulseListType, PulseMigratedListWidget, type PulseMigratedListWidgetProps, PulseNewListWidget, type PulseNewListWidgetProps, SEARCH_MODAL_ID, SearchHistoryUI, type SearchHistoryUIProps, SearchHistoryWidget, type SearchHistoryWidgetProps, SearchInputUI, type SearchInputUIProps, SearchModal, type SearchModalParams, type SearchModalResult, SearchResultItemUI, type SearchResultItemUIProps, SearchResultListHeader, type SearchResultListHeaderProps, SearchResultListSkeleton, type SearchResultListSkeletonProps, SearchResultListWidget, type SearchResultListWidgetProps, SearchTokensButton, type SearchTokensButtonProps, SearchWidget, type SearchWidgetProps, StockTokenListWidget, type StockTokenListWidgetProps, TRADER_TAG_META, TokenAbout, type TokenAboutProps, TokenAboutWidget, type TokenAboutWidgetProps, TokenActivitiesList, type TokenActivitiesListCurrency, type TokenActivitiesListProps, type TokenActivitiesListSortBy, type TokenActivitiesListTraderFilter, TokenActivitiesListWidget, type TokenActivitiesListWidgetProps, TokenAvatar, type TokenAvatarProps, TokenBasicInfo, type TokenBasicInfoProps, TokenBasicInfoWidget, type TokenBasicInfoWidgetProps, TokenCategories, type TokenCategoriesProps, TokenCategoriesWidget, type TokenCategoriesWidgetProps, TokenCexListing, type TokenCexListingProps, TokenCexListingWidget, type TokenCexListingWidgetProps, TokenChartBanner, type TokenChartBannerProps, TokenChartBannerWidget, type TokenChartBannerWidgetProps, TokenDetailHeader, type TokenDetailHeaderProps, TokenDetailHeaderWidget, type TokenDetailHeaderWidgetProps, TokenDevTokensList, type TokenDevTokensListProps, TokenDevTokensListWidget, type TokenDevTokensListWidgetProps, TokenDevTokensSummary, type TokenDevTokensSummaryProps, TokenHoldersCount, type TokenHoldersCountProps, TokenHoldersCountWidget, type TokenHoldersCountWidgetProps, TokenHoldersList, type TokenHoldersListProps, type TokenHoldersListSortBy, TokenHoldersListWidget, type TokenHoldersListWidgetProps, TokenLiquidities, type TokenLiquiditiesProps, TokenLiquiditiesWidget, type TokenLiquiditiesWidgetProps, TokenList, type TokenListActionsComponent, type TokenListActionsProps, TokenListFilter, TokenListFilterModal, type TokenListFilterModalProps, TokenListFilterPopover, type TokenListFilterPopoverProps, type TokenListFilterProps, TokenListFilterWidget, type TokenListFilterWidgetProps, type TokenListFiltersType, type TokenListProps, type TokenListResolution, TokenListResolutionSelectorDesktop, TokenListResolutionSelectorMobile, type TokenListResolutionSelectorProps, TokenListResolutionSelectorWidget, type TokenListSortDirections, TokenMarketCap, type TokenMarketCapProps, TokenMarketCapWidget, type TokenMarketCapWidgetProps, TokenOrdersList, type TokenOrdersListCurrency, type TokenOrdersListProps, type TokenOrdersListState, type TokenOrdersListStateFilter, TokenOrdersListWidget, type TokenOrdersListWidgetProps, TokenPositionsList, type TokenPositionsListCurrency, type TokenPositionsListProps, TokenPositionsListWidget, type TokenPositionsListWidgetProps, TokenPrice, type TokenPriceProps, TokenPriceWidget, type TokenPriceWidgetProps, TokenReusedImageList, type TokenReusedImageListProps, TokenReusedImageListWidget, type TokenReusedImageListWidgetProps, TokenSecurity, type TokenSecurityProps, TokenSecurityWidget, type TokenSecurityWidgetProps, TokenSimilarTokens, type TokenSimilarTokensProps, TokenSimilarTokensWidget, type TokenSimilarTokensWidgetProps, TokenSocialMedia, type TokenSocialMediaProps, TokenSocialMediaWidget, type TokenSocialMediaWidgetProps, TokenStatsFlipBase, type TokenStatsFlipBaseProps, type TokenStatsFlipBaseResolution, TokenStatsFlipHover, type TokenStatsFlipHoverProps, type TokenStatsFlipHoverResolution, type TokenStatsFlipProps, TokenStatsFlipWidget, type TokenStatsFlipWidgetProps, TokenTopTradersList, type TokenTopTradersListProps, TokenTopTradersListWidget, type TokenTopTradersListWidgetProps, TokenTradersOverview, type TokenTradersOverviewProps, TokenTradersOverviewWidget, type TokenTradersOverviewWidgetProps, TokenTransactionsOverview, type TokenTransactionsOverviewProps, TokenTransactionsOverviewWidget, type TokenTransactionsOverviewWidgetProps, TokenVolume, type TokenVolumeProps, TokenVolumeWidget, type TokenVolumeWidgetProps, TokenVolumesOverview, type TokenVolumesOverviewProps, TokenVolumesOverviewWidget, type TokenVolumesOverviewWidgetProps, TraderTagBadge, TraderTagBadgeList, type TraderTagBadgeListProps, type TraderTagBadgeProps, TrendingTokenListWidget, type TrendingTokenListWidgetProps, type UseNewTokensScriptParams, type UseNewTokensScriptResult, type UsePulseFinalStretchListScriptParams, type UsePulseFinalStretchListScriptResult, type UsePulseMigratedListScriptParams, type UsePulseMigratedListScriptResult, type UsePulseNewListScriptParams, type UsePulseNewListScriptResult, type UseSearchResultListScriptParams, type UseSearchScriptParams, type UseStockTokensScriptParams, type UseStockTokensScriptResult, type UseTokenActivitiesListScriptParams, type UseTokenActivitiesListScriptResult, type UseTokenChartBannerScriptParams, type UseTokenChartBannerScriptResult, type UseTokenDevTokensListScriptParams, type UseTokenDevTokensListScriptResult, type UseTokenHoldersListScriptParams, type UseTokenHoldersListScriptResult, type UseTokenOrdersListScriptParams, type UseTokenOrdersListScriptResult, type UseTokenPositionsListScriptParams, type UseTokenPositionsListScriptResult, type UseTokenReusedImageListScriptParams, type UseTokenReusedImageListScriptResult, type UseTokenSimilarTokensScriptParams, type UseTokenSimilarTokensScriptResult, type UseTokenStatsFlipScriptParams, type UseTokenTopTradersListScriptParams, type UseTokenTopTradersListScriptResult, type UseTokensParams, type UseTrendingTokensScriptParams, type UseTrendingTokensScriptResult, useNewTokensScript, usePulseFinalStretchListScript, usePulseMigratedListScript, usePulseNewListScript, useSearchHistory, useSearchResultListScript, useSearchScript, useStockTokensScript, useTokenAboutScript, useTokenActivitiesListScript, useTokenBasicInfoScript, useTokenCategoriesScript, useTokenCexListingScript, useTokenChartBannerScript, useTokenDetailHeaderScript, useTokenDevTokensListScript, useTokenHoldersCountScript, useTokenHoldersListScript, useTokenLiquiditiesScript, useTokenMarketCapScript, useTokenOrdersListScript, useTokenPositionsListScript, useTokenPriceScript, useTokenReusedImageListScript, useTokenSecurityScript, useTokenSimilarTokensScript, useTokenSocialMediaScript, useTokenStatsFlipScript, useTokenTopTradersListScript, useTokenTradersOverviewScript, useTokenTransactionsOverviewScript, useTokenVolumeScript, useTokenVolumesOverviewScript, useTokens, useTrendingTokensScript, _default as version };
|