zklighter-perps 1.0.168 → 1.0.170

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.
@@ -37,6 +37,12 @@ export interface AccountLimits {
37
37
  * @memberof AccountLimits
38
38
  */
39
39
  max_llp_percentage: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AccountLimits
44
+ */
45
+ max_llp_amount: string;
40
46
  /**
41
47
  *
42
48
  * @type {string}
@@ -57,6 +63,7 @@ export interface AccountLimits {
57
63
  export function instanceOfAccountLimits(value: object): value is AccountLimits {
58
64
  if (!('code' in value) || value['code'] === undefined) return false;
59
65
  if (!('max_llp_percentage' in value) || value['max_llp_percentage'] === undefined) return false;
66
+ if (!('max_llp_amount' in value) || value['max_llp_amount'] === undefined) return false;
60
67
  if (!('user_tier' in value) || value['user_tier'] === undefined) return false;
61
68
  if (!('can_create_public_pool' in value) || value['can_create_public_pool'] === undefined) return false;
62
69
  return true;
@@ -75,6 +82,7 @@ export function AccountLimitsFromJSONTyped(json: any, ignoreDiscriminator: boole
75
82
  'code': json['code'],
76
83
  'message': json['message'] == null ? undefined : json['message'],
77
84
  'max_llp_percentage': json['max_llp_percentage'],
85
+ 'max_llp_amount': json['max_llp_amount'],
78
86
  'user_tier': json['user_tier'],
79
87
  'can_create_public_pool': json['can_create_public_pool'],
80
88
  };
@@ -89,6 +97,7 @@ export function AccountLimitsToJSON(value?: AccountLimits | null): any {
89
97
  'code': value['code'],
90
98
  'message': value['message'],
91
99
  'max_llp_percentage': value['max_llp_percentage'],
100
+ 'max_llp_amount': value['max_llp_amount'],
92
101
  'user_tier': value['user_tier'],
93
102
  'can_create_public_pool': value['can_create_public_pool'],
94
103
  };
@@ -44,6 +44,12 @@ export interface PublicPoolMetadata {
44
44
  * @memberof PublicPoolMetadata
45
45
  */
46
46
  account_index: number;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof PublicPoolMetadata
51
+ */
52
+ master_account_index: number;
47
53
  /**
48
54
  *
49
55
  * @type {number}
@@ -106,6 +112,7 @@ export interface PublicPoolMetadata {
106
112
  export function instanceOfPublicPoolMetadata(value: object): value is PublicPoolMetadata {
107
113
  if (!('code' in value) || value['code'] === undefined) return false;
108
114
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
115
+ if (!('master_account_index' in value) || value['master_account_index'] === undefined) return false;
109
116
  if (!('account_type' in value) || value['account_type'] === undefined) return false;
110
117
  if (!('name' in value) || value['name'] === undefined) return false;
111
118
  if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
@@ -130,6 +137,7 @@ export function PublicPoolMetadataFromJSONTyped(json: any, ignoreDiscriminator:
130
137
  'code': json['code'],
131
138
  'message': json['message'] == null ? undefined : json['message'],
132
139
  'account_index': json['account_index'],
140
+ 'master_account_index': json['master_account_index'],
133
141
  'account_type': json['account_type'],
134
142
  'name': json['name'],
135
143
  'l1_address': json['l1_address'],
@@ -151,6 +159,7 @@ export function PublicPoolMetadataToJSON(value?: PublicPoolMetadata | null): any
151
159
  'code': value['code'],
152
160
  'message': value['message'],
153
161
  'account_index': value['account_index'],
162
+ 'master_account_index': value['master_account_index'],
154
163
  'account_type': value['account_type'],
155
164
  'name': value['name'],
156
165
  'l1_address': value['l1_address'],
package/openapi.json CHANGED
@@ -3149,6 +3149,10 @@
3149
3149
  "format": "int32",
3150
3150
  "example": "25"
3151
3151
  },
3152
+ "max_llp_amount": {
3153
+ "type": "string",
3154
+ "example": "1000000"
3155
+ },
3152
3156
  "user_tier": {
3153
3157
  "type": "string",
3154
3158
  "example": "std"
@@ -3163,6 +3167,7 @@
3163
3167
  "required": [
3164
3168
  "code",
3165
3169
  "max_llp_percentage",
3170
+ "max_llp_amount",
3166
3171
  "user_tier",
3167
3172
  "can_create_public_pool"
3168
3173
  ]
@@ -6238,6 +6243,11 @@
6238
6243
  "format": "int64",
6239
6244
  "example": "3"
6240
6245
  },
6246
+ "master_account_index": {
6247
+ "type": "integer",
6248
+ "format": "int64",
6249
+ "example": "61"
6250
+ },
6241
6251
  "account_type": {
6242
6252
  "type": "integer",
6243
6253
  "format": "uint8",
@@ -6281,6 +6291,7 @@
6281
6291
  "required": [
6282
6292
  "code",
6283
6293
  "account_index",
6294
+ "master_account_index",
6284
6295
  "account_type",
6285
6296
  "name",
6286
6297
  "l1_address",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.168",
3
+ "version": "1.0.170",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {