zklighter-perps 1.0.14 → 1.0.16

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.
@@ -30,7 +30,7 @@ export interface ReqGetNextNonce {
30
30
  * @type {number}
31
31
  * @memberof ReqGetNextNonce
32
32
  */
33
- sub_account_index: number;
33
+ api_key_index: number;
34
34
  }
35
35
 
36
36
  /**
@@ -38,7 +38,7 @@ export interface ReqGetNextNonce {
38
38
  */
39
39
  export function instanceOfReqGetNextNonce(value: object): value is ReqGetNextNonce {
40
40
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
41
- if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false;
41
+ if (!('api_key_index' in value) || value['api_key_index'] === undefined) return false;
42
42
  return true;
43
43
  }
44
44
 
@@ -53,7 +53,7 @@ export function ReqGetNextNonceFromJSONTyped(json: any, ignoreDiscriminator: boo
53
53
  return {
54
54
 
55
55
  'account_index': json['account_index'],
56
- 'sub_account_index': json['sub_account_index'],
56
+ 'api_key_index': json['api_key_index'],
57
57
  };
58
58
  }
59
59
 
@@ -64,7 +64,7 @@ export function ReqGetNextNonceToJSON(value?: ReqGetNextNonce | null): any {
64
64
  return {
65
65
 
66
66
  'account_index': value['account_index'],
67
- 'sub_account_index': value['sub_account_index'],
67
+ 'api_key_index': value['api_key_index'],
68
68
  };
69
69
  }
70
70
 
@@ -25,12 +25,6 @@ export interface SimpleOrder {
25
25
  * @memberof SimpleOrder
26
26
  */
27
27
  owner_account_index: number;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof SimpleOrder
32
- */
33
- owner_sub_account_index: number;
34
28
  /**
35
29
  *
36
30
  * @type {string}
@@ -62,7 +56,6 @@ export interface SimpleOrder {
62
56
  */
63
57
  export function instanceOfSimpleOrder(value: object): value is SimpleOrder {
64
58
  if (!('owner_account_index' in value) || value['owner_account_index'] === undefined) return false;
65
- if (!('owner_sub_account_index' in value) || value['owner_sub_account_index'] === undefined) return false;
66
59
  if (!('initial_base_amount' in value) || value['initial_base_amount'] === undefined) return false;
67
60
  if (!('remaining_base_amount' in value) || value['remaining_base_amount'] === undefined) return false;
68
61
  if (!('price' in value) || value['price'] === undefined) return false;
@@ -81,7 +74,6 @@ export function SimpleOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean
81
74
  return {
82
75
 
83
76
  'owner_account_index': json['owner_account_index'],
84
- 'owner_sub_account_index': json['owner_sub_account_index'],
85
77
  'initial_base_amount': json['initial_base_amount'],
86
78
  'remaining_base_amount': json['remaining_base_amount'],
87
79
  'price': json['price'],
@@ -96,7 +88,6 @@ export function SimpleOrderToJSON(value?: SimpleOrder | null): any {
96
88
  return {
97
89
 
98
90
  'owner_account_index': value['owner_account_index'],
99
- 'owner_sub_account_index': value['owner_sub_account_index'],
100
91
  'initial_base_amount': value['initial_base_amount'],
101
92
  'remaining_base_amount': value['remaining_base_amount'],
102
93
  'price': value['price'],
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { SubAccount } from './SubAccount';
16
+ import type { Account } from './Account';
17
17
  import {
18
- SubAccountFromJSON,
19
- SubAccountFromJSONTyped,
20
- SubAccountToJSON,
21
- } from './SubAccount';
18
+ AccountFromJSON,
19
+ AccountFromJSONTyped,
20
+ AccountToJSON,
21
+ } from './Account';
22
22
 
23
23
  /**
24
24
  *
@@ -38,12 +38,6 @@ export interface SubAccounts {
38
38
  * @memberof SubAccounts
39
39
  */
40
40
  message?: string;
41
- /**
42
- *
43
- * @type {number}
44
- * @memberof SubAccounts
45
- */
46
- index: number;
47
41
  /**
48
42
  *
49
43
  * @type {string}
@@ -52,25 +46,17 @@ export interface SubAccounts {
52
46
  l1_address: string;
53
47
  /**
54
48
  *
55
- * @type {number}
56
- * @memberof SubAccounts
57
- */
58
- status: number;
59
- /**
60
- *
61
- * @type {Array<SubAccount>}
49
+ * @type {Array<Account>}
62
50
  * @memberof SubAccounts
63
51
  */
64
- sub_accounts: Array<SubAccount>;
52
+ sub_accounts: Array<Account>;
65
53
  }
66
54
 
67
55
  /**
68
56
  * Check if a given object implements the SubAccounts interface.
69
57
  */
70
58
  export function instanceOfSubAccounts(value: object): value is SubAccounts {
71
- if (!('index' in value) || value['index'] === undefined) return false;
72
59
  if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
73
- if (!('status' in value) || value['status'] === undefined) return false;
74
60
  if (!('sub_accounts' in value) || value['sub_accounts'] === undefined) return false;
75
61
  return true;
76
62
  }
@@ -87,10 +73,8 @@ export function SubAccountsFromJSONTyped(json: any, ignoreDiscriminator: boolean
87
73
 
88
74
  'code': json['code'] == null ? undefined : json['code'],
89
75
  'message': json['message'] == null ? undefined : json['message'],
90
- 'index': json['index'],
91
76
  'l1_address': json['l1_address'],
92
- 'status': json['status'],
93
- 'sub_accounts': ((json['sub_accounts'] as Array<any>).map(SubAccountFromJSON)),
77
+ 'sub_accounts': ((json['sub_accounts'] as Array<any>).map(AccountFromJSON)),
94
78
  };
95
79
  }
96
80
 
@@ -102,10 +86,8 @@ export function SubAccountsToJSON(value?: SubAccounts | null): any {
102
86
 
103
87
  'code': value['code'],
104
88
  'message': value['message'],
105
- 'index': value['index'],
106
89
  'l1_address': value['l1_address'],
107
- 'status': value['status'],
108
- 'sub_accounts': ((value['sub_accounts'] as Array<any>).map(SubAccountToJSON)),
90
+ 'sub_accounts': ((value['sub_accounts'] as Array<any>).map(AccountToJSON)),
109
91
  };
110
92
  }
111
93
 
package/models/index.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './Account';
3
4
  export * from './AccountMarketStats';
4
5
  export * from './AccountPnL';
5
6
  export * from './AccountPosition';
6
7
  export * from './AccountStats';
8
+ export * from './Accounts';
7
9
  export * from './Block';
8
10
  export * from './Blocks';
9
11
  export * from './Candlestick';
@@ -20,8 +22,6 @@ export * from './Fundings';
20
22
  export * from './L1ProviderInfo';
21
23
  export * from './Layer1BasicInfo';
22
24
  export * from './Layer2BasicInfo';
23
- export * from './MainAccount';
24
- export * from './MainAccounts';
25
25
  export * from './MarketInfo';
26
26
  export * from './NextNonce';
27
27
  export * from './Order';
@@ -61,7 +61,6 @@ export * from './ReqGetRangeWithIndex';
61
61
  export * from './ReqGetRangeWithIndexSortable';
62
62
  export * from './ReqGetRecentTrades';
63
63
  export * from './ReqGetRollbacks';
64
- export * from './ReqGetSubAccount';
65
64
  export * from './ReqGetTrades';
66
65
  export * from './ReqGetTx';
67
66
  export * from './ReqSearch';
@@ -72,7 +71,6 @@ export * from './Search';
72
71
  export * from './SignBody';
73
72
  export * from './SimpleOrder';
74
73
  export * from './Status';
75
- export * from './SubAccount';
76
74
  export * from './SubAccounts';
77
75
  export * from './Trade';
78
76
  export * from './Trades';