zklighter-perps 1.0.344 → 1.0.346

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.
@@ -389,7 +389,7 @@ export interface TokensRevokeRequest {
389
389
  export class AccountApi extends runtime.BaseAPI {
390
390
 
391
391
  /**
392
- * Get account by account\'s index. <br>More details about account index: [Account Index](https://apidocs.lighter.xyz/docs/account-index)<hr>**Response Description:**<br><br>1) **Status:** 1 is active 0 is inactive.<br>2) **Collateral:** The amount of collateral in the account.<hr>**Position Details Description:**<br>1) **OOC:** Open order count in that market.<br>2) **Sign:** 1 for Long, -1 for Short.<br>3) **Position:** The amount of position in that market.<br>4) **Avg Entry Price:** The average entry price of the position.<br>5) **Position Value:** The value of the position.<br>6) **Unrealized PnL:** The unrealized profit and loss of the position.<br>7) **Realized PnL:** The realized profit and loss of the position.
392
+ * Get account by account\'s index. <br>More details about account index: [Account Index](https://docs.lighter.xyz/developers/getting-started/core-concepts#account-index)<hr>**Response Description:**<br><br>1) **Status:** 1 is active 0 is inactive.<br>2) **Collateral:** The amount of collateral in the account.<hr>**Position Details Description:**<br>1) **OOC:** Open order count in that market.<br>2) **Sign:** 1 for Long, -1 for Short.<br>3) **Position:** The amount of position in that market.<br>4) **Avg Entry Price:** The average entry price of the position.<br>5) **Position Value:** The value of the position.<br>6) **Unrealized PnL:** The unrealized profit and loss of the position.<br>7) **Realized PnL:** The realized profit and loss of the position.
393
393
  * account
394
394
  */
395
395
  async accountRaw(requestParameters: AccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DetailedAccounts>> {
@@ -438,7 +438,7 @@ export class AccountApi extends runtime.BaseAPI {
438
438
  }
439
439
 
440
440
  /**
441
- * Get account by account\'s index. <br>More details about account index: [Account Index](https://apidocs.lighter.xyz/docs/account-index)<hr>**Response Description:**<br><br>1) **Status:** 1 is active 0 is inactive.<br>2) **Collateral:** The amount of collateral in the account.<hr>**Position Details Description:**<br>1) **OOC:** Open order count in that market.<br>2) **Sign:** 1 for Long, -1 for Short.<br>3) **Position:** The amount of position in that market.<br>4) **Avg Entry Price:** The average entry price of the position.<br>5) **Position Value:** The value of the position.<br>6) **Unrealized PnL:** The unrealized profit and loss of the position.<br>7) **Realized PnL:** The realized profit and loss of the position.
441
+ * Get account by account\'s index. <br>More details about account index: [Account Index](https://docs.lighter.xyz/developers/getting-started/core-concepts#account-index)<hr>**Response Description:**<br><br>1) **Status:** 1 is active 0 is inactive.<br>2) **Collateral:** The amount of collateral in the account.<hr>**Position Details Description:**<br>1) **OOC:** Open order count in that market.<br>2) **Sign:** 1 for Long, -1 for Short.<br>3) **Position:** The amount of position in that market.<br>4) **Avg Entry Price:** The average entry price of the position.<br>5) **Position Value:** The value of the position.<br>6) **Unrealized PnL:** The unrealized profit and loss of the position.<br>7) **Realized PnL:** The realized profit and loss of the position.
442
442
  * account
443
443
  */
444
444
  async account(requestParameters: AccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DetailedAccounts> {
package/apis/GuildApi.ts CHANGED
@@ -540,7 +540,7 @@ export class GuildApi extends runtime.BaseAPI {
540
540
  }
541
541
 
542
542
  /**
543
- * Public duel detail (funded/live/finished/settled only): sides, terms, offer history, locked rosters
543
+ * Public duel detail in any status: sides, terms, offer history, locked rosters (drafts only via myDuel)
544
544
  * guild_duel
545
545
  */
546
546
  async guildDuelRaw(requestParameters: GuildDuelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespGetGuildDuel>> {
@@ -570,7 +570,7 @@ export class GuildApi extends runtime.BaseAPI {
570
570
  }
571
571
 
572
572
  /**
573
- * Public duel detail (funded/live/finished/settled only): sides, terms, offer history, locked rosters
573
+ * Public duel detail in any status: sides, terms, offer history, locked rosters (drafts only via myDuel)
574
574
  * guild_duel
575
575
  */
576
576
  async guildDuel(requestParameters: GuildDuelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespGetGuildDuel> {
@@ -374,7 +374,7 @@ export class TransactionApi extends runtime.BaseAPI {
374
374
  }
375
375
 
376
376
  /**
377
- * You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://apidocs.lighter.xyz/docs/get-started-for-programmers)
377
+ * You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://docs.lighter.xyz/developers/integration-guides/signing-transactions)
378
378
  * sendTx
379
379
  */
380
380
  async sendTxRaw(requestParameters: SendTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespSendTx>> {
@@ -434,7 +434,7 @@ export class TransactionApi extends runtime.BaseAPI {
434
434
  }
435
435
 
436
436
  /**
437
- * You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://apidocs.lighter.xyz/docs/get-started-for-programmers)
437
+ * You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://docs.lighter.xyz/developers/integration-guides/signing-transactions)
438
438
  * sendTx
439
439
  */
440
440
  async sendTx(requestParameters: SendTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespSendTx> {
@@ -443,7 +443,7 @@ export class TransactionApi extends runtime.BaseAPI {
443
443
  }
444
444
 
445
445
  /**
446
- * You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://apidocs.lighter.xyz/docs/get-started-for-programmers)
446
+ * You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://docs.lighter.xyz/developers/integration-guides/signing-transactions)
447
447
  * sendTxBatch
448
448
  */
449
449
  async sendTxBatchRaw(requestParameters: SendTxBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespSendTxBatch>> {
@@ -499,7 +499,7 @@ export class TransactionApi extends runtime.BaseAPI {
499
499
  }
500
500
 
501
501
  /**
502
- * You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://apidocs.lighter.xyz/docs/get-started-for-programmers)
502
+ * You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://docs.lighter.xyz/developers/integration-guides/signing-transactions)
503
503
  * sendTxBatch
504
504
  */
505
505
  async sendTxBatch(requestParameters: SendTxBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespSendTxBatch> {
@@ -62,6 +62,12 @@ export interface GuildListItem {
62
62
  * @memberof GuildListItem
63
63
  */
64
64
  duel_record: GuildDuelRecord;
65
+ /**
66
+ *
67
+ * @type {boolean}
68
+ * @memberof GuildListItem
69
+ */
70
+ in_duel: boolean;
65
71
  }
66
72
 
67
73
  /**
@@ -74,6 +80,7 @@ export function instanceOfGuildListItem(value: object): value is GuildListItem {
74
80
  if (!('max_members' in value) || value['max_members'] === undefined) return false;
75
81
  if (!('member_count' in value) || value['member_count'] === undefined) return false;
76
82
  if (!('duel_record' in value) || value['duel_record'] === undefined) return false;
83
+ if (!('in_duel' in value) || value['in_duel'] === undefined) return false;
77
84
  return true;
78
85
  }
79
86
 
@@ -93,6 +100,7 @@ export function GuildListItemFromJSONTyped(json: any, ignoreDiscriminator: boole
93
100
  'max_members': json['max_members'],
94
101
  'member_count': json['member_count'],
95
102
  'duel_record': GuildDuelRecordFromJSON(json['duel_record']),
103
+ 'in_duel': json['in_duel'],
96
104
  };
97
105
  }
98
106
 
@@ -108,6 +116,7 @@ export function GuildListItemToJSON(value?: GuildListItem | null): any {
108
116
  'max_members': value['max_members'],
109
117
  'member_count': value['member_count'],
110
118
  'duel_record': GuildDuelRecordToJSON(value['duel_record']),
119
+ 'in_duel': value['in_duel'],
111
120
  };
112
121
  }
113
122
 
@@ -134,6 +134,12 @@ export interface RespGetGuild {
134
134
  * @memberof RespGetGuild
135
135
  */
136
136
  competitions: Array<Competition>;
137
+ /**
138
+ * in an accepted, funded or live duel
139
+ * @type {boolean}
140
+ * @memberof RespGetGuild
141
+ */
142
+ in_duel: boolean;
137
143
  }
138
144
 
139
145
  /**
@@ -151,6 +157,7 @@ export function instanceOfRespGetGuild(value: object): value is RespGetGuild {
151
157
  if (!('duel_record' in value) || value['duel_record'] === undefined) return false;
152
158
  if (!('members' in value) || value['members'] === undefined) return false;
153
159
  if (!('competitions' in value) || value['competitions'] === undefined) return false;
160
+ if (!('in_duel' in value) || value['in_duel'] === undefined) return false;
154
161
  return true;
155
162
  }
156
163
 
@@ -178,6 +185,7 @@ export function RespGetGuildFromJSONTyped(json: any, ignoreDiscriminator: boolea
178
185
  'positions': json['positions'] == null ? undefined : ((json['positions'] as Array<any>).map(GuildPositionFromJSON)),
179
186
  'positions_updated_at': json['positions_updated_at'] == null ? undefined : json['positions_updated_at'],
180
187
  'competitions': ((json['competitions'] as Array<any>).map(CompetitionFromJSON)),
188
+ 'in_duel': json['in_duel'],
181
189
  };
182
190
  }
183
191
 
@@ -201,6 +209,7 @@ export function RespGetGuildToJSON(value?: RespGetGuild | null): any {
201
209
  'positions': value['positions'] == null ? undefined : ((value['positions'] as Array<any>).map(GuildPositionToJSON)),
202
210
  'positions_updated_at': value['positions_updated_at'],
203
211
  'competitions': ((value['competitions'] as Array<any>).map(CompetitionToJSON)),
212
+ 'in_duel': value['in_duel'],
204
213
  };
205
214
  }
206
215
 
package/openapi.json CHANGED
@@ -95,7 +95,7 @@
95
95
  "consumes": [
96
96
  "multipart/form-data"
97
97
  ],
98
- "description": "Get account by account's index. <br>More details about account index: [Account Index](https://apidocs.lighter.xyz/docs/account-index)<hr>**Response Description:**<br><br>1) **Status:** 1 is active 0 is inactive.<br>2) **Collateral:** The amount of collateral in the account.<hr>**Position Details Description:**<br>1) **OOC:** Open order count in that market.<br>2) **Sign:** 1 for Long, -1 for Short.<br>3) **Position:** The amount of position in that market.<br>4) **Avg Entry Price:** The average entry price of the position.<br>5) **Position Value:** The value of the position.<br>6) **Unrealized PnL:** The unrealized profit and loss of the position.<br>7) **Realized PnL:** The realized profit and loss of the position."
98
+ "description": "Get account by account's index. <br>More details about account index: [Account Index](https://docs.lighter.xyz/developers/getting-started/core-concepts#account-index)<hr>**Response Description:**<br><br>1) **Status:** 1 is active 0 is inactive.<br>2) **Collateral:** The amount of collateral in the account.<hr>**Position Details Description:**<br>1) **OOC:** Open order count in that market.<br>2) **Sign:** 1 for Long, -1 for Short.<br>3) **Position:** The amount of position in that market.<br>4) **Avg Entry Price:** The average entry price of the position.<br>5) **Position Value:** The value of the position.<br>6) **Unrealized PnL:** The unrealized profit and loss of the position.<br>7) **Realized PnL:** The realized profit and loss of the position."
99
99
  }
100
100
  },
101
101
  "/api/v1/accountActiveOrders": {
@@ -2979,7 +2979,7 @@
2979
2979
  "consumes": [
2980
2980
  "multipart/form-data"
2981
2981
  ],
2982
- "description": "Public duel detail (funded/live/finished/settled only): sides, terms, offer history, locked rosters"
2982
+ "description": "Public duel detail in any status: sides, terms, offer history, locked rosters (drafts only via myDuel)"
2983
2983
  }
2984
2984
  },
2985
2985
  "/api/v1/guild/duel/accept": {
@@ -6705,7 +6705,7 @@
6705
6705
  "consumes": [
6706
6706
  "multipart/form-data"
6707
6707
  ],
6708
- "description": "You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://apidocs.lighter.xyz/docs/get-started-for-programmers)"
6708
+ "description": "You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://docs.lighter.xyz/developers/integration-guides/signing-transactions)"
6709
6709
  }
6710
6710
  },
6711
6711
  "/api/v1/sendTxBatch": {
@@ -6742,7 +6742,7 @@
6742
6742
  "consumes": [
6743
6743
  "multipart/form-data"
6744
6744
  ],
6745
- "description": "You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://apidocs.lighter.xyz/docs/get-started-for-programmers)"
6745
+ "description": "You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://docs.lighter.xyz/developers/integration-guides/signing-transactions)"
6746
6746
  }
6747
6747
  },
6748
6748
  "/api/v1/setAccountMetadata": {
@@ -12545,6 +12545,10 @@
12545
12545
  },
12546
12546
  "duel_record": {
12547
12547
  "$ref": "#/definitions/GuildDuelRecord"
12548
+ },
12549
+ "in_duel": {
12550
+ "type": "boolean",
12551
+ "format": "boolean"
12548
12552
  }
12549
12553
  },
12550
12554
  "title": "GuildListItem",
@@ -12554,7 +12558,8 @@
12554
12558
  "accepts_join_requests",
12555
12559
  "max_members",
12556
12560
  "member_count",
12557
- "duel_record"
12561
+ "duel_record",
12562
+ "in_duel"
12558
12563
  ]
12559
12564
  },
12560
12565
  "GuildMember": {
@@ -20652,6 +20657,11 @@
20652
20657
  "items": {
20653
20658
  "$ref": "#/definitions/Competition"
20654
20659
  }
20660
+ },
20661
+ "in_duel": {
20662
+ "type": "boolean",
20663
+ "format": "boolean",
20664
+ "description": " in an accepted, funded or live duel"
20655
20665
  }
20656
20666
  },
20657
20667
  "title": "RespGetGuild",
@@ -20666,7 +20676,8 @@
20666
20676
  "created_at",
20667
20677
  "duel_record",
20668
20678
  "members",
20669
- "competitions"
20679
+ "competitions",
20680
+ "in_duel"
20670
20681
  ]
20671
20682
  },
20672
20683
  "RespGetGuildDuel": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.344",
3
+ "version": "1.0.346",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {