zklighter-perps 1.0.156 → 1.0.158

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.
@@ -43,6 +43,12 @@ export interface AccountLimits {
43
43
  * @memberof AccountLimits
44
44
  */
45
45
  user_tier: string;
46
+ /**
47
+ *
48
+ * @type {boolean}
49
+ * @memberof AccountLimits
50
+ */
51
+ can_create_public_pool: boolean;
46
52
  }
47
53
 
48
54
  /**
@@ -52,6 +58,7 @@ export function instanceOfAccountLimits(value: object): value is AccountLimits {
52
58
  if (!('code' in value) || value['code'] === undefined) return false;
53
59
  if (!('max_llp_percentage' in value) || value['max_llp_percentage'] === undefined) return false;
54
60
  if (!('user_tier' in value) || value['user_tier'] === undefined) return false;
61
+ if (!('can_create_public_pool' in value) || value['can_create_public_pool'] === undefined) return false;
55
62
  return true;
56
63
  }
57
64
 
@@ -69,6 +76,7 @@ export function AccountLimitsFromJSONTyped(json: any, ignoreDiscriminator: boole
69
76
  'message': json['message'] == null ? undefined : json['message'],
70
77
  'max_llp_percentage': json['max_llp_percentage'],
71
78
  'user_tier': json['user_tier'],
79
+ 'can_create_public_pool': json['can_create_public_pool'],
72
80
  };
73
81
  }
74
82
 
@@ -82,6 +90,7 @@ export function AccountLimitsToJSON(value?: AccountLimits | null): any {
82
90
  'message': value['message'],
83
91
  'max_llp_percentage': value['max_llp_percentage'],
84
92
  'user_tier': value['user_tier'],
93
+ 'can_create_public_pool': value['can_create_public_pool'],
85
94
  };
86
95
  }
87
96
 
@@ -38,6 +38,12 @@ export interface PublicPoolMetadata {
38
38
  * @memberof PublicPoolMetadata
39
39
  */
40
40
  message?: string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof PublicPoolMetadata
45
+ */
46
+ account_index: number;
41
47
  /**
42
48
  *
43
49
  * @type {number}
@@ -99,6 +105,7 @@ export interface PublicPoolMetadata {
99
105
  */
100
106
  export function instanceOfPublicPoolMetadata(value: object): value is PublicPoolMetadata {
101
107
  if (!('code' in value) || value['code'] === undefined) return false;
108
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
102
109
  if (!('account_type' in value) || value['account_type'] === undefined) return false;
103
110
  if (!('name' in value) || value['name'] === undefined) return false;
104
111
  if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
@@ -122,6 +129,7 @@ export function PublicPoolMetadataFromJSONTyped(json: any, ignoreDiscriminator:
122
129
 
123
130
  'code': json['code'],
124
131
  'message': json['message'] == null ? undefined : json['message'],
132
+ 'account_index': json['account_index'],
125
133
  'account_type': json['account_type'],
126
134
  'name': json['name'],
127
135
  'l1_address': json['l1_address'],
@@ -142,6 +150,7 @@ export function PublicPoolMetadataToJSON(value?: PublicPoolMetadata | null): any
142
150
 
143
151
  'code': value['code'],
144
152
  'message': value['message'],
153
+ 'account_index': value['account_index'],
145
154
  'account_type': value['account_type'],
146
155
  'name': value['name'],
147
156
  'l1_address': value['l1_address'],
package/openapi.json CHANGED
@@ -3216,13 +3216,19 @@
3216
3216
  "user_tier": {
3217
3217
  "type": "string",
3218
3218
  "example": "std"
3219
+ },
3220
+ "can_create_public_pool": {
3221
+ "type": "boolean",
3222
+ "format": "boolean",
3223
+ "example": "true"
3219
3224
  }
3220
3225
  },
3221
3226
  "title": "AccountLimits",
3222
3227
  "required": [
3223
3228
  "code",
3224
3229
  "max_llp_percentage",
3225
- "user_tier"
3230
+ "user_tier",
3231
+ "can_create_public_pool"
3226
3232
  ]
3227
3233
  },
3228
3234
  "AccountMarginStats": {
@@ -6108,6 +6114,11 @@
6108
6114
  "message": {
6109
6115
  "type": "string"
6110
6116
  },
6117
+ "account_index": {
6118
+ "type": "integer",
6119
+ "format": "int64",
6120
+ "example": "3"
6121
+ },
6111
6122
  "account_type": {
6112
6123
  "type": "integer",
6113
6124
  "format": "uint8",
@@ -6150,6 +6161,7 @@
6150
6161
  "title": "PublicPoolMetadata",
6151
6162
  "required": [
6152
6163
  "code",
6164
+ "account_index",
6153
6165
  "account_type",
6154
6166
  "name",
6155
6167
  "l1_address",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.156",
3
+ "version": "1.0.158",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {