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,21 +24,21 @@ export interface ReqGetNextNonce {
24
24
  * @type {number}
25
25
  * @memberof ReqGetNextNonce
26
26
  */
27
- accountIndex: number;
27
+ account_index: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
31
31
  * @memberof ReqGetNextNonce
32
32
  */
33
- subAccountIndex: number;
33
+ sub_account_index: number;
34
34
  }
35
35
 
36
36
  /**
37
37
  * Check if a given object implements the ReqGetNextNonce interface.
38
38
  */
39
39
  export function instanceOfReqGetNextNonce(value: object): value is ReqGetNextNonce {
40
- if (!('accountIndex' in value) || value['accountIndex'] === undefined) return false;
41
- if (!('subAccountIndex' in value) || value['subAccountIndex'] === undefined) return false;
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;
42
42
  return true;
43
43
  }
44
44
 
@@ -52,8 +52,8 @@ export function ReqGetNextNonceFromJSONTyped(json: any, ignoreDiscriminator: boo
52
52
  }
53
53
  return {
54
54
 
55
- 'accountIndex': json['account_index'],
56
- 'subAccountIndex': json['sub_account_index'],
55
+ 'account_index': json['account_index'],
56
+ 'sub_account_index': json['sub_account_index'],
57
57
  };
58
58
  }
59
59
 
@@ -63,8 +63,8 @@ export function ReqGetNextNonceToJSON(value?: ReqGetNextNonce | null): any {
63
63
  }
64
64
  return {
65
65
 
66
- 'account_index': value['accountIndex'],
67
- 'sub_account_index': value['subAccountIndex'],
66
+ 'account_index': value['account_index'],
67
+ 'sub_account_index': value['sub_account_index'],
68
68
  };
69
69
  }
70
70
 
@@ -30,18 +30,17 @@ export interface ReqGetOrderBookDetails {
30
30
  * @type {number}
31
31
  * @memberof ReqGetOrderBookDetails
32
32
  */
33
- marketId?: number;
33
+ market_id?: number;
34
34
  }
35
35
 
36
-
37
36
  /**
38
- * @export
39
- */
40
- export const ReqGetOrderBookDetailsFilterEnum = {
41
- MarketId: 'market_id',
42
- All: 'all'
43
- } as const;
44
- export type ReqGetOrderBookDetailsFilterEnum = typeof ReqGetOrderBookDetailsFilterEnum[keyof typeof ReqGetOrderBookDetailsFilterEnum];
37
+ * @export
38
+ * @enum {string}
39
+ */
40
+ export enum ReqGetOrderBookDetailsFilterEnum {
41
+ MarketId = 'market_id',
42
+ All = 'all'
43
+ }
45
44
 
46
45
 
47
46
  /**
@@ -63,7 +62,7 @@ export function ReqGetOrderBookDetailsFromJSONTyped(json: any, ignoreDiscriminat
63
62
  return {
64
63
 
65
64
  'filter': json['filter'],
66
- 'marketId': json['market_id'] == null ? undefined : json['market_id'],
65
+ 'market_id': json['market_id'] == null ? undefined : json['market_id'],
67
66
  };
68
67
  }
69
68
 
@@ -74,7 +73,7 @@ export function ReqGetOrderBookDetailsToJSON(value?: ReqGetOrderBookDetails | nu
74
73
  return {
75
74
 
76
75
  'filter': value['filter'],
77
- 'market_id': value['marketId'],
76
+ 'market_id': value['market_id'],
78
77
  };
79
78
  }
80
79
 
@@ -24,7 +24,7 @@ export interface ReqGetOrderBookOrders {
24
24
  * @type {number}
25
25
  * @memberof ReqGetOrderBookOrders
26
26
  */
27
- marketId: number;
27
+ market_id: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -37,7 +37,7 @@ export interface ReqGetOrderBookOrders {
37
37
  * Check if a given object implements the ReqGetOrderBookOrders interface.
38
38
  */
39
39
  export function instanceOfReqGetOrderBookOrders(value: object): value is ReqGetOrderBookOrders {
40
- if (!('marketId' in value) || value['marketId'] === undefined) return false;
40
+ if (!('market_id' in value) || value['market_id'] === undefined) return false;
41
41
  if (!('limit' in value) || value['limit'] === undefined) return false;
42
42
  return true;
43
43
  }
@@ -52,7 +52,7 @@ export function ReqGetOrderBookOrdersFromJSONTyped(json: any, ignoreDiscriminato
52
52
  }
53
53
  return {
54
54
 
55
- 'marketId': json['market_id'],
55
+ 'market_id': json['market_id'],
56
56
  'limit': json['limit'],
57
57
  };
58
58
  }
@@ -63,7 +63,7 @@ export function ReqGetOrderBookOrdersToJSON(value?: ReqGetOrderBookOrders | null
63
63
  }
64
64
  return {
65
65
 
66
- 'market_id': value['marketId'],
66
+ 'market_id': value['market_id'],
67
67
  'limit': value['limit'],
68
68
  };
69
69
  }
@@ -30,18 +30,17 @@ export interface ReqGetOrderBooks {
30
30
  * @type {number}
31
31
  * @memberof ReqGetOrderBooks
32
32
  */
33
- marketId?: number;
33
+ market_id?: number;
34
34
  }
35
35
 
36
-
37
36
  /**
38
- * @export
39
- */
40
- export const ReqGetOrderBooksFilterEnum = {
41
- MarketId: 'market_id',
42
- All: 'all'
43
- } as const;
44
- export type ReqGetOrderBooksFilterEnum = typeof ReqGetOrderBooksFilterEnum[keyof typeof ReqGetOrderBooksFilterEnum];
37
+ * @export
38
+ * @enum {string}
39
+ */
40
+ export enum ReqGetOrderBooksFilterEnum {
41
+ MarketId = 'market_id',
42
+ All = 'all'
43
+ }
45
44
 
46
45
 
47
46
  /**
@@ -63,7 +62,7 @@ export function ReqGetOrderBooksFromJSONTyped(json: any, ignoreDiscriminator: bo
63
62
  return {
64
63
 
65
64
  'filter': json['filter'],
66
- 'marketId': json['market_id'] == null ? undefined : json['market_id'],
65
+ 'market_id': json['market_id'] == null ? undefined : json['market_id'],
67
66
  };
68
67
  }
69
68
 
@@ -74,7 +73,7 @@ export function ReqGetOrderBooksToJSON(value?: ReqGetOrderBooks | null): any {
74
73
  return {
75
74
 
76
75
  'filter': value['filter'],
77
- 'market_id': value['marketId'],
76
+ 'market_id': value['market_id'],
78
77
  };
79
78
  }
80
79
 
@@ -36,18 +36,17 @@ export interface ReqGetPermission {
36
36
  * @type {number}
37
37
  * @memberof ReqGetPermission
38
38
  */
39
- txType: number;
39
+ tx_type: number;
40
40
  }
41
41
 
42
-
43
42
  /**
44
- * @export
45
- */
46
- export const ReqGetPermissionByEnum = {
47
- Index: 'index',
48
- L1Address: 'l1_address'
49
- } as const;
50
- export type ReqGetPermissionByEnum = typeof ReqGetPermissionByEnum[keyof typeof ReqGetPermissionByEnum];
43
+ * @export
44
+ * @enum {string}
45
+ */
46
+ export enum ReqGetPermissionByEnum {
47
+ Index = 'index',
48
+ L1Address = 'l1_address'
49
+ }
51
50
 
52
51
 
53
52
  /**
@@ -56,7 +55,7 @@ export type ReqGetPermissionByEnum = typeof ReqGetPermissionByEnum[keyof typeof
56
55
  export function instanceOfReqGetPermission(value: object): value is ReqGetPermission {
57
56
  if (!('by' in value) || value['by'] === undefined) return false;
58
57
  if (!('value' in value) || value['value'] === undefined) return false;
59
- if (!('txType' in value) || value['txType'] === undefined) return false;
58
+ if (!('tx_type' in value) || value['tx_type'] === undefined) return false;
60
59
  return true;
61
60
  }
62
61
 
@@ -72,7 +71,7 @@ export function ReqGetPermissionFromJSONTyped(json: any, ignoreDiscriminator: bo
72
71
 
73
72
  'by': json['by'],
74
73
  'value': json['value'],
75
- 'txType': json['tx_type'],
74
+ 'tx_type': json['tx_type'],
76
75
  };
77
76
  }
78
77
 
@@ -84,7 +83,7 @@ export function ReqGetPermissionToJSON(value?: ReqGetPermission | null): any {
84
83
 
85
84
  'by': value['by'],
86
85
  'value': value['value'],
87
- 'tx_type': value['txType'],
86
+ 'tx_type': value['tx_type'],
88
87
  };
89
88
  }
90
89
 
@@ -39,15 +39,14 @@ export interface ReqGetRangeWithIndexSortable {
39
39
  sort?: ReqGetRangeWithIndexSortableSortEnum;
40
40
  }
41
41
 
42
-
43
42
  /**
44
- * @export
45
- */
46
- export const ReqGetRangeWithIndexSortableSortEnum = {
47
- Asc: 'asc',
48
- Desc: 'desc'
49
- } as const;
50
- export type ReqGetRangeWithIndexSortableSortEnum = typeof ReqGetRangeWithIndexSortableSortEnum[keyof typeof ReqGetRangeWithIndexSortableSortEnum];
43
+ * @export
44
+ * @enum {string}
45
+ */
46
+ export enum ReqGetRangeWithIndexSortableSortEnum {
47
+ Asc = 'asc',
48
+ Desc = 'desc'
49
+ }
51
50
 
52
51
 
53
52
  /**
@@ -24,7 +24,7 @@ export interface ReqGetRecentTrades {
24
24
  * @type {number}
25
25
  * @memberof ReqGetRecentTrades
26
26
  */
27
- marketId: number;
27
+ market_id: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -37,7 +37,7 @@ export interface ReqGetRecentTrades {
37
37
  * Check if a given object implements the ReqGetRecentTrades interface.
38
38
  */
39
39
  export function instanceOfReqGetRecentTrades(value: object): value is ReqGetRecentTrades {
40
- if (!('marketId' in value) || value['marketId'] === undefined) return false;
40
+ if (!('market_id' in value) || value['market_id'] === undefined) return false;
41
41
  if (!('limit' in value) || value['limit'] === undefined) return false;
42
42
  return true;
43
43
  }
@@ -52,7 +52,7 @@ export function ReqGetRecentTradesFromJSONTyped(json: any, ignoreDiscriminator:
52
52
  }
53
53
  return {
54
54
 
55
- 'marketId': json['market_id'],
55
+ 'market_id': json['market_id'],
56
56
  'limit': json['limit'],
57
57
  };
58
58
  }
@@ -63,7 +63,7 @@ export function ReqGetRecentTradesToJSON(value?: ReqGetRecentTrades | null): any
63
63
  }
64
64
  return {
65
65
 
66
- 'market_id': value['marketId'],
66
+ 'market_id': value['market_id'],
67
67
  'limit': value['limit'],
68
68
  };
69
69
  }
@@ -24,7 +24,7 @@ export interface ReqGetRollbacks {
24
24
  * @type {number}
25
25
  * @memberof ReqGetRollbacks
26
26
  */
27
- fromBlockHeight: number;
27
+ from_block_height: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -43,7 +43,7 @@ export interface ReqGetRollbacks {
43
43
  * Check if a given object implements the ReqGetRollbacks interface.
44
44
  */
45
45
  export function instanceOfReqGetRollbacks(value: object): value is ReqGetRollbacks {
46
- if (!('fromBlockHeight' in value) || value['fromBlockHeight'] === undefined) return false;
46
+ if (!('from_block_height' in value) || value['from_block_height'] === undefined) return false;
47
47
  if (!('offset' in value) || value['offset'] === undefined) return false;
48
48
  if (!('limit' in value) || value['limit'] === undefined) return false;
49
49
  return true;
@@ -59,7 +59,7 @@ export function ReqGetRollbacksFromJSONTyped(json: any, ignoreDiscriminator: boo
59
59
  }
60
60
  return {
61
61
 
62
- 'fromBlockHeight': json['from_block_height'],
62
+ 'from_block_height': json['from_block_height'],
63
63
  'offset': json['offset'],
64
64
  'limit': json['limit'],
65
65
  };
@@ -71,7 +71,7 @@ export function ReqGetRollbacksToJSON(value?: ReqGetRollbacks | null): any {
71
71
  }
72
72
  return {
73
73
 
74
- 'from_block_height': value['fromBlockHeight'],
74
+ 'from_block_height': value['from_block_height'],
75
75
  'offset': value['offset'],
76
76
  'limit': value['limit'],
77
77
  };
@@ -36,18 +36,17 @@ export interface ReqGetSubAccount {
36
36
  * @type {number}
37
37
  * @memberof ReqGetSubAccount
38
38
  */
39
- subAccountIndex: number;
39
+ sub_account_index: number;
40
40
  }
41
41
 
42
-
43
42
  /**
44
- * @export
45
- */
46
- export const ReqGetSubAccountByEnum = {
47
- Index: 'index',
48
- L1Address: 'l1_address'
49
- } as const;
50
- export type ReqGetSubAccountByEnum = typeof ReqGetSubAccountByEnum[keyof typeof ReqGetSubAccountByEnum];
43
+ * @export
44
+ * @enum {string}
45
+ */
46
+ export enum ReqGetSubAccountByEnum {
47
+ Index = 'index',
48
+ L1Address = 'l1_address'
49
+ }
51
50
 
52
51
 
53
52
  /**
@@ -56,7 +55,7 @@ export type ReqGetSubAccountByEnum = typeof ReqGetSubAccountByEnum[keyof typeof
56
55
  export function instanceOfReqGetSubAccount(value: object): value is ReqGetSubAccount {
57
56
  if (!('by' in value) || value['by'] === undefined) return false;
58
57
  if (!('value' in value) || value['value'] === undefined) return false;
59
- if (!('subAccountIndex' in value) || value['subAccountIndex'] === undefined) return false;
58
+ if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false;
60
59
  return true;
61
60
  }
62
61
 
@@ -72,7 +71,7 @@ export function ReqGetSubAccountFromJSONTyped(json: any, ignoreDiscriminator: bo
72
71
 
73
72
  'by': json['by'],
74
73
  'value': json['value'],
75
- 'subAccountIndex': json['sub_account_index'],
74
+ 'sub_account_index': json['sub_account_index'],
76
75
  };
77
76
  }
78
77
 
@@ -84,7 +83,7 @@ export function ReqGetSubAccountToJSON(value?: ReqGetSubAccount | null): any {
84
83
 
85
84
  'by': value['by'],
86
85
  'value': value['value'],
87
- 'sub_account_index': value['subAccountIndex'],
86
+ 'sub_account_index': value['sub_account_index'],
88
87
  };
89
88
  }
90
89
 
@@ -24,13 +24,13 @@ export interface ReqGetTrades {
24
24
  * @type {number}
25
25
  * @memberof ReqGetTrades
26
26
  */
27
- marketId: number;
27
+ market_id: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
31
31
  * @memberof ReqGetTrades
32
32
  */
33
- orderIndex?: number;
33
+ order_index?: number;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -51,23 +51,22 @@ export interface ReqGetTrades {
51
51
  limit: number;
52
52
  }
53
53
 
54
-
55
54
  /**
56
- * @export
57
- */
58
- export const ReqGetTradesByEnum = {
59
- BlockHeight: 'block_height',
60
- Timestamp: 'timestamp',
61
- TradeId: 'trade_id'
62
- } as const;
63
- export type ReqGetTradesByEnum = typeof ReqGetTradesByEnum[keyof typeof ReqGetTradesByEnum];
55
+ * @export
56
+ * @enum {string}
57
+ */
58
+ export enum ReqGetTradesByEnum {
59
+ BlockHeight = 'block_height',
60
+ Timestamp = 'timestamp',
61
+ TradeId = 'trade_id'
62
+ }
64
63
 
65
64
 
66
65
  /**
67
66
  * Check if a given object implements the ReqGetTrades interface.
68
67
  */
69
68
  export function instanceOfReqGetTrades(value: object): value is ReqGetTrades {
70
- if (!('marketId' in value) || value['marketId'] === undefined) return false;
69
+ if (!('market_id' in value) || value['market_id'] === undefined) return false;
71
70
  if (!('by' in value) || value['by'] === undefined) return false;
72
71
  if (!('from' in value) || value['from'] === undefined) return false;
73
72
  if (!('limit' in value) || value['limit'] === undefined) return false;
@@ -84,8 +83,8 @@ export function ReqGetTradesFromJSONTyped(json: any, ignoreDiscriminator: boolea
84
83
  }
85
84
  return {
86
85
 
87
- 'marketId': json['market_id'],
88
- 'orderIndex': json['order_index'] == null ? undefined : json['order_index'],
86
+ 'market_id': json['market_id'],
87
+ 'order_index': json['order_index'] == null ? undefined : json['order_index'],
89
88
  'by': json['by'],
90
89
  'from': json['from'],
91
90
  'limit': json['limit'],
@@ -98,8 +97,8 @@ export function ReqGetTradesToJSON(value?: ReqGetTrades | null): any {
98
97
  }
99
98
  return {
100
99
 
101
- 'market_id': value['marketId'],
102
- 'order_index': value['orderIndex'],
100
+ 'market_id': value['market_id'],
101
+ 'order_index': value['order_index'],
103
102
  'by': value['by'],
104
103
  'from': value['from'],
105
104
  'limit': value['limit'],
@@ -33,15 +33,14 @@ export interface ReqGetTx {
33
33
  value: string;
34
34
  }
35
35
 
36
-
37
36
  /**
38
- * @export
39
- */
40
- export const ReqGetTxByEnum = {
41
- Hash: 'hash',
42
- SequenceIndex: 'sequence_index'
43
- } as const;
44
- export type ReqGetTxByEnum = typeof ReqGetTxByEnum[keyof typeof ReqGetTxByEnum];
37
+ * @export
38
+ * @enum {string}
39
+ */
40
+ export enum ReqGetTxByEnum {
41
+ Hash = 'hash',
42
+ SequenceIndex = 'sequence_index'
43
+ }
45
44
 
46
45
 
47
46
  /**
@@ -24,13 +24,13 @@ export interface Rollback {
24
24
  * @type {number}
25
25
  * @memberof Rollback
26
26
  */
27
- fromBlockHeight: number;
27
+ from_block_height: number;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
31
  * @memberof Rollback
32
32
  */
33
- fromTxHash: string;
33
+ from_tx_hash: string;
34
34
  /**
35
35
  *
36
36
  * @type {number}
@@ -42,17 +42,17 @@ export interface Rollback {
42
42
  * @type {number}
43
43
  * @memberof Rollback
44
44
  */
45
- createdAt: number;
45
+ created_at: number;
46
46
  }
47
47
 
48
48
  /**
49
49
  * Check if a given object implements the Rollback interface.
50
50
  */
51
51
  export function instanceOfRollback(value: object): value is Rollback {
52
- if (!('fromBlockHeight' in value) || value['fromBlockHeight'] === undefined) return false;
53
- if (!('fromTxHash' in value) || value['fromTxHash'] === undefined) return false;
52
+ if (!('from_block_height' in value) || value['from_block_height'] === undefined) return false;
53
+ if (!('from_tx_hash' in value) || value['from_tx_hash'] === undefined) return false;
54
54
  if (!('id' in value) || value['id'] === undefined) return false;
55
- if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
55
+ if (!('created_at' in value) || value['created_at'] === undefined) return false;
56
56
  return true;
57
57
  }
58
58
 
@@ -66,10 +66,10 @@ export function RollbackFromJSONTyped(json: any, ignoreDiscriminator: boolean):
66
66
  }
67
67
  return {
68
68
 
69
- 'fromBlockHeight': json['from_block_height'],
70
- 'fromTxHash': json['from_tx_hash'],
69
+ 'from_block_height': json['from_block_height'],
70
+ 'from_tx_hash': json['from_tx_hash'],
71
71
  'id': json['id'],
72
- 'createdAt': json['created_at'],
72
+ 'created_at': json['created_at'],
73
73
  };
74
74
  }
75
75
 
@@ -79,10 +79,10 @@ export function RollbackToJSON(value?: Rollback | null): any {
79
79
  }
80
80
  return {
81
81
 
82
- 'from_block_height': value['fromBlockHeight'],
83
- 'from_tx_hash': value['fromTxHash'],
82
+ 'from_block_height': value['from_block_height'],
83
+ 'from_tx_hash': value['from_tx_hash'],
84
84
  'id': value['id'],
85
- 'created_at': value['createdAt'],
85
+ 'created_at': value['created_at'],
86
86
  };
87
87
  }
88
88
 
package/models/Search.ts CHANGED
@@ -36,14 +36,14 @@ export interface Search {
36
36
  * @type {number}
37
37
  * @memberof Search
38
38
  */
39
- dataType: number;
39
+ data_type: number;
40
40
  }
41
41
 
42
42
  /**
43
43
  * Check if a given object implements the Search interface.
44
44
  */
45
45
  export function instanceOfSearch(value: object): value is Search {
46
- if (!('dataType' in value) || value['dataType'] === undefined) return false;
46
+ if (!('data_type' in value) || value['data_type'] === undefined) return false;
47
47
  return true;
48
48
  }
49
49
 
@@ -59,7 +59,7 @@ export function SearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): Se
59
59
 
60
60
  'code': json['code'] == null ? undefined : json['code'],
61
61
  'message': json['message'] == null ? undefined : json['message'],
62
- 'dataType': json['data_type'],
62
+ 'data_type': json['data_type'],
63
63
  };
64
64
  }
65
65
 
@@ -71,7 +71,7 @@ export function SearchToJSON(value?: Search | null): any {
71
71
 
72
72
  'code': value['code'],
73
73
  'message': value['message'],
74
- 'data_type': value['dataType'],
74
+ 'data_type': value['data_type'],
75
75
  };
76
76
  }
77
77
 
@@ -36,14 +36,14 @@ export interface SignBody {
36
36
  * @type {string}
37
37
  * @memberof SignBody
38
38
  */
39
- signBody: string;
39
+ sign_body: string;
40
40
  }
41
41
 
42
42
  /**
43
43
  * Check if a given object implements the SignBody interface.
44
44
  */
45
45
  export function instanceOfSignBody(value: object): value is SignBody {
46
- if (!('signBody' in value) || value['signBody'] === undefined) return false;
46
+ if (!('sign_body' in value) || value['sign_body'] === undefined) return false;
47
47
  return true;
48
48
  }
49
49
 
@@ -59,7 +59,7 @@ export function SignBodyFromJSONTyped(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
- 'signBody': json['sign_body'],
62
+ 'sign_body': json['sign_body'],
63
63
  };
64
64
  }
65
65
 
@@ -71,7 +71,7 @@ export function SignBodyToJSON(value?: SignBody | null): any {
71
71
 
72
72
  'code': value['code'],
73
73
  'message': value['message'],
74
- 'sign_body': value['signBody'],
74
+ 'sign_body': value['sign_body'],
75
75
  };
76
76
  }
77
77