zklighter-perps 1.0.200 → 1.0.201

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.
@@ -100,6 +100,7 @@ export interface TransferHistoryRequest {
100
100
  authorization?: string;
101
101
  auth?: string;
102
102
  cursor?: string;
103
+ type?: TransferHistoryTypeEnum;
103
104
  }
104
105
 
105
106
  export interface TxRequest {
@@ -631,6 +632,10 @@ export class TransactionApi extends runtime.BaseAPI {
631
632
  queryParameters['cursor'] = requestParameters['cursor'];
632
633
  }
633
634
 
635
+ if (requestParameters['type'] != null) {
636
+ queryParameters['type'] = requestParameters['type'];
637
+ }
638
+
634
639
  const headerParameters: runtime.HTTPHeaders = {};
635
640
 
636
641
  const response = await this.request({
@@ -865,6 +870,18 @@ export const DepositHistoryFilterEnum = {
865
870
  Claimable: 'claimable'
866
871
  } as const;
867
872
  export type DepositHistoryFilterEnum = typeof DepositHistoryFilterEnum[keyof typeof DepositHistoryFilterEnum];
873
+ /**
874
+ * @export
875
+ */
876
+ export const TransferHistoryTypeEnum = {
877
+ All: 'all',
878
+ L2Transfer: 'L2Transfer',
879
+ L2MintShares: 'L2MintShares',
880
+ L2BurnShares: 'L2BurnShares',
881
+ L2StakeAssets: 'L2StakeAssets',
882
+ L2UnstakeAssets: 'L2UnstakeAssets'
883
+ } as const;
884
+ export type TransferHistoryTypeEnum = typeof TransferHistoryTypeEnum[keyof typeof TransferHistoryTypeEnum];
868
885
  /**
869
886
  * @export
870
887
  */
@@ -37,6 +37,12 @@ export interface ReqGetTransferHistory {
37
37
  * @memberof ReqGetTransferHistory
38
38
  */
39
39
  cursor?: string;
40
+ /**
41
+ *
42
+ * @type {Array<string>}
43
+ * @memberof ReqGetTransferHistory
44
+ */
45
+ type?: Array<string>;
40
46
  }
41
47
 
42
48
  /**
@@ -60,6 +66,7 @@ export function ReqGetTransferHistoryFromJSONTyped(json: any, ignoreDiscriminato
60
66
  'auth': json['auth'] == null ? undefined : json['auth'],
61
67
  'account_index': json['account_index'],
62
68
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
69
+ 'type': json['type'] == null ? undefined : json['type'],
63
70
  };
64
71
  }
65
72
 
@@ -72,6 +79,7 @@ export function ReqGetTransferHistoryToJSON(value?: ReqGetTransferHistory | null
72
79
  'auth': value['auth'],
73
80
  'account_index': value['account_index'],
74
81
  'cursor': value['cursor'],
82
+ 'type': value['type'],
75
83
  };
76
84
  }
77
85
 
package/openapi.json CHANGED
@@ -3409,6 +3409,20 @@
3409
3409
  "in": "query",
3410
3410
  "required": false,
3411
3411
  "type": "string"
3412
+ },
3413
+ {
3414
+ "name": "type",
3415
+ "in": "query",
3416
+ "required": false,
3417
+ "type": "string",
3418
+ "enum": [
3419
+ "all",
3420
+ "L2Transfer",
3421
+ "L2MintShares",
3422
+ "L2BurnShares",
3423
+ "L2StakeAssets",
3424
+ "L2UnstakeAssets"
3425
+ ]
3412
3426
  }
3413
3427
  ],
3414
3428
  "tags": [
@@ -9217,6 +9231,20 @@
9217
9231
  },
9218
9232
  "cursor": {
9219
9233
  "type": "string"
9234
+ },
9235
+ "type": {
9236
+ "type": "array",
9237
+ "items": {
9238
+ "type": "string"
9239
+ },
9240
+ "enum": [
9241
+ "all",
9242
+ "L2Transfer",
9243
+ "L2MintShares",
9244
+ "L2BurnShares",
9245
+ "L2StakeAssets",
9246
+ "L2UnstakeAssets"
9247
+ ]
9220
9248
  }
9221
9249
  },
9222
9250
  "title": "ReqGetTransferHistory",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.200",
3
+ "version": "1.0.201",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {