@0xmonaco/react 1.0.31 → 1.0.32-develop.522174b
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/hooks/useUserBalances/useUserBalances.d.ts +2 -2
- package/dist/hooks/useUserBalances/useUserBalances.js +2 -2
- package/dist/hooks/useUserMovements/useUserMovements.d.ts +2 -2
- package/dist/hooks/useUserMovements/useUserMovements.js +2 -2
- package/dist/hooks/useUserOrders/useUserOrders.d.ts +2 -2
- package/dist/hooks/useUserOrders/useUserOrders.js +2 -2
- package/package.json +5 -5
|
@@ -8,7 +8,7 @@ export declare function updateBalanceFromEvent(balance: AccountBalance, event: U
|
|
|
8
8
|
* Hook for subscribing to real-time user balance updates via WebSocket (authenticated)
|
|
9
9
|
*
|
|
10
10
|
* Fetches initial balances from the REST API, then subscribes to real-time updates.
|
|
11
|
-
* Requires authentication - the user must be logged in with a
|
|
12
|
-
* User is identified on the backend
|
|
11
|
+
* Requires authentication - the user must be logged in with a session key.
|
|
12
|
+
* User is identified on the backend from the signed session-key handshake.
|
|
13
13
|
*/
|
|
14
14
|
export declare function useUserBalances(): UseUserBalancesReturn;
|
|
@@ -92,8 +92,8 @@ function totalBalanceRawFromEvent(balance, event) {
|
|
|
92
92
|
* Hook for subscribing to real-time user balance updates via WebSocket (authenticated)
|
|
93
93
|
*
|
|
94
94
|
* Fetches initial balances from the REST API, then subscribes to real-time updates.
|
|
95
|
-
* Requires authentication - the user must be logged in with a
|
|
96
|
-
* User is identified on the backend
|
|
95
|
+
* Requires authentication - the user must be logged in with a session key.
|
|
96
|
+
* User is identified on the backend from the signed session-key handshake.
|
|
97
97
|
*/
|
|
98
98
|
export function useUserBalances() {
|
|
99
99
|
const { sdk } = useMonacoSDK();
|
|
@@ -3,8 +3,8 @@ import type { UseUserMovementsOptions, UseUserMovementsReturn } from "./types";
|
|
|
3
3
|
* Hook for subscribing to real-time user movement events via WebSocket (authenticated)
|
|
4
4
|
*
|
|
5
5
|
* Fetches initial movements from the REST API, then subscribes to real-time updates.
|
|
6
|
-
* Requires authentication - the user must be logged in with a
|
|
7
|
-
* User is identified on the backend
|
|
6
|
+
* Requires authentication - the user must be logged in with a session key.
|
|
7
|
+
* User is identified on the backend from the signed session-key handshake.
|
|
8
8
|
*
|
|
9
9
|
* Re-fetches movements whenever filter options change.
|
|
10
10
|
*
|
|
@@ -37,8 +37,8 @@ function ledgerMovementToEvent(movement, userId) {
|
|
|
37
37
|
* Hook for subscribing to real-time user movement events via WebSocket (authenticated)
|
|
38
38
|
*
|
|
39
39
|
* Fetches initial movements from the REST API, then subscribes to real-time updates.
|
|
40
|
-
* Requires authentication - the user must be logged in with a
|
|
41
|
-
* User is identified on the backend
|
|
40
|
+
* Requires authentication - the user must be logged in with a session key.
|
|
41
|
+
* User is identified on the backend from the signed session-key handshake.
|
|
42
42
|
*
|
|
43
43
|
* Re-fetches movements whenever filter options change.
|
|
44
44
|
*
|
|
@@ -3,8 +3,8 @@ import type { UseUserOrdersReturn } from "./types";
|
|
|
3
3
|
* Hook for subscribing to real-time user order events via WebSocket (authenticated)
|
|
4
4
|
*
|
|
5
5
|
* Fetches initial orders from the REST API, then subscribes to real-time updates.
|
|
6
|
-
* Requires authentication - the user must be logged in with a
|
|
7
|
-
* User is identified on the backend
|
|
6
|
+
* Requires authentication - the user must be logged in with a session key.
|
|
7
|
+
* User is identified on the backend from the signed session-key handshake.
|
|
8
8
|
*
|
|
9
9
|
* @param maxOrders - Maximum number of orders to keep in state (default: 50)
|
|
10
10
|
*/
|
|
@@ -4,8 +4,8 @@ import { useMonacoSDK } from "../useMonaco";
|
|
|
4
4
|
* Hook for subscribing to real-time user order events via WebSocket (authenticated)
|
|
5
5
|
*
|
|
6
6
|
* Fetches initial orders from the REST API, then subscribes to real-time updates.
|
|
7
|
-
* Requires authentication - the user must be logged in with a
|
|
8
|
-
* User is identified on the backend
|
|
7
|
+
* Requires authentication - the user must be logged in with a session key.
|
|
8
|
+
* User is identified on the backend from the signed session-key handshake.
|
|
9
9
|
*
|
|
10
10
|
* @param maxOrders - Maximum number of orders to keep in state (default: 50)
|
|
11
11
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32-develop.522174b",
|
|
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.32-develop.522174b",
|
|
24
|
+
"@0xmonaco/types": "1.0.32-develop.522174b"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/react": "^19.1.12",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
32
|
+
"viem": "^2.45.2",
|
|
33
|
+
"wagmi": "^2.0.0 || ^3.0.0"
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|