@kodiak-finance/orderly-portfolio 2.8.15-rc.0 → 2.8.16-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kodiak-finance/orderly-portfolio",
3
- "version": "2.8.15-rc.0",
3
+ "version": "2.8.16-rc.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -17,22 +17,22 @@
17
17
  "ramda": "^0.29.0",
18
18
  "date-fns": "^3.6.0",
19
19
  "lodash": "^4.17.21",
20
- "@kodiak-finance/orderly-hooks": "2.8.15-rc.0",
21
- "@kodiak-finance/orderly-chart": "2.8.15-rc.0",
22
- "@kodiak-finance/orderly-i18n": "2.8.15-rc.0",
23
- "@kodiak-finance/orderly-types": "2.8.15-rc.0",
24
- "@kodiak-finance/orderly-react-app": "2.8.15-rc.0",
25
- "@kodiak-finance/orderly-perp": "4.8.15-rc.0",
26
- "@kodiak-finance/orderly-ui": "2.8.15-rc.0",
27
- "@kodiak-finance/orderly-ui-leverage": "2.8.15-rc.0",
28
- "@kodiak-finance/orderly-ui-connector": "2.8.15-rc.0",
29
- "@kodiak-finance/orderly-ui-orders": "2.8.15-rc.0",
30
- "@kodiak-finance/orderly-ui-positions": "2.8.15-rc.0",
31
- "@kodiak-finance/orderly-ui-scaffold": "2.8.15-rc.0",
32
- "@kodiak-finance/orderly-ui-transfer": "2.8.15-rc.0",
33
- "@kodiak-finance/orderly-ui-share": "2.8.15-rc.0",
34
- "@kodiak-finance/orderly-utils": "2.8.15-rc.0",
35
- "@kodiak-finance/orderly-ui-chain-selector": "2.8.15-rc.0"
20
+ "@kodiak-finance/orderly-chart": "2.8.16-rc.0",
21
+ "@kodiak-finance/orderly-i18n": "2.8.16-rc.0",
22
+ "@kodiak-finance/orderly-hooks": "2.8.16-rc.0",
23
+ "@kodiak-finance/orderly-perp": "4.8.16-rc.0",
24
+ "@kodiak-finance/orderly-react-app": "2.8.16-rc.0",
25
+ "@kodiak-finance/orderly-types": "2.8.16-rc.0",
26
+ "@kodiak-finance/orderly-ui": "2.8.16-rc.0",
27
+ "@kodiak-finance/orderly-ui-connector": "2.8.16-rc.0",
28
+ "@kodiak-finance/orderly-ui-orders": "2.8.16-rc.0",
29
+ "@kodiak-finance/orderly-ui-leverage": "2.8.16-rc.0",
30
+ "@kodiak-finance/orderly-ui-share": "2.8.16-rc.0",
31
+ "@kodiak-finance/orderly-ui-positions": "2.8.16-rc.0",
32
+ "@kodiak-finance/orderly-utils": "2.8.16-rc.0",
33
+ "@kodiak-finance/orderly-ui-scaffold": "2.8.16-rc.0",
34
+ "@kodiak-finance/orderly-ui-chain-selector": "2.8.16-rc.0",
35
+ "@kodiak-finance/orderly-ui-transfer": "2.8.16-rc.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/ramda": "^0.29.3",
@@ -44,7 +44,7 @@
44
44
  "tailwindcss": "^3.4.4",
45
45
  "tsup": "^7.1.0",
46
46
  "typescript": "^5.1.6",
47
- "tsconfig": "0.11.14-rc.0"
47
+ "tsconfig": "0.11.15-rc.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": ">=18",
package/dist/index.d.mts DELETED
@@ -1,543 +0,0 @@
1
- import React$1, { FC, PropsWithChildren } from 'react';
2
- import { ScaffoldProps, SideBarProps, SideMenuItem } from '@kodiak-finance/orderly-ui-scaffold';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import * as _kodiak_finance_orderly_types from '@kodiak-finance/orderly-types';
5
- import { API, AssetHistorySideEnum } from '@kodiak-finance/orderly-types';
6
- import * as _kodiak_finance_orderly_hooks from '@kodiak-finance/orderly-hooks';
7
- import { TWType, useAccount } from '@kodiak-finance/orderly-hooks';
8
- import * as _kodiak_finance_orderly_ui from '@kodiak-finance/orderly-ui';
9
- import { Column, TanstackColumn } from '@kodiak-finance/orderly-ui';
10
- import { PositionsProps } from '@kodiak-finance/orderly-ui-positions';
11
- import { SharePnLConfig } from '@kodiak-finance/orderly-ui-share';
12
- import { Decimal } from '@kodiak-finance/orderly-utils';
13
-
14
- type PortfolioLayoutProps = ScaffoldProps & {
15
- hideSideBar?: boolean;
16
- items?: SideBarProps["items"];
17
- };
18
- declare const PortfolioLayout: FC<PropsWithChildren<PortfolioLayoutProps>>;
19
-
20
- type PortfolioLayoutWidgetProps = PortfolioLayoutProps;
21
- declare const PortfolioLayoutWidget: FC<PropsWithChildren<PortfolioLayoutWidgetProps>>;
22
-
23
- declare enum PortfolioLeftSidebarPath {
24
- Overview = "/portfolio",
25
- Positions = "/portfolio/positions",
26
- Orders = "/portfolio/orders",
27
- Assets = "/portfolio/assets",
28
- FeeTier = "/portfolio/feeTier",
29
- ApiKey = "/portfolio/apiKey",
30
- Setting = "/portfolio/setting",
31
- History = "/portfolio/history"
32
- }
33
- type UseLayoutBuilderOptions = {
34
- current?: string;
35
- };
36
- declare const usePortfolioLayoutScript: (props: UseLayoutBuilderOptions) => {
37
- items: ({
38
- name: string;
39
- href: PortfolioLeftSidebarPath;
40
- icon: react_jsx_runtime.JSX.Element;
41
- hide?: undefined;
42
- } | {
43
- name: string;
44
- href: PortfolioLeftSidebarPath;
45
- hide: boolean;
46
- icon?: undefined;
47
- })[];
48
- current: string;
49
- hideSideBar: boolean;
50
- onItemSelect: (item: SideMenuItem) => void;
51
- };
52
-
53
- declare const useAssetScript: () => {
54
- readonly canTrade: boolean;
55
- readonly connect: (options?: any) => Promise<_kodiak_finance_orderly_hooks.WalletState[]>;
56
- readonly portfolioValue: number | null;
57
- readonly freeCollateral: number;
58
- readonly unrealPnL: number;
59
- readonly unrealROI: number;
60
- readonly currentLeverage: number;
61
- readonly onLeverageEdit: () => void;
62
- readonly visible: any;
63
- readonly wrongNetwork: boolean;
64
- readonly toggleVisible: () => void;
65
- readonly onDeposit: () => void;
66
- readonly onWithdraw: () => void;
67
- readonly onTransfer: () => void;
68
- readonly namespace: _kodiak_finance_orderly_types.ChainNamespace | null;
69
- readonly isMainAccount: boolean;
70
- readonly hasSubAccount: boolean;
71
- };
72
- type AssetScriptReturn = ReturnType<typeof useAssetScript>;
73
-
74
- declare const AssetsUI: React$1.FC<AssetScriptReturn & {
75
- onConnectWallet?: () => void;
76
- }>;
77
-
78
- declare const AssetWidget: React$1.FC;
79
-
80
- declare const HistoryDataGroupWidget: React.FC;
81
-
82
- declare const AssetsChartWidget: React$1.FC;
83
-
84
- declare enum PeriodType {
85
- DAY = "1D",
86
- WEEK = "7D",
87
- MONTH = "30D",
88
- QUARTER = "90D"
89
- }
90
- declare const useAssetsHistoryData: (localKey: string, options?: {
91
- isRealtime?: boolean;
92
- }) => {
93
- readonly periodTypes: PeriodType[];
94
- readonly period: PeriodType;
95
- readonly onPeriodChange: (value: PeriodType) => void;
96
- readonly periodLabel: Record<PeriodType, string>;
97
- readonly curPeriod: string;
98
- readonly data: API.DailyRow[];
99
- readonly aggregateValue: {
100
- vol: number;
101
- pnl: number;
102
- roi: number;
103
- };
104
- readonly createFakeData: (start: Partial<API.DailyRow>, end: Partial<API.DailyRow>) => {
105
- account_value?: number | undefined;
106
- broker_id?: string | undefined;
107
- date: string;
108
- perp_volume?: number | undefined;
109
- pnl?: number | undefined;
110
- snapshot_time?: number | undefined;
111
- }[];
112
- readonly volumeUpdateDate: any;
113
- readonly filterItems: any;
114
- readonly onFilter: (filter: {
115
- name: string;
116
- value: any;
117
- }) => void;
118
- readonly dateRange: {
119
- from: Date;
120
- to: Date;
121
- };
122
- readonly setDateRange: (newRange: {
123
- from: Date | string;
124
- to: Date | string;
125
- }) => void;
126
- };
127
- type useAssetsHistoryDataReturn = ReturnType<typeof useAssetsHistoryData>;
128
-
129
- declare const useAssetsChartScript: () => {
130
- readonly data: {
131
- account_value?: number | undefined;
132
- broker_id?: string | undefined;
133
- date: string;
134
- perp_volume?: number | undefined;
135
- pnl?: number | undefined;
136
- snapshot_time?: number | undefined;
137
- }[];
138
- readonly invisible: boolean;
139
- readonly type?: _kodiak_finance_orderly_hooks.TWType;
140
- readonly periodTypes: PeriodType[];
141
- readonly period: PeriodType;
142
- readonly onPeriodChange: (value: PeriodType) => void;
143
- readonly periodLabel: Record<PeriodType, string>;
144
- readonly curPeriod: string;
145
- readonly aggregateValue: {
146
- vol: number;
147
- pnl: number;
148
- roi: number;
149
- };
150
- readonly createFakeData: (start: Partial<_kodiak_finance_orderly_types.API.DailyRow>, end: Partial<_kodiak_finance_orderly_types.API.DailyRow>) => {
151
- account_value?: number | undefined;
152
- broker_id?: string | undefined;
153
- date: string;
154
- perp_volume?: number | undefined;
155
- pnl?: number | undefined;
156
- snapshot_time?: number | undefined;
157
- }[];
158
- readonly volumeUpdateDate: any;
159
- readonly filterItems: any;
160
- readonly onFilter: (filter: {
161
- name: string;
162
- value: any;
163
- }) => void;
164
- readonly dateRange: {
165
- from: Date;
166
- to: Date;
167
- };
168
- readonly setDateRange: (newRange: {
169
- from: Date | string;
170
- to: Date | string;
171
- }) => void;
172
- readonly totalOrderClaimedReward: [number | undefined, {
173
- refresh: () => void;
174
- }];
175
- readonly curEpochEstimate: _kodiak_finance_orderly_hooks.CurrentEpochEstimate | undefined;
176
- readonly epochList: _kodiak_finance_orderly_hooks.EpochInfoType;
177
- readonly brokerName: string | undefined;
178
- readonly referralInfo: _kodiak_finance_orderly_hooks.RefferalAPI.ReferralInfo | undefined;
179
- };
180
- type useAssetsChartScriptReturn = ReturnType<typeof useAssetsChartScript>;
181
-
182
- type AssetsLineChartProps = {} & useAssetsChartScriptReturn;
183
- declare const AssetsChart: React$1.FC<AssetsLineChartProps>;
184
-
185
- type Options = {
186
- chainsInfo: any[];
187
- isDeposit: boolean;
188
- isWeb3Wallet: boolean;
189
- };
190
- declare const useAssetHistoryColumns: (options: Options) => Column[];
191
-
192
- declare enum AssetTarget {
193
- Web3Wallet = "Web3Wallet",
194
- AccountId = "AccountId"
195
- }
196
- type AssetHistoryScriptOptions = {
197
- side: AssetHistorySideEnum;
198
- };
199
- type AssetHistoryScriptReturn = ReturnType<typeof useAssetHistoryScript>;
200
- declare const useAssetHistoryScript: (options: AssetHistoryScriptOptions) => {
201
- dataSource: any[];
202
- total: number | undefined;
203
- isLoading: boolean;
204
- queryParameter: {
205
- target: AssetTarget;
206
- dateRange: Date[];
207
- };
208
- onFilter: (filter: {
209
- name: string;
210
- value: any;
211
- }) => void;
212
- pagination: _kodiak_finance_orderly_ui.PaginationMeta;
213
- onDeposit: () => void;
214
- chainsInfo: any[];
215
- isDeposit: boolean;
216
- isWeb3Wallet: boolean;
217
- };
218
-
219
- type AssetHistoryProps = AssetHistoryScriptReturn;
220
- declare const AssetHistory: FC<AssetHistoryProps>;
221
-
222
- type AssetHistoryWidgetProps = {
223
- side: AssetHistorySideEnum;
224
- };
225
- declare const AssetHistoryWidget: React$1.FC<AssetHistoryWidgetProps>;
226
-
227
- declare const usePerformanceScript: () => {
228
- data: ReadonlyArray<any>;
229
- invisible: boolean;
230
- visible: boolean;
231
- setVisible: (value: boolean) => void;
232
- type?: _kodiak_finance_orderly_hooks.TWType;
233
- periodTypes: PeriodType[];
234
- period: PeriodType;
235
- onPeriodChange: (value: PeriodType) => void;
236
- periodLabel: Record<PeriodType, string>;
237
- curPeriod: string;
238
- aggregateValue: {
239
- vol: number;
240
- pnl: number;
241
- roi: number;
242
- };
243
- createFakeData: (start: Partial<_kodiak_finance_orderly_types.API.DailyRow>, end: Partial<_kodiak_finance_orderly_types.API.DailyRow>) => {
244
- account_value?: number | undefined;
245
- broker_id?: string | undefined;
246
- date: string;
247
- perp_volume?: number | undefined;
248
- pnl?: number | undefined;
249
- snapshot_time?: number | undefined;
250
- }[];
251
- volumeUpdateDate: any;
252
- filterItems: any;
253
- onFilter: (filter: {
254
- name: string;
255
- value: any;
256
- }) => void;
257
- dateRange: {
258
- from: Date;
259
- to: Date;
260
- };
261
- setDateRange: (newRange: {
262
- from: Date | string;
263
- to: Date | string;
264
- }) => void;
265
- totalOrderClaimedReward: [number | undefined, {
266
- refresh: () => void;
267
- }];
268
- curEpochEstimate: _kodiak_finance_orderly_hooks.CurrentEpochEstimate | undefined;
269
- epochList: _kodiak_finance_orderly_hooks.EpochInfoType;
270
- brokerName: string | undefined;
271
- referralInfo: _kodiak_finance_orderly_hooks.RefferalAPI.ReferralInfo | undefined;
272
- };
273
- type UsePerformanceScriptReturn = ReturnType<typeof usePerformanceScript>;
274
-
275
- type PerformanceUIProps = {} & UsePerformanceScriptReturn;
276
- declare const PerformanceUI: React$1.FC<PerformanceUIProps>;
277
-
278
- declare const PerformanceWidget: React$1.FC;
279
-
280
- declare const PerformanceMobileUI: React$1.FC<Pick<useAssetsHistoryDataReturn & UsePerformanceScriptReturn, "data" | "curPeriod" | "aggregateValue" | "onPeriodChange" | "invisible" | "visible" | "createFakeData" | "period" | "filterItems" | "onFilter">>;
281
-
282
- declare const PerformanceMobileWidget: React$1.FC;
283
- declare const PerformanceMobileSheetId = "PerformanceMobileSheetId";
284
- declare const PerformanceMobileDialogId = "PerformanceMobileDialogId";
285
-
286
- declare const FundingHistoryWidget: React$1.FC;
287
-
288
- declare const useFundingHistoryHook: () => {
289
- readonly dataSource: (_kodiak_finance_orderly_types.API.FundingFeeRow & {
290
- annual_rate: number;
291
- })[] | null;
292
- readonly isLoading: boolean;
293
- readonly isValidating: boolean;
294
- readonly queryParameter: {
295
- readonly symbol: string;
296
- readonly dateRange: Date[];
297
- };
298
- readonly onFilter: (filter: {
299
- name: string;
300
- value: any;
301
- }) => void;
302
- readonly pagination: _kodiak_finance_orderly_ui.PaginationMeta;
303
- };
304
-
305
- declare const useFundingHistoryColumns: () => Column<API.FundingFeeRow & {
306
- annual_rate: number;
307
- }>[];
308
-
309
- declare const DistributionHistoryWidget: React$1.FC;
310
-
311
- declare const useDistributionHistoryHook: () => {
312
- readonly dataSource: (_kodiak_finance_orderly_types.API.FundingFeeRow & {
313
- annual_rate: number;
314
- })[];
315
- readonly isLoading: boolean;
316
- readonly isValidating: boolean;
317
- readonly queryParameter: {
318
- readonly type: string;
319
- readonly dateRange: Date[];
320
- };
321
- readonly onFilter: (filter: {
322
- name: string;
323
- value: any;
324
- }) => void;
325
- readonly pagination: _kodiak_finance_orderly_ui.PaginationMeta;
326
- };
327
- type useDistributionHistoryHookReturn = ReturnType<typeof useDistributionHistoryHook>;
328
-
329
- type FundingHistoryProps$1 = {} & useDistributionHistoryHookReturn;
330
- declare const DistributionHistoryMobile: FC<FundingHistoryProps$1>;
331
-
332
- type FundingHistoryProps = {} & useDistributionHistoryHookReturn;
333
- declare const DistributionHistoryDesktop: FC<FundingHistoryProps>;
334
-
335
- declare const OverviewPage: React$1.FC;
336
-
337
- declare const OverviewProvider: FC<PropsWithChildren<{
338
- type?: TWType;
339
- }>>;
340
-
341
- declare const index$5_AssetHistory: typeof AssetHistory;
342
- declare const index$5_AssetHistoryWidget: typeof AssetHistoryWidget;
343
- declare const index$5_AssetWidget: typeof AssetWidget;
344
- declare const index$5_AssetsChart: typeof AssetsChart;
345
- declare const index$5_AssetsChartWidget: typeof AssetsChartWidget;
346
- declare const index$5_AssetsUI: typeof AssetsUI;
347
- declare const index$5_DistributionHistoryDesktop: typeof DistributionHistoryDesktop;
348
- declare const index$5_DistributionHistoryMobile: typeof DistributionHistoryMobile;
349
- declare const index$5_DistributionHistoryWidget: typeof DistributionHistoryWidget;
350
- declare const index$5_FundingHistoryWidget: typeof FundingHistoryWidget;
351
- declare const index$5_HistoryDataGroupWidget: typeof HistoryDataGroupWidget;
352
- declare const index$5_OverviewPage: typeof OverviewPage;
353
- declare const index$5_OverviewProvider: typeof OverviewProvider;
354
- declare const index$5_PerformanceMobileDialogId: typeof PerformanceMobileDialogId;
355
- declare const index$5_PerformanceMobileSheetId: typeof PerformanceMobileSheetId;
356
- declare const index$5_PerformanceMobileUI: typeof PerformanceMobileUI;
357
- declare const index$5_PerformanceMobileWidget: typeof PerformanceMobileWidget;
358
- declare const index$5_PerformanceUI: typeof PerformanceUI;
359
- declare const index$5_PerformanceWidget: typeof PerformanceWidget;
360
- declare const index$5_useAssetHistoryColumns: typeof useAssetHistoryColumns;
361
- declare const index$5_useAssetHistoryScript: typeof useAssetHistoryScript;
362
- declare const index$5_useAssetsChartScript: typeof useAssetsChartScript;
363
- declare const index$5_useFundingHistoryColumns: typeof useFundingHistoryColumns;
364
- declare const index$5_useFundingHistoryHook: typeof useFundingHistoryHook;
365
- declare const index$5_usePerformanceScript: typeof usePerformanceScript;
366
- declare namespace index$5 {
367
- export { index$5_AssetHistory as AssetHistory, index$5_AssetHistoryWidget as AssetHistoryWidget, index$5_AssetWidget as AssetWidget, index$5_AssetsChart as AssetsChart, index$5_AssetsChartWidget as AssetsChartWidget, index$5_AssetsUI as AssetsUI, index$5_DistributionHistoryDesktop as DistributionHistoryDesktop, index$5_DistributionHistoryMobile as DistributionHistoryMobile, index$5_DistributionHistoryWidget as DistributionHistoryWidget, index$5_FundingHistoryWidget as FundingHistoryWidget, index$5_HistoryDataGroupWidget as HistoryDataGroupWidget, index$5_OverviewPage as OverviewPage, index$5_OverviewProvider as OverviewProvider, index$5_PerformanceMobileDialogId as PerformanceMobileDialogId, index$5_PerformanceMobileSheetId as PerformanceMobileSheetId, index$5_PerformanceMobileUI as PerformanceMobileUI, index$5_PerformanceMobileWidget as PerformanceMobileWidget, index$5_PerformanceUI as PerformanceUI, index$5_PerformanceWidget as PerformanceWidget, index$5_useAssetHistoryColumns as useAssetHistoryColumns, index$5_useAssetHistoryScript as useAssetHistoryScript, index$5_useAssetsChartScript as useAssetsChartScript, index$5_useFundingHistoryColumns as useFundingHistoryColumns, index$5_useFundingHistoryHook as useFundingHistoryHook, index$5_usePerformanceScript as usePerformanceScript };
368
- }
369
-
370
- type FeeTierWidgetProps = UseFeeTierScriptOptions;
371
-
372
- type FeeTierPageProps = FeeTierWidgetProps;
373
- declare const FeeTierPage: React$1.FC<FeeTierPageProps>;
374
-
375
- type UseFeeTierScriptOptions = {
376
- dataAdapter?: (columns: Column<any>[], dataSource: any[], context?: {
377
- tier?: number;
378
- }) => {
379
- columns: Column<any>[];
380
- dataSource: any[];
381
- };
382
- headerDataAdapter?: (original: any[]) => any[];
383
- onRow?: (record: any, index: number) => {
384
- normal?: any;
385
- active?: any;
386
- };
387
- onCell?: (column: TanstackColumn<any>, record: any, index: number) => {
388
- normal?: any;
389
- active?: any;
390
- };
391
- };
392
- interface FeeDataType {
393
- tier: number | null;
394
- volume_min?: number | null;
395
- volume_max?: number | null;
396
- volume_node?: React$1.ReactNode;
397
- or?: string | null;
398
- maker_fee: string;
399
- taker_fee: string;
400
- }
401
- declare const useFeeTierScript: (options?: UseFeeTierScriptOptions) => {
402
- columns: Column<any>[] | Column<FeeDataType>[];
403
- dataSource: any[] | FeeDataType[];
404
- onRow: ((record: any, index: number) => {
405
- normal?: any;
406
- active?: any;
407
- }) | undefined;
408
- onCell: ((column: TanstackColumn<any>, record: any, index: number) => {
409
- normal?: any;
410
- active?: any;
411
- }) | undefined;
412
- headerDataAdapter: ((original: any[]) => any[]) | undefined;
413
- tier?: number | null | undefined;
414
- vol?: number | undefined;
415
- };
416
-
417
- type index$4_FeeDataType = FeeDataType;
418
- declare const index$4_FeeTierPage: typeof FeeTierPage;
419
- type index$4_UseFeeTierScriptOptions = UseFeeTierScriptOptions;
420
- declare const index$4_useFeeTierScript: typeof useFeeTierScript;
421
- declare namespace index$4 {
422
- export { type index$4_FeeDataType as FeeDataType, index$4_FeeTierPage as FeeTierPage, type index$4_UseFeeTierScriptOptions as UseFeeTierScriptOptions, index$4_useFeeTierScript as useFeeTierScript };
423
- }
424
-
425
- declare const PositionsPage: React$1.FC<PositionsProps>;
426
-
427
- declare const page$1_PositionsPage: typeof PositionsPage;
428
- declare namespace page$1 {
429
- export { page$1_PositionsPage as PositionsPage };
430
- }
431
-
432
- declare const OrdersPage: React$1.FC<{
433
- sharePnLConfig?: SharePnLConfig;
434
- }>;
435
-
436
- declare const page_OrdersPage: typeof OrdersPage;
437
- declare namespace page {
438
- export { page_OrdersPage as OrdersPage };
439
- }
440
-
441
- declare const APIManagerWidget: (props?: {
442
- filterTags?: [string];
443
- keyStatus?: string;
444
- }) => react_jsx_runtime.JSX.Element;
445
-
446
- /**
447
- * API key manager page
448
- * @param filterTags filterTags
449
- * @param keyStatus filterTags default is "ACTIVE"
450
- * @returns
451
- */
452
- declare const APIManagerPage: (props: {
453
- filterTags?: [string];
454
- keyStatus?: string;
455
- }) => react_jsx_runtime.JSX.Element;
456
-
457
- declare const index$3_APIManagerPage: typeof APIManagerPage;
458
- declare const index$3_APIManagerWidget: typeof APIManagerWidget;
459
- declare namespace index$3 {
460
- export { index$3_APIManagerPage as APIManagerPage, index$3_APIManagerWidget as APIManagerWidget };
461
- }
462
-
463
- declare const SettingWidget: React$1.FC;
464
-
465
- declare const SettingPage: React$1.FC;
466
-
467
- declare const index$2_SettingPage: typeof SettingPage;
468
- declare const index$2_SettingWidget: typeof SettingWidget;
469
- declare namespace index$2 {
470
- export { index$2_SettingPage as SettingPage, index$2_SettingWidget as SettingWidget };
471
- }
472
-
473
- declare const useAssetsScript: () => {
474
- columns: _kodiak_finance_orderly_ui.Column[];
475
- dataSource: {
476
- children: {
477
- indexPrice: number;
478
- assetValue: number;
479
- collateralRatio: Decimal;
480
- collateralContribution: number;
481
- token: string;
482
- holding: number;
483
- frozen: number;
484
- pending_short: number;
485
- updated_time: number;
486
- account_id: string;
487
- }[];
488
- account_id: string;
489
- id?: string;
490
- description?: string;
491
- }[];
492
- visible: boolean;
493
- onToggleVisibility: () => void;
494
- selectedAccount: string;
495
- selectedAsset: string;
496
- onFilter: (filter: {
497
- name: string;
498
- value: string;
499
- }) => void;
500
- totalValue: number;
501
- hasSubAccount: boolean;
502
- onDeposit: () => void;
503
- onWithdraw: () => void;
504
- holding: _kodiak_finance_orderly_types.API.Holding[];
505
- assetsOptions: {
506
- label: string;
507
- value: string;
508
- }[];
509
- };
510
- type useAssetsScriptReturn = ReturnType<typeof useAssetsScript> & ReturnType<typeof useAccount>;
511
-
512
- type AssetsWidgetProps = useAssetsScriptReturn;
513
- declare const AssetsDataTableWidget: React$1.FC;
514
- declare const AssetsWidget: React$1.FC;
515
-
516
- declare const AssetsPage: React$1.FC;
517
-
518
- declare const AssetsDataTable: React$1.FC<Pick<AssetsWidgetProps, "columns" | "dataSource" | "isMainAccount" | "onFilter" | "selectedAccount" | "selectedAsset" | "assetsOptions" | "state">>;
519
- declare const AssetsTable: React$1.FC<AssetsWidgetProps>;
520
-
521
- declare const AssetsTableMobile: React$1.FC<useAssetsScriptReturn>;
522
-
523
- declare const index$1_AssetsDataTable: typeof AssetsDataTable;
524
- declare const index$1_AssetsDataTableWidget: typeof AssetsDataTableWidget;
525
- declare const index$1_AssetsPage: typeof AssetsPage;
526
- declare const index$1_AssetsTable: typeof AssetsTable;
527
- declare const index$1_AssetsTableMobile: typeof AssetsTableMobile;
528
- declare const index$1_AssetsWidget: typeof AssetsWidget;
529
- type index$1_AssetsWidgetProps = AssetsWidgetProps;
530
- declare namespace index$1 {
531
- export { index$1_AssetsDataTable as AssetsDataTable, index$1_AssetsDataTableWidget as AssetsDataTableWidget, index$1_AssetsPage as AssetsPage, index$1_AssetsTable as AssetsTable, index$1_AssetsTableMobile as AssetsTableMobile, index$1_AssetsWidget as AssetsWidget, type index$1_AssetsWidgetProps as AssetsWidgetProps };
532
- }
533
-
534
- declare const HistoryWidget: React$1.FC;
535
- declare const HistoryPage: React$1.FC;
536
-
537
- declare const index_HistoryPage: typeof HistoryPage;
538
- declare const index_HistoryWidget: typeof HistoryWidget;
539
- declare namespace index {
540
- export { index_HistoryPage as HistoryPage, index_HistoryWidget as HistoryWidget };
541
- }
542
-
543
- export { index$3 as APIManagerModule, index$1 as AssetsModule, index$4 as FeeTierModule, index as HistoryModule, page as OrdersModule, index$5 as OverviewModule, PortfolioLayout, type PortfolioLayoutProps, PortfolioLayoutWidget, type PortfolioLayoutWidgetProps, PortfolioLeftSidebarPath, page$1 as PositionsModule, index$2 as SettingModule, usePortfolioLayoutScript };