zklighter-perps 1.0.74 → 1.0.76

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/BridgeApi.ts CHANGED
@@ -18,9 +18,7 @@ import type {
18
18
  BridgeSupportedNetworks,
19
19
  CreateIntentAddressResp,
20
20
  Deposit,
21
- DepositHistory,
22
21
  ResultCode,
23
- WithdrawHistory,
24
22
  } from '../models/index';
25
23
  import {
26
24
  BridgeSupportedNetworksFromJSON,
@@ -29,12 +27,8 @@ import {
29
27
  CreateIntentAddressRespToJSON,
30
28
  DepositFromJSON,
31
29
  DepositToJSON,
32
- DepositHistoryFromJSON,
33
- DepositHistoryToJSON,
34
30
  ResultCodeFromJSON,
35
31
  ResultCodeToJSON,
36
- WithdrawHistoryFromJSON,
37
- WithdrawHistoryToJSON,
38
32
  } from '../models/index';
39
33
 
40
34
  export interface CreateIntentAddressRequest {
@@ -49,20 +43,10 @@ export interface DepositCancelRequest {
49
43
  chain_id: string;
50
44
  }
51
45
 
52
- export interface DepositHistoryRequest {
53
- l1_address: string;
54
- cursor?: string;
55
- }
56
-
57
46
  export interface DepositLatestRequest {
58
47
  l1_address: string;
59
48
  }
60
49
 
61
- export interface WithdrawHistoryRequest {
62
- l1_address: string;
63
- cursor?: string;
64
- }
65
-
66
50
  /**
67
51
  *
68
52
  */
@@ -213,49 +197,6 @@ export class BridgeApi extends runtime.BaseAPI {
213
197
  return await response.value();
214
198
  }
215
199
 
216
- /**
217
- * Get deposit history
218
- * deposit_history
219
- */
220
- async depositHistoryRaw(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DepositHistory>> {
221
- if (requestParameters['l1_address'] == null) {
222
- throw new runtime.RequiredError(
223
- 'l1_address',
224
- 'Required parameter "l1_address" was null or undefined when calling depositHistory().'
225
- );
226
- }
227
-
228
- const queryParameters: any = {};
229
-
230
- if (requestParameters['l1_address'] != null) {
231
- queryParameters['l1_address'] = requestParameters['l1_address'];
232
- }
233
-
234
- if (requestParameters['cursor'] != null) {
235
- queryParameters['cursor'] = requestParameters['cursor'];
236
- }
237
-
238
- const headerParameters: runtime.HTTPHeaders = {};
239
-
240
- const response = await this.request({
241
- path: `/api/v1/deposit/history`,
242
- method: 'GET',
243
- headers: headerParameters,
244
- query: queryParameters,
245
- }, initOverrides);
246
-
247
- return new runtime.JSONApiResponse(response, (jsonValue) => DepositHistoryFromJSON(jsonValue));
248
- }
249
-
250
- /**
251
- * Get deposit history
252
- * deposit_history
253
- */
254
- async depositHistory(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DepositHistory> {
255
- const response = await this.depositHistoryRaw(requestParameters, initOverrides);
256
- return await response.value();
257
- }
258
-
259
200
  /**
260
201
  * Get most recent deposit for given l1 address
261
202
  * deposit_latest
@@ -323,47 +264,4 @@ export class BridgeApi extends runtime.BaseAPI {
323
264
  return await response.value();
324
265
  }
325
266
 
326
- /**
327
- * Get withdraw history
328
- * withdraw_history
329
- */
330
- async withdrawHistoryRaw(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WithdrawHistory>> {
331
- if (requestParameters['l1_address'] == null) {
332
- throw new runtime.RequiredError(
333
- 'l1_address',
334
- 'Required parameter "l1_address" was null or undefined when calling withdrawHistory().'
335
- );
336
- }
337
-
338
- const queryParameters: any = {};
339
-
340
- if (requestParameters['l1_address'] != null) {
341
- queryParameters['l1_address'] = requestParameters['l1_address'];
342
- }
343
-
344
- if (requestParameters['cursor'] != null) {
345
- queryParameters['cursor'] = requestParameters['cursor'];
346
- }
347
-
348
- const headerParameters: runtime.HTTPHeaders = {};
349
-
350
- const response = await this.request({
351
- path: `/api/v1/withdraw/history`,
352
- method: 'GET',
353
- headers: headerParameters,
354
- query: queryParameters,
355
- }, initOverrides);
356
-
357
- return new runtime.JSONApiResponse(response, (jsonValue) => WithdrawHistoryFromJSON(jsonValue));
358
- }
359
-
360
- /**
361
- * Get withdraw history
362
- * withdraw_history
363
- */
364
- async withdrawHistory(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WithdrawHistory> {
365
- const response = await this.withdrawHistoryRaw(requestParameters, initOverrides);
366
- return await response.value();
367
- }
368
-
369
267
  }
@@ -15,14 +15,18 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ DepositHistory,
18
19
  EnrichedTx,
19
20
  NextNonce,
20
21
  ResultCode,
21
22
  TxHash,
22
23
  TxHashes,
23
24
  Txs,
25
+ WithdrawHistory,
24
26
  } from '../models/index';
25
27
  import {
28
+ DepositHistoryFromJSON,
29
+ DepositHistoryToJSON,
26
30
  EnrichedTxFromJSON,
27
31
  EnrichedTxToJSON,
28
32
  NextNonceFromJSON,
@@ -35,6 +39,8 @@ import {
35
39
  TxHashesToJSON,
36
40
  TxsFromJSON,
37
41
  TxsToJSON,
42
+ WithdrawHistoryFromJSON,
43
+ WithdrawHistoryToJSON,
38
44
  } from '../models/index';
39
45
 
40
46
  export interface AccountPendingTxsRequest {
@@ -56,6 +62,12 @@ export interface BlockTxsRequest {
56
62
  value: string;
57
63
  }
58
64
 
65
+ export interface DepositHistoryRequest {
66
+ l1_address: string;
67
+ filter: string;
68
+ cursor?: string;
69
+ }
70
+
59
71
  export interface NextNonceRequest {
60
72
  account_index: number;
61
73
  api_key_index: number;
@@ -99,6 +111,12 @@ export interface TxsRequest {
99
111
  index?: number;
100
112
  }
101
113
 
114
+ export interface WithdrawHistoryRequest {
115
+ l1_address: string;
116
+ filter: string;
117
+ cursor?: string;
118
+ }
119
+
102
120
  /**
103
121
  *
104
122
  */
@@ -277,6 +295,60 @@ export class TransactionApi extends runtime.BaseAPI {
277
295
  return await response.value();
278
296
  }
279
297
 
298
+ /**
299
+ * Get deposit history
300
+ * deposit_history
301
+ */
302
+ async depositHistoryRaw(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DepositHistory>> {
303
+ if (requestParameters['l1_address'] == null) {
304
+ throw new runtime.RequiredError(
305
+ 'l1_address',
306
+ 'Required parameter "l1_address" was null or undefined when calling depositHistory().'
307
+ );
308
+ }
309
+
310
+ if (requestParameters['filter'] == null) {
311
+ throw new runtime.RequiredError(
312
+ 'filter',
313
+ 'Required parameter "filter" was null or undefined when calling depositHistory().'
314
+ );
315
+ }
316
+
317
+ const queryParameters: any = {};
318
+
319
+ if (requestParameters['l1_address'] != null) {
320
+ queryParameters['l1_address'] = requestParameters['l1_address'];
321
+ }
322
+
323
+ if (requestParameters['cursor'] != null) {
324
+ queryParameters['cursor'] = requestParameters['cursor'];
325
+ }
326
+
327
+ if (requestParameters['filter'] != null) {
328
+ queryParameters['filter'] = requestParameters['filter'];
329
+ }
330
+
331
+ const headerParameters: runtime.HTTPHeaders = {};
332
+
333
+ const response = await this.request({
334
+ path: `/api/v1/deposit/history`,
335
+ method: 'GET',
336
+ headers: headerParameters,
337
+ query: queryParameters,
338
+ }, initOverrides);
339
+
340
+ return new runtime.JSONApiResponse(response, (jsonValue) => DepositHistoryFromJSON(jsonValue));
341
+ }
342
+
343
+ /**
344
+ * Get deposit history
345
+ * deposit_history
346
+ */
347
+ async depositHistory(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DepositHistory> {
348
+ const response = await this.depositHistoryRaw(requestParameters, initOverrides);
349
+ return await response.value();
350
+ }
351
+
280
352
  /**
281
353
  * Get next nonce for a specific account
282
354
  * nextNonce
@@ -734,6 +806,60 @@ export class TransactionApi extends runtime.BaseAPI {
734
806
  return await response.value();
735
807
  }
736
808
 
809
+ /**
810
+ * Get withdraw history
811
+ * withdraw_history
812
+ */
813
+ async withdrawHistoryRaw(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WithdrawHistory>> {
814
+ if (requestParameters['l1_address'] == null) {
815
+ throw new runtime.RequiredError(
816
+ 'l1_address',
817
+ 'Required parameter "l1_address" was null or undefined when calling withdrawHistory().'
818
+ );
819
+ }
820
+
821
+ if (requestParameters['filter'] == null) {
822
+ throw new runtime.RequiredError(
823
+ 'filter',
824
+ 'Required parameter "filter" was null or undefined when calling withdrawHistory().'
825
+ );
826
+ }
827
+
828
+ const queryParameters: any = {};
829
+
830
+ if (requestParameters['l1_address'] != null) {
831
+ queryParameters['l1_address'] = requestParameters['l1_address'];
832
+ }
833
+
834
+ if (requestParameters['cursor'] != null) {
835
+ queryParameters['cursor'] = requestParameters['cursor'];
836
+ }
837
+
838
+ if (requestParameters['filter'] != null) {
839
+ queryParameters['filter'] = requestParameters['filter'];
840
+ }
841
+
842
+ const headerParameters: runtime.HTTPHeaders = {};
843
+
844
+ const response = await this.request({
845
+ path: `/api/v1/withdraw/history`,
846
+ method: 'GET',
847
+ headers: headerParameters,
848
+ query: queryParameters,
849
+ }, initOverrides);
850
+
851
+ return new runtime.JSONApiResponse(response, (jsonValue) => WithdrawHistoryFromJSON(jsonValue));
852
+ }
853
+
854
+ /**
855
+ * Get withdraw history
856
+ * withdraw_history
857
+ */
858
+ async withdrawHistory(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WithdrawHistory> {
859
+ const response = await this.withdrawHistoryRaw(requestParameters, initOverrides);
860
+ return await response.value();
861
+ }
862
+
737
863
  }
738
864
 
739
865
  /**
@@ -37,12 +37,6 @@ export interface BridgeSupportedNetwork {
37
37
  * @memberof BridgeSupportedNetwork
38
38
  */
39
39
  explorer: string;
40
- /**
41
- *
42
- * @type {boolean}
43
- * @memberof BridgeSupportedNetwork
44
- */
45
- is_cex: boolean;
46
40
  }
47
41
 
48
42
  /**
@@ -52,7 +46,6 @@ export function instanceOfBridgeSupportedNetwork(value: object): value is Bridge
52
46
  if (!('name' in value) || value['name'] === undefined) return false;
53
47
  if (!('chain_id' in value) || value['chain_id'] === undefined) return false;
54
48
  if (!('explorer' in value) || value['explorer'] === undefined) return false;
55
- if (!('is_cex' in value) || value['is_cex'] === undefined) return false;
56
49
  return true;
57
50
  }
58
51
 
@@ -69,7 +62,6 @@ export function BridgeSupportedNetworkFromJSONTyped(json: any, ignoreDiscriminat
69
62
  'name': json['name'],
70
63
  'chain_id': json['chain_id'],
71
64
  'explorer': json['explorer'],
72
- 'is_cex': json['is_cex'],
73
65
  };
74
66
  }
75
67
 
@@ -82,7 +74,6 @@ export function BridgeSupportedNetworkToJSON(value?: BridgeSupportedNetwork | nu
82
74
  'name': value['name'],
83
75
  'chain_id': value['chain_id'],
84
76
  'explorer': value['explorer'],
85
- 'is_cex': value['is_cex'],
86
77
  };
87
78
  }
88
79
 
package/models/Deposit.ts CHANGED
@@ -37,6 +37,30 @@ export interface Deposit {
37
37
  * @memberof Deposit
38
38
  */
39
39
  source: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Deposit
44
+ */
45
+ source_chain_id: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof Deposit
50
+ */
51
+ fast_bridge_tx_hash: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof Deposit
56
+ */
57
+ batch_claim_tx_hash: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof Deposit
62
+ */
63
+ cctp_burn_tx_hash: string;
40
64
  /**
41
65
  *
42
66
  * @type {string}
@@ -93,6 +117,10 @@ export interface Deposit {
93
117
  export function instanceOfDeposit(value: object): value is Deposit {
94
118
  if (!('code' in value) || value['code'] === undefined) return false;
95
119
  if (!('source' in value) || value['source'] === undefined) return false;
120
+ if (!('source_chain_id' in value) || value['source_chain_id'] === undefined) return false;
121
+ if (!('fast_bridge_tx_hash' in value) || value['fast_bridge_tx_hash'] === undefined) return false;
122
+ if (!('batch_claim_tx_hash' in value) || value['batch_claim_tx_hash'] === undefined) return false;
123
+ if (!('cctp_burn_tx_hash' in value) || value['cctp_burn_tx_hash'] === undefined) return false;
96
124
  if (!('amount' in value) || value['amount'] === undefined) return false;
97
125
  if (!('intent_address' in value) || value['intent_address'] === undefined) return false;
98
126
  if (!('status' in value) || value['status'] === undefined) return false;
@@ -117,6 +145,10 @@ export function DepositFromJSONTyped(json: any, ignoreDiscriminator: boolean): D
117
145
  'code': json['code'],
118
146
  'message': json['message'] == null ? undefined : json['message'],
119
147
  'source': json['source'],
148
+ 'source_chain_id': json['source_chain_id'],
149
+ 'fast_bridge_tx_hash': json['fast_bridge_tx_hash'],
150
+ 'batch_claim_tx_hash': json['batch_claim_tx_hash'],
151
+ 'cctp_burn_tx_hash': json['cctp_burn_tx_hash'],
120
152
  'amount': json['amount'],
121
153
  'intent_address': json['intent_address'],
122
154
  'status': json['status'],
@@ -137,6 +169,10 @@ export function DepositToJSON(value?: Deposit | null): any {
137
169
  'code': value['code'],
138
170
  'message': value['message'],
139
171
  'source': value['source'],
172
+ 'source_chain_id': value['source_chain_id'],
173
+ 'fast_bridge_tx_hash': value['fast_bridge_tx_hash'],
174
+ 'batch_claim_tx_hash': value['batch_claim_tx_hash'],
175
+ 'cctp_burn_tx_hash': value['cctp_burn_tx_hash'],
140
176
  'amount': value['amount'],
141
177
  'intent_address': value['intent_address'],
142
178
  'status': value['status'],
@@ -37,6 +37,12 @@ export interface DepositHistoryItem {
37
37
  * @memberof DepositHistoryItem
38
38
  */
39
39
  timestamp: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof DepositHistoryItem
44
+ */
45
+ status: string;
40
46
  }
41
47
 
42
48
  /**
@@ -46,6 +52,7 @@ export function instanceOfDepositHistoryItem(value: object): value is DepositHis
46
52
  if (!('id' in value) || value['id'] === undefined) return false;
47
53
  if (!('amount' in value) || value['amount'] === undefined) return false;
48
54
  if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
55
+ if (!('status' in value) || value['status'] === undefined) return false;
49
56
  return true;
50
57
  }
51
58
 
@@ -62,6 +69,7 @@ export function DepositHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
62
69
  'id': json['id'],
63
70
  'amount': json['amount'],
64
71
  'timestamp': json['timestamp'],
72
+ 'status': json['status'],
65
73
  };
66
74
  }
67
75
 
@@ -74,6 +82,7 @@ export function DepositHistoryItemToJSON(value?: DepositHistoryItem | null): any
74
82
  'id': value['id'],
75
83
  'amount': value['amount'],
76
84
  'timestamp': value['timestamp'],
85
+ 'status': value['status'],
77
86
  };
78
87
  }
79
88
 
@@ -31,6 +31,12 @@ export interface ReqGetDepositHistory {
31
31
  * @memberof ReqGetDepositHistory
32
32
  */
33
33
  cursor?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ReqGetDepositHistory
38
+ */
39
+ filter: string;
34
40
  }
35
41
 
36
42
  /**
@@ -38,6 +44,7 @@ export interface ReqGetDepositHistory {
38
44
  */
39
45
  export function instanceOfReqGetDepositHistory(value: object): value is ReqGetDepositHistory {
40
46
  if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
47
+ if (!('filter' in value) || value['filter'] === undefined) return false;
41
48
  return true;
42
49
  }
43
50
 
@@ -53,6 +60,7 @@ export function ReqGetDepositHistoryFromJSONTyped(json: any, ignoreDiscriminator
53
60
 
54
61
  'l1_address': json['l1_address'],
55
62
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
63
+ 'filter': json['filter'],
56
64
  };
57
65
  }
58
66
 
@@ -64,6 +72,7 @@ export function ReqGetDepositHistoryToJSON(value?: ReqGetDepositHistory | null):
64
72
 
65
73
  'l1_address': value['l1_address'],
66
74
  'cursor': value['cursor'],
75
+ 'filter': value['filter'],
67
76
  };
68
77
  }
69
78
 
@@ -31,6 +31,12 @@ export interface ReqGetWithdrawHistory {
31
31
  * @memberof ReqGetWithdrawHistory
32
32
  */
33
33
  cursor?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ReqGetWithdrawHistory
38
+ */
39
+ filter: string;
34
40
  }
35
41
 
36
42
  /**
@@ -38,6 +44,7 @@ export interface ReqGetWithdrawHistory {
38
44
  */
39
45
  export function instanceOfReqGetWithdrawHistory(value: object): value is ReqGetWithdrawHistory {
40
46
  if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
47
+ if (!('filter' in value) || value['filter'] === undefined) return false;
41
48
  return true;
42
49
  }
43
50
 
@@ -53,6 +60,7 @@ export function ReqGetWithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminato
53
60
 
54
61
  'l1_address': json['l1_address'],
55
62
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
63
+ 'filter': json['filter'],
56
64
  };
57
65
  }
58
66
 
@@ -64,6 +72,7 @@ export function ReqGetWithdrawHistoryToJSON(value?: ReqGetWithdrawHistory | null
64
72
 
65
73
  'l1_address': value['l1_address'],
66
74
  'cursor': value['cursor'],
75
+ 'filter': value['filter'],
67
76
  };
68
77
  }
69
78
 
@@ -37,6 +37,12 @@ export interface WithdrawHistoryItem {
37
37
  * @memberof WithdrawHistoryItem
38
38
  */
39
39
  timestamp: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof WithdrawHistoryItem
44
+ */
45
+ status: string;
40
46
  }
41
47
 
42
48
  /**
@@ -46,6 +52,7 @@ export function instanceOfWithdrawHistoryItem(value: object): value is WithdrawH
46
52
  if (!('id' in value) || value['id'] === undefined) return false;
47
53
  if (!('amount' in value) || value['amount'] === undefined) return false;
48
54
  if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
55
+ if (!('status' in value) || value['status'] === undefined) return false;
49
56
  return true;
50
57
  }
51
58
 
@@ -62,6 +69,7 @@ export function WithdrawHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
62
69
  'id': json['id'],
63
70
  'amount': json['amount'],
64
71
  'timestamp': json['timestamp'],
72
+ 'status': json['status'],
65
73
  };
66
74
  }
67
75
 
@@ -74,6 +82,7 @@ export function WithdrawHistoryItemToJSON(value?: WithdrawHistoryItem | null): a
74
82
  'id': value['id'],
75
83
  'amount': value['amount'],
76
84
  'timestamp': value['timestamp'],
85
+ 'status': value['status'],
77
86
  };
78
87
  }
79
88
 
package/openapi.json CHANGED
@@ -867,10 +867,16 @@
867
867
  "in": "query",
868
868
  "required": false,
869
869
  "type": "string"
870
+ },
871
+ {
872
+ "name": "filter",
873
+ "in": "query",
874
+ "required": true,
875
+ "type": "string"
870
876
  }
871
877
  ],
872
878
  "tags": [
873
- "bridge"
879
+ "transaction"
874
880
  ],
875
881
  "consumes": [
876
882
  "multipart/form-data"
@@ -2025,10 +2031,16 @@
2025
2031
  "in": "query",
2026
2032
  "required": false,
2027
2033
  "type": "string"
2034
+ },
2035
+ {
2036
+ "name": "filter",
2037
+ "in": "query",
2038
+ "required": true,
2039
+ "type": "string"
2028
2040
  }
2029
2041
  ],
2030
2042
  "tags": [
2031
- "bridge"
2043
+ "transaction"
2032
2044
  ],
2033
2045
  "consumes": [
2034
2046
  "multipart/form-data"
@@ -2504,19 +2516,13 @@
2504
2516
  "explorer": {
2505
2517
  "type": "string",
2506
2518
  "example": "https://arbiscan.io/"
2507
- },
2508
- "is_cex": {
2509
- "type": "boolean",
2510
- "format": "boolean",
2511
- "example": "false"
2512
2519
  }
2513
2520
  },
2514
2521
  "title": "BridgeSupportedNetwork",
2515
2522
  "required": [
2516
2523
  "name",
2517
2524
  "chain_id",
2518
- "explorer",
2519
- "is_cex"
2525
+ "explorer"
2520
2526
  ]
2521
2527
  },
2522
2528
  "BridgeSupportedNetworks": {
@@ -2713,6 +2719,22 @@
2713
2719
  "type": "string",
2714
2720
  "example": "Arbitrum"
2715
2721
  },
2722
+ "source_chain_id": {
2723
+ "type": "string",
2724
+ "example": "42161"
2725
+ },
2726
+ "fast_bridge_tx_hash": {
2727
+ "type": "string",
2728
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
2729
+ },
2730
+ "batch_claim_tx_hash": {
2731
+ "type": "string",
2732
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
2733
+ },
2734
+ "cctp_burn_tx_hash": {
2735
+ "type": "string",
2736
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
2737
+ },
2716
2738
  "amount": {
2717
2739
  "type": "string"
2718
2740
  },
@@ -2745,6 +2767,10 @@
2745
2767
  "required": [
2746
2768
  "code",
2747
2769
  "source",
2770
+ "source_chain_id",
2771
+ "fast_bridge_tx_hash",
2772
+ "batch_claim_tx_hash",
2773
+ "cctp_burn_tx_hash",
2748
2774
  "amount",
2749
2775
  "intent_address",
2750
2776
  "status",
@@ -2797,13 +2823,18 @@
2797
2823
  "type": "integer",
2798
2824
  "format": "int64",
2799
2825
  "example": "1640995200"
2826
+ },
2827
+ "status": {
2828
+ "type": "string",
2829
+ "example": "pending|executed|failed"
2800
2830
  }
2801
2831
  },
2802
2832
  "title": "DepositHistoryItem",
2803
2833
  "required": [
2804
2834
  "id",
2805
2835
  "amount",
2806
- "timestamp"
2836
+ "timestamp",
2837
+ "status"
2807
2838
  ]
2808
2839
  },
2809
2840
  "DetailedAccount": {
@@ -4849,11 +4880,15 @@
4849
4880
  },
4850
4881
  "cursor": {
4851
4882
  "type": "string"
4883
+ },
4884
+ "filter": {
4885
+ "type": "string"
4852
4886
  }
4853
4887
  },
4854
4888
  "title": "ReqGetDepositHistory",
4855
4889
  "required": [
4856
- "l1_address"
4890
+ "l1_address",
4891
+ "filter"
4857
4892
  ]
4858
4893
  },
4859
4894
  "ReqGetExchangeStats": {
@@ -5201,11 +5236,15 @@
5201
5236
  },
5202
5237
  "cursor": {
5203
5238
  "type": "string"
5239
+ },
5240
+ "filter": {
5241
+ "type": "string"
5204
5242
  }
5205
5243
  },
5206
5244
  "title": "ReqGetWithdrawHistory",
5207
5245
  "required": [
5208
- "l1_address"
5246
+ "l1_address",
5247
+ "filter"
5209
5248
  ]
5210
5249
  },
5211
5250
  "ReqIsWhitelisted": {
@@ -5792,13 +5831,18 @@
5792
5831
  "type": "integer",
5793
5832
  "format": "int64",
5794
5833
  "example": "1640995200"
5834
+ },
5835
+ "status": {
5836
+ "type": "string",
5837
+ "example": "pending|executed|failed"
5795
5838
  }
5796
5839
  },
5797
5840
  "title": "WithdrawHistoryItem",
5798
5841
  "required": [
5799
5842
  "id",
5800
5843
  "amount",
5801
- "timestamp"
5844
+ "timestamp",
5845
+ "status"
5802
5846
  ]
5803
5847
  },
5804
5848
  "ZkLighterInfo": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {