zklighter-perps 1.0.10 → 1.0.12

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.
Files changed (64) hide show
  1. package/apis/AccountApi.ts +81 -81
  2. package/apis/BlockApi.ts +14 -14
  3. package/apis/CandlestickApi.ts +65 -65
  4. package/apis/InfoApi.ts +6 -6
  5. package/apis/OrderApi.ts +101 -101
  6. package/apis/TransactionApi.ts +76 -76
  7. package/config.yaml +5 -2
  8. package/models/AccountMarketStats.ts +24 -24
  9. package/models/AccountPosition.ts +28 -28
  10. package/models/AccountStats.ts +16 -16
  11. package/models/Block.ts +32 -32
  12. package/models/DetailedAccount.ts +17 -17
  13. package/models/EnrichedTx.ts +39 -39
  14. package/models/ExchangeStats.ts +12 -12
  15. package/models/L1ProviderInfo.ts +4 -4
  16. package/models/Layer1BasicInfo.ts +28 -28
  17. package/models/Layer2BasicInfo.ts +12 -12
  18. package/models/MainAccount.ts +4 -4
  19. package/models/MarketInfo.ts +44 -44
  20. package/models/Order.ts +55 -57
  21. package/models/OrderBook.ts +43 -44
  22. package/models/OrderBookDetail.ts +102 -103
  23. package/models/OrderBookDetails.ts +4 -4
  24. package/models/OrderBookOrders.ts +8 -8
  25. package/models/OrderBookStats.ts +20 -20
  26. package/models/OrderBooks.ts +4 -4
  27. package/models/ReqDoFaucet.ts +4 -4
  28. package/models/ReqGetAccount.ts +7 -8
  29. package/models/ReqGetAccountActiveOrders.ts +12 -12
  30. package/models/ReqGetAccountByL1Address.ts +4 -4
  31. package/models/ReqGetAccountInactiveOrders.ts +18 -19
  32. package/models/ReqGetAccountOrders.ts +8 -8
  33. package/models/ReqGetAccountPendingTxs.ts +7 -8
  34. package/models/ReqGetAccountPnL.ts +30 -32
  35. package/models/ReqGetAccountTxs.ts +7 -8
  36. package/models/ReqGetBlock.ts +7 -8
  37. package/models/ReqGetBlockTxs.ts +7 -8
  38. package/models/ReqGetByAccount.ts +7 -8
  39. package/models/ReqGetCandlesticks.ts +27 -28
  40. package/models/ReqGetFundings.ts +22 -23
  41. package/models/ReqGetNextNonce.ts +8 -8
  42. package/models/ReqGetOrderBookDetails.ts +10 -11
  43. package/models/ReqGetOrderBookOrders.ts +4 -4
  44. package/models/ReqGetOrderBooks.ts +10 -11
  45. package/models/ReqGetPermission.ts +11 -12
  46. package/models/ReqGetRangeWithIndexSortable.ts +7 -8
  47. package/models/ReqGetRecentTrades.ts +4 -4
  48. package/models/ReqGetRollbacks.ts +4 -4
  49. package/models/ReqGetSubAccount.ts +11 -12
  50. package/models/ReqGetTrades.ts +15 -16
  51. package/models/ReqGetTx.ts +7 -8
  52. package/models/Rollback.ts +12 -12
  53. package/models/Search.ts +4 -4
  54. package/models/SignBody.ts +4 -4
  55. package/models/SimpleOrder.ts +16 -16
  56. package/models/Status.ts +4 -4
  57. package/models/SubAccount.ts +12 -12
  58. package/models/SubAccounts.ts +8 -8
  59. package/models/Trade.ts +36 -36
  60. package/models/Tx.ts +36 -36
  61. package/models/TxHash.ts +4 -4
  62. package/models/TxHashes.ts +4 -4
  63. package/models/ValidatorInfo.ts +4 -4
  64. package/package.json +1 -1
@@ -24,25 +24,25 @@ export interface SimpleOrder {
24
24
  * @type {number}
25
25
  * @memberof SimpleOrder
26
26
  */
27
- ownerAccountIndex: number;
27
+ owner_account_index: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
31
31
  * @memberof SimpleOrder
32
32
  */
33
- ownerSubAccountIndex: number;
33
+ owner_sub_account_index: number;
34
34
  /**
35
35
  *
36
36
  * @type {string}
37
37
  * @memberof SimpleOrder
38
38
  */
39
- initialBaseAmount: string;
39
+ initial_base_amount: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
43
  * @memberof SimpleOrder
44
44
  */
45
- remainingBaseAmount: string;
45
+ remaining_base_amount: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -61,10 +61,10 @@ export interface SimpleOrder {
61
61
  * Check if a given object implements the SimpleOrder interface.
62
62
  */
63
63
  export function instanceOfSimpleOrder(value: object): value is SimpleOrder {
64
- if (!('ownerAccountIndex' in value) || value['ownerAccountIndex'] === undefined) return false;
65
- if (!('ownerSubAccountIndex' in value) || value['ownerSubAccountIndex'] === undefined) return false;
66
- if (!('initialBaseAmount' in value) || value['initialBaseAmount'] === undefined) return false;
67
- if (!('remainingBaseAmount' in value) || value['remainingBaseAmount'] === undefined) return false;
64
+ 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
+ if (!('initial_base_amount' in value) || value['initial_base_amount'] === undefined) return false;
67
+ if (!('remaining_base_amount' in value) || value['remaining_base_amount'] === undefined) return false;
68
68
  if (!('price' in value) || value['price'] === undefined) return false;
69
69
  if (!('nonce' in value) || value['nonce'] === undefined) return false;
70
70
  return true;
@@ -80,10 +80,10 @@ export function SimpleOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean
80
80
  }
81
81
  return {
82
82
 
83
- 'ownerAccountIndex': json['owner_account_index'],
84
- 'ownerSubAccountIndex': json['owner_sub_account_index'],
85
- 'initialBaseAmount': json['initial_base_amount'],
86
- 'remainingBaseAmount': json['remaining_base_amount'],
83
+ 'owner_account_index': json['owner_account_index'],
84
+ 'owner_sub_account_index': json['owner_sub_account_index'],
85
+ 'initial_base_amount': json['initial_base_amount'],
86
+ 'remaining_base_amount': json['remaining_base_amount'],
87
87
  'price': json['price'],
88
88
  'nonce': json['nonce'],
89
89
  };
@@ -95,10 +95,10 @@ export function SimpleOrderToJSON(value?: SimpleOrder | null): any {
95
95
  }
96
96
  return {
97
97
 
98
- 'owner_account_index': value['ownerAccountIndex'],
99
- 'owner_sub_account_index': value['ownerSubAccountIndex'],
100
- 'initial_base_amount': value['initialBaseAmount'],
101
- 'remaining_base_amount': value['remainingBaseAmount'],
98
+ 'owner_account_index': value['owner_account_index'],
99
+ 'owner_sub_account_index': value['owner_sub_account_index'],
100
+ 'initial_base_amount': value['initial_base_amount'],
101
+ 'remaining_base_amount': value['remaining_base_amount'],
102
102
  'price': value['price'],
103
103
  'nonce': value['nonce'],
104
104
  };
package/models/Status.ts CHANGED
@@ -30,7 +30,7 @@ export interface Status {
30
30
  * @type {number}
31
31
  * @memberof Status
32
32
  */
33
- networkId: number;
33
+ network_id: number;
34
34
  }
35
35
 
36
36
  /**
@@ -38,7 +38,7 @@ export interface Status {
38
38
  */
39
39
  export function instanceOfStatus(value: object): value is Status {
40
40
  if (!('status' in value) || value['status'] === undefined) return false;
41
- if (!('networkId' in value) || value['networkId'] === undefined) return false;
41
+ if (!('network_id' in value) || value['network_id'] === undefined) return false;
42
42
  return true;
43
43
  }
44
44
 
@@ -53,7 +53,7 @@ export function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): St
53
53
  return {
54
54
 
55
55
  'status': json['status'],
56
- 'networkId': json['network_id'],
56
+ 'network_id': json['network_id'],
57
57
  };
58
58
  }
59
59
 
@@ -64,7 +64,7 @@ export function StatusToJSON(value?: Status | null): any {
64
64
  return {
65
65
 
66
66
  'status': value['status'],
67
- 'network_id': value['networkId'],
67
+ 'network_id': value['network_id'],
68
68
  };
69
69
  }
70
70
 
@@ -30,13 +30,13 @@ export interface SubAccount {
30
30
  * @type {number}
31
31
  * @memberof SubAccount
32
32
  */
33
- subAccountIndex: number;
33
+ sub_account_index: number;
34
34
  /**
35
35
  *
36
36
  * @type {string}
37
37
  * @memberof SubAccount
38
38
  */
39
- l1Address: string;
39
+ l1_address: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -66,7 +66,7 @@ export interface SubAccount {
66
66
  * @type {number}
67
67
  * @memberof SubAccount
68
68
  */
69
- collateralType: number;
69
+ collateral_type: number;
70
70
  }
71
71
 
72
72
  /**
@@ -74,13 +74,13 @@ export interface SubAccount {
74
74
  */
75
75
  export function instanceOfSubAccount(value: object): value is SubAccount {
76
76
  if (!('index' in value) || value['index'] === undefined) return false;
77
- if (!('subAccountIndex' in value) || value['subAccountIndex'] === undefined) return false;
78
- if (!('l1Address' in value) || value['l1Address'] === undefined) return false;
77
+ if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false;
78
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
79
79
  if (!('pk' in value) || value['pk'] === undefined) return false;
80
80
  if (!('nonce' in value) || value['nonce'] === undefined) return false;
81
81
  if (!('status' in value) || value['status'] === undefined) return false;
82
82
  if (!('collateral' in value) || value['collateral'] === undefined) return false;
83
- if (!('collateralType' in value) || value['collateralType'] === undefined) return false;
83
+ if (!('collateral_type' in value) || value['collateral_type'] === undefined) return false;
84
84
  return true;
85
85
  }
86
86
 
@@ -95,13 +95,13 @@ export function SubAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean)
95
95
  return {
96
96
 
97
97
  'index': json['index'],
98
- 'subAccountIndex': json['sub_account_index'],
99
- 'l1Address': json['l1_address'],
98
+ 'sub_account_index': json['sub_account_index'],
99
+ 'l1_address': json['l1_address'],
100
100
  'pk': json['pk'],
101
101
  'nonce': json['nonce'],
102
102
  'status': json['status'],
103
103
  'collateral': json['collateral'],
104
- 'collateralType': json['collateral_type'],
104
+ 'collateral_type': json['collateral_type'],
105
105
  };
106
106
  }
107
107
 
@@ -112,13 +112,13 @@ export function SubAccountToJSON(value?: SubAccount | null): any {
112
112
  return {
113
113
 
114
114
  'index': value['index'],
115
- 'sub_account_index': value['subAccountIndex'],
116
- 'l1_address': value['l1Address'],
115
+ 'sub_account_index': value['sub_account_index'],
116
+ 'l1_address': value['l1_address'],
117
117
  'pk': value['pk'],
118
118
  'nonce': value['nonce'],
119
119
  'status': value['status'],
120
120
  'collateral': value['collateral'],
121
- 'collateral_type': value['collateralType'],
121
+ 'collateral_type': value['collateral_type'],
122
122
  };
123
123
  }
124
124
 
@@ -49,7 +49,7 @@ export interface SubAccounts {
49
49
  * @type {string}
50
50
  * @memberof SubAccounts
51
51
  */
52
- l1Address: string;
52
+ l1_address: string;
53
53
  /**
54
54
  *
55
55
  * @type {number}
@@ -61,7 +61,7 @@ export interface SubAccounts {
61
61
  * @type {Array<SubAccount>}
62
62
  * @memberof SubAccounts
63
63
  */
64
- subAccounts: Array<SubAccount>;
64
+ sub_accounts: Array<SubAccount>;
65
65
  }
66
66
 
67
67
  /**
@@ -69,9 +69,9 @@ export interface SubAccounts {
69
69
  */
70
70
  export function instanceOfSubAccounts(value: object): value is SubAccounts {
71
71
  if (!('index' in value) || value['index'] === undefined) return false;
72
- if (!('l1Address' in value) || value['l1Address'] === undefined) return false;
72
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
73
73
  if (!('status' in value) || value['status'] === undefined) return false;
74
- if (!('subAccounts' in value) || value['subAccounts'] === undefined) return false;
74
+ if (!('sub_accounts' in value) || value['sub_accounts'] === undefined) return false;
75
75
  return true;
76
76
  }
77
77
 
@@ -88,9 +88,9 @@ export function SubAccountsFromJSONTyped(json: any, ignoreDiscriminator: boolean
88
88
  'code': json['code'] == null ? undefined : json['code'],
89
89
  'message': json['message'] == null ? undefined : json['message'],
90
90
  'index': json['index'],
91
- 'l1Address': json['l1_address'],
91
+ 'l1_address': json['l1_address'],
92
92
  'status': json['status'],
93
- 'subAccounts': ((json['sub_accounts'] as Array<any>).map(SubAccountFromJSON)),
93
+ 'sub_accounts': ((json['sub_accounts'] as Array<any>).map(SubAccountFromJSON)),
94
94
  };
95
95
  }
96
96
 
@@ -103,9 +103,9 @@ export function SubAccountsToJSON(value?: SubAccounts | null): any {
103
103
  'code': value['code'],
104
104
  'message': value['message'],
105
105
  'index': value['index'],
106
- 'l1_address': value['l1Address'],
106
+ 'l1_address': value['l1_address'],
107
107
  'status': value['status'],
108
- 'sub_accounts': ((value['subAccounts'] as Array<any>).map(SubAccountToJSON)),
108
+ 'sub_accounts': ((value['sub_accounts'] as Array<any>).map(SubAccountToJSON)),
109
109
  };
110
110
  }
111
111
 
package/models/Trade.ts CHANGED
@@ -24,19 +24,19 @@ export interface Trade {
24
24
  * @type {number}
25
25
  * @memberof Trade
26
26
  */
27
- tradeId: number;
27
+ trade_id: number;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
31
  * @memberof Trade
32
32
  */
33
- txHash: string;
33
+ tx_hash: string;
34
34
  /**
35
35
  *
36
36
  * @type {number}
37
37
  * @memberof Trade
38
38
  */
39
- marketId: number;
39
+ market_id: number;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -54,37 +54,37 @@ export interface Trade {
54
54
  * @type {number}
55
55
  * @memberof Trade
56
56
  */
57
- askId: number;
57
+ ask_id: number;
58
58
  /**
59
59
  *
60
60
  * @type {number}
61
61
  * @memberof Trade
62
62
  */
63
- bidId: number;
63
+ bid_id: number;
64
64
  /**
65
65
  *
66
66
  * @type {number}
67
67
  * @memberof Trade
68
68
  */
69
- makerAccountId: number;
69
+ maker_account_id: number;
70
70
  /**
71
71
  *
72
72
  * @type {number}
73
73
  * @memberof Trade
74
74
  */
75
- takerAccountId: number;
75
+ taker_account_id: number;
76
76
  /**
77
77
  *
78
78
  * @type {boolean}
79
79
  * @memberof Trade
80
80
  */
81
- isMakerAsk: boolean;
81
+ is_maker_ask: boolean;
82
82
  /**
83
83
  *
84
84
  * @type {number}
85
85
  * @memberof Trade
86
86
  */
87
- blockHeight: number;
87
+ block_height: number;
88
88
  /**
89
89
  *
90
90
  * @type {number}
@@ -97,17 +97,17 @@ export interface Trade {
97
97
  * Check if a given object implements the Trade interface.
98
98
  */
99
99
  export function instanceOfTrade(value: object): value is Trade {
100
- if (!('tradeId' in value) || value['tradeId'] === undefined) return false;
101
- if (!('txHash' in value) || value['txHash'] === undefined) return false;
102
- if (!('marketId' in value) || value['marketId'] === undefined) return false;
100
+ if (!('trade_id' in value) || value['trade_id'] === undefined) return false;
101
+ if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
102
+ if (!('market_id' in value) || value['market_id'] === undefined) return false;
103
103
  if (!('size' in value) || value['size'] === undefined) return false;
104
104
  if (!('price' in value) || value['price'] === undefined) return false;
105
- if (!('askId' in value) || value['askId'] === undefined) return false;
106
- if (!('bidId' in value) || value['bidId'] === undefined) return false;
107
- if (!('makerAccountId' in value) || value['makerAccountId'] === undefined) return false;
108
- if (!('takerAccountId' in value) || value['takerAccountId'] === undefined) return false;
109
- if (!('isMakerAsk' in value) || value['isMakerAsk'] === undefined) return false;
110
- if (!('blockHeight' in value) || value['blockHeight'] === undefined) return false;
105
+ if (!('ask_id' in value) || value['ask_id'] === undefined) return false;
106
+ if (!('bid_id' in value) || value['bid_id'] === undefined) return false;
107
+ if (!('maker_account_id' in value) || value['maker_account_id'] === undefined) return false;
108
+ if (!('taker_account_id' in value) || value['taker_account_id'] === undefined) return false;
109
+ if (!('is_maker_ask' in value) || value['is_maker_ask'] === undefined) return false;
110
+ if (!('block_height' in value) || value['block_height'] === undefined) return false;
111
111
  if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
112
112
  return true;
113
113
  }
@@ -122,17 +122,17 @@ export function TradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tra
122
122
  }
123
123
  return {
124
124
 
125
- 'tradeId': json['trade_id'],
126
- 'txHash': json['tx_hash'],
127
- 'marketId': json['market_id'],
125
+ 'trade_id': json['trade_id'],
126
+ 'tx_hash': json['tx_hash'],
127
+ 'market_id': json['market_id'],
128
128
  'size': json['size'],
129
129
  'price': json['price'],
130
- 'askId': json['ask_id'],
131
- 'bidId': json['bid_id'],
132
- 'makerAccountId': json['maker_account_id'],
133
- 'takerAccountId': json['taker_account_id'],
134
- 'isMakerAsk': json['is_maker_ask'],
135
- 'blockHeight': json['block_height'],
130
+ 'ask_id': json['ask_id'],
131
+ 'bid_id': json['bid_id'],
132
+ 'maker_account_id': json['maker_account_id'],
133
+ 'taker_account_id': json['taker_account_id'],
134
+ 'is_maker_ask': json['is_maker_ask'],
135
+ 'block_height': json['block_height'],
136
136
  'timestamp': json['timestamp'],
137
137
  };
138
138
  }
@@ -143,17 +143,17 @@ export function TradeToJSON(value?: Trade | null): any {
143
143
  }
144
144
  return {
145
145
 
146
- 'trade_id': value['tradeId'],
147
- 'tx_hash': value['txHash'],
148
- 'market_id': value['marketId'],
146
+ 'trade_id': value['trade_id'],
147
+ 'tx_hash': value['tx_hash'],
148
+ 'market_id': value['market_id'],
149
149
  'size': value['size'],
150
150
  'price': value['price'],
151
- 'ask_id': value['askId'],
152
- 'bid_id': value['bidId'],
153
- 'maker_account_id': value['makerAccountId'],
154
- 'taker_account_id': value['takerAccountId'],
155
- 'is_maker_ask': value['isMakerAsk'],
156
- 'block_height': value['blockHeight'],
151
+ 'ask_id': value['ask_id'],
152
+ 'bid_id': value['bid_id'],
153
+ 'maker_account_id': value['maker_account_id'],
154
+ 'taker_account_id': value['taker_account_id'],
155
+ 'is_maker_ask': value['is_maker_ask'],
156
+ 'block_height': value['block_height'],
157
157
  'timestamp': value['timestamp'],
158
158
  };
159
159
  }
package/models/Tx.ts CHANGED
@@ -42,7 +42,7 @@ export interface Tx {
42
42
  * @type {string}
43
43
  * @memberof Tx
44
44
  */
45
- eventInfo: string;
45
+ event_info: string;
46
46
  /**
47
47
  *
48
48
  * @type {number}
@@ -54,19 +54,19 @@ export interface Tx {
54
54
  * @type {number}
55
55
  * @memberof Tx
56
56
  */
57
- transactionIndex: number;
57
+ transaction_index: number;
58
58
  /**
59
59
  *
60
60
  * @type {string}
61
61
  * @memberof Tx
62
62
  */
63
- l1Address: string;
63
+ l1_address: string;
64
64
  /**
65
65
  *
66
66
  * @type {number}
67
67
  * @memberof Tx
68
68
  */
69
- accountIndex: number;
69
+ account_index: number;
70
70
  /**
71
71
  *
72
72
  * @type {number}
@@ -78,31 +78,31 @@ export interface Tx {
78
78
  * @type {number}
79
79
  * @memberof Tx
80
80
  */
81
- expireAt: number;
81
+ expire_at: number;
82
82
  /**
83
83
  *
84
84
  * @type {number}
85
85
  * @memberof Tx
86
86
  */
87
- blockHeight: number;
87
+ block_height: number;
88
88
  /**
89
89
  *
90
90
  * @type {number}
91
91
  * @memberof Tx
92
92
  */
93
- createdAt: number;
93
+ created_at: number;
94
94
  /**
95
95
  *
96
96
  * @type {number}
97
97
  * @memberof Tx
98
98
  */
99
- verifyAt: number;
99
+ verify_at: number;
100
100
  /**
101
101
  *
102
102
  * @type {number}
103
103
  * @memberof Tx
104
104
  */
105
- sequenceIndex: number;
105
+ sequence_index: number;
106
106
  }
107
107
 
108
108
  /**
@@ -112,17 +112,17 @@ export function instanceOfTx(value: object): value is Tx {
112
112
  if (!('hash' in value) || value['hash'] === undefined) return false;
113
113
  if (!('type' in value) || value['type'] === undefined) return false;
114
114
  if (!('info' in value) || value['info'] === undefined) return false;
115
- if (!('eventInfo' in value) || value['eventInfo'] === undefined) return false;
115
+ if (!('event_info' in value) || value['event_info'] === undefined) return false;
116
116
  if (!('status' in value) || value['status'] === undefined) return false;
117
- if (!('transactionIndex' in value) || value['transactionIndex'] === undefined) return false;
118
- if (!('l1Address' in value) || value['l1Address'] === undefined) return false;
119
- if (!('accountIndex' in value) || value['accountIndex'] === undefined) return false;
117
+ if (!('transaction_index' in value) || value['transaction_index'] === undefined) return false;
118
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
119
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
120
120
  if (!('nonce' in value) || value['nonce'] === undefined) return false;
121
- if (!('expireAt' in value) || value['expireAt'] === undefined) return false;
122
- if (!('blockHeight' in value) || value['blockHeight'] === undefined) return false;
123
- if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
124
- if (!('verifyAt' in value) || value['verifyAt'] === undefined) return false;
125
- if (!('sequenceIndex' in value) || value['sequenceIndex'] === undefined) return false;
121
+ if (!('expire_at' in value) || value['expire_at'] === undefined) return false;
122
+ if (!('block_height' in value) || value['block_height'] === undefined) return false;
123
+ if (!('created_at' in value) || value['created_at'] === undefined) return false;
124
+ if (!('verify_at' in value) || value['verify_at'] === undefined) return false;
125
+ if (!('sequence_index' in value) || value['sequence_index'] === undefined) return false;
126
126
  return true;
127
127
  }
128
128
 
@@ -139,17 +139,17 @@ export function TxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tx {
139
139
  'hash': json['hash'],
140
140
  'type': json['type'],
141
141
  'info': json['info'],
142
- 'eventInfo': json['event_info'],
142
+ 'event_info': json['event_info'],
143
143
  'status': json['status'],
144
- 'transactionIndex': json['transaction_index'],
145
- 'l1Address': json['l1_address'],
146
- 'accountIndex': json['account_index'],
144
+ 'transaction_index': json['transaction_index'],
145
+ 'l1_address': json['l1_address'],
146
+ 'account_index': json['account_index'],
147
147
  'nonce': json['nonce'],
148
- 'expireAt': json['expire_at'],
149
- 'blockHeight': json['block_height'],
150
- 'createdAt': json['created_at'],
151
- 'verifyAt': json['verify_at'],
152
- 'sequenceIndex': json['sequence_index'],
148
+ 'expire_at': json['expire_at'],
149
+ 'block_height': json['block_height'],
150
+ 'created_at': json['created_at'],
151
+ 'verify_at': json['verify_at'],
152
+ 'sequence_index': json['sequence_index'],
153
153
  };
154
154
  }
155
155
 
@@ -162,17 +162,17 @@ export function TxToJSON(value?: Tx | null): any {
162
162
  'hash': value['hash'],
163
163
  'type': value['type'],
164
164
  'info': value['info'],
165
- 'event_info': value['eventInfo'],
165
+ 'event_info': value['event_info'],
166
166
  'status': value['status'],
167
- 'transaction_index': value['transactionIndex'],
168
- 'l1_address': value['l1Address'],
169
- 'account_index': value['accountIndex'],
167
+ 'transaction_index': value['transaction_index'],
168
+ 'l1_address': value['l1_address'],
169
+ 'account_index': value['account_index'],
170
170
  'nonce': value['nonce'],
171
- 'expire_at': value['expireAt'],
172
- 'block_height': value['blockHeight'],
173
- 'created_at': value['createdAt'],
174
- 'verify_at': value['verifyAt'],
175
- 'sequence_index': value['sequenceIndex'],
171
+ 'expire_at': value['expire_at'],
172
+ 'block_height': value['block_height'],
173
+ 'created_at': value['created_at'],
174
+ 'verify_at': value['verify_at'],
175
+ 'sequence_index': value['sequence_index'],
176
176
  };
177
177
  }
178
178
 
package/models/TxHash.ts CHANGED
@@ -36,14 +36,14 @@ export interface TxHash {
36
36
  * @type {string}
37
37
  * @memberof TxHash
38
38
  */
39
- txHash: string;
39
+ tx_hash: string;
40
40
  }
41
41
 
42
42
  /**
43
43
  * Check if a given object implements the TxHash interface.
44
44
  */
45
45
  export function instanceOfTxHash(value: object): value is TxHash {
46
- if (!('txHash' in value) || value['txHash'] === undefined) return false;
46
+ if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
47
47
  return true;
48
48
  }
49
49
 
@@ -59,7 +59,7 @@ export function TxHashFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tx
59
59
 
60
60
  'code': json['code'] == null ? undefined : json['code'],
61
61
  'message': json['message'] == null ? undefined : json['message'],
62
- 'txHash': json['tx_hash'],
62
+ 'tx_hash': json['tx_hash'],
63
63
  };
64
64
  }
65
65
 
@@ -71,7 +71,7 @@ export function TxHashToJSON(value?: TxHash | null): any {
71
71
 
72
72
  'code': value['code'],
73
73
  'message': value['message'],
74
- 'tx_hash': value['txHash'],
74
+ 'tx_hash': value['tx_hash'],
75
75
  };
76
76
  }
77
77
 
@@ -36,14 +36,14 @@ export interface TxHashes {
36
36
  * @type {Array<string>}
37
37
  * @memberof TxHashes
38
38
  */
39
- txHash: Array<string>;
39
+ tx_hash: Array<string>;
40
40
  }
41
41
 
42
42
  /**
43
43
  * Check if a given object implements the TxHashes interface.
44
44
  */
45
45
  export function instanceOfTxHashes(value: object): value is TxHashes {
46
- if (!('txHash' in value) || value['txHash'] === undefined) return false;
46
+ if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
47
47
  return true;
48
48
  }
49
49
 
@@ -59,7 +59,7 @@ export function TxHashesFromJSONTyped(json: any, ignoreDiscriminator: boolean):
59
59
 
60
60
  'code': json['code'] == null ? undefined : json['code'],
61
61
  'message': json['message'] == null ? undefined : json['message'],
62
- 'txHash': json['tx_hash'],
62
+ 'tx_hash': json['tx_hash'],
63
63
  };
64
64
  }
65
65
 
@@ -71,7 +71,7 @@ export function TxHashesToJSON(value?: TxHashes | null): any {
71
71
 
72
72
  'code': value['code'],
73
73
  'message': value['message'],
74
- 'tx_hash': value['txHash'],
74
+ 'tx_hash': value['tx_hash'],
75
75
  };
76
76
  }
77
77
 
@@ -30,7 +30,7 @@ export interface ValidatorInfo {
30
30
  * @type {boolean}
31
31
  * @memberof ValidatorInfo
32
32
  */
33
- isActive: boolean;
33
+ is_active: boolean;
34
34
  }
35
35
 
36
36
  /**
@@ -38,7 +38,7 @@ export interface ValidatorInfo {
38
38
  */
39
39
  export function instanceOfValidatorInfo(value: object): value is ValidatorInfo {
40
40
  if (!('address' in value) || value['address'] === undefined) return false;
41
- if (!('isActive' in value) || value['isActive'] === undefined) return false;
41
+ if (!('is_active' in value) || value['is_active'] === undefined) return false;
42
42
  return true;
43
43
  }
44
44
 
@@ -53,7 +53,7 @@ export function ValidatorInfoFromJSONTyped(json: any, ignoreDiscriminator: boole
53
53
  return {
54
54
 
55
55
  'address': json['address'],
56
- 'isActive': json['is_active'],
56
+ 'is_active': json['is_active'],
57
57
  };
58
58
  }
59
59
 
@@ -64,7 +64,7 @@ export function ValidatorInfoToJSON(value?: ValidatorInfo | null): any {
64
64
  return {
65
65
 
66
66
  'address': value['address'],
67
- 'is_active': value['isActive'],
67
+ 'is_active': value['is_active'],
68
68
  };
69
69
  }
70
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {