zklighter-perps 0.573.0-circleci.4e9cf16.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.
- package/apis/AccountApi.ts +9 -1
- package/models/Account.ts +2 -26
- package/models/AccountPosition.ts +1 -12
- package/models/AccountStats.ts +1 -12
- package/models/AtomicOrderLeg.ts +2 -2
- package/models/Bridge.ts +2 -2
- package/models/DetailedAccount.ts +2 -26
- package/models/PublicPoolInfo.ts +1 -12
- package/models/PublicPoolMetadata.ts +2 -26
- package/openapi.json +20 -124
- package/package.json +1 -1
package/apis/AccountApi.ts
CHANGED
|
@@ -288,7 +288,7 @@ export interface PublicPoolsMetadataRequest {
|
|
|
288
288
|
|
|
289
289
|
export interface RfqCreateRequest {
|
|
290
290
|
market_index: number;
|
|
291
|
-
direction:
|
|
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
|
*/
|
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:
|
|
39
|
+
account_type: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -102,33 +102,9 @@ export interface Account {
|
|
|
102
102
|
* @type {number}
|
|
103
103
|
* @memberof Account
|
|
104
104
|
*/
|
|
105
|
-
account_trading_mode?:
|
|
105
|
+
account_trading_mode?: number;
|
|
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
|
-
|
|
132
108
|
/**
|
|
133
109
|
* Check if a given object implements the Account interface.
|
|
134
110
|
*/
|
|
@@ -108,7 +108,7 @@ export interface AccountPosition {
|
|
|
108
108
|
* @type {number}
|
|
109
109
|
* @memberof AccountPosition
|
|
110
110
|
*/
|
|
111
|
-
margin_mode:
|
|
111
|
+
margin_mode: number;
|
|
112
112
|
/**
|
|
113
113
|
*
|
|
114
114
|
* @type {number}
|
|
@@ -129,17 +129,6 @@ 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
|
-
|
|
143
132
|
/**
|
|
144
133
|
* Check if a given object implements the AccountPosition interface.
|
|
145
134
|
*/
|
package/models/AccountStats.ts
CHANGED
|
@@ -67,7 +67,7 @@ export interface AccountStats {
|
|
|
67
67
|
* @type {number}
|
|
68
68
|
* @memberof AccountStats
|
|
69
69
|
*/
|
|
70
|
-
account_trading_mode?:
|
|
70
|
+
account_trading_mode?: number;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {AccountMarginStats}
|
|
@@ -82,17 +82,6 @@ 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
|
-
|
|
96
85
|
/**
|
|
97
86
|
* Check if a given object implements the AccountStats interface.
|
|
98
87
|
*/
|
package/models/AtomicOrderLeg.ts
CHANGED
|
@@ -50,8 +50,8 @@ export interface AtomicOrderLeg {
|
|
|
50
50
|
* @export
|
|
51
51
|
*/
|
|
52
52
|
export const AtomicOrderLegIsAskEnum = {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
NUMBER_0: 0,
|
|
54
|
+
NUMBER_1: 1
|
|
55
55
|
} as const;
|
|
56
56
|
export type AtomicOrderLegIsAskEnum = typeof AtomicOrderLegIsAskEnum[keyof typeof AtomicOrderLegIsAskEnum];
|
|
57
57
|
|
package/models/Bridge.ts
CHANGED
|
@@ -116,8 +116,8 @@ export interface Bridge {
|
|
|
116
116
|
* @export
|
|
117
117
|
*/
|
|
118
118
|
export const BridgeVersionEnum = {
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
NUMBER_1: 1,
|
|
120
|
+
NUMBER_2: 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:
|
|
88
|
+
account_type: number;
|
|
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?:
|
|
154
|
+
account_trading_mode?: number;
|
|
155
155
|
/**
|
|
156
156
|
*
|
|
157
157
|
* @type {number}
|
|
@@ -286,30 +286,6 @@ export interface DetailedAccount {
|
|
|
286
286
|
approved_integrators?: Array<ApprovedIntegrator>;
|
|
287
287
|
}
|
|
288
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
|
-
|
|
313
289
|
/**
|
|
314
290
|
* Check if a given object implements the DetailedAccount interface.
|
|
315
291
|
*/
|
package/models/PublicPoolInfo.ts
CHANGED
|
@@ -43,7 +43,7 @@ export interface PublicPoolInfo {
|
|
|
43
43
|
* @type {number}
|
|
44
44
|
* @memberof PublicPoolInfo
|
|
45
45
|
*/
|
|
46
|
-
status:
|
|
46
|
+
status: number;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {string}
|
|
@@ -100,17 +100,6 @@ 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
|
-
|
|
114
103
|
/**
|
|
115
104
|
* Check if a given object implements the PublicPoolInfo interface.
|
|
116
105
|
*/
|
|
@@ -67,7 +67,7 @@ export interface PublicPoolMetadata {
|
|
|
67
67
|
* @type {number}
|
|
68
68
|
* @memberof PublicPoolMetadata
|
|
69
69
|
*/
|
|
70
|
-
account_type:
|
|
70
|
+
account_type: number;
|
|
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:
|
|
100
|
+
status: number;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {string}
|
|
@@ -142,30 +142,6 @@ 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
|
-
|
|
169
145
|
/**
|
|
170
146
|
* Check if a given object implements the PublicPoolMetadata interface.
|
|
171
147
|
*/
|
package/openapi.json
CHANGED
|
@@ -7175,24 +7175,8 @@
|
|
|
7175
7175
|
},
|
|
7176
7176
|
"account_type": {
|
|
7177
7177
|
"type": "integer",
|
|
7178
|
-
"format": "
|
|
7179
|
-
"example": "1"
|
|
7180
|
-
"enum": [
|
|
7181
|
-
0,
|
|
7182
|
-
1,
|
|
7183
|
-
2,
|
|
7184
|
-
3,
|
|
7185
|
-
4,
|
|
7186
|
-
5
|
|
7187
|
-
],
|
|
7188
|
-
"x-enum-varnames": [
|
|
7189
|
-
"Master",
|
|
7190
|
-
"Sub",
|
|
7191
|
-
"PublicPool",
|
|
7192
|
-
"InsuranceFund",
|
|
7193
|
-
"LighterStakingPool",
|
|
7194
|
-
"TreasurySub"
|
|
7195
|
-
]
|
|
7178
|
+
"format": "uint8",
|
|
7179
|
+
"example": "1"
|
|
7196
7180
|
},
|
|
7197
7181
|
"index": {
|
|
7198
7182
|
"type": "integer",
|
|
@@ -7243,16 +7227,8 @@
|
|
|
7243
7227
|
},
|
|
7244
7228
|
"account_trading_mode": {
|
|
7245
7229
|
"type": "integer",
|
|
7246
|
-
"format": "
|
|
7247
|
-
"example": "1"
|
|
7248
|
-
"enum": [
|
|
7249
|
-
0,
|
|
7250
|
-
1
|
|
7251
|
-
],
|
|
7252
|
-
"x-enum-varnames": [
|
|
7253
|
-
"Simple",
|
|
7254
|
-
"Unified"
|
|
7255
|
-
]
|
|
7230
|
+
"format": "uint8",
|
|
7231
|
+
"example": "1"
|
|
7256
7232
|
}
|
|
7257
7233
|
},
|
|
7258
7234
|
"title": "Account",
|
|
@@ -7795,15 +7771,7 @@
|
|
|
7795
7771
|
"margin_mode": {
|
|
7796
7772
|
"type": "integer",
|
|
7797
7773
|
"format": "int32",
|
|
7798
|
-
"example": "1"
|
|
7799
|
-
"enum": [
|
|
7800
|
-
0,
|
|
7801
|
-
1
|
|
7802
|
-
],
|
|
7803
|
-
"x-enum-varnames": [
|
|
7804
|
-
"Cross",
|
|
7805
|
-
"Isolated"
|
|
7806
|
-
]
|
|
7774
|
+
"example": "1"
|
|
7807
7775
|
},
|
|
7808
7776
|
"margin_set_flag": {
|
|
7809
7777
|
"type": "integer",
|
|
@@ -7869,16 +7837,8 @@
|
|
|
7869
7837
|
},
|
|
7870
7838
|
"account_trading_mode": {
|
|
7871
7839
|
"type": "integer",
|
|
7872
|
-
"format": "
|
|
7873
|
-
"example": "1"
|
|
7874
|
-
"enum": [
|
|
7875
|
-
0,
|
|
7876
|
-
1
|
|
7877
|
-
],
|
|
7878
|
-
"x-enum-varnames": [
|
|
7879
|
-
"Simple",
|
|
7880
|
-
"Unified"
|
|
7881
|
-
]
|
|
7840
|
+
"format": "uint8",
|
|
7841
|
+
"example": "1"
|
|
7882
7842
|
},
|
|
7883
7843
|
"cross_stats": {
|
|
7884
7844
|
"$ref": "#/definitions/AccountMarginStats"
|
|
@@ -8393,10 +8353,6 @@
|
|
|
8393
8353
|
"enum": [
|
|
8394
8354
|
0,
|
|
8395
8355
|
1
|
|
8396
|
-
],
|
|
8397
|
-
"x-enum-varnames": [
|
|
8398
|
-
"Bid",
|
|
8399
|
-
"Ask"
|
|
8400
8356
|
]
|
|
8401
8357
|
},
|
|
8402
8358
|
"base_amount": {
|
|
@@ -8741,10 +8697,6 @@
|
|
|
8741
8697
|
"enum": [
|
|
8742
8698
|
1,
|
|
8743
8699
|
2
|
|
8744
|
-
],
|
|
8745
|
-
"x-enum-varnames": [
|
|
8746
|
-
"V1",
|
|
8747
|
-
"V2"
|
|
8748
8700
|
]
|
|
8749
8701
|
},
|
|
8750
8702
|
"source": {
|
|
@@ -9435,24 +9387,8 @@
|
|
|
9435
9387
|
},
|
|
9436
9388
|
"account_type": {
|
|
9437
9389
|
"type": "integer",
|
|
9438
|
-
"format": "
|
|
9439
|
-
"example": "1"
|
|
9440
|
-
"enum": [
|
|
9441
|
-
0,
|
|
9442
|
-
1,
|
|
9443
|
-
2,
|
|
9444
|
-
3,
|
|
9445
|
-
4,
|
|
9446
|
-
5
|
|
9447
|
-
],
|
|
9448
|
-
"x-enum-varnames": [
|
|
9449
|
-
"Master",
|
|
9450
|
-
"Sub",
|
|
9451
|
-
"PublicPool",
|
|
9452
|
-
"InsuranceFund",
|
|
9453
|
-
"LighterStakingPool",
|
|
9454
|
-
"TreasurySub"
|
|
9455
|
-
]
|
|
9390
|
+
"format": "uint8",
|
|
9391
|
+
"example": "1"
|
|
9456
9392
|
},
|
|
9457
9393
|
"index": {
|
|
9458
9394
|
"type": "integer",
|
|
@@ -9503,16 +9439,8 @@
|
|
|
9503
9439
|
},
|
|
9504
9440
|
"account_trading_mode": {
|
|
9505
9441
|
"type": "integer",
|
|
9506
|
-
"format": "
|
|
9507
|
-
"example": "1"
|
|
9508
|
-
"enum": [
|
|
9509
|
-
0,
|
|
9510
|
-
1
|
|
9511
|
-
],
|
|
9512
|
-
"x-enum-varnames": [
|
|
9513
|
-
"Simple",
|
|
9514
|
-
"Unified"
|
|
9515
|
-
]
|
|
9442
|
+
"format": "uint8",
|
|
9443
|
+
"example": "1"
|
|
9516
9444
|
},
|
|
9517
9445
|
"account_index": {
|
|
9518
9446
|
"type": "integer",
|
|
@@ -13477,16 +13405,8 @@
|
|
|
13477
13405
|
"properties": {
|
|
13478
13406
|
"status": {
|
|
13479
13407
|
"type": "integer",
|
|
13480
|
-
"format": "
|
|
13481
|
-
"example": "0"
|
|
13482
|
-
"enum": [
|
|
13483
|
-
0,
|
|
13484
|
-
1
|
|
13485
|
-
],
|
|
13486
|
-
"x-enum-varnames": [
|
|
13487
|
-
"Active",
|
|
13488
|
-
"Frozen"
|
|
13489
|
-
]
|
|
13408
|
+
"format": "uint8",
|
|
13409
|
+
"example": "0"
|
|
13490
13410
|
},
|
|
13491
13411
|
"operator_fee": {
|
|
13492
13412
|
"type": "string",
|
|
@@ -13576,24 +13496,8 @@
|
|
|
13576
13496
|
},
|
|
13577
13497
|
"account_type": {
|
|
13578
13498
|
"type": "integer",
|
|
13579
|
-
"format": "
|
|
13580
|
-
"example": "1"
|
|
13581
|
-
"enum": [
|
|
13582
|
-
0,
|
|
13583
|
-
1,
|
|
13584
|
-
2,
|
|
13585
|
-
3,
|
|
13586
|
-
4,
|
|
13587
|
-
5
|
|
13588
|
-
],
|
|
13589
|
-
"x-enum-varnames": [
|
|
13590
|
-
"Master",
|
|
13591
|
-
"Sub",
|
|
13592
|
-
"PublicPool",
|
|
13593
|
-
"InsuranceFund",
|
|
13594
|
-
"LighterStakingPool",
|
|
13595
|
-
"TreasurySub"
|
|
13596
|
-
]
|
|
13499
|
+
"format": "uint8",
|
|
13500
|
+
"example": "1"
|
|
13597
13501
|
},
|
|
13598
13502
|
"name": {
|
|
13599
13503
|
"type": "string"
|
|
@@ -13614,16 +13518,8 @@
|
|
|
13614
13518
|
},
|
|
13615
13519
|
"status": {
|
|
13616
13520
|
"type": "integer",
|
|
13617
|
-
"format": "
|
|
13618
|
-
"example": "0"
|
|
13619
|
-
"enum": [
|
|
13620
|
-
0,
|
|
13621
|
-
1
|
|
13622
|
-
],
|
|
13623
|
-
"x-enum-varnames": [
|
|
13624
|
-
"Active",
|
|
13625
|
-
"Frozen"
|
|
13626
|
-
]
|
|
13521
|
+
"format": "uint8",
|
|
13522
|
+
"example": "0"
|
|
13627
13523
|
},
|
|
13628
13524
|
"operator_fee": {
|
|
13629
13525
|
"type": "string",
|
|
@@ -14387,10 +14283,10 @@
|
|
|
14387
14283
|
},
|
|
14388
14284
|
"direction": {
|
|
14389
14285
|
"type": "integer",
|
|
14390
|
-
"format": "
|
|
14286
|
+
"format": "int32",
|
|
14391
14287
|
"enum": [
|
|
14392
|
-
|
|
14393
|
-
|
|
14288
|
+
0,
|
|
14289
|
+
1
|
|
14394
14290
|
]
|
|
14395
14291
|
},
|
|
14396
14292
|
"metadata": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zklighter-perps",
|
|
3
|
-
"version": "0.573.0-circleci.
|
|
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": {
|