@orderly.network/portfolio 2.3.1 → 2.3.2-alpha.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 +31 -10
- package/dist/index.d.ts +31 -10
- package/dist/index.js +21 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +17 -17
package/dist/index.d.mts
CHANGED
|
@@ -122,14 +122,20 @@ declare const useAssetsLineChartScript: () => {
|
|
|
122
122
|
|
|
123
123
|
declare const HistoryDataGroupWidget: React.FC;
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
type AssetSide = "deposit" | "withdraw";
|
|
126
|
+
declare enum AssetTarget {
|
|
127
|
+
Web3Wallet = "Web3Wallet",
|
|
128
|
+
AccountId = "AccountId"
|
|
129
|
+
}
|
|
130
|
+
type AssetHistoryScriptOptions = {
|
|
131
|
+
side: AssetSide;
|
|
132
|
+
};
|
|
133
|
+
type AssetHistoryScriptReturn = ReturnType<typeof useAssetHistoryScript>;
|
|
134
|
+
declare const useAssetHistoryScript: (options: AssetHistoryScriptOptions) => {
|
|
135
|
+
dataSource: _orderly_network_types.API.AssetHistoryRow[] | _orderly_network_types.API.TransferHistoryRow[];
|
|
129
136
|
total: number | undefined;
|
|
130
137
|
isLoading: boolean;
|
|
131
138
|
queryParameter: {
|
|
132
|
-
side: string;
|
|
133
139
|
dateRange: Date[];
|
|
134
140
|
};
|
|
135
141
|
onFilter: (filter: {
|
|
@@ -137,14 +143,29 @@ declare const useAssetHistoryHook: () => {
|
|
|
137
143
|
value: any;
|
|
138
144
|
}) => void;
|
|
139
145
|
pagination: _orderly_network_ui.PaginationMeta;
|
|
146
|
+
side: AssetSide;
|
|
147
|
+
target: AssetTarget;
|
|
148
|
+
onDeposit: () => void;
|
|
149
|
+
chainsInfo: any[];
|
|
150
|
+
isDeposit: boolean;
|
|
151
|
+
isWeb3Wallet: boolean;
|
|
140
152
|
};
|
|
141
153
|
|
|
142
|
-
type
|
|
154
|
+
type Options = {
|
|
155
|
+
side: AssetSide;
|
|
156
|
+
chainsInfo: any[];
|
|
157
|
+
isDeposit: boolean;
|
|
158
|
+
isWeb3Wallet: boolean;
|
|
159
|
+
};
|
|
160
|
+
declare const useAssetHistoryColumns: (options: Options) => Column[];
|
|
143
161
|
|
|
144
|
-
type AssetHistoryProps =
|
|
162
|
+
type AssetHistoryProps = AssetHistoryScriptReturn;
|
|
145
163
|
declare const AssetHistory: FC<AssetHistoryProps>;
|
|
146
164
|
|
|
147
|
-
|
|
165
|
+
type AssetHistoryWidgetProps = {
|
|
166
|
+
side: AssetSide;
|
|
167
|
+
};
|
|
168
|
+
declare const AssetHistoryWidget: (props: AssetHistoryWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
148
169
|
|
|
149
170
|
declare const usePerformanceScript: () => {
|
|
150
171
|
data: {
|
|
@@ -260,13 +281,13 @@ declare const index$5_OverviewPage: typeof OverviewPage;
|
|
|
260
281
|
declare const index$5_PerformanceUI: typeof PerformanceUI;
|
|
261
282
|
declare const index$5_PerformanceWidget: typeof PerformanceWidget;
|
|
262
283
|
declare const index$5_useAssetHistoryColumns: typeof useAssetHistoryColumns;
|
|
263
|
-
declare const index$
|
|
284
|
+
declare const index$5_useAssetHistoryScript: typeof useAssetHistoryScript;
|
|
264
285
|
declare const index$5_useAssetsLineChartScript: typeof useAssetsLineChartScript;
|
|
265
286
|
declare const index$5_useFundingHistoryColumns: typeof useFundingHistoryColumns;
|
|
266
287
|
declare const index$5_useFundingHistoryHook: typeof useFundingHistoryHook;
|
|
267
288
|
declare const index$5_usePerformanceScript: typeof usePerformanceScript;
|
|
268
289
|
declare namespace index$5 {
|
|
269
|
-
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$
|
|
290
|
+
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$5_useAssetsLineChartScript as useAssetsLineChartScript, index$5_useFundingHistoryColumns as useFundingHistoryColumns, index$5_useFundingHistoryHook as useFundingHistoryHook, index$5_usePerformanceScript as usePerformanceScript };
|
|
270
291
|
}
|
|
271
292
|
|
|
272
293
|
type UseFeeTierScriptOptions = {
|
package/dist/index.d.ts
CHANGED
|
@@ -122,14 +122,20 @@ declare const useAssetsLineChartScript: () => {
|
|
|
122
122
|
|
|
123
123
|
declare const HistoryDataGroupWidget: React.FC;
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
type AssetSide = "deposit" | "withdraw";
|
|
126
|
+
declare enum AssetTarget {
|
|
127
|
+
Web3Wallet = "Web3Wallet",
|
|
128
|
+
AccountId = "AccountId"
|
|
129
|
+
}
|
|
130
|
+
type AssetHistoryScriptOptions = {
|
|
131
|
+
side: AssetSide;
|
|
132
|
+
};
|
|
133
|
+
type AssetHistoryScriptReturn = ReturnType<typeof useAssetHistoryScript>;
|
|
134
|
+
declare const useAssetHistoryScript: (options: AssetHistoryScriptOptions) => {
|
|
135
|
+
dataSource: _orderly_network_types.API.AssetHistoryRow[] | _orderly_network_types.API.TransferHistoryRow[];
|
|
129
136
|
total: number | undefined;
|
|
130
137
|
isLoading: boolean;
|
|
131
138
|
queryParameter: {
|
|
132
|
-
side: string;
|
|
133
139
|
dateRange: Date[];
|
|
134
140
|
};
|
|
135
141
|
onFilter: (filter: {
|
|
@@ -137,14 +143,29 @@ declare const useAssetHistoryHook: () => {
|
|
|
137
143
|
value: any;
|
|
138
144
|
}) => void;
|
|
139
145
|
pagination: _orderly_network_ui.PaginationMeta;
|
|
146
|
+
side: AssetSide;
|
|
147
|
+
target: AssetTarget;
|
|
148
|
+
onDeposit: () => void;
|
|
149
|
+
chainsInfo: any[];
|
|
150
|
+
isDeposit: boolean;
|
|
151
|
+
isWeb3Wallet: boolean;
|
|
140
152
|
};
|
|
141
153
|
|
|
142
|
-
type
|
|
154
|
+
type Options = {
|
|
155
|
+
side: AssetSide;
|
|
156
|
+
chainsInfo: any[];
|
|
157
|
+
isDeposit: boolean;
|
|
158
|
+
isWeb3Wallet: boolean;
|
|
159
|
+
};
|
|
160
|
+
declare const useAssetHistoryColumns: (options: Options) => Column[];
|
|
143
161
|
|
|
144
|
-
type AssetHistoryProps =
|
|
162
|
+
type AssetHistoryProps = AssetHistoryScriptReturn;
|
|
145
163
|
declare const AssetHistory: FC<AssetHistoryProps>;
|
|
146
164
|
|
|
147
|
-
|
|
165
|
+
type AssetHistoryWidgetProps = {
|
|
166
|
+
side: AssetSide;
|
|
167
|
+
};
|
|
168
|
+
declare const AssetHistoryWidget: (props: AssetHistoryWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
148
169
|
|
|
149
170
|
declare const usePerformanceScript: () => {
|
|
150
171
|
data: {
|
|
@@ -260,13 +281,13 @@ declare const index$5_OverviewPage: typeof OverviewPage;
|
|
|
260
281
|
declare const index$5_PerformanceUI: typeof PerformanceUI;
|
|
261
282
|
declare const index$5_PerformanceWidget: typeof PerformanceWidget;
|
|
262
283
|
declare const index$5_useAssetHistoryColumns: typeof useAssetHistoryColumns;
|
|
263
|
-
declare const index$
|
|
284
|
+
declare const index$5_useAssetHistoryScript: typeof useAssetHistoryScript;
|
|
264
285
|
declare const index$5_useAssetsLineChartScript: typeof useAssetsLineChartScript;
|
|
265
286
|
declare const index$5_useFundingHistoryColumns: typeof useFundingHistoryColumns;
|
|
266
287
|
declare const index$5_useFundingHistoryHook: typeof useFundingHistoryHook;
|
|
267
288
|
declare const index$5_usePerformanceScript: typeof usePerformanceScript;
|
|
268
289
|
declare namespace index$5 {
|
|
269
|
-
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$
|
|
290
|
+
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$5_useAssetsLineChartScript as useAssetsLineChartScript, index$5_useFundingHistoryColumns as useFundingHistoryColumns, index$5_useFundingHistoryHook as useFundingHistoryHook, index$5_usePerformanceScript as usePerformanceScript };
|
|
270
291
|
}
|
|
271
292
|
|
|
272
293
|
type UseFeeTierScriptOptions = {
|