@0xmonaco/react 1.1.12 → 1.1.14
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 +1 -0
- package/dist/coverage.js +1 -0
- package/dist/hooks/useTrade/types.d.ts +6 -3
- package/package.json +3 -3
package/dist/coverage.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export declare const INTENTIONALLY_EXCLUDED: {
|
|
|
126
126
|
get_sweeper_chains: string;
|
|
127
127
|
list_sweeper_deposits: string;
|
|
128
128
|
get_sweeper_deposit_status: string;
|
|
129
|
+
get_sweeper_hypercore_deposit_status: string;
|
|
129
130
|
set_self_trade_prevention_default: string;
|
|
130
131
|
get_sub_account_limits: string;
|
|
131
132
|
get_trade_by_id: string;
|
package/dist/coverage.js
CHANGED
|
@@ -126,6 +126,7 @@ export const INTENTIONALLY_EXCLUDED = {
|
|
|
126
126
|
get_sweeper_chains: "Sweeper chain/asset listing; deposit-onboarding data available via the core client, not a UI action. No React hook.",
|
|
127
127
|
list_sweeper_deposits: "Sweeper deposit listing by cursor; deposit-history data available via the core client, not a UI action. No React hook.",
|
|
128
128
|
get_sweeper_deposit_status: "Sweeper deposit-status lookup by transaction hash; a polling read available via the core client, not a UI action. No React hook.",
|
|
129
|
+
get_sweeper_hypercore_deposit_status: "Sweeper deposit-status lookup of a Hyperliquid (HyperCore) deposit by its action nonce; a polling read available via the core client, not a UI action. No React hook.",
|
|
129
130
|
set_self_trade_prevention_default: "Wallet trading-settings surface (covered by @0xmonaco/core); no React hook yet.",
|
|
130
131
|
get_sub_account_limits: "Sub-account administration; no React hook.",
|
|
131
132
|
get_trade_by_id: "Trade-history lookup with a core client method but no dedicated React hook yet.",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BatchCancelOrdersResponse, BatchCreateOrderParams, BatchCreateOrdersResponse, BatchReplaceOrderParams, BatchReplaceOrdersResponse, CancelAllAfterOptions, CancelAllAfterResponse, CancelConditionalOrderResponse, CancelOrderResponse, ConditionalOrder, CreateOrderResponse, GetOrderResponse, GetPaginatedOrdersParams, GetPaginatedOrdersResponse, ListConditionalOrdersParams, ListConditionalOrdersResponse, OrderSide, ReplaceOrderResponse, TradingAPI } from "@0xmonaco/types";
|
|
1
|
+
import type { BatchCancelAllResponse, BatchCancelOrdersResponse, BatchCreateOrderParams, BatchCreateOrdersResponse, BatchReplaceOrderParams, BatchReplaceOrdersResponse, CancelAllAfterOptions, CancelAllAfterResponse, CancelConditionalOrderResponse, CancelOrderResponse, ConditionalOrder, CreateOrderResponse, GetOrderResponse, GetPaginatedOrdersParams, GetPaginatedOrdersResponse, ListConditionalOrdersParams, ListConditionalOrdersResponse, OrderSide, ReplaceOrderResponse, TradingAPI } from "@0xmonaco/types";
|
|
2
2
|
type PlaceLimitOrderOptions = NonNullable<Parameters<TradingAPI["placeLimitOrder"]>[4]>;
|
|
3
3
|
type PlaceMarketOrderOptions = NonNullable<Parameters<TradingAPI["placeMarketOrder"]>[3]>;
|
|
4
4
|
type ReplaceOrderOptions = NonNullable<Parameters<TradingAPI["replaceOrder"]>[1]>;
|
|
@@ -17,8 +17,11 @@ export interface UseTradeReturn {
|
|
|
17
17
|
listConditionalOrders: (params?: ListConditionalOrdersParams) => Promise<ListConditionalOrdersResponse>;
|
|
18
18
|
/** Batch cancel specific orders by their IDs */
|
|
19
19
|
batchCancel: (orderIds: string[]) => Promise<BatchCancelOrdersResponse>;
|
|
20
|
-
/**
|
|
21
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Cancel all active orders, optionally filtered by trading pair, and
|
|
22
|
+
* withdraw your RFQ quotes in RFQs still collecting (`rfqQuotesWithdrawn`)
|
|
23
|
+
*/
|
|
24
|
+
batchCancelAll: (tradingPairId?: string) => Promise<BatchCancelAllResponse>;
|
|
22
25
|
/**
|
|
23
26
|
* Arm, refresh or disarm the cancel-all-after dead man's switch: unless you
|
|
24
27
|
* call again before `timeoutMs` runs out, your resting orders are
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://docs.0xmonaco.com/sdk/typescript",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"lint": "biome lint ."
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@0xmonaco/core": "1.1.
|
|
20
|
-
"@0xmonaco/types": "1.1.
|
|
19
|
+
"@0xmonaco/core": "1.1.14",
|
|
20
|
+
"@0xmonaco/types": "1.1.14"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/react": "^19.3.0",
|