zklighter-perps 1.0.122 → 1.0.123

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.
@@ -13,18 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { Mapuint8AccountPosition } from './Mapuint8AccountPosition';
16
+ import type { AccountPosition } from './AccountPosition';
17
17
  import {
18
- Mapuint8AccountPositionFromJSON,
19
- Mapuint8AccountPositionFromJSONTyped,
20
- Mapuint8AccountPositionToJSON,
21
- } from './Mapuint8AccountPosition';
22
- import type { Mapuint8uint32 } from './Mapuint8uint32';
23
- import {
24
- Mapuint8uint32FromJSON,
25
- Mapuint8uint32FromJSONTyped,
26
- Mapuint8uint32ToJSON,
27
- } from './Mapuint8uint32';
18
+ AccountPositionFromJSON,
19
+ AccountPositionFromJSONTyped,
20
+ AccountPositionToJSON,
21
+ } from './AccountPosition';
28
22
  import type { RiskInfo } from './RiskInfo';
29
23
  import {
30
24
  RiskInfoFromJSON,
@@ -40,10 +34,10 @@ import {
40
34
  export interface LiquidationInfo {
41
35
  /**
42
36
  *
43
- * @type {Mapuint8AccountPosition}
37
+ * @type {Array<AccountPosition>}
44
38
  * @memberof LiquidationInfo
45
39
  */
46
- positions: Mapuint8AccountPosition;
40
+ positions: Array<AccountPosition>;
47
41
  /**
48
42
  *
49
43
  * @type {RiskInfo}
@@ -58,10 +52,10 @@ export interface LiquidationInfo {
58
52
  risk_info_after: RiskInfo;
59
53
  /**
60
54
  *
61
- * @type {Mapuint8uint32}
55
+ * @type {{ [key: string]: number; }}
62
56
  * @memberof LiquidationInfo
63
57
  */
64
- mark_prices: Mapuint8uint32;
58
+ mark_prices: { [key: string]: number; };
65
59
  }
66
60
 
67
61
  /**
@@ -85,10 +79,10 @@ export function LiquidationInfoFromJSONTyped(json: any, ignoreDiscriminator: boo
85
79
  }
86
80
  return {
87
81
 
88
- 'positions': Mapuint8AccountPositionFromJSON(json['positions']),
82
+ 'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
89
83
  'risk_info_before': RiskInfoFromJSON(json['risk_info_before']),
90
84
  'risk_info_after': RiskInfoFromJSON(json['risk_info_after']),
91
- 'mark_prices': Mapuint8uint32FromJSON(json['mark_prices']),
85
+ 'mark_prices': json['mark_prices'],
92
86
  };
93
87
  }
94
88
 
@@ -98,10 +92,10 @@ export function LiquidationInfoToJSON(value?: LiquidationInfo | null): any {
98
92
  }
99
93
  return {
100
94
 
101
- 'positions': Mapuint8AccountPositionToJSON(value['positions']),
95
+ 'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
102
96
  'risk_info_before': RiskInfoToJSON(value['risk_info_before']),
103
97
  'risk_info_after': RiskInfoToJSON(value['risk_info_after']),
104
- 'mark_prices': Mapuint8uint32ToJSON(value['mark_prices']),
98
+ 'mark_prices': value['mark_prices'],
105
99
  };
106
100
  }
107
101
 
package/openapi.json CHANGED
@@ -4428,7 +4428,10 @@
4428
4428
  "type": "object",
4429
4429
  "properties": {
4430
4430
  "positions": {
4431
- "$ref": "#/definitions/mapuint8AccountPosition"
4431
+ "type": "array",
4432
+ "items": {
4433
+ "$ref": "#/definitions/AccountPosition"
4434
+ }
4432
4435
  },
4433
4436
  "risk_info_before": {
4434
4437
  "$ref": "#/definitions/RiskInfo"
@@ -4437,7 +4440,11 @@
4437
4440
  "$ref": "#/definitions/RiskInfo"
4438
4441
  },
4439
4442
  "mark_prices": {
4440
- "$ref": "#/definitions/mapuint8uint32"
4443
+ "type": "object",
4444
+ "additionalProperties": {
4445
+ "type": "integer",
4446
+ "format": "int64"
4447
+ }
4441
4448
  }
4442
4449
  },
4443
4450
  "title": "LiquidationInfo",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.122",
3
+ "version": "1.0.123",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {