@kodiak-finance/orderly-trading-leaderboard 2.8.3 → 2.8.5
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 +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +26 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -168,7 +168,7 @@ type TradingListWidgetProps = Pick<TradingListProps, "style" | "className">;
|
|
|
168
168
|
*/
|
|
169
169
|
declare const TradingListWidget: FC<TradingListWidgetProps>;
|
|
170
170
|
|
|
171
|
-
type RankingColumnFields = "rank" | "address" | "volume" | "pnl" | "rewards";
|
|
171
|
+
type RankingColumnFields = "rank" | "address" | "volume" | "pnl" | "points" | "rewards";
|
|
172
172
|
|
|
173
173
|
type ListStyle = "disc" | "decimal" | "none" | "circle" | "square" | "decimal-leading-zero" | "lower-alpha" | "upper-alpha" | "lower-roman" | "upper-roman";
|
|
174
174
|
type DescriptionItem = {
|
|
@@ -402,7 +402,8 @@ type DateRange = {
|
|
|
402
402
|
};
|
|
403
403
|
declare enum LeaderboardTab {
|
|
404
404
|
Volume = "volume",
|
|
405
|
-
Pnl = "pnl"
|
|
405
|
+
Pnl = "pnl",
|
|
406
|
+
Points = "points"
|
|
406
407
|
}
|
|
407
408
|
|
|
408
409
|
type GeneralRankingData = {
|
|
@@ -419,12 +420,14 @@ type GeneralRankingData = {
|
|
|
419
420
|
rank?: number | string;
|
|
420
421
|
volume?: number;
|
|
421
422
|
pnl?: number;
|
|
423
|
+
points?: number;
|
|
422
424
|
};
|
|
423
425
|
type GeneralRankingScriptReturn = ReturnType<typeof useGeneralRankingScript>;
|
|
424
426
|
type GeneralRankingScriptOptions = {
|
|
425
427
|
dateRange?: DateRange | null;
|
|
426
428
|
address?: string;
|
|
427
429
|
sortKey?: "perp_volume" | "realized_pnl";
|
|
430
|
+
pointsEndpoint?: string;
|
|
428
431
|
};
|
|
429
432
|
declare function useGeneralRankingScript(options?: GeneralRankingScriptOptions): {
|
|
430
433
|
pagination: _kodiak_finance_orderly_ui.PaginationMeta;
|
|
@@ -432,6 +435,7 @@ declare function useGeneralRankingScript(options?: GeneralRankingScriptOptions):
|
|
|
432
435
|
onSort: (sort?: TableSort) => void;
|
|
433
436
|
dataSource: any[];
|
|
434
437
|
isLoading: boolean;
|
|
438
|
+
isPointsLoading: boolean;
|
|
435
439
|
isMobile: boolean;
|
|
436
440
|
sentinelRef: react.MutableRefObject<HTMLDivElement | null>;
|
|
437
441
|
dataList: any[];
|
|
@@ -443,6 +447,7 @@ type RankingProps = {
|
|
|
443
447
|
style?: React.CSSProperties;
|
|
444
448
|
className?: string;
|
|
445
449
|
fields: RankingColumnFields[];
|
|
450
|
+
isPointsLoading?: boolean;
|
|
446
451
|
} & Omit<GeneralRankingScriptReturn, "dataList" | "dataSource"> & {
|
|
447
452
|
dataList: RankingData[];
|
|
448
453
|
dataSource: RankingData[];
|
|
@@ -497,10 +502,11 @@ type GeneralLeaderboardProps = {
|
|
|
497
502
|
start_time: Date | string;
|
|
498
503
|
end_time: Date | string;
|
|
499
504
|
};
|
|
505
|
+
pointsEndpoint?: string;
|
|
500
506
|
} & GeneralLeaderboardScriptReturn;
|
|
501
507
|
declare const GeneralLeaderboard: FC<GeneralLeaderboardProps>;
|
|
502
508
|
|
|
503
|
-
type GeneralLeaderboardWidgetProps = Pick<GeneralLeaderboardProps, "style" | "className" | "campaignDateRange">;
|
|
509
|
+
type GeneralLeaderboardWidgetProps = Pick<GeneralLeaderboardProps, "style" | "className" | "campaignDateRange" | "pointsEndpoint">;
|
|
504
510
|
declare const GeneralLeaderboardWidget: FC<GeneralLeaderboardWidgetProps>;
|
|
505
511
|
|
|
506
512
|
type CampaignLeaderboardScriptReturn = ReturnType<typeof useCampaignLeaderboardScript>;
|
package/dist/index.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ type TradingListWidgetProps = Pick<TradingListProps, "style" | "className">;
|
|
|
168
168
|
*/
|
|
169
169
|
declare const TradingListWidget: FC<TradingListWidgetProps>;
|
|
170
170
|
|
|
171
|
-
type RankingColumnFields = "rank" | "address" | "volume" | "pnl" | "rewards";
|
|
171
|
+
type RankingColumnFields = "rank" | "address" | "volume" | "pnl" | "points" | "rewards";
|
|
172
172
|
|
|
173
173
|
type ListStyle = "disc" | "decimal" | "none" | "circle" | "square" | "decimal-leading-zero" | "lower-alpha" | "upper-alpha" | "lower-roman" | "upper-roman";
|
|
174
174
|
type DescriptionItem = {
|
|
@@ -402,7 +402,8 @@ type DateRange = {
|
|
|
402
402
|
};
|
|
403
403
|
declare enum LeaderboardTab {
|
|
404
404
|
Volume = "volume",
|
|
405
|
-
Pnl = "pnl"
|
|
405
|
+
Pnl = "pnl",
|
|
406
|
+
Points = "points"
|
|
406
407
|
}
|
|
407
408
|
|
|
408
409
|
type GeneralRankingData = {
|
|
@@ -419,12 +420,14 @@ type GeneralRankingData = {
|
|
|
419
420
|
rank?: number | string;
|
|
420
421
|
volume?: number;
|
|
421
422
|
pnl?: number;
|
|
423
|
+
points?: number;
|
|
422
424
|
};
|
|
423
425
|
type GeneralRankingScriptReturn = ReturnType<typeof useGeneralRankingScript>;
|
|
424
426
|
type GeneralRankingScriptOptions = {
|
|
425
427
|
dateRange?: DateRange | null;
|
|
426
428
|
address?: string;
|
|
427
429
|
sortKey?: "perp_volume" | "realized_pnl";
|
|
430
|
+
pointsEndpoint?: string;
|
|
428
431
|
};
|
|
429
432
|
declare function useGeneralRankingScript(options?: GeneralRankingScriptOptions): {
|
|
430
433
|
pagination: _kodiak_finance_orderly_ui.PaginationMeta;
|
|
@@ -432,6 +435,7 @@ declare function useGeneralRankingScript(options?: GeneralRankingScriptOptions):
|
|
|
432
435
|
onSort: (sort?: TableSort) => void;
|
|
433
436
|
dataSource: any[];
|
|
434
437
|
isLoading: boolean;
|
|
438
|
+
isPointsLoading: boolean;
|
|
435
439
|
isMobile: boolean;
|
|
436
440
|
sentinelRef: react.MutableRefObject<HTMLDivElement | null>;
|
|
437
441
|
dataList: any[];
|
|
@@ -443,6 +447,7 @@ type RankingProps = {
|
|
|
443
447
|
style?: React.CSSProperties;
|
|
444
448
|
className?: string;
|
|
445
449
|
fields: RankingColumnFields[];
|
|
450
|
+
isPointsLoading?: boolean;
|
|
446
451
|
} & Omit<GeneralRankingScriptReturn, "dataList" | "dataSource"> & {
|
|
447
452
|
dataList: RankingData[];
|
|
448
453
|
dataSource: RankingData[];
|
|
@@ -497,10 +502,11 @@ type GeneralLeaderboardProps = {
|
|
|
497
502
|
start_time: Date | string;
|
|
498
503
|
end_time: Date | string;
|
|
499
504
|
};
|
|
505
|
+
pointsEndpoint?: string;
|
|
500
506
|
} & GeneralLeaderboardScriptReturn;
|
|
501
507
|
declare const GeneralLeaderboard: FC<GeneralLeaderboardProps>;
|
|
502
508
|
|
|
503
|
-
type GeneralLeaderboardWidgetProps = Pick<GeneralLeaderboardProps, "style" | "className" | "campaignDateRange">;
|
|
509
|
+
type GeneralLeaderboardWidgetProps = Pick<GeneralLeaderboardProps, "style" | "className" | "campaignDateRange" | "pointsEndpoint">;
|
|
504
510
|
declare const GeneralLeaderboardWidget: FC<GeneralLeaderboardWidgetProps>;
|
|
505
511
|
|
|
506
512
|
type CampaignLeaderboardScriptReturn = ReturnType<typeof useCampaignLeaderboardScript>;
|