zklighter-perps 0.573.0-circleci.5f9803f.devin-1790172978-integer-enum-postprocess → 0.573.0-circleci.a75a652.devin-1790172978-integer-enum-postprocess

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.
@@ -288,7 +288,7 @@ export interface PublicPoolsMetadataRequest {
288
288
 
289
289
  export interface RfqCreateRequest {
290
290
  market_index: number;
291
- direction: number;
291
+ direction: RfqCreateDirectionEnum;
292
292
  authorization?: string;
293
293
  auth?: string;
294
294
  base_amount?: string;
@@ -2596,6 +2596,14 @@ export const PublicPoolsMetadataFilterEnum = {
2596
2596
  Stake: 'stake'
2597
2597
  } as const;
2598
2598
  export type PublicPoolsMetadataFilterEnum = typeof PublicPoolsMetadataFilterEnum[keyof typeof PublicPoolsMetadataFilterEnum];
2599
+ /**
2600
+ * @export
2601
+ */
2602
+ export const RfqCreateDirectionEnum = {
2603
+ NUMBER_0: 0,
2604
+ NUMBER_1: 1
2605
+ } as const;
2606
+ export type RfqCreateDirectionEnum = typeof RfqCreateDirectionEnum[keyof typeof RfqCreateDirectionEnum];
2599
2607
  /**
2600
2608
  * @export
2601
2609
  */
@@ -30,7 +30,7 @@ export interface AtomicOrderLeg {
30
30
  * @type {number}
31
31
  * @memberof AtomicOrderLeg
32
32
  */
33
- is_ask: number;
33
+ is_ask: AtomicOrderLegIsAskEnum;
34
34
  /**
35
35
  *
36
36
  * @type {number}
@@ -45,6 +45,17 @@ export interface AtomicOrderLeg {
45
45
  percentage: number;
46
46
  }
47
47
 
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const AtomicOrderLegIsAskEnum = {
53
+ NUMBER_0: 0,
54
+ NUMBER_1: 1
55
+ } as const;
56
+ export type AtomicOrderLegIsAskEnum = typeof AtomicOrderLegIsAskEnum[keyof typeof AtomicOrderLegIsAskEnum];
57
+
58
+
48
59
  /**
49
60
  * Check if a given object implements the AtomicOrderLeg interface.
50
61
  */
@@ -110,11 +110,11 @@ export interface BinaryOptionMarketStats {
110
110
  */
111
111
  status: BinaryOptionMarketStatsStatusEnum;
112
112
  /**
113
- * 0 unresolved, 1 NO, 2 YES
113
+ * None until the market settles
114
114
  * @type {number}
115
115
  * @memberof BinaryOptionMarketStats
116
116
  */
117
- outcome: number;
117
+ outcome: BinaryOptionMarketStatsOutcomeEnum;
118
118
  }
119
119
 
120
120
 
@@ -129,6 +129,16 @@ export const BinaryOptionMarketStatsStatusEnum = {
129
129
  } as const;
130
130
  export type BinaryOptionMarketStatsStatusEnum = typeof BinaryOptionMarketStatsStatusEnum[keyof typeof BinaryOptionMarketStatsStatusEnum];
131
131
 
132
+ /**
133
+ * @export
134
+ */
135
+ export const BinaryOptionMarketStatsOutcomeEnum = {
136
+ None: 0,
137
+ No: 1,
138
+ Yes: 2
139
+ } as const;
140
+ export type BinaryOptionMarketStatsOutcomeEnum = typeof BinaryOptionMarketStatsOutcomeEnum[keyof typeof BinaryOptionMarketStatsOutcomeEnum];
141
+
132
142
 
133
143
  /**
134
144
  * Check if a given object implements the BinaryOptionMarketStats interface.
@@ -36,7 +36,7 @@ export interface BoOutcomePnL {
36
36
  * @type {number}
37
37
  * @memberof BoOutcomePnL
38
38
  */
39
- outcome: number;
39
+ outcome: BoOutcomePnLOutcomeEnum;
40
40
  /**
41
41
  *
42
42
  * @type {number}
@@ -63,6 +63,18 @@ export interface BoOutcomePnL {
63
63
  total_pnl: string;
64
64
  }
65
65
 
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const BoOutcomePnLOutcomeEnum = {
71
+ None: 0,
72
+ No: 1,
73
+ Yes: 2
74
+ } as const;
75
+ export type BoOutcomePnLOutcomeEnum = typeof BoOutcomePnLOutcomeEnum[keyof typeof BoOutcomePnLOutcomeEnum];
76
+
77
+
66
78
  /**
67
79
  * Check if a given object implements the BoOutcomePnL interface.
68
80
  */
@@ -169,7 +169,7 @@ export interface EventOrderBookEntry {
169
169
  * @type {number}
170
170
  * @memberof EventOrderBookEntry
171
171
  */
172
- outcome: number;
172
+ outcome: EventOrderBookEntryOutcomeEnum;
173
173
  /**
174
174
  *
175
175
  * @type {number}
@@ -234,6 +234,16 @@ export const EventOrderBookEntryStatusEnum = {
234
234
  } as const;
235
235
  export type EventOrderBookEntryStatusEnum = typeof EventOrderBookEntryStatusEnum[keyof typeof EventOrderBookEntryStatusEnum];
236
236
 
237
+ /**
238
+ * @export
239
+ */
240
+ export const EventOrderBookEntryOutcomeEnum = {
241
+ None: 0,
242
+ No: 1,
243
+ Yes: 2
244
+ } as const;
245
+ export type EventOrderBookEntryOutcomeEnum = typeof EventOrderBookEntryOutcomeEnum[keyof typeof EventOrderBookEntryOutcomeEnum];
246
+
237
247
 
238
248
  /**
239
249
  * Check if a given object implements the EventOrderBookEntry interface.
@@ -162,7 +162,7 @@ export interface OrderBook {
162
162
  * @type {number}
163
163
  * @memberof OrderBook
164
164
  */
165
- outcome: number;
165
+ outcome: OrderBookOutcomeEnum;
166
166
  /**
167
167
  *
168
168
  * @type {number}
@@ -221,6 +221,16 @@ export const OrderBookStatusEnum = {
221
221
  } as const;
222
222
  export type OrderBookStatusEnum = typeof OrderBookStatusEnum[keyof typeof OrderBookStatusEnum];
223
223
 
224
+ /**
225
+ * @export
226
+ */
227
+ export const OrderBookOutcomeEnum = {
228
+ None: 0,
229
+ No: 1,
230
+ Yes: 2
231
+ } as const;
232
+ export type OrderBookOutcomeEnum = typeof OrderBookOutcomeEnum[keyof typeof OrderBookOutcomeEnum];
233
+
224
234
 
225
235
  /**
226
236
  * Check if a given object implements the OrderBook interface.
@@ -169,7 +169,7 @@ export interface PerpsOrderBookDetail {
169
169
  * @type {number}
170
170
  * @memberof PerpsOrderBookDetail
171
171
  */
172
- outcome: number;
172
+ outcome: PerpsOrderBookDetailOutcomeEnum;
173
173
  /**
174
174
  *
175
175
  * @type {number}
@@ -372,6 +372,16 @@ export const PerpsOrderBookDetailStatusEnum = {
372
372
  } as const;
373
373
  export type PerpsOrderBookDetailStatusEnum = typeof PerpsOrderBookDetailStatusEnum[keyof typeof PerpsOrderBookDetailStatusEnum];
374
374
 
375
+ /**
376
+ * @export
377
+ */
378
+ export const PerpsOrderBookDetailOutcomeEnum = {
379
+ None: 0,
380
+ No: 1,
381
+ Yes: 2
382
+ } as const;
383
+ export type PerpsOrderBookDetailOutcomeEnum = typeof PerpsOrderBookDetailOutcomeEnum[keyof typeof PerpsOrderBookDetailOutcomeEnum];
384
+
375
385
 
376
386
  /**
377
387
  * Check if a given object implements the PerpsOrderBookDetail interface.
@@ -162,7 +162,7 @@ export interface SpotOrderBookDetail {
162
162
  * @type {number}
163
163
  * @memberof SpotOrderBookDetail
164
164
  */
165
- outcome: number;
165
+ outcome: SpotOrderBookDetailOutcomeEnum;
166
166
  /**
167
167
  *
168
168
  * @type {number}
@@ -281,6 +281,16 @@ export const SpotOrderBookDetailStatusEnum = {
281
281
  } as const;
282
282
  export type SpotOrderBookDetailStatusEnum = typeof SpotOrderBookDetailStatusEnum[keyof typeof SpotOrderBookDetailStatusEnum];
283
283
 
284
+ /**
285
+ * @export
286
+ */
287
+ export const SpotOrderBookDetailOutcomeEnum = {
288
+ None: 0,
289
+ No: 1,
290
+ Yes: 2
291
+ } as const;
292
+ export type SpotOrderBookDetailOutcomeEnum = typeof SpotOrderBookDetailOutcomeEnum[keyof typeof SpotOrderBookDetailOutcomeEnum];
293
+
284
294
 
285
295
  /**
286
296
  * Check if a given object implements the SpotOrderBookDetail interface.
package/openapi.json CHANGED
@@ -8348,11 +8348,11 @@
8348
8348
  },
8349
8349
  "is_ask": {
8350
8350
  "type": "integer",
8351
- "format": "int8",
8351
+ "format": "int32",
8352
8352
  "example": "1",
8353
8353
  "enum": [
8354
- "0",
8355
- "1"
8354
+ 0,
8355
+ 1
8356
8356
  ]
8357
8357
  },
8358
8358
  "base_amount": {
@@ -8468,9 +8468,19 @@
8468
8468
  },
8469
8469
  "outcome": {
8470
8470
  "type": "integer",
8471
- "format": "uint8",
8471
+ "format": "int32",
8472
8472
  "example": "1",
8473
- "description": " 0 unresolved, 1 NO, 2 YES"
8473
+ "enum": [
8474
+ 0,
8475
+ 1,
8476
+ 2
8477
+ ],
8478
+ "description": " None until the market settles",
8479
+ "x-enum-varnames": [
8480
+ "None",
8481
+ "No",
8482
+ "Yes"
8483
+ ]
8474
8484
  }
8475
8485
  },
8476
8486
  "title": "BinaryOptionMarketStats",
@@ -8636,7 +8646,17 @@
8636
8646
  },
8637
8647
  "outcome": {
8638
8648
  "type": "integer",
8639
- "format": "int16"
8649
+ "format": "int32",
8650
+ "enum": [
8651
+ 0,
8652
+ 1,
8653
+ 2
8654
+ ],
8655
+ "x-enum-varnames": [
8656
+ "None",
8657
+ "No",
8658
+ "Yes"
8659
+ ]
8640
8660
  },
8641
8661
  "end_timestamp": {
8642
8662
  "type": "integer",
@@ -8675,8 +8695,8 @@
8675
8695
  "type": "integer",
8676
8696
  "format": "int32",
8677
8697
  "enum": [
8678
- "1",
8679
- "2"
8698
+ 1,
8699
+ 2
8680
8700
  ]
8681
8701
  },
8682
8702
  "source": {
@@ -9914,8 +9934,18 @@
9914
9934
  },
9915
9935
  "outcome": {
9916
9936
  "type": "integer",
9917
- "format": "uint8",
9918
- "example": "1"
9937
+ "format": "int32",
9938
+ "example": "1",
9939
+ "enum": [
9940
+ 0,
9941
+ 1,
9942
+ 2
9943
+ ],
9944
+ "x-enum-varnames": [
9945
+ "None",
9946
+ "No",
9947
+ "Yes"
9948
+ ]
9919
9949
  },
9920
9950
  "operator_account_index": {
9921
9951
  "type": "integer",
@@ -11961,8 +11991,18 @@
11961
11991
  },
11962
11992
  "outcome": {
11963
11993
  "type": "integer",
11964
- "format": "uint8",
11965
- "example": "1"
11994
+ "format": "int32",
11995
+ "example": "1",
11996
+ "enum": [
11997
+ 0,
11998
+ 1,
11999
+ 2
12000
+ ],
12001
+ "x-enum-varnames": [
12002
+ "None",
12003
+ "No",
12004
+ "Yes"
12005
+ ]
11966
12006
  },
11967
12007
  "operator_account_index": {
11968
12008
  "type": "integer",
@@ -12628,8 +12668,18 @@
12628
12668
  },
12629
12669
  "outcome": {
12630
12670
  "type": "integer",
12631
- "format": "uint8",
12632
- "example": "1"
12671
+ "format": "int32",
12672
+ "example": "1",
12673
+ "enum": [
12674
+ 0,
12675
+ 1,
12676
+ 2
12677
+ ],
12678
+ "x-enum-varnames": [
12679
+ "None",
12680
+ "No",
12681
+ "Yes"
12682
+ ]
12633
12683
  },
12634
12684
  "operator_account_index": {
12635
12685
  "type": "integer",
@@ -14233,10 +14283,10 @@
14233
14283
  },
14234
14284
  "direction": {
14235
14285
  "type": "integer",
14236
- "format": "int16",
14286
+ "format": "int32",
14237
14287
  "enum": [
14238
- "0",
14239
- "1"
14288
+ 0,
14289
+ 1
14240
14290
  ]
14241
14291
  },
14242
14292
  "metadata": {
@@ -19077,8 +19127,18 @@
19077
19127
  },
19078
19128
  "outcome": {
19079
19129
  "type": "integer",
19080
- "format": "uint8",
19081
- "example": "1"
19130
+ "format": "int32",
19131
+ "example": "1",
19132
+ "enum": [
19133
+ 0,
19134
+ 1,
19135
+ 2
19136
+ ],
19137
+ "x-enum-varnames": [
19138
+ "None",
19139
+ "No",
19140
+ "Yes"
19141
+ ]
19082
19142
  },
19083
19143
  "operator_account_index": {
19084
19144
  "type": "integer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "0.573.0-circleci.5f9803f.devin-1790172978-integer-enum-postprocess",
3
+ "version": "0.573.0-circleci.a75a652.devin-1790172978-integer-enum-postprocess",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {