@0xmonaco/react 1.0.28 → 1.0.31
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/coverage.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export declare const INTENTIONALLY_EXCLUDED: {
|
|
|
68
68
|
get_parent_margin_account_summary: string;
|
|
69
69
|
get_portfolio_assets: string;
|
|
70
70
|
get_portfolio_chart: string;
|
|
71
|
+
get_pulse: string;
|
|
71
72
|
get_portfolio_margin: string;
|
|
72
73
|
get_portfolio_performance: string;
|
|
73
74
|
get_portfolio_realized_pnl: string;
|
|
@@ -85,6 +86,7 @@ export declare const INTENTIONALLY_EXCLUDED: {
|
|
|
85
86
|
list_application_users: string;
|
|
86
87
|
list_delegated_agent_owners: string;
|
|
87
88
|
list_delegated_agents: string;
|
|
89
|
+
list_all_funding_history: string;
|
|
88
90
|
list_funding_payments: string;
|
|
89
91
|
list_margin_accounts: string;
|
|
90
92
|
list_sub_accounts_with_balances: string;
|
package/dist/coverage.js
CHANGED
|
@@ -68,6 +68,7 @@ export const INTENTIONALLY_EXCLUDED = {
|
|
|
68
68
|
get_parent_margin_account_summary: "Margin-account management/collateral/simulation endpoint; no React hook yet.",
|
|
69
69
|
get_portfolio_assets: "Authoritative portfolio analytics is available through @0xmonaco/core; no dedicated React hook in this release.",
|
|
70
70
|
get_portfolio_chart: "Portfolio analytics endpoint; no React hook yet.",
|
|
71
|
+
get_pulse: "News-feed snapshot; available via the core client but no dedicated React hook yet.",
|
|
71
72
|
get_portfolio_margin: "Authoritative portfolio analytics is available through @0xmonaco/core; no dedicated React hook in this release.",
|
|
72
73
|
get_portfolio_performance: "Authoritative portfolio analytics is available through @0xmonaco/core; no dedicated React hook in this release.",
|
|
73
74
|
get_portfolio_realized_pnl: "Authoritative portfolio analytics is available through @0xmonaco/core; no dedicated React hook in this release.",
|
|
@@ -85,6 +86,7 @@ export const INTENTIONALLY_EXCLUDED = {
|
|
|
85
86
|
list_application_users: "Application/backend (server-key) admin endpoint; not a user-wallet React workflow.",
|
|
86
87
|
list_delegated_agent_owners: "Delegated-agent management is an automation/agent surface, not a UI workflow; no React hook.",
|
|
87
88
|
list_delegated_agents: "Delegated-agent management is an automation/agent surface, not a UI workflow; no React hook.",
|
|
89
|
+
list_all_funding_history: "Bulk market data; useMarket covers per-pair funding; no React hook.",
|
|
88
90
|
list_funding_payments: "Perps funding-payment history; no React hook yet.",
|
|
89
91
|
list_margin_accounts: "Margin-account management/collateral/simulation endpoint; no React hook yet.",
|
|
90
92
|
list_sub_accounts_with_balances: "Sub-account administration; no React hook.",
|
|
@@ -53,7 +53,9 @@ export const useProfile = () => {
|
|
|
53
53
|
sdk.profile.getProfile(),
|
|
54
54
|
sdk.profile.getUserBalances({ pageSize: DEFAULT_PAGE_SIZE, page: 1 }),
|
|
55
55
|
sdk.profile.getPaginatedUserMovements({ page: 1, pageSize: DEFAULT_PAGE_SIZE }),
|
|
56
|
-
|
|
56
|
+
// Cursor mode (pageToken "") reads the newest orders; legacy
|
|
57
|
+
// page-number mode is deprecated.
|
|
58
|
+
sdk.trading.getPaginatedOrders({ pageSize: DEFAULT_PAGE_SIZE, pageToken: "" }),
|
|
57
59
|
]);
|
|
58
60
|
const userProfile = getSettledValueOrThrow(userProfileResult);
|
|
59
61
|
const balances = getFulfilledValue(balancesResult);
|
|
@@ -21,9 +21,11 @@ export function useUserOrders(maxOrders = 50) {
|
|
|
21
21
|
return;
|
|
22
22
|
setLoading(true);
|
|
23
23
|
try {
|
|
24
|
+
// Cursor mode (pageToken "") reads the newest rows first, which is all
|
|
25
|
+
// this hook needs; legacy page-number mode is deprecated.
|
|
24
26
|
const response = await sdk.trading.getPaginatedOrders({
|
|
25
|
-
page: 1,
|
|
26
27
|
pageSize: maxOrders,
|
|
28
|
+
pageToken: "",
|
|
27
29
|
});
|
|
28
30
|
// Combine latest_orders (from the live engine cache) with orders (from PostgreSQL)
|
|
29
31
|
// latest_orders contains real-time data that may not yet be in PostgreSQL
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"lint": "biome lint ."
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@0xmonaco/core": "1.0.
|
|
24
|
-
"@0xmonaco/types": "1.0.
|
|
23
|
+
"@0xmonaco/core": "1.0.31",
|
|
24
|
+
"@0xmonaco/types": "1.0.31"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/react": "^19.1.12",
|