zklighter-perps 1.0.88 → 1.0.90

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.
@@ -14,6 +14,7 @@ jobs:
14
14
  name: Clone zklighter-perps repository
15
15
  command: |
16
16
  git clone https://${GITHUB_TOKEN}@github.com/elliottech/zklighter-perps.git
17
+ git checkout << pipeline.parameters.BE_BRANCH >>
17
18
 
18
19
  - run:
19
20
  name: Download goctl-swagger binary
@@ -64,7 +65,7 @@ jobs:
64
65
  name: Get openapi.json from workspace
65
66
  command: |
66
67
  cp /tmp/workspace/openapi.json ./.circleci
67
-
68
+
68
69
  - run:
69
70
  name: Run postprocess script
70
71
  command: |
@@ -98,7 +99,7 @@ jobs:
98
99
  name: Download OpenAPI Generator JAR
99
100
  command: |
100
101
  wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.7.0/openapi-generator-cli-7.7.0.jar -O openapi-generator-cli.jar
101
-
102
+
102
103
  - run:
103
104
  name: Generate TS client using OpenAPI Generator
104
105
  command: |
@@ -154,7 +155,9 @@ parameters:
154
155
  update_ts_sdk:
155
156
  default: false
156
157
  type: boolean
157
-
158
+ BE_BRANCH:
159
+ type: string
160
+ default: "main"
158
161
 
159
162
  workflows:
160
163
  version: 2
@@ -185,4 +188,5 @@ workflows:
185
188
  - update_npm_package:
186
189
  filters:
187
190
  branches:
188
- only: main
191
+ only: main
192
+
@@ -112,7 +112,6 @@ models/TxHashes.ts
112
112
  models/Txs.ts
113
113
  models/ValidatorInfo.ts
114
114
  models/WithdrawHistory.ts
115
- models/WithdrawHistoryCursor.ts
116
115
  models/WithdrawHistoryItem.ts
117
116
  models/ZkLighterInfo.ts
118
117
  models/index.ts
@@ -43,6 +43,12 @@ export interface DepositHistoryItem {
43
43
  * @memberof DepositHistoryItem
44
44
  */
45
45
  status: DepositHistoryItemStatusEnum;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof DepositHistoryItem
50
+ */
51
+ l1_tx_hash: string;
46
52
  }
47
53
 
48
54
 
@@ -66,6 +72,7 @@ export function instanceOfDepositHistoryItem(value: object): value is DepositHis
66
72
  if (!('amount' in value) || value['amount'] === undefined) return false;
67
73
  if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
68
74
  if (!('status' in value) || value['status'] === undefined) return false;
75
+ if (!('l1_tx_hash' in value) || value['l1_tx_hash'] === undefined) return false;
69
76
  return true;
70
77
  }
71
78
 
@@ -83,6 +90,7 @@ export function DepositHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
83
90
  'amount': json['amount'],
84
91
  'timestamp': json['timestamp'],
85
92
  'status': json['status'],
93
+ 'l1_tx_hash': json['l1_tx_hash'],
86
94
  };
87
95
  }
88
96
 
@@ -96,6 +104,7 @@ export function DepositHistoryItemToJSON(value?: DepositHistoryItem | null): any
96
104
  'amount': value['amount'],
97
105
  'timestamp': value['timestamp'],
98
106
  'status': value['status'],
107
+ 'l1_tx_hash': value['l1_tx_hash'],
99
108
  };
100
109
  }
101
110
 
@@ -19,12 +19,6 @@ import {
19
19
  WithdrawHistoryItemFromJSONTyped,
20
20
  WithdrawHistoryItemToJSON,
21
21
  } from './WithdrawHistoryItem';
22
- import type { WithdrawHistoryCursor } from './WithdrawHistoryCursor';
23
- import {
24
- WithdrawHistoryCursorFromJSON,
25
- WithdrawHistoryCursorFromJSONTyped,
26
- WithdrawHistoryCursorToJSON,
27
- } from './WithdrawHistoryCursor';
28
22
 
29
23
  /**
30
24
  *
@@ -52,10 +46,10 @@ export interface WithdrawHistory {
52
46
  withdraws: Array<WithdrawHistoryItem>;
53
47
  /**
54
48
  *
55
- * @type {WithdrawHistoryCursor}
49
+ * @type {string}
56
50
  * @memberof WithdrawHistory
57
51
  */
58
- cursor: WithdrawHistoryCursor;
52
+ cursor: string;
59
53
  }
60
54
 
61
55
  /**
@@ -81,7 +75,7 @@ export function WithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminator: boo
81
75
  'code': json['code'],
82
76
  'message': json['message'] == null ? undefined : json['message'],
83
77
  'withdraws': ((json['withdraws'] as Array<any>).map(WithdrawHistoryItemFromJSON)),
84
- 'cursor': WithdrawHistoryCursorFromJSON(json['cursor']),
78
+ 'cursor': json['cursor'],
85
79
  };
86
80
  }
87
81
 
@@ -94,7 +88,7 @@ export function WithdrawHistoryToJSON(value?: WithdrawHistory | null): any {
94
88
  'code': value['code'],
95
89
  'message': value['message'],
96
90
  'withdraws': ((value['withdraws'] as Array<any>).map(WithdrawHistoryItemToJSON)),
97
- 'cursor': WithdrawHistoryCursorToJSON(value['cursor']),
91
+ 'cursor': value['cursor'],
98
92
  };
99
93
  }
100
94
 
@@ -49,6 +49,12 @@ export interface WithdrawHistoryItem {
49
49
  * @memberof WithdrawHistoryItem
50
50
  */
51
51
  type: WithdrawHistoryItemTypeEnum;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof WithdrawHistoryItem
56
+ */
57
+ l1_tx_hash: string;
52
58
  }
53
59
 
54
60
 
@@ -83,6 +89,7 @@ export function instanceOfWithdrawHistoryItem(value: object): value is WithdrawH
83
89
  if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
84
90
  if (!('status' in value) || value['status'] === undefined) return false;
85
91
  if (!('type' in value) || value['type'] === undefined) return false;
92
+ if (!('l1_tx_hash' in value) || value['l1_tx_hash'] === undefined) return false;
86
93
  return true;
87
94
  }
88
95
 
@@ -101,6 +108,7 @@ export function WithdrawHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
101
108
  'timestamp': json['timestamp'],
102
109
  'status': json['status'],
103
110
  'type': json['type'],
111
+ 'l1_tx_hash': json['l1_tx_hash'],
104
112
  };
105
113
  }
106
114
 
@@ -115,6 +123,7 @@ export function WithdrawHistoryItemToJSON(value?: WithdrawHistoryItem | null): a
115
123
  'timestamp': value['timestamp'],
116
124
  'status': value['status'],
117
125
  'type': value['type'],
126
+ 'l1_tx_hash': value['l1_tx_hash'],
118
127
  };
119
128
  }
120
129
 
package/models/index.ts CHANGED
@@ -103,6 +103,5 @@ export * from './TxHashes';
103
103
  export * from './Txs';
104
104
  export * from './ValidatorInfo';
105
105
  export * from './WithdrawHistory';
106
- export * from './WithdrawHistoryCursor';
107
106
  export * from './WithdrawHistoryItem';
108
107
  export * from './ZkLighterInfo';
package/openapi.json CHANGED
@@ -2975,6 +2975,10 @@
2975
2975
  "completed",
2976
2976
  "claimable"
2977
2977
  ]
2978
+ },
2979
+ "l1_tx_hash": {
2980
+ "type": "string",
2981
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
2978
2982
  }
2979
2983
  },
2980
2984
  "title": "DepositHistoryItem",
@@ -2982,7 +2986,8 @@
2982
2986
  "id",
2983
2987
  "amount",
2984
2988
  "timestamp",
2985
- "status"
2989
+ "status",
2990
+ "l1_tx_hash"
2986
2991
  ]
2987
2992
  },
2988
2993
  "DetailedAccount": {
@@ -6040,7 +6045,7 @@
6040
6045
  }
6041
6046
  },
6042
6047
  "cursor": {
6043
- "$ref": "#/definitions/WithdrawHistoryCursor"
6048
+ "type": "string"
6044
6049
  }
6045
6050
  },
6046
6051
  "title": "WithdrawHistory",
@@ -6050,24 +6055,6 @@
6050
6055
  "cursor"
6051
6056
  ]
6052
6057
  },
6053
- "WithdrawHistoryCursor": {
6054
- "type": "object",
6055
- "properties": {
6056
- "secure_id": {
6057
- "type": "string",
6058
- "example": "1"
6059
- },
6060
- "fast_id": {
6061
- "type": "string",
6062
- "example": "1"
6063
- }
6064
- },
6065
- "title": "WithdrawHistoryCursor",
6066
- "required": [
6067
- "secure_id",
6068
- "fast_id"
6069
- ]
6070
- },
6071
6058
  "WithdrawHistoryItem": {
6072
6059
  "type": "object",
6073
6060
  "properties": {
@@ -6099,6 +6086,10 @@
6099
6086
  "secure",
6100
6087
  "fast"
6101
6088
  ]
6089
+ },
6090
+ "l1_tx_hash": {
6091
+ "type": "string",
6092
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
6102
6093
  }
6103
6094
  },
6104
6095
  "title": "WithdrawHistoryItem",
@@ -6107,7 +6098,8 @@
6107
6098
  "amount",
6108
6099
  "timestamp",
6109
6100
  "status",
6110
- "type"
6101
+ "type",
6102
+ "l1_tx_hash"
6111
6103
  ]
6112
6104
  },
6113
6105
  "ZkLighterInfo": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.88",
3
+ "version": "1.0.90",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {