zklighter-perps 1.0.290 → 1.0.292

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/Asset.ts CHANGED
@@ -135,7 +135,8 @@ export interface Asset {
135
135
  */
136
136
  export const AssetMarginModeEnum = {
137
137
  Enabled: 'enabled',
138
- Disabled: 'disabled'
138
+ Disabled: 'disabled',
139
+ PricedOnly: 'priced_only'
139
140
  } as const;
140
141
  export type AssetMarginModeEnum = typeof AssetMarginModeEnum[keyof typeof AssetMarginModeEnum];
141
142
 
@@ -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/openapi.json CHANGED
@@ -6500,7 +6500,8 @@
6500
6500
  "example": "enabled",
6501
6501
  "enum": [
6502
6502
  "enabled",
6503
- "disabled"
6503
+ "disabled",
6504
+ "priced_only"
6504
6505
  ]
6505
6506
  },
6506
6507
  "index_price": {
@@ -15360,6 +15361,11 @@
15360
15361
  "format": "int64",
15361
15362
  "example": "3"
15362
15363
  },
15364
+ "fee_collector_account_index": {
15365
+ "type": "integer",
15366
+ "format": "int64",
15367
+ "example": "4"
15368
+ },
15363
15369
  "liquidity_pool_cooldown_period": {
15364
15370
  "type": "integer",
15365
15371
  "format": "int64",
@@ -15397,6 +15403,7 @@
15397
15403
  "liquidity_pool_index",
15398
15404
  "staking_pool_index",
15399
15405
  "funding_fee_rebate_account_index",
15406
+ "fee_collector_account_index",
15400
15407
  "liquidity_pool_cooldown_period",
15401
15408
  "staking_pool_lockup_period",
15402
15409
  "max_integrator_spot_taker_fee",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.290",
3
+ "version": "1.0.292",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {