zklighter-perps 1.0.291 → 1.0.293
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/SystemConfig.ts +9 -0
- package/models/Token.ts +9 -0
- package/openapi.json +11 -0
- package/package.json +1 -1
package/models/SystemConfig.ts
CHANGED
|
@@ -55,6 +55,12 @@ export interface SystemConfig {
|
|
|
55
55
|
* @memberof SystemConfig
|
|
56
56
|
*/
|
|
57
57
|
market_maker_incentive_account_index?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof SystemConfig
|
|
62
|
+
*/
|
|
63
|
+
fee_collector_account_index: number;
|
|
58
64
|
/**
|
|
59
65
|
*
|
|
60
66
|
* @type {number}
|
|
@@ -101,6 +107,7 @@ export function instanceOfSystemConfig(value: object): value is SystemConfig {
|
|
|
101
107
|
if (!('liquidity_pool_index' in value) || value['liquidity_pool_index'] === undefined) return false;
|
|
102
108
|
if (!('staking_pool_index' in value) || value['staking_pool_index'] === undefined) return false;
|
|
103
109
|
if (!('funding_fee_rebate_account_index' in value) || value['funding_fee_rebate_account_index'] === undefined) return false;
|
|
110
|
+
if (!('fee_collector_account_index' in value) || value['fee_collector_account_index'] === undefined) return false;
|
|
104
111
|
if (!('liquidity_pool_cooldown_period' in value) || value['liquidity_pool_cooldown_period'] === undefined) return false;
|
|
105
112
|
if (!('staking_pool_lockup_period' in value) || value['staking_pool_lockup_period'] === undefined) return false;
|
|
106
113
|
if (!('max_integrator_spot_taker_fee' in value) || value['max_integrator_spot_taker_fee'] === undefined) return false;
|
|
@@ -126,6 +133,7 @@ export function SystemConfigFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
126
133
|
'staking_pool_index': json['staking_pool_index'],
|
|
127
134
|
'funding_fee_rebate_account_index': json['funding_fee_rebate_account_index'],
|
|
128
135
|
'market_maker_incentive_account_index': json['market_maker_incentive_account_index'] == null ? undefined : json['market_maker_incentive_account_index'],
|
|
136
|
+
'fee_collector_account_index': json['fee_collector_account_index'],
|
|
129
137
|
'liquidity_pool_cooldown_period': json['liquidity_pool_cooldown_period'],
|
|
130
138
|
'staking_pool_lockup_period': json['staking_pool_lockup_period'],
|
|
131
139
|
'max_integrator_spot_taker_fee': json['max_integrator_spot_taker_fee'],
|
|
@@ -147,6 +155,7 @@ export function SystemConfigToJSON(value?: SystemConfig | null): any {
|
|
|
147
155
|
'staking_pool_index': value['staking_pool_index'],
|
|
148
156
|
'funding_fee_rebate_account_index': value['funding_fee_rebate_account_index'],
|
|
149
157
|
'market_maker_incentive_account_index': value['market_maker_incentive_account_index'],
|
|
158
|
+
'fee_collector_account_index': value['fee_collector_account_index'],
|
|
150
159
|
'liquidity_pool_cooldown_period': value['liquidity_pool_cooldown_period'],
|
|
151
160
|
'staking_pool_lockup_period': value['staking_pool_lockup_period'],
|
|
152
161
|
'max_integrator_spot_taker_fee': value['max_integrator_spot_taker_fee'],
|
package/models/Token.ts
CHANGED
|
@@ -25,6 +25,12 @@ export interface Token {
|
|
|
25
25
|
* @memberof Token
|
|
26
26
|
*/
|
|
27
27
|
symbol: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Token
|
|
32
|
+
*/
|
|
33
|
+
backend_symbol: string;
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
36
|
* @type {string}
|
|
@@ -133,6 +139,7 @@ export type TokenAssetTypeEnum = typeof TokenAssetTypeEnum[keyof typeof TokenAss
|
|
|
133
139
|
*/
|
|
134
140
|
export function instanceOfToken(value: object): value is Token {
|
|
135
141
|
if (!('symbol' in value) || value['symbol'] === undefined) return false;
|
|
142
|
+
if (!('backend_symbol' in value) || value['backend_symbol'] === undefined) return false;
|
|
136
143
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
137
144
|
if (!('logo' in value) || value['logo'] === undefined) return false;
|
|
138
145
|
if (!('logo_extension' in value) || value['logo_extension'] === undefined) return false;
|
|
@@ -159,6 +166,7 @@ export function TokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tok
|
|
|
159
166
|
return {
|
|
160
167
|
|
|
161
168
|
'symbol': json['symbol'],
|
|
169
|
+
'backend_symbol': json['backend_symbol'],
|
|
162
170
|
'name': json['name'],
|
|
163
171
|
'logo': json['logo'],
|
|
164
172
|
'logo_extension': json['logo_extension'],
|
|
@@ -181,6 +189,7 @@ export function TokenToJSON(value?: Token | null): any {
|
|
|
181
189
|
return {
|
|
182
190
|
|
|
183
191
|
'symbol': value['symbol'],
|
|
192
|
+
'backend_symbol': value['backend_symbol'],
|
|
184
193
|
'name': value['name'],
|
|
185
194
|
'logo': value['logo'],
|
|
186
195
|
'logo_extension': value['logo_extension'],
|
package/openapi.json
CHANGED
|
@@ -15361,6 +15361,11 @@
|
|
|
15361
15361
|
"format": "int64",
|
|
15362
15362
|
"example": "3"
|
|
15363
15363
|
},
|
|
15364
|
+
"fee_collector_account_index": {
|
|
15365
|
+
"type": "integer",
|
|
15366
|
+
"format": "int64",
|
|
15367
|
+
"example": "4"
|
|
15368
|
+
},
|
|
15364
15369
|
"liquidity_pool_cooldown_period": {
|
|
15365
15370
|
"type": "integer",
|
|
15366
15371
|
"format": "int64",
|
|
@@ -15398,6 +15403,7 @@
|
|
|
15398
15403
|
"liquidity_pool_index",
|
|
15399
15404
|
"staking_pool_index",
|
|
15400
15405
|
"funding_fee_rebate_account_index",
|
|
15406
|
+
"fee_collector_account_index",
|
|
15401
15407
|
"liquidity_pool_cooldown_period",
|
|
15402
15408
|
"staking_pool_lockup_period",
|
|
15403
15409
|
"max_integrator_spot_taker_fee",
|
|
@@ -15439,6 +15445,10 @@
|
|
|
15439
15445
|
"type": "string",
|
|
15440
15446
|
"example": "ETH"
|
|
15441
15447
|
},
|
|
15448
|
+
"backend_symbol": {
|
|
15449
|
+
"type": "string",
|
|
15450
|
+
"example": "ETH"
|
|
15451
|
+
},
|
|
15442
15452
|
"name": {
|
|
15443
15453
|
"type": "string",
|
|
15444
15454
|
"example": "Ethereum"
|
|
@@ -15504,6 +15514,7 @@
|
|
|
15504
15514
|
"title": "Token",
|
|
15505
15515
|
"required": [
|
|
15506
15516
|
"symbol",
|
|
15517
|
+
"backend_symbol",
|
|
15507
15518
|
"name",
|
|
15508
15519
|
"logo",
|
|
15509
15520
|
"logo_extension",
|