zklighter-perps 1.0.35 → 1.0.36

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.
@@ -37,6 +37,18 @@ export interface Liquidation {
37
37
  * @memberof Liquidation
38
38
  */
39
39
  liquidation_type: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Liquidation
44
+ */
45
+ portfolio_value: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof Liquidation
50
+ */
51
+ margin_requirement: string;
40
52
  }
41
53
 
42
54
  /**
@@ -46,6 +58,8 @@ export function instanceOfLiquidation(value: object): value is Liquidation {
46
58
  if (!('liquidation_id' in value) || value['liquidation_id'] === undefined) return false;
47
59
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
48
60
  if (!('liquidation_type' in value) || value['liquidation_type'] === undefined) return false;
61
+ if (!('portfolio_value' in value) || value['portfolio_value'] === undefined) return false;
62
+ if (!('margin_requirement' in value) || value['margin_requirement'] === undefined) return false;
49
63
  return true;
50
64
  }
51
65
 
@@ -62,6 +76,8 @@ export function LiquidationFromJSONTyped(json: any, ignoreDiscriminator: boolean
62
76
  'liquidation_id': json['liquidation_id'],
63
77
  'account_index': json['account_index'],
64
78
  'liquidation_type': json['liquidation_type'],
79
+ 'portfolio_value': json['portfolio_value'],
80
+ 'margin_requirement': json['margin_requirement'],
65
81
  };
66
82
  }
67
83
 
@@ -74,6 +90,8 @@ export function LiquidationToJSON(value?: Liquidation | null): any {
74
90
  'liquidation_id': value['liquidation_id'],
75
91
  'account_index': value['account_index'],
76
92
  'liquidation_type': value['liquidation_type'],
93
+ 'portfolio_value': value['portfolio_value'],
94
+ 'margin_requirement': value['margin_requirement'],
77
95
  };
78
96
  }
79
97
 
package/openapi.json CHANGED
@@ -2070,11 +2070,11 @@
2070
2070
  },
2071
2071
  "priority_operations": {
2072
2072
  "type": "integer",
2073
- "format": "int64"
2073
+ "format": "int32"
2074
2074
  },
2075
2075
  "on_chain_l2_operations": {
2076
2076
  "type": "integer",
2077
- "format": "int64"
2077
+ "format": "int32"
2078
2078
  },
2079
2079
  "pending_on_chain_operations_pub_data": {
2080
2080
  "type": "string"
@@ -2763,13 +2763,23 @@
2763
2763
  "type": "integer",
2764
2764
  "format": "uint8",
2765
2765
  "example": "1"
2766
+ },
2767
+ "portfolio_value": {
2768
+ "type": "string",
2769
+ "example": "1"
2770
+ },
2771
+ "margin_requirement": {
2772
+ "type": "string",
2773
+ "example": "1"
2766
2774
  }
2767
2775
  },
2768
2776
  "title": "Liquidation",
2769
2777
  "required": [
2770
2778
  "liquidation_id",
2771
2779
  "account_index",
2772
- "liquidation_type"
2780
+ "liquidation_type",
2781
+ "portfolio_value",
2782
+ "margin_requirement"
2773
2783
  ]
2774
2784
  },
2775
2785
  "MarketInfo": {
@@ -2920,7 +2930,7 @@
2920
2930
  },
2921
2931
  "base_price": {
2922
2932
  "type": "integer",
2923
- "format": "int64",
2933
+ "format": "int32",
2924
2934
  "example": "3024"
2925
2935
  },
2926
2936
  "nonce": {
@@ -3048,17 +3058,17 @@
3048
3058
  },
3049
3059
  "supported_size_decimals": {
3050
3060
  "type": "integer",
3051
- "format": "int64",
3061
+ "format": "uint8",
3052
3062
  "example": "4"
3053
3063
  },
3054
3064
  "supported_price_decimals": {
3055
3065
  "type": "integer",
3056
- "format": "int64",
3066
+ "format": "uint8",
3057
3067
  "example": "4"
3058
3068
  },
3059
3069
  "supported_quote_decimals": {
3060
3070
  "type": "integer",
3061
- "format": "int64",
3071
+ "format": "uint8",
3062
3072
  "example": "4"
3063
3073
  }
3064
3074
  },
@@ -3156,17 +3166,17 @@
3156
3166
  },
3157
3167
  "supported_size_decimals": {
3158
3168
  "type": "integer",
3159
- "format": "int64",
3169
+ "format": "uint8",
3160
3170
  "example": "4"
3161
3171
  },
3162
3172
  "supported_price_decimals": {
3163
3173
  "type": "integer",
3164
- "format": "int64",
3174
+ "format": "uint8",
3165
3175
  "example": "4"
3166
3176
  },
3167
3177
  "supported_quote_decimals": {
3168
3178
  "type": "integer",
3169
- "format": "int64",
3179
+ "format": "uint8",
3170
3180
  "example": "4"
3171
3181
  },
3172
3182
  "size_decimals": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {