zklighter-perps 1.0.19 → 1.0.21

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.
@@ -25,6 +25,12 @@ export interface AccountPosition {
25
25
  * @memberof AccountPosition
26
26
  */
27
27
  market_id: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof AccountPosition
32
+ */
33
+ ooc: number;
28
34
  /**
29
35
  *
30
36
  * @type {string}
@@ -80,6 +86,7 @@ export interface AccountPosition {
80
86
  */
81
87
  export function instanceOfAccountPosition(value: object): value is AccountPosition {
82
88
  if (!('market_id' in value) || value['market_id'] === undefined) return false;
89
+ if (!('ooc' in value) || value['ooc'] === undefined) return false;
83
90
  if (!('name' in value) || value['name'] === undefined) return false;
84
91
  if (!('symbol' in value) || value['symbol'] === undefined) return false;
85
92
  if (!('sign' in value) || value['sign'] === undefined) return false;
@@ -102,6 +109,7 @@ export function AccountPositionFromJSONTyped(json: any, ignoreDiscriminator: boo
102
109
  return {
103
110
 
104
111
  'market_id': json['market_id'],
112
+ 'ooc': json['ooc'],
105
113
  'name': json['name'],
106
114
  'symbol': json['symbol'],
107
115
  'sign': json['sign'],
@@ -120,6 +128,7 @@ export function AccountPositionToJSON(value?: AccountPosition | null): any {
120
128
  return {
121
129
 
122
130
  'market_id': value['market_id'],
131
+ 'ooc': value['ooc'],
123
132
  'name': value['name'],
124
133
  'symbol': value['symbol'],
125
134
  'sign': value['sign'],
package/openapi.json CHANGED
@@ -108,7 +108,7 @@
108
108
  "in": "query",
109
109
  "required": true,
110
110
  "type": "integer",
111
- "format": "int32"
111
+ "format": "int64"
112
112
  },
113
113
  {
114
114
  "name": "market_id",
@@ -151,7 +151,7 @@
151
151
  "in": "query",
152
152
  "required": true,
153
153
  "type": "integer",
154
- "format": "int32"
154
+ "format": "int64"
155
155
  },
156
156
  {
157
157
  "name": "filter",
@@ -219,7 +219,7 @@
219
219
  "in": "query",
220
220
  "required": true,
221
221
  "type": "integer",
222
- "format": "int32"
222
+ "format": "int64"
223
223
  },
224
224
  {
225
225
  "name": "market_id",
@@ -488,7 +488,7 @@
488
488
  "in": "query",
489
489
  "required": true,
490
490
  "type": "integer",
491
- "format": "int32"
491
+ "format": "int64"
492
492
  },
493
493
  {
494
494
  "name": "api_key_index",
@@ -987,7 +987,7 @@
987
987
  "in": "query",
988
988
  "required": true,
989
989
  "type": "integer",
990
- "format": "int32"
990
+ "format": "int64"
991
991
  },
992
992
  {
993
993
  "name": "api_key_index",
@@ -1042,7 +1042,7 @@
1042
1042
  "in": "query",
1043
1043
  "required": true,
1044
1044
  "type": "integer",
1045
- "format": "int32"
1045
+ "format": "int64"
1046
1046
  },
1047
1047
  {
1048
1048
  "name": "api_key_index",
@@ -1793,7 +1793,7 @@
1793
1793
  },
1794
1794
  "index": {
1795
1795
  "type": "integer",
1796
- "format": "int32",
1796
+ "format": "int64",
1797
1797
  "example": "1"
1798
1798
  },
1799
1799
  "l1_address": {
@@ -1933,6 +1933,11 @@
1933
1933
  "format": "uin16",
1934
1934
  "example": "1"
1935
1935
  },
1936
+ "ooc": {
1937
+ "type": "integer",
1938
+ "format": "int64",
1939
+ "example": "3"
1940
+ },
1936
1941
  "name": {
1937
1942
  "type": "string",
1938
1943
  "example": "Ethereum"
@@ -1970,6 +1975,7 @@
1970
1975
  "title": "AccountPosition",
1971
1976
  "required": [
1972
1977
  "market_id",
1978
+ "ooc",
1973
1979
  "name",
1974
1980
  "symbol",
1975
1981
  "sign",
@@ -2026,7 +2032,7 @@
2026
2032
  },
2027
2033
  "total": {
2028
2034
  "type": "integer",
2029
- "format": "int32",
2035
+ "format": "int64",
2030
2036
  "example": "1"
2031
2037
  },
2032
2038
  "accounts": {
@@ -2047,7 +2053,7 @@
2047
2053
  "properties": {
2048
2054
  "account_index": {
2049
2055
  "type": "integer",
2050
- "format": "int32",
2056
+ "format": "int64",
2051
2057
  "example": "3"
2052
2058
  },
2053
2059
  "api_key_index": {
@@ -2309,7 +2315,7 @@
2309
2315
  },
2310
2316
  "index": {
2311
2317
  "type": "integer",
2312
- "format": "int32",
2318
+ "format": "int64",
2313
2319
  "example": "1"
2314
2320
  },
2315
2321
  "l1_address": {
@@ -2434,7 +2440,7 @@
2434
2440
  },
2435
2441
  "account_index": {
2436
2442
  "type": "integer",
2437
- "format": "int32",
2443
+ "format": "int64",
2438
2444
  "example": "1"
2439
2445
  },
2440
2446
  "nonce": {
@@ -2718,7 +2724,7 @@
2718
2724
  },
2719
2725
  "AccountIndex": {
2720
2726
  "type": "integer",
2721
- "format": "int32"
2727
+ "format": "int64"
2722
2728
  },
2723
2729
  "LiquidationType": {
2724
2730
  "type": "integer",
@@ -2829,7 +2835,7 @@
2829
2835
  },
2830
2836
  "owner_account_index": {
2831
2837
  "type": "integer",
2832
- "format": "int32",
2838
+ "format": "int64",
2833
2839
  "example": "1"
2834
2840
  },
2835
2841
  "initial_base_amount": {
@@ -3463,7 +3469,7 @@
3463
3469
  "properties": {
3464
3470
  "account_index": {
3465
3471
  "type": "integer",
3466
- "format": "int32"
3472
+ "format": "int64"
3467
3473
  },
3468
3474
  "market_id": {
3469
3475
  "type": "integer",
@@ -3481,7 +3487,7 @@
3481
3487
  "properties": {
3482
3488
  "account_index": {
3483
3489
  "type": "integer",
3484
- "format": "int32"
3490
+ "format": "int64"
3485
3491
  },
3486
3492
  "api_key_index": {
3487
3493
  "type": "integer",
@@ -3511,7 +3517,7 @@
3511
3517
  "properties": {
3512
3518
  "account_index": {
3513
3519
  "type": "integer",
3514
- "format": "int32"
3520
+ "format": "int64"
3515
3521
  },
3516
3522
  "filter": {
3517
3523
  "type": "string",
@@ -3546,7 +3552,7 @@
3546
3552
  "properties": {
3547
3553
  "account_index": {
3548
3554
  "type": "integer",
3549
- "format": "int32"
3555
+ "format": "int64"
3550
3556
  },
3551
3557
  "market_id": {
3552
3558
  "type": "integer",
@@ -3828,7 +3834,7 @@
3828
3834
  "properties": {
3829
3835
  "account_index": {
3830
3836
  "type": "integer",
3831
- "format": "int32"
3837
+ "format": "int64"
3832
3838
  },
3833
3839
  "api_key_index": {
3834
3840
  "type": "integer",
@@ -4099,7 +4105,7 @@
4099
4105
  },
4100
4106
  "account_index": {
4101
4107
  "type": "integer",
4102
- "format": "int32"
4108
+ "format": "int64"
4103
4109
  },
4104
4110
  "api_key_index": {
4105
4111
  "type": "integer",
@@ -4291,7 +4297,7 @@
4291
4297
  "properties": {
4292
4298
  "owner_account_index": {
4293
4299
  "type": "integer",
4294
- "format": "int32",
4300
+ "format": "int64",
4295
4301
  "example": "1"
4296
4302
  },
4297
4303
  "initial_base_amount": {
@@ -4413,12 +4419,12 @@
4413
4419
  },
4414
4420
  "maker_account_id": {
4415
4421
  "type": "integer",
4416
- "format": "int32",
4422
+ "format": "int64",
4417
4423
  "example": "1"
4418
4424
  },
4419
4425
  "taker_account_id": {
4420
4426
  "type": "integer",
4421
- "format": "int32",
4427
+ "format": "int64",
4422
4428
  "example": "3"
4423
4429
  },
4424
4430
  "is_maker_ask": {
@@ -4514,7 +4520,7 @@
4514
4520
  },
4515
4521
  "account_index": {
4516
4522
  "type": "integer",
4517
- "format": "int32",
4523
+ "format": "int64",
4518
4524
  "example": "1"
4519
4525
  },
4520
4526
  "nonce": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {