@orderly.network/portfolio 2.5.2 → 2.5.3-alpha.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.mts +21 -41
- package/dist/index.d.ts +21 -41
- package/dist/index.js +20 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -14
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +18 -18
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import React$1, { FC, PropsWithChildren } from 'react';
|
|
|
2
2
|
import { ScaffoldProps, SideBarProps, SideMenuItem } from '@orderly.network/ui-scaffold';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as _orderly_network_types from '@orderly.network/types';
|
|
5
|
-
import { API } from '@orderly.network/types';
|
|
5
|
+
import { AssetHistorySideEnum, API } from '@orderly.network/types';
|
|
6
6
|
import * as _orderly_network_hooks from '@orderly.network/hooks';
|
|
7
7
|
import { TWType } from '@orderly.network/hooks';
|
|
8
8
|
import * as _orderly_network_ui from '@orderly.network/ui';
|
|
@@ -75,6 +75,8 @@ declare const AssetsUI: (props: AssetScriptReturn & {
|
|
|
75
75
|
|
|
76
76
|
declare const AssetWidget: () => react_jsx_runtime.JSX.Element;
|
|
77
77
|
|
|
78
|
+
declare const HistoryDataGroupWidget: React.FC;
|
|
79
|
+
|
|
78
80
|
declare const AssetsChartWidget: () => react_jsx_runtime.JSX.Element;
|
|
79
81
|
|
|
80
82
|
declare enum PeriodType {
|
|
@@ -83,7 +85,7 @@ declare enum PeriodType {
|
|
|
83
85
|
QUARTER = "90D"
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
declare const
|
|
88
|
+
declare const useAssetsChartScript: () => {
|
|
87
89
|
readonly data: {
|
|
88
90
|
account_value?: number | undefined;
|
|
89
91
|
broker_id?: string | undefined;
|
|
@@ -119,45 +121,32 @@ declare const useAssetsLineChartScript: () => {
|
|
|
119
121
|
readonly brokerName: string | undefined;
|
|
120
122
|
readonly referralInfo: _orderly_network_hooks.RefferalAPI.ReferralInfo | undefined;
|
|
121
123
|
};
|
|
124
|
+
type useAssetsChartScriptReturn = ReturnType<typeof useAssetsChartScript>;
|
|
122
125
|
|
|
123
|
-
|
|
126
|
+
type AssetsLineChartProps = {} & useAssetsChartScriptReturn;
|
|
127
|
+
declare const AssetsChart: (props: AssetsLineChartProps) => react_jsx_runtime.JSX.Element;
|
|
128
|
+
|
|
129
|
+
type Options = {
|
|
130
|
+
chainsInfo: any[];
|
|
131
|
+
isDeposit: boolean;
|
|
132
|
+
isWeb3Wallet: boolean;
|
|
133
|
+
};
|
|
134
|
+
declare const useAssetHistoryColumns: (options: Options) => Column[];
|
|
124
135
|
|
|
125
|
-
type AssetSide = "deposit" | "withdraw";
|
|
126
136
|
declare enum AssetTarget {
|
|
127
137
|
Web3Wallet = "Web3Wallet",
|
|
128
138
|
AccountId = "AccountId"
|
|
129
139
|
}
|
|
130
140
|
type AssetHistoryScriptOptions = {
|
|
131
|
-
side:
|
|
141
|
+
side: AssetHistorySideEnum;
|
|
132
142
|
};
|
|
133
143
|
type AssetHistoryScriptReturn = ReturnType<typeof useAssetHistoryScript>;
|
|
134
144
|
declare const useAssetHistoryScript: (options: AssetHistoryScriptOptions) => {
|
|
135
|
-
dataSource:
|
|
136
|
-
decimals: number;
|
|
137
|
-
id: string;
|
|
138
|
-
tx_id: string;
|
|
139
|
-
side: string;
|
|
140
|
-
token: string;
|
|
141
|
-
amount: number;
|
|
142
|
-
fee: number;
|
|
143
|
-
trans_status: string;
|
|
144
|
-
created_time: number;
|
|
145
|
-
updated_time: number;
|
|
146
|
-
chain_id: string;
|
|
147
|
-
} | {
|
|
148
|
-
decimals: number;
|
|
149
|
-
amount: number;
|
|
150
|
-
created_time: number;
|
|
151
|
-
from_account_id: string;
|
|
152
|
-
id: string;
|
|
153
|
-
status: "CREATED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
154
|
-
to_account_id: string;
|
|
155
|
-
token: string;
|
|
156
|
-
updated_time: number;
|
|
157
|
-
})[];
|
|
145
|
+
dataSource: any[];
|
|
158
146
|
total: number | undefined;
|
|
159
147
|
isLoading: boolean;
|
|
160
148
|
queryParameter: {
|
|
149
|
+
target: AssetTarget;
|
|
161
150
|
dateRange: Date[];
|
|
162
151
|
};
|
|
163
152
|
onFilter: (filter: {
|
|
@@ -165,27 +154,17 @@ declare const useAssetHistoryScript: (options: AssetHistoryScriptOptions) => {
|
|
|
165
154
|
value: any;
|
|
166
155
|
}) => void;
|
|
167
156
|
pagination: _orderly_network_ui.PaginationMeta;
|
|
168
|
-
side: AssetSide;
|
|
169
|
-
target: AssetTarget;
|
|
170
157
|
onDeposit: () => void;
|
|
171
158
|
chainsInfo: any[];
|
|
172
159
|
isDeposit: boolean;
|
|
173
160
|
isWeb3Wallet: boolean;
|
|
174
161
|
};
|
|
175
162
|
|
|
176
|
-
type Options = {
|
|
177
|
-
side: AssetSide;
|
|
178
|
-
chainsInfo: any[];
|
|
179
|
-
isDeposit: boolean;
|
|
180
|
-
isWeb3Wallet: boolean;
|
|
181
|
-
};
|
|
182
|
-
declare const useAssetHistoryColumns: (options: Options) => Column[];
|
|
183
|
-
|
|
184
163
|
type AssetHistoryProps = AssetHistoryScriptReturn;
|
|
185
164
|
declare const AssetHistory: FC<AssetHistoryProps>;
|
|
186
165
|
|
|
187
166
|
type AssetHistoryWidgetProps = {
|
|
188
|
-
side:
|
|
167
|
+
side: AssetHistorySideEnum;
|
|
189
168
|
};
|
|
190
169
|
declare const AssetHistoryWidget: (props: AssetHistoryWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
191
170
|
|
|
@@ -291,6 +270,7 @@ declare const OverviewContextProvider: (props: PropsWithChildren<{
|
|
|
291
270
|
declare const index$5_AssetHistory: typeof AssetHistory;
|
|
292
271
|
declare const index$5_AssetHistoryWidget: typeof AssetHistoryWidget;
|
|
293
272
|
declare const index$5_AssetWidget: typeof AssetWidget;
|
|
273
|
+
declare const index$5_AssetsChart: typeof AssetsChart;
|
|
294
274
|
declare const index$5_AssetsChartWidget: typeof AssetsChartWidget;
|
|
295
275
|
declare const index$5_AssetsUI: typeof AssetsUI;
|
|
296
276
|
declare const index$5_DistributionHistoryDesktop: typeof DistributionHistoryDesktop;
|
|
@@ -304,12 +284,12 @@ declare const index$5_PerformanceUI: typeof PerformanceUI;
|
|
|
304
284
|
declare const index$5_PerformanceWidget: typeof PerformanceWidget;
|
|
305
285
|
declare const index$5_useAssetHistoryColumns: typeof useAssetHistoryColumns;
|
|
306
286
|
declare const index$5_useAssetHistoryScript: typeof useAssetHistoryScript;
|
|
307
|
-
declare const index$
|
|
287
|
+
declare const index$5_useAssetsChartScript: typeof useAssetsChartScript;
|
|
308
288
|
declare const index$5_useFundingHistoryColumns: typeof useFundingHistoryColumns;
|
|
309
289
|
declare const index$5_useFundingHistoryHook: typeof useFundingHistoryHook;
|
|
310
290
|
declare const index$5_usePerformanceScript: typeof usePerformanceScript;
|
|
311
291
|
declare namespace index$5 {
|
|
312
|
-
export { index$5_AssetHistory as AssetHistory, index$5_AssetHistoryWidget as AssetHistoryWidget, index$5_AssetWidget as AssetWidget, 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_OverviewContextProvider as OverviewContextProvider, index$5_OverviewPage as OverviewPage, index$5_PerformanceUI as PerformanceUI, index$5_PerformanceWidget as PerformanceWidget, index$5_useAssetHistoryColumns as useAssetHistoryColumns, index$5_useAssetHistoryScript as useAssetHistoryScript, index$
|
|
292
|
+
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_OverviewContextProvider as OverviewContextProvider, index$5_OverviewPage as OverviewPage, 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 };
|
|
313
293
|
}
|
|
314
294
|
|
|
315
295
|
type UseFeeTierScriptOptions = {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React$1, { FC, PropsWithChildren } from 'react';
|
|
|
2
2
|
import { ScaffoldProps, SideBarProps, SideMenuItem } from '@orderly.network/ui-scaffold';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as _orderly_network_types from '@orderly.network/types';
|
|
5
|
-
import { API } from '@orderly.network/types';
|
|
5
|
+
import { AssetHistorySideEnum, API } from '@orderly.network/types';
|
|
6
6
|
import * as _orderly_network_hooks from '@orderly.network/hooks';
|
|
7
7
|
import { TWType } from '@orderly.network/hooks';
|
|
8
8
|
import * as _orderly_network_ui from '@orderly.network/ui';
|
|
@@ -75,6 +75,8 @@ declare const AssetsUI: (props: AssetScriptReturn & {
|
|
|
75
75
|
|
|
76
76
|
declare const AssetWidget: () => react_jsx_runtime.JSX.Element;
|
|
77
77
|
|
|
78
|
+
declare const HistoryDataGroupWidget: React.FC;
|
|
79
|
+
|
|
78
80
|
declare const AssetsChartWidget: () => react_jsx_runtime.JSX.Element;
|
|
79
81
|
|
|
80
82
|
declare enum PeriodType {
|
|
@@ -83,7 +85,7 @@ declare enum PeriodType {
|
|
|
83
85
|
QUARTER = "90D"
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
declare const
|
|
88
|
+
declare const useAssetsChartScript: () => {
|
|
87
89
|
readonly data: {
|
|
88
90
|
account_value?: number | undefined;
|
|
89
91
|
broker_id?: string | undefined;
|
|
@@ -119,45 +121,32 @@ declare const useAssetsLineChartScript: () => {
|
|
|
119
121
|
readonly brokerName: string | undefined;
|
|
120
122
|
readonly referralInfo: _orderly_network_hooks.RefferalAPI.ReferralInfo | undefined;
|
|
121
123
|
};
|
|
124
|
+
type useAssetsChartScriptReturn = ReturnType<typeof useAssetsChartScript>;
|
|
122
125
|
|
|
123
|
-
|
|
126
|
+
type AssetsLineChartProps = {} & useAssetsChartScriptReturn;
|
|
127
|
+
declare const AssetsChart: (props: AssetsLineChartProps) => react_jsx_runtime.JSX.Element;
|
|
128
|
+
|
|
129
|
+
type Options = {
|
|
130
|
+
chainsInfo: any[];
|
|
131
|
+
isDeposit: boolean;
|
|
132
|
+
isWeb3Wallet: boolean;
|
|
133
|
+
};
|
|
134
|
+
declare const useAssetHistoryColumns: (options: Options) => Column[];
|
|
124
135
|
|
|
125
|
-
type AssetSide = "deposit" | "withdraw";
|
|
126
136
|
declare enum AssetTarget {
|
|
127
137
|
Web3Wallet = "Web3Wallet",
|
|
128
138
|
AccountId = "AccountId"
|
|
129
139
|
}
|
|
130
140
|
type AssetHistoryScriptOptions = {
|
|
131
|
-
side:
|
|
141
|
+
side: AssetHistorySideEnum;
|
|
132
142
|
};
|
|
133
143
|
type AssetHistoryScriptReturn = ReturnType<typeof useAssetHistoryScript>;
|
|
134
144
|
declare const useAssetHistoryScript: (options: AssetHistoryScriptOptions) => {
|
|
135
|
-
dataSource:
|
|
136
|
-
decimals: number;
|
|
137
|
-
id: string;
|
|
138
|
-
tx_id: string;
|
|
139
|
-
side: string;
|
|
140
|
-
token: string;
|
|
141
|
-
amount: number;
|
|
142
|
-
fee: number;
|
|
143
|
-
trans_status: string;
|
|
144
|
-
created_time: number;
|
|
145
|
-
updated_time: number;
|
|
146
|
-
chain_id: string;
|
|
147
|
-
} | {
|
|
148
|
-
decimals: number;
|
|
149
|
-
amount: number;
|
|
150
|
-
created_time: number;
|
|
151
|
-
from_account_id: string;
|
|
152
|
-
id: string;
|
|
153
|
-
status: "CREATED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
154
|
-
to_account_id: string;
|
|
155
|
-
token: string;
|
|
156
|
-
updated_time: number;
|
|
157
|
-
})[];
|
|
145
|
+
dataSource: any[];
|
|
158
146
|
total: number | undefined;
|
|
159
147
|
isLoading: boolean;
|
|
160
148
|
queryParameter: {
|
|
149
|
+
target: AssetTarget;
|
|
161
150
|
dateRange: Date[];
|
|
162
151
|
};
|
|
163
152
|
onFilter: (filter: {
|
|
@@ -165,27 +154,17 @@ declare const useAssetHistoryScript: (options: AssetHistoryScriptOptions) => {
|
|
|
165
154
|
value: any;
|
|
166
155
|
}) => void;
|
|
167
156
|
pagination: _orderly_network_ui.PaginationMeta;
|
|
168
|
-
side: AssetSide;
|
|
169
|
-
target: AssetTarget;
|
|
170
157
|
onDeposit: () => void;
|
|
171
158
|
chainsInfo: any[];
|
|
172
159
|
isDeposit: boolean;
|
|
173
160
|
isWeb3Wallet: boolean;
|
|
174
161
|
};
|
|
175
162
|
|
|
176
|
-
type Options = {
|
|
177
|
-
side: AssetSide;
|
|
178
|
-
chainsInfo: any[];
|
|
179
|
-
isDeposit: boolean;
|
|
180
|
-
isWeb3Wallet: boolean;
|
|
181
|
-
};
|
|
182
|
-
declare const useAssetHistoryColumns: (options: Options) => Column[];
|
|
183
|
-
|
|
184
163
|
type AssetHistoryProps = AssetHistoryScriptReturn;
|
|
185
164
|
declare const AssetHistory: FC<AssetHistoryProps>;
|
|
186
165
|
|
|
187
166
|
type AssetHistoryWidgetProps = {
|
|
188
|
-
side:
|
|
167
|
+
side: AssetHistorySideEnum;
|
|
189
168
|
};
|
|
190
169
|
declare const AssetHistoryWidget: (props: AssetHistoryWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
191
170
|
|
|
@@ -291,6 +270,7 @@ declare const OverviewContextProvider: (props: PropsWithChildren<{
|
|
|
291
270
|
declare const index$5_AssetHistory: typeof AssetHistory;
|
|
292
271
|
declare const index$5_AssetHistoryWidget: typeof AssetHistoryWidget;
|
|
293
272
|
declare const index$5_AssetWidget: typeof AssetWidget;
|
|
273
|
+
declare const index$5_AssetsChart: typeof AssetsChart;
|
|
294
274
|
declare const index$5_AssetsChartWidget: typeof AssetsChartWidget;
|
|
295
275
|
declare const index$5_AssetsUI: typeof AssetsUI;
|
|
296
276
|
declare const index$5_DistributionHistoryDesktop: typeof DistributionHistoryDesktop;
|
|
@@ -304,12 +284,12 @@ declare const index$5_PerformanceUI: typeof PerformanceUI;
|
|
|
304
284
|
declare const index$5_PerformanceWidget: typeof PerformanceWidget;
|
|
305
285
|
declare const index$5_useAssetHistoryColumns: typeof useAssetHistoryColumns;
|
|
306
286
|
declare const index$5_useAssetHistoryScript: typeof useAssetHistoryScript;
|
|
307
|
-
declare const index$
|
|
287
|
+
declare const index$5_useAssetsChartScript: typeof useAssetsChartScript;
|
|
308
288
|
declare const index$5_useFundingHistoryColumns: typeof useFundingHistoryColumns;
|
|
309
289
|
declare const index$5_useFundingHistoryHook: typeof useFundingHistoryHook;
|
|
310
290
|
declare const index$5_usePerformanceScript: typeof usePerformanceScript;
|
|
311
291
|
declare namespace index$5 {
|
|
312
|
-
export { index$5_AssetHistory as AssetHistory, index$5_AssetHistoryWidget as AssetHistoryWidget, index$5_AssetWidget as AssetWidget, 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_OverviewContextProvider as OverviewContextProvider, index$5_OverviewPage as OverviewPage, index$5_PerformanceUI as PerformanceUI, index$5_PerformanceWidget as PerformanceWidget, index$5_useAssetHistoryColumns as useAssetHistoryColumns, index$5_useAssetHistoryScript as useAssetHistoryScript, index$
|
|
292
|
+
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_OverviewContextProvider as OverviewContextProvider, index$5_OverviewPage as OverviewPage, 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 };
|
|
313
293
|
}
|
|
314
294
|
|
|
315
295
|
type UseFeeTierScriptOptions = {
|