@0xmonaco/types 0.7.1 → 0.7.2

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.
@@ -17,4 +17,6 @@ export interface ApplicationConfigResponse {
17
17
  webhookUrl?: string;
18
18
  /** Vault contract address */
19
19
  vaultContractAddress: string;
20
+ /** Application client ID, embedded in on-chain deposit calls */
21
+ clientId: string;
20
22
  }
@@ -54,6 +54,8 @@ export interface TransferCollateralResponse {
54
54
  amount: string;
55
55
  status: string;
56
56
  new_equity: string;
57
+ new_total_collateral_value: string;
58
+ new_withdrawable_collateral: string;
57
59
  }
58
60
  export interface GetMarginAccountMovementsParams {
59
61
  movement_type?: string;
@@ -190,7 +190,7 @@ export interface AccountBalance {
190
190
  available_balance: string;
191
191
  /** Locked balance (in orders or pending operations, normalized) */
192
192
  locked_balance: string;
193
- /** Total balance (available + locked, normalized) */
193
+ /** Total balance (available + locked + margin collateral, normalized) */
194
194
  total_balance: string;
195
195
  /** Available balance in raw format (wei) */
196
196
  available_balance_raw: string;
@@ -7,7 +7,7 @@
7
7
  /**
8
8
  * Reason for the balance update
9
9
  */
10
- export type BalanceUpdateReason = "lock" | "unlock" | "deposit" | "withdrawal" | "trade";
10
+ export type BalanceUpdateReason = "lock" | "unlock" | "deposit" | "withdrawal" | "trade" | "margin_transfer_in" | "margin_transfer_out";
11
11
  /**
12
12
  * User balance event data containing current balance state
13
13
  */
@@ -24,7 +24,7 @@ export interface UserBalanceEventData {
24
24
  locked: string;
25
25
  /** Locked balance in raw format (wei) */
26
26
  lockedRaw: string;
27
- /** Total balance (available + locked, normalized) */
27
+ /** Total balance (available + locked + margin collateral, normalized) */
28
28
  total: string;
29
29
  /** Total balance in raw format (wei) */
30
30
  totalRaw: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/types",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",