zklighter-perps 1.0.308 → 1.0.310

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.
package/models/Account.ts CHANGED
@@ -36,7 +36,7 @@ export interface Account {
36
36
  * @type {number}
37
37
  * @memberof Account
38
38
  */
39
- account_type: number;
39
+ account_type: AccountAccountTypeEnum;
40
40
  /**
41
41
  *
42
42
  * @type {number}
@@ -102,9 +102,33 @@ export interface Account {
102
102
  * @type {number}
103
103
  * @memberof Account
104
104
  */
105
- account_trading_mode?: number;
105
+ account_trading_mode?: AccountAccountTradingModeEnum;
106
106
  }
107
107
 
108
+
109
+ /**
110
+ * @export
111
+ */
112
+ export const AccountAccountTypeEnum = {
113
+ Master: 0,
114
+ Sub: 1,
115
+ PublicPool: 2,
116
+ InsuranceFund: 3,
117
+ LighterStakingPool: 4,
118
+ TreasurySub: 5
119
+ } as const;
120
+ export type AccountAccountTypeEnum = typeof AccountAccountTypeEnum[keyof typeof AccountAccountTypeEnum];
121
+
122
+ /**
123
+ * @export
124
+ */
125
+ export const AccountAccountTradingModeEnum = {
126
+ Simple: 0,
127
+ Unified: 1
128
+ } as const;
129
+ export type AccountAccountTradingModeEnum = typeof AccountAccountTradingModeEnum[keyof typeof AccountAccountTradingModeEnum];
130
+
131
+
108
132
  /**
109
133
  * Check if a given object implements the Account interface.
110
134
  */
@@ -86,6 +86,12 @@ export interface AccountMetadata {
86
86
  * @memberof AccountMetadata
87
87
  */
88
88
  metadata: SubAccountMetadata;
89
+ /**
90
+ * non-core instance the l1 address belongs to, e.g. "us"
91
+ * @type {string}
92
+ * @memberof AccountMetadata
93
+ */
94
+ instance: string;
89
95
  }
90
96
 
91
97
  /**
@@ -102,6 +108,7 @@ export function instanceOfAccountMetadata(value: object): value is AccountMetada
102
108
  if (!('agent_enabled' in value) || value['agent_enabled'] === undefined) return false;
103
109
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
104
110
  if (!('metadata' in value) || value['metadata'] === undefined) return false;
111
+ if (!('instance' in value) || value['instance'] === undefined) return false;
105
112
  return true;
106
113
  }
107
114
 
@@ -125,6 +132,7 @@ export function AccountMetadataFromJSONTyped(json: any, ignoreDiscriminator: boo
125
132
  'agent_enabled': json['agent_enabled'],
126
133
  'created_at': json['created_at'],
127
134
  'metadata': SubAccountMetadataFromJSON(json['metadata']),
135
+ 'instance': json['instance'],
128
136
  };
129
137
  }
130
138
 
@@ -144,6 +152,7 @@ export function AccountMetadataToJSON(value?: AccountMetadata | null): any {
144
152
  'agent_enabled': value['agent_enabled'],
145
153
  'created_at': value['created_at'],
146
154
  'metadata': SubAccountMetadataToJSON(value['metadata']),
155
+ 'instance': value['instance'],
147
156
  };
148
157
  }
149
158
 
@@ -108,7 +108,7 @@ export interface AccountPosition {
108
108
  * @type {number}
109
109
  * @memberof AccountPosition
110
110
  */
111
- margin_mode: number;
111
+ margin_mode: AccountPositionMarginModeEnum;
112
112
  /**
113
113
  *
114
114
  * @type {number}
@@ -129,6 +129,17 @@ export interface AccountPosition {
129
129
  total_discount: string;
130
130
  }
131
131
 
132
+
133
+ /**
134
+ * @export
135
+ */
136
+ export const AccountPositionMarginModeEnum = {
137
+ Cross: 0,
138
+ Isolated: 1
139
+ } as const;
140
+ export type AccountPositionMarginModeEnum = typeof AccountPositionMarginModeEnum[keyof typeof AccountPositionMarginModeEnum];
141
+
142
+
132
143
  /**
133
144
  * Check if a given object implements the AccountPosition interface.
134
145
  */
@@ -67,7 +67,7 @@ export interface AccountStats {
67
67
  * @type {number}
68
68
  * @memberof AccountStats
69
69
  */
70
- account_trading_mode?: number;
70
+ account_trading_mode?: AccountStatsAccountTradingModeEnum;
71
71
  /**
72
72
  *
73
73
  * @type {AccountMarginStats}
@@ -82,6 +82,17 @@ export interface AccountStats {
82
82
  total_stats: AccountMarginStats;
83
83
  }
84
84
 
85
+
86
+ /**
87
+ * @export
88
+ */
89
+ export const AccountStatsAccountTradingModeEnum = {
90
+ Simple: 0,
91
+ Unified: 1
92
+ } as const;
93
+ export type AccountStatsAccountTradingModeEnum = typeof AccountStatsAccountTradingModeEnum[keyof typeof AccountStatsAccountTradingModeEnum];
94
+
95
+
85
96
  /**
86
97
  * Check if a given object implements the AccountStats interface.
87
98
  */
@@ -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
+ *
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
 
@@ -85,7 +85,7 @@ export interface DetailedAccount {
85
85
  * @type {number}
86
86
  * @memberof DetailedAccount
87
87
  */
88
- account_type: number;
88
+ account_type: DetailedAccountAccountTypeEnum;
89
89
  /**
90
90
  *
91
91
  * @type {number}
@@ -151,7 +151,7 @@ export interface DetailedAccount {
151
151
  * @type {number}
152
152
  * @memberof DetailedAccount
153
153
  */
154
- account_trading_mode?: number;
154
+ account_trading_mode?: DetailedAccountAccountTradingModeEnum;
155
155
  /**
156
156
  *
157
157
  * @type {number}
@@ -212,6 +212,12 @@ export interface DetailedAccount {
212
212
  * @memberof DetailedAccount
213
213
  */
214
214
  metadata: SubAccountMetadata;
215
+ /**
216
+ * non-core instance the l1 address belongs to, e.g. "us"
217
+ * @type {string}
218
+ * @memberof DetailedAccount
219
+ */
220
+ instance: string;
215
221
  /**
216
222
  *
217
223
  * @type {Array<AccountPosition>}
@@ -280,6 +286,30 @@ export interface DetailedAccount {
280
286
  approved_integrators?: Array<ApprovedIntegrator>;
281
287
  }
282
288
 
289
+
290
+ /**
291
+ * @export
292
+ */
293
+ export const DetailedAccountAccountTypeEnum = {
294
+ Master: 0,
295
+ Sub: 1,
296
+ PublicPool: 2,
297
+ InsuranceFund: 3,
298
+ LighterStakingPool: 4,
299
+ TreasurySub: 5
300
+ } as const;
301
+ export type DetailedAccountAccountTypeEnum = typeof DetailedAccountAccountTypeEnum[keyof typeof DetailedAccountAccountTypeEnum];
302
+
303
+ /**
304
+ * @export
305
+ */
306
+ export const DetailedAccountAccountTradingModeEnum = {
307
+ Simple: 0,
308
+ Unified: 1
309
+ } as const;
310
+ export type DetailedAccountAccountTradingModeEnum = typeof DetailedAccountAccountTradingModeEnum[keyof typeof DetailedAccountAccountTradingModeEnum];
311
+
312
+
283
313
  /**
284
314
  * Check if a given object implements the DetailedAccount interface.
285
315
  */
@@ -306,6 +336,7 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
306
336
  if (!('agent_enabled' in value) || value['agent_enabled'] === undefined) return false;
307
337
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
308
338
  if (!('metadata' in value) || value['metadata'] === undefined) return false;
339
+ if (!('instance' in value) || value['instance'] === undefined) return false;
309
340
  if (!('positions' in value) || value['positions'] === undefined) return false;
310
341
  if (!('assets' in value) || value['assets'] === undefined) return false;
311
342
  if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
@@ -351,6 +382,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
351
382
  'agent_enabled': json['agent_enabled'],
352
383
  'created_at': json['created_at'],
353
384
  'metadata': SubAccountMetadataFromJSON(json['metadata']),
385
+ 'instance': json['instance'],
354
386
  'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
355
387
  'bo_positions': json['bo_positions'] == null ? undefined : ((json['bo_positions'] as Array<any>).map(AccountBinaryOptionsPositionFromJSON)),
356
388
  'assets': ((json['assets'] as Array<any>).map(AccountAssetFromJSON)),
@@ -395,6 +427,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
395
427
  'agent_enabled': value['agent_enabled'],
396
428
  'created_at': value['created_at'],
397
429
  'metadata': SubAccountMetadataToJSON(value['metadata']),
430
+ 'instance': value['instance'],
398
431
  'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
399
432
  'bo_positions': value['bo_positions'] == null ? undefined : ((value['bo_positions'] as Array<any>).map(AccountBinaryOptionsPositionToJSON)),
400
433
  'assets': ((value['assets'] as Array<any>).map(AccountAssetToJSON)),
@@ -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.
@@ -97,6 +97,30 @@ export interface GeckoContract {
97
97
  * @memberof GeckoContract
98
98
  */
99
99
  open_interest_usd: number;
100
+ /**
101
+ *
102
+ * @type {number}
103
+ * @memberof GeckoContract
104
+ */
105
+ long_open_interest: number;
106
+ /**
107
+ *
108
+ * @type {number}
109
+ * @memberof GeckoContract
110
+ */
111
+ long_open_interest_usd: number;
112
+ /**
113
+ *
114
+ * @type {number}
115
+ * @memberof GeckoContract
116
+ */
117
+ short_open_interest: number;
118
+ /**
119
+ *
120
+ * @type {number}
121
+ * @memberof GeckoContract
122
+ */
123
+ short_open_interest_usd: number;
100
124
  /**
101
125
  *
102
126
  * @type {number}
@@ -133,6 +157,12 @@ export interface GeckoContract {
133
157
  * @memberof GeckoContract
134
158
  */
135
159
  funding_rate: number;
160
+ /**
161
+ *
162
+ * @type {number}
163
+ * @memberof GeckoContract
164
+ */
165
+ funding_interval_minutes: number;
136
166
  /**
137
167
  *
138
168
  * @type {number}
@@ -182,12 +212,17 @@ export function instanceOfGeckoContract(value: object): value is GeckoContract {
182
212
  if (!('product_type' in value) || value['product_type'] === undefined) return false;
183
213
  if (!('open_interest' in value) || value['open_interest'] === undefined) return false;
184
214
  if (!('open_interest_usd' in value) || value['open_interest_usd'] === undefined) return false;
215
+ if (!('long_open_interest' in value) || value['long_open_interest'] === undefined) return false;
216
+ if (!('long_open_interest_usd' in value) || value['long_open_interest_usd'] === undefined) return false;
217
+ if (!('short_open_interest' in value) || value['short_open_interest'] === undefined) return false;
218
+ if (!('short_open_interest_usd' in value) || value['short_open_interest_usd'] === undefined) return false;
185
219
  if (!('index_price' in value) || value['index_price'] === undefined) return false;
186
220
  if (!('index_name' in value) || value['index_name'] === undefined) return false;
187
221
  if (!('index_currency' in value) || value['index_currency'] === undefined) return false;
188
222
  if (!('start_timestamp' in value) || value['start_timestamp'] === undefined) return false;
189
223
  if (!('end_timestamp' in value) || value['end_timestamp'] === undefined) return false;
190
224
  if (!('funding_rate' in value) || value['funding_rate'] === undefined) return false;
225
+ if (!('funding_interval_minutes' in value) || value['funding_interval_minutes'] === undefined) return false;
191
226
  if (!('next_funding_rate' in value) || value['next_funding_rate'] === undefined) return false;
192
227
  if (!('next_funding_rate_timestamp' in value) || value['next_funding_rate_timestamp'] === undefined) return false;
193
228
  if (!('contract_type' in value) || value['contract_type'] === undefined) return false;
@@ -219,12 +254,17 @@ export function GeckoContractFromJSONTyped(json: any, ignoreDiscriminator: boole
219
254
  'product_type': json['product_type'],
220
255
  'open_interest': json['open_interest'],
221
256
  'open_interest_usd': json['open_interest_usd'],
257
+ 'long_open_interest': json['long_open_interest'],
258
+ 'long_open_interest_usd': json['long_open_interest_usd'],
259
+ 'short_open_interest': json['short_open_interest'],
260
+ 'short_open_interest_usd': json['short_open_interest_usd'],
222
261
  'index_price': json['index_price'],
223
262
  'index_name': json['index_name'],
224
263
  'index_currency': json['index_currency'],
225
264
  'start_timestamp': json['start_timestamp'],
226
265
  'end_timestamp': json['end_timestamp'],
227
266
  'funding_rate': json['funding_rate'],
267
+ 'funding_interval_minutes': json['funding_interval_minutes'],
228
268
  'next_funding_rate': json['next_funding_rate'],
229
269
  'next_funding_rate_timestamp': json['next_funding_rate_timestamp'],
230
270
  'contract_type': json['contract_type'],
@@ -252,12 +292,17 @@ export function GeckoContractToJSON(value?: GeckoContract | null): any {
252
292
  'product_type': value['product_type'],
253
293
  'open_interest': value['open_interest'],
254
294
  'open_interest_usd': value['open_interest_usd'],
295
+ 'long_open_interest': value['long_open_interest'],
296
+ 'long_open_interest_usd': value['long_open_interest_usd'],
297
+ 'short_open_interest': value['short_open_interest'],
298
+ 'short_open_interest_usd': value['short_open_interest_usd'],
255
299
  'index_price': value['index_price'],
256
300
  'index_name': value['index_name'],
257
301
  'index_currency': value['index_currency'],
258
302
  'start_timestamp': value['start_timestamp'],
259
303
  'end_timestamp': value['end_timestamp'],
260
304
  'funding_rate': value['funding_rate'],
305
+ 'funding_interval_minutes': value['funding_interval_minutes'],
261
306
  'next_funding_rate': value['next_funding_rate'],
262
307
  'next_funding_rate_timestamp': value['next_funding_rate_timestamp'],
263
308
  'contract_type': value['contract_type'],
@@ -24,7 +24,7 @@ export interface MarketConfig {
24
24
  * @type {number}
25
25
  * @memberof MarketConfig
26
26
  */
27
- market_margin_mode: number;
27
+ market_margin_mode: MarketConfigMarketMarginModeEnum;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -69,6 +69,17 @@ export interface MarketConfig {
69
69
  rfq_enabled: boolean;
70
70
  }
71
71
 
72
+
73
+ /**
74
+ * @export
75
+ */
76
+ export const MarketConfigMarketMarginModeEnum = {
77
+ All: 0,
78
+ IsolatedForNonPools: 1
79
+ } as const;
80
+ export type MarketConfigMarketMarginModeEnum = typeof MarketConfigMarketMarginModeEnum[keyof typeof MarketConfigMarketMarginModeEnum];
81
+
82
+
72
83
  /**
73
84
  * Check if a given object implements the MarketConfig interface.
74
85
  */
@@ -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.
@@ -43,7 +43,7 @@ export interface PublicPoolInfo {
43
43
  * @type {number}
44
44
  * @memberof PublicPoolInfo
45
45
  */
46
- status: number;
46
+ status: PublicPoolInfoStatusEnum;
47
47
  /**
48
48
  *
49
49
  * @type {string}
@@ -100,6 +100,17 @@ export interface PublicPoolInfo {
100
100
  strategies: Array<Strategy>;
101
101
  }
102
102
 
103
+
104
+ /**
105
+ * @export
106
+ */
107
+ export const PublicPoolInfoStatusEnum = {
108
+ Active: 0,
109
+ Frozen: 1
110
+ } as const;
111
+ export type PublicPoolInfoStatusEnum = typeof PublicPoolInfoStatusEnum[keyof typeof PublicPoolInfoStatusEnum];
112
+
113
+
103
114
  /**
104
115
  * Check if a given object implements the PublicPoolInfo interface.
105
116
  */
@@ -67,7 +67,7 @@ export interface PublicPoolMetadata {
67
67
  * @type {number}
68
68
  * @memberof PublicPoolMetadata
69
69
  */
70
- account_type: number;
70
+ account_type: PublicPoolMetadataAccountTypeEnum;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -97,7 +97,7 @@ export interface PublicPoolMetadata {
97
97
  * @type {number}
98
98
  * @memberof PublicPoolMetadata
99
99
  */
100
- status: number;
100
+ status: PublicPoolMetadataStatusEnum;
101
101
  /**
102
102
  *
103
103
  * @type {string}
@@ -142,6 +142,30 @@ export interface PublicPoolMetadata {
142
142
  assets: Array<AccountAsset>;
143
143
  }
144
144
 
145
+
146
+ /**
147
+ * @export
148
+ */
149
+ export const PublicPoolMetadataAccountTypeEnum = {
150
+ Master: 0,
151
+ Sub: 1,
152
+ PublicPool: 2,
153
+ InsuranceFund: 3,
154
+ LighterStakingPool: 4,
155
+ TreasurySub: 5
156
+ } as const;
157
+ export type PublicPoolMetadataAccountTypeEnum = typeof PublicPoolMetadataAccountTypeEnum[keyof typeof PublicPoolMetadataAccountTypeEnum];
158
+
159
+ /**
160
+ * @export
161
+ */
162
+ export const PublicPoolMetadataStatusEnum = {
163
+ Active: 0,
164
+ Frozen: 1
165
+ } as const;
166
+ export type PublicPoolMetadataStatusEnum = typeof PublicPoolMetadataStatusEnum[keyof typeof PublicPoolMetadataStatusEnum];
167
+
168
+
145
169
  /**
146
170
  * Check if a given object implements the PublicPoolMetadata interface.
147
171
  */
@@ -55,7 +55,7 @@ export interface RFQEntry {
55
55
  * @type {number}
56
56
  * @memberof RFQEntry
57
57
  */
58
- direction: number;
58
+ direction: RFQEntryDirectionEnum;
59
59
  /**
60
60
  *
61
61
  * @type {string}
@@ -101,6 +101,16 @@ export interface RFQEntry {
101
101
  }
102
102
 
103
103
 
104
+ /**
105
+ * @export
106
+ */
107
+ export const RFQEntryDirectionEnum = {
108
+ Hidden: -1,
109
+ Sell: 0,
110
+ Buy: 1
111
+ } as const;
112
+ export type RFQEntryDirectionEnum = typeof RFQEntryDirectionEnum[keyof typeof RFQEntryDirectionEnum];
113
+
104
114
  /**
105
115
  * @export
106
116
  */
@@ -67,7 +67,7 @@ export interface RespCreateRFQ {
67
67
  * @type {number}
68
68
  * @memberof RespCreateRFQ
69
69
  */
70
- direction: number;
70
+ direction: RespCreateRFQDirectionEnum;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -113,6 +113,16 @@ export interface RespCreateRFQ {
113
113
  }
114
114
 
115
115
 
116
+ /**
117
+ * @export
118
+ */
119
+ export const RespCreateRFQDirectionEnum = {
120
+ Hidden: -1,
121
+ Sell: 0,
122
+ Buy: 1
123
+ } as const;
124
+ export type RespCreateRFQDirectionEnum = typeof RespCreateRFQDirectionEnum[keyof typeof RespCreateRFQDirectionEnum];
125
+
116
126
  /**
117
127
  * @export
118
128
  */
@@ -67,7 +67,7 @@ export interface RespGetRFQ {
67
67
  * @type {number}
68
68
  * @memberof RespGetRFQ
69
69
  */
70
- direction: number;
70
+ direction: RespGetRFQDirectionEnum;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -113,6 +113,16 @@ export interface RespGetRFQ {
113
113
  }
114
114
 
115
115
 
116
+ /**
117
+ * @export
118
+ */
119
+ export const RespGetRFQDirectionEnum = {
120
+ Hidden: -1,
121
+ Sell: 0,
122
+ Buy: 1
123
+ } as const;
124
+ export type RespGetRFQDirectionEnum = typeof RespGetRFQDirectionEnum[keyof typeof RespGetRFQDirectionEnum];
125
+
116
126
  /**
117
127
  * @export
118
128
  */