@0xmonaco/react 1.0.42 → 1.0.44
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
|
@@ -55,7 +55,9 @@ export declare const COVERED: {
|
|
|
55
55
|
};
|
|
56
56
|
/** operationId → reason it is intentionally not covered by @0xmonaco/react. */
|
|
57
57
|
export declare const INTENTIONALLY_EXCLUDED: {
|
|
58
|
+
cancel_twap_order: string;
|
|
58
59
|
create_delegated_session: string;
|
|
60
|
+
create_twap_order: string;
|
|
59
61
|
create_sub_account_limit: string;
|
|
60
62
|
delete_sub_account_limit: string;
|
|
61
63
|
get_application_config: string;
|
|
@@ -79,6 +81,7 @@ export declare const INTENTIONALLY_EXCLUDED: {
|
|
|
79
81
|
get_sub_account_limits: string;
|
|
80
82
|
get_trade_by_id: string;
|
|
81
83
|
get_trading_pair_by_id: string;
|
|
84
|
+
get_twap_order: string;
|
|
82
85
|
get_user_trades: string;
|
|
83
86
|
health_check: string;
|
|
84
87
|
list_application_balances: string;
|
|
@@ -91,6 +94,7 @@ export declare const INTENTIONALLY_EXCLUDED: {
|
|
|
91
94
|
list_funding_payments: string;
|
|
92
95
|
list_margin_accounts: string;
|
|
93
96
|
list_sub_accounts_with_balances: string;
|
|
97
|
+
list_twap_orders: string;
|
|
94
98
|
mint_tokens: string;
|
|
95
99
|
revoke_delegated_agent: string;
|
|
96
100
|
simulate_risk_bucket_order_risk: string;
|
package/dist/coverage.js
CHANGED
|
@@ -55,7 +55,9 @@ export const COVERED = {
|
|
|
55
55
|
};
|
|
56
56
|
/** operationId → reason it is intentionally not covered by @0xmonaco/react. */
|
|
57
57
|
export const INTENTIONALLY_EXCLUDED = {
|
|
58
|
+
cancel_twap_order: "TWAP parent orders are an advanced execution-algo surface (covered by @0xmonaco/core); no React hook yet.",
|
|
58
59
|
create_delegated_session: "Delegated-agent management is an automation/agent surface, not a UI workflow; no React hook.",
|
|
60
|
+
create_twap_order: "TWAP parent orders are an advanced execution-algo surface (covered by @0xmonaco/core); no React hook yet.",
|
|
59
61
|
create_sub_account_limit: "Sub-account administration; no React hook.",
|
|
60
62
|
delete_sub_account_limit: "Sub-account administration; no React hook.",
|
|
61
63
|
get_application_config: "Application/backend (server-key) admin endpoint; not a user-wallet React workflow.",
|
|
@@ -79,6 +81,7 @@ export const INTENTIONALLY_EXCLUDED = {
|
|
|
79
81
|
get_sub_account_limits: "Sub-account administration; no React hook.",
|
|
80
82
|
get_trade_by_id: "Trade-history lookup with a core client method but no dedicated React hook yet.",
|
|
81
83
|
get_trading_pair_by_id: "Market lookup available via the core client / list+symbol hooks; no dedicated React hook.",
|
|
84
|
+
get_twap_order: "TWAP parent orders are an advanced execution-algo surface (covered by @0xmonaco/core); no React hook yet.",
|
|
82
85
|
get_user_trades: "Trade-history lookup with a core client method but no dedicated React hook yet.",
|
|
83
86
|
health_check: "Infrastructure liveness probe (GET /health); not part of the data SDK surface.",
|
|
84
87
|
list_application_balances: "Application/backend (server-key) admin endpoint; not a user-wallet React workflow.",
|
|
@@ -91,6 +94,7 @@ export const INTENTIONALLY_EXCLUDED = {
|
|
|
91
94
|
list_funding_payments: "Perps funding-payment history; no React hook yet.",
|
|
92
95
|
list_margin_accounts: "Margin-account management/collateral/simulation endpoint; no React hook yet.",
|
|
93
96
|
list_sub_accounts_with_balances: "Sub-account administration; no React hook.",
|
|
97
|
+
list_twap_orders: "TWAP parent orders are an advanced execution-algo surface (covered by @0xmonaco/core); no React hook yet.",
|
|
94
98
|
mint_tokens: "Test-net faucet; no React hook (use the MCP/core faucet path).",
|
|
95
99
|
revoke_delegated_agent: "Delegated-agent management is an automation/agent surface, not a UI workflow; no React hook.",
|
|
96
100
|
simulate_risk_bucket_order_risk: "Margin-account management/collateral/simulation endpoint; no React hook yet.",
|
|
@@ -178,9 +178,19 @@ function updateOrderFromEvent(order, event) {
|
|
|
178
178
|
if ("averageFillPrice" in data && data.averageFillPrice) {
|
|
179
179
|
avgFillPrice = data.averageFillPrice;
|
|
180
180
|
}
|
|
181
|
+
// A partial cancel reduces the order's TOTAL in place while it keeps
|
|
182
|
+
// resting; without applying it the UI shows a resting size the book no
|
|
183
|
+
// longer has. (`Order` has no remainingQuantity field — consumers derive
|
|
184
|
+
// it as quantity - filledQuantity, which stays correct once the total
|
|
185
|
+
// updates.)
|
|
186
|
+
let quantity = order.quantity;
|
|
187
|
+
if ("quantity" in data && data.quantity) {
|
|
188
|
+
quantity = data.quantity;
|
|
189
|
+
}
|
|
181
190
|
return {
|
|
182
191
|
...order,
|
|
183
192
|
status: newStatus,
|
|
193
|
+
quantity,
|
|
184
194
|
filledQuantity: filledQuantity,
|
|
185
195
|
averageFillPrice: avgFillPrice,
|
|
186
196
|
updatedAt: event.timestamp,
|
package/package.json
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.44",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "https://github.com/Monaco-Research/monaco-sdk.git",
|
|
8
|
-
"directory": "packages/react"
|
|
9
|
-
},
|
|
5
|
+
"homepage": "https://docs.0xmonaco.com/sdk/typescript",
|
|
10
6
|
"main": "./dist/index.js",
|
|
11
7
|
"module": "./dist/index.js",
|
|
12
8
|
"types": "./dist/index.d.ts",
|
|
@@ -20,8 +16,8 @@
|
|
|
20
16
|
"lint": "biome lint ."
|
|
21
17
|
},
|
|
22
18
|
"dependencies": {
|
|
23
|
-
"@0xmonaco/core": "1.0.
|
|
24
|
-
"@0xmonaco/types": "1.0.
|
|
19
|
+
"@0xmonaco/core": "1.0.44",
|
|
20
|
+
"@0xmonaco/types": "1.0.44"
|
|
25
21
|
},
|
|
26
22
|
"devDependencies": {
|
|
27
23
|
"@types/react": "^19.1.12",
|