zklighter-perps 0.573.0-circleci.5f9803f.devin-1790172978-integer-enum-postprocess → 0.573.0-circleci.b3eec85.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.
@@ -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
+ Bid: 0,
54
+ Ask: 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
  */
package/models/Bridge.ts CHANGED
@@ -116,8 +116,8 @@ export interface Bridge {
116
116
  * @export
117
117
  */
118
118
  export const BridgeVersionEnum = {
119
- NUMBER_1: 1,
120
- NUMBER_2: 2
119
+ V1: 1,
120
+ V2: 2
121
121
  } as const;
122
122
  export type BridgeVersionEnum = typeof BridgeVersionEnum[keyof typeof BridgeVersionEnum];
123
123
 
@@ -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,15 @@
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
+ ],
8357
+ "x-enum-varnames": [
8358
+ "Bid",
8359
+ "Ask"
8356
8360
  ]
8357
8361
  },
8358
8362
  "base_amount": {
@@ -8468,9 +8472,19 @@
8468
8472
  },
8469
8473
  "outcome": {
8470
8474
  "type": "integer",
8471
- "format": "uint8",
8475
+ "format": "int32",
8472
8476
  "example": "1",
8473
- "description": " 0 unresolved, 1 NO, 2 YES"
8477
+ "enum": [
8478
+ 0,
8479
+ 1,
8480
+ 2
8481
+ ],
8482
+ "description": " None until the market settles",
8483
+ "x-enum-varnames": [
8484
+ "None",
8485
+ "No",
8486
+ "Yes"
8487
+ ]
8474
8488
  }
8475
8489
  },
8476
8490
  "title": "BinaryOptionMarketStats",
@@ -8636,7 +8650,17 @@
8636
8650
  },
8637
8651
  "outcome": {
8638
8652
  "type": "integer",
8639
- "format": "int16"
8653
+ "format": "int32",
8654
+ "enum": [
8655
+ 0,
8656
+ 1,
8657
+ 2
8658
+ ],
8659
+ "x-enum-varnames": [
8660
+ "None",
8661
+ "No",
8662
+ "Yes"
8663
+ ]
8640
8664
  },
8641
8665
  "end_timestamp": {
8642
8666
  "type": "integer",
@@ -8675,8 +8699,12 @@
8675
8699
  "type": "integer",
8676
8700
  "format": "int32",
8677
8701
  "enum": [
8678
- "1",
8679
- "2"
8702
+ 1,
8703
+ 2
8704
+ ],
8705
+ "x-enum-varnames": [
8706
+ "V1",
8707
+ "V2"
8680
8708
  ]
8681
8709
  },
8682
8710
  "source": {
@@ -9914,8 +9942,18 @@
9914
9942
  },
9915
9943
  "outcome": {
9916
9944
  "type": "integer",
9917
- "format": "uint8",
9918
- "example": "1"
9945
+ "format": "int32",
9946
+ "example": "1",
9947
+ "enum": [
9948
+ 0,
9949
+ 1,
9950
+ 2
9951
+ ],
9952
+ "x-enum-varnames": [
9953
+ "None",
9954
+ "No",
9955
+ "Yes"
9956
+ ]
9919
9957
  },
9920
9958
  "operator_account_index": {
9921
9959
  "type": "integer",
@@ -11961,8 +11999,18 @@
11961
11999
  },
11962
12000
  "outcome": {
11963
12001
  "type": "integer",
11964
- "format": "uint8",
11965
- "example": "1"
12002
+ "format": "int32",
12003
+ "example": "1",
12004
+ "enum": [
12005
+ 0,
12006
+ 1,
12007
+ 2
12008
+ ],
12009
+ "x-enum-varnames": [
12010
+ "None",
12011
+ "No",
12012
+ "Yes"
12013
+ ]
11966
12014
  },
11967
12015
  "operator_account_index": {
11968
12016
  "type": "integer",
@@ -12628,8 +12676,18 @@
12628
12676
  },
12629
12677
  "outcome": {
12630
12678
  "type": "integer",
12631
- "format": "uint8",
12632
- "example": "1"
12679
+ "format": "int32",
12680
+ "example": "1",
12681
+ "enum": [
12682
+ 0,
12683
+ 1,
12684
+ 2
12685
+ ],
12686
+ "x-enum-varnames": [
12687
+ "None",
12688
+ "No",
12689
+ "Yes"
12690
+ ]
12633
12691
  },
12634
12692
  "operator_account_index": {
12635
12693
  "type": "integer",
@@ -19077,8 +19135,18 @@
19077
19135
  },
19078
19136
  "outcome": {
19079
19137
  "type": "integer",
19080
- "format": "uint8",
19081
- "example": "1"
19138
+ "format": "int32",
19139
+ "example": "1",
19140
+ "enum": [
19141
+ 0,
19142
+ 1,
19143
+ 2
19144
+ ],
19145
+ "x-enum-varnames": [
19146
+ "None",
19147
+ "No",
19148
+ "Yes"
19149
+ ]
19082
19150
  },
19083
19151
  "operator_account_index": {
19084
19152
  "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.b3eec85.devin-1790172978-integer-enum-postprocess",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {