zklighter-perps 1.0.87 → 1.0.89

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.
@@ -103,15 +103,17 @@ jobs:
103
103
  name: Generate TS client using OpenAPI Generator
104
104
  command: |
105
105
  java -jar openapi-generator-cli.jar generate -i ./openapi.json -g typescript-fetch -o . -c config.yaml
106
+ - run:
107
+ name: git status
108
+ command: |
109
+ if git status | grep -q "nothing to commit"; then
110
+ exit 1;
111
+ fi
106
112
  - run:
107
113
  name: Increase package version
108
114
  command: |
109
115
  jq '.version |= (split(".") | .[2] = ((.[2] | tonumber) + 1 | tostring) | join("."))' package.json > tmp.json && mv tmp.json package.json
110
116
 
111
- - run:
112
- name: git status
113
- command: |
114
- git status
115
117
  - run:
116
118
  name: push to new branch
117
119
  command: |
@@ -136,9 +138,10 @@ jobs:
136
138
  steps:
137
139
  - checkout
138
140
  - run:
139
- name: Remove binary
141
+ name: Remove binaries
140
142
  command: |
141
143
  rm -rf goctl-swagger-amd
144
+ rm -rf openapi-generator-cli.jar
142
145
  - run:
143
146
  name: Publish npm package
144
147
  command: |
@@ -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
@@ -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
 
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
@@ -6040,7 +6040,7 @@
6040
6040
  }
6041
6041
  },
6042
6042
  "cursor": {
6043
- "$ref": "#/definitions/WithdrawHistoryCursor"
6043
+ "type": "string"
6044
6044
  }
6045
6045
  },
6046
6046
  "title": "WithdrawHistory",
@@ -6050,24 +6050,6 @@
6050
6050
  "cursor"
6051
6051
  ]
6052
6052
  },
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
6053
  "WithdrawHistoryItem": {
6072
6054
  "type": "object",
6073
6055
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.87",
3
+ "version": "1.0.89",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {
Binary file