zklighter-perps 1.0.89 → 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
+
@@ -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
 
@@ -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/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": {
@@ -6081,6 +6086,10 @@
6081
6086
  "secure",
6082
6087
  "fast"
6083
6088
  ]
6089
+ },
6090
+ "l1_tx_hash": {
6091
+ "type": "string",
6092
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
6084
6093
  }
6085
6094
  },
6086
6095
  "title": "WithdrawHistoryItem",
@@ -6089,7 +6098,8 @@
6089
6098
  "amount",
6090
6099
  "timestamp",
6091
6100
  "status",
6092
- "type"
6101
+ "type",
6102
+ "l1_tx_hash"
6093
6103
  ]
6094
6104
  },
6095
6105
  "ZkLighterInfo": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {