zklighter-perps 1.0.171 → 1.0.172

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.
@@ -31,6 +31,18 @@ export interface MarketConfig {
31
31
  * @memberof MarketConfig
32
32
  */
33
33
  insurance_fund_account_index: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof MarketConfig
38
+ */
39
+ liquidation_mode: number;
40
+ /**
41
+ *
42
+ * @type {boolean}
43
+ * @memberof MarketConfig
44
+ */
45
+ force_reduce_only: boolean;
34
46
  }
35
47
 
36
48
  /**
@@ -39,6 +51,8 @@ export interface MarketConfig {
39
51
  export function instanceOfMarketConfig(value: object): value is MarketConfig {
40
52
  if (!('market_margin_mode' in value) || value['market_margin_mode'] === undefined) return false;
41
53
  if (!('insurance_fund_account_index' in value) || value['insurance_fund_account_index'] === undefined) return false;
54
+ if (!('liquidation_mode' in value) || value['liquidation_mode'] === undefined) return false;
55
+ if (!('force_reduce_only' in value) || value['force_reduce_only'] === undefined) return false;
42
56
  return true;
43
57
  }
44
58
 
@@ -54,6 +68,8 @@ export function MarketConfigFromJSONTyped(json: any, ignoreDiscriminator: boolea
54
68
 
55
69
  'market_margin_mode': json['market_margin_mode'],
56
70
  'insurance_fund_account_index': json['insurance_fund_account_index'],
71
+ 'liquidation_mode': json['liquidation_mode'],
72
+ 'force_reduce_only': json['force_reduce_only'],
57
73
  };
58
74
  }
59
75
 
@@ -65,6 +81,8 @@ export function MarketConfigToJSON(value?: MarketConfig | null): any {
65
81
 
66
82
  'market_margin_mode': value['market_margin_mode'],
67
83
  'insurance_fund_account_index': value['insurance_fund_account_index'],
84
+ 'liquidation_mode': value['liquidation_mode'],
85
+ 'force_reduce_only': value['force_reduce_only'],
68
86
  };
69
87
  }
70
88
 
package/openapi.json CHANGED
@@ -5196,12 +5196,22 @@
5196
5196
  "insurance_fund_account_index": {
5197
5197
  "type": "integer",
5198
5198
  "format": "int64"
5199
+ },
5200
+ "liquidation_mode": {
5201
+ "type": "integer",
5202
+ "format": "int32"
5203
+ },
5204
+ "force_reduce_only": {
5205
+ "type": "boolean",
5206
+ "format": "boolean"
5199
5207
  }
5200
5208
  },
5201
5209
  "title": "MarketConfig",
5202
5210
  "required": [
5203
5211
  "market_margin_mode",
5204
- "insurance_fund_account_index"
5212
+ "insurance_fund_account_index",
5213
+ "liquidation_mode",
5214
+ "force_reduce_only"
5205
5215
  ]
5206
5216
  },
5207
5217
  "MarketInfo": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.171",
3
+ "version": "1.0.172",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {