zklighter-perps 1.0.0

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 (103) hide show
  1. package/.circleci/config.yml +86 -0
  2. package/.openapi-generator/FILES +95 -0
  3. package/.openapi-generator/VERSION +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/apis/AccountApi.ts +454 -0
  6. package/apis/BlockApi.ts +178 -0
  7. package/apis/CandlestickApi.ts +231 -0
  8. package/apis/InfoApi.ts +197 -0
  9. package/apis/OrderApi.ts +607 -0
  10. package/apis/RelayerApi.ts +95 -0
  11. package/apis/RootApi.ts +56 -0
  12. package/apis/TransactionApi.ts +608 -0
  13. package/apis/WsApi.ts +82 -0
  14. package/apis/index.ts +11 -0
  15. package/config.yaml +5 -0
  16. package/index.ts +5 -0
  17. package/models/AccountMarketStats.ts +100 -0
  18. package/models/AccountPnL.ts +91 -0
  19. package/models/AccountPosition.ts +140 -0
  20. package/models/AccountStats.ts +92 -0
  21. package/models/Block.ts +163 -0
  22. package/models/Blocks.ts +91 -0
  23. package/models/Candlestick.ts +108 -0
  24. package/models/Candlesticks.ts +91 -0
  25. package/models/ContractAddress.ts +68 -0
  26. package/models/CurrentHeight.ts +76 -0
  27. package/models/Cursor.ts +60 -0
  28. package/models/DetailedAccount.ts +169 -0
  29. package/models/DetailedAccounts.ts +91 -0
  30. package/models/EnrichedTx.ts +204 -0
  31. package/models/ExchangeStats.ts +107 -0
  32. package/models/Funding.ts +84 -0
  33. package/models/Fundings.ts +91 -0
  34. package/models/L1ProviderInfo.ts +84 -0
  35. package/models/Layer1BasicInfo.ts +143 -0
  36. package/models/Layer2BasicInfo.ts +92 -0
  37. package/models/MainAccount.ts +92 -0
  38. package/models/MainAccounts.ts +91 -0
  39. package/models/MarketInfo.ts +140 -0
  40. package/models/MarketSig.ts +100 -0
  41. package/models/NextNonce.ts +76 -0
  42. package/models/Order.ts +209 -0
  43. package/models/OrderBook.ts +143 -0
  44. package/models/OrderBookDepth.ts +99 -0
  45. package/models/OrderBookDetail.ts +287 -0
  46. package/models/OrderBookDetails.ts +83 -0
  47. package/models/OrderBookOrders.ts +107 -0
  48. package/models/OrderBookStats.ts +100 -0
  49. package/models/OrderBooks.ts +83 -0
  50. package/models/Orders.ts +91 -0
  51. package/models/Permission.ts +76 -0
  52. package/models/PnLEntry.ts +68 -0
  53. package/models/PriceLevel.ts +68 -0
  54. package/models/ReqDoFaucet.ts +60 -0
  55. package/models/ReqGetAccount.ts +79 -0
  56. package/models/ReqGetAccountActiveOrders.ts +76 -0
  57. package/models/ReqGetAccountByL1Address.ts +60 -0
  58. package/models/ReqGetAccountInactiveOrders.ts +111 -0
  59. package/models/ReqGetAccountOrders.ts +84 -0
  60. package/models/ReqGetAccountPendingTxs.ts +87 -0
  61. package/models/ReqGetAccountPnL.ts +124 -0
  62. package/models/ReqGetAccountTxs.ts +103 -0
  63. package/models/ReqGetBlock.ts +79 -0
  64. package/models/ReqGetBlockTxs.ts +79 -0
  65. package/models/ReqGetByAccount.ts +79 -0
  66. package/models/ReqGetCandlesticks.ts +107 -0
  67. package/models/ReqGetFundings.ts +102 -0
  68. package/models/ReqGetL1Tx.ts +60 -0
  69. package/models/ReqGetMarketSig.ts +76 -0
  70. package/models/ReqGetNextNonce.ts +68 -0
  71. package/models/ReqGetOrderBookDetails.ts +79 -0
  72. package/models/ReqGetOrderBookOrders.ts +68 -0
  73. package/models/ReqGetOrderBooks.ts +79 -0
  74. package/models/ReqGetPermission.ts +87 -0
  75. package/models/ReqGetRangeWithCursor.ts +68 -0
  76. package/models/ReqGetRangeWithIndex.ts +68 -0
  77. package/models/ReqGetRangeWithIndexSortable.ts +87 -0
  78. package/models/ReqGetRecentTrades.ts +68 -0
  79. package/models/ReqGetRollbacks.ts +76 -0
  80. package/models/ReqGetSubAccount.ts +87 -0
  81. package/models/ReqGetTrades.ts +104 -0
  82. package/models/ReqGetTx.ts +79 -0
  83. package/models/ReqSearch.ts +60 -0
  84. package/models/ResultCode.ts +68 -0
  85. package/models/Rollback.ts +84 -0
  86. package/models/Rollbacks.ts +91 -0
  87. package/models/Search.ts +76 -0
  88. package/models/SignBody.ts +76 -0
  89. package/models/SimpleOrder.ts +100 -0
  90. package/models/Status.ts +68 -0
  91. package/models/SubAccount.ts +116 -0
  92. package/models/SubAccounts.ts +107 -0
  93. package/models/Trade.ts +148 -0
  94. package/models/Trades.ts +83 -0
  95. package/models/Tx.ts +164 -0
  96. package/models/TxHash.ts +76 -0
  97. package/models/Txs.ts +83 -0
  98. package/models/ValidatorInfo.ts +68 -0
  99. package/models/index.ts +84 -0
  100. package/openapi-generator-cli.jar +0 -0
  101. package/openapi.json +3934 -0
  102. package/package.json +23 -0
  103. package/runtime.ts +426 -0
@@ -0,0 +1,91 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { DetailedAccount } from './DetailedAccount';
17
+ import {
18
+ DetailedAccountFromJSON,
19
+ DetailedAccountFromJSONTyped,
20
+ DetailedAccountToJSON,
21
+ } from './DetailedAccount';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface DetailedAccounts
27
+ */
28
+ export interface DetailedAccounts {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof DetailedAccounts
33
+ */
34
+ code?: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof DetailedAccounts
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof DetailedAccounts
45
+ */
46
+ total?: number;
47
+ /**
48
+ *
49
+ * @type {Array<DetailedAccount>}
50
+ * @memberof DetailedAccounts
51
+ */
52
+ accounts?: Array<DetailedAccount>;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the DetailedAccounts interface.
57
+ */
58
+ export function instanceOfDetailedAccounts(value: object): value is DetailedAccounts {
59
+ return true;
60
+ }
61
+
62
+ export function DetailedAccountsFromJSON(json: any): DetailedAccounts {
63
+ return DetailedAccountsFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function DetailedAccountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailedAccounts {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'code': json['code'] == null ? undefined : json['code'],
73
+ 'message': json['message'] == null ? undefined : json['message'],
74
+ 'total': json['total'] == null ? undefined : json['total'],
75
+ 'accounts': json['accounts'] == null ? undefined : ((json['accounts'] as Array<any>).map(DetailedAccountFromJSON)),
76
+ };
77
+ }
78
+
79
+ export function DetailedAccountsToJSON(value?: DetailedAccounts | null): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+ return {
84
+
85
+ 'code': value['code'],
86
+ 'message': value['message'],
87
+ 'total': value['total'],
88
+ 'accounts': value['accounts'] == null ? undefined : ((value['accounts'] as Array<any>).map(DetailedAccountToJSON)),
89
+ };
90
+ }
91
+
@@ -0,0 +1,204 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface EnrichedTx
20
+ */
21
+ export interface EnrichedTx {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof EnrichedTx
26
+ */
27
+ code?: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof EnrichedTx
32
+ */
33
+ message?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof EnrichedTx
38
+ */
39
+ hash?: string;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof EnrichedTx
44
+ */
45
+ type?: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof EnrichedTx
50
+ */
51
+ info?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof EnrichedTx
56
+ */
57
+ eventInfo?: string;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof EnrichedTx
62
+ */
63
+ status?: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof EnrichedTx
68
+ */
69
+ transactionIndex?: number;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof EnrichedTx
74
+ */
75
+ l1Address?: string;
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof EnrichedTx
80
+ */
81
+ accountIndex?: number;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof EnrichedTx
86
+ */
87
+ nonce?: number;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof EnrichedTx
92
+ */
93
+ expireAt?: number;
94
+ /**
95
+ *
96
+ * @type {number}
97
+ * @memberof EnrichedTx
98
+ */
99
+ blockHeight?: number;
100
+ /**
101
+ *
102
+ * @type {number}
103
+ * @memberof EnrichedTx
104
+ */
105
+ createdAt?: number;
106
+ /**
107
+ *
108
+ * @type {number}
109
+ * @memberof EnrichedTx
110
+ */
111
+ verifyAt?: number;
112
+ /**
113
+ *
114
+ * @type {number}
115
+ * @memberof EnrichedTx
116
+ */
117
+ sequenceIndex?: number;
118
+ /**
119
+ *
120
+ * @type {number}
121
+ * @memberof EnrichedTx
122
+ */
123
+ committedAt?: number;
124
+ /**
125
+ *
126
+ * @type {number}
127
+ * @memberof EnrichedTx
128
+ */
129
+ verifiedAt?: number;
130
+ /**
131
+ *
132
+ * @type {number}
133
+ * @memberof EnrichedTx
134
+ */
135
+ executedAt?: number;
136
+ }
137
+
138
+ /**
139
+ * Check if a given object implements the EnrichedTx interface.
140
+ */
141
+ export function instanceOfEnrichedTx(value: object): value is EnrichedTx {
142
+ return true;
143
+ }
144
+
145
+ export function EnrichedTxFromJSON(json: any): EnrichedTx {
146
+ return EnrichedTxFromJSONTyped(json, false);
147
+ }
148
+
149
+ export function EnrichedTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnrichedTx {
150
+ if (json == null) {
151
+ return json;
152
+ }
153
+ return {
154
+
155
+ 'code': json['code'] == null ? undefined : json['code'],
156
+ 'message': json['message'] == null ? undefined : json['message'],
157
+ 'hash': json['hash'] == null ? undefined : json['hash'],
158
+ 'type': json['type'] == null ? undefined : json['type'],
159
+ 'info': json['info'] == null ? undefined : json['info'],
160
+ 'eventInfo': json['event_info'] == null ? undefined : json['event_info'],
161
+ 'status': json['status'] == null ? undefined : json['status'],
162
+ 'transactionIndex': json['transaction_index'] == null ? undefined : json['transaction_index'],
163
+ 'l1Address': json['l1_address'] == null ? undefined : json['l1_address'],
164
+ 'accountIndex': json['account_index'] == null ? undefined : json['account_index'],
165
+ 'nonce': json['nonce'] == null ? undefined : json['nonce'],
166
+ 'expireAt': json['expire_at'] == null ? undefined : json['expire_at'],
167
+ 'blockHeight': json['block_height'] == null ? undefined : json['block_height'],
168
+ 'createdAt': json['created_at'] == null ? undefined : json['created_at'],
169
+ 'verifyAt': json['verify_at'] == null ? undefined : json['verify_at'],
170
+ 'sequenceIndex': json['sequence_index'] == null ? undefined : json['sequence_index'],
171
+ 'committedAt': json['committed_at'] == null ? undefined : json['committed_at'],
172
+ 'verifiedAt': json['verified_at'] == null ? undefined : json['verified_at'],
173
+ 'executedAt': json['executed_at'] == null ? undefined : json['executed_at'],
174
+ };
175
+ }
176
+
177
+ export function EnrichedTxToJSON(value?: EnrichedTx | null): any {
178
+ if (value == null) {
179
+ return value;
180
+ }
181
+ return {
182
+
183
+ 'code': value['code'],
184
+ 'message': value['message'],
185
+ 'hash': value['hash'],
186
+ 'type': value['type'],
187
+ 'info': value['info'],
188
+ 'event_info': value['eventInfo'],
189
+ 'status': value['status'],
190
+ 'transaction_index': value['transactionIndex'],
191
+ 'l1_address': value['l1Address'],
192
+ 'account_index': value['accountIndex'],
193
+ 'nonce': value['nonce'],
194
+ 'expire_at': value['expireAt'],
195
+ 'block_height': value['blockHeight'],
196
+ 'created_at': value['createdAt'],
197
+ 'verify_at': value['verifyAt'],
198
+ 'sequence_index': value['sequenceIndex'],
199
+ 'committed_at': value['committedAt'],
200
+ 'verified_at': value['verifiedAt'],
201
+ 'executed_at': value['executedAt'],
202
+ };
203
+ }
204
+
@@ -0,0 +1,107 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { OrderBookStats } from './OrderBookStats';
17
+ import {
18
+ OrderBookStatsFromJSON,
19
+ OrderBookStatsFromJSONTyped,
20
+ OrderBookStatsToJSON,
21
+ } from './OrderBookStats';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ExchangeStats
27
+ */
28
+ export interface ExchangeStats {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof ExchangeStats
33
+ */
34
+ code?: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ExchangeStats
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof ExchangeStats
45
+ */
46
+ total?: number;
47
+ /**
48
+ *
49
+ * @type {Array<OrderBookStats>}
50
+ * @memberof ExchangeStats
51
+ */
52
+ orderBookStats?: Array<OrderBookStats>;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof ExchangeStats
57
+ */
58
+ dailyUsdVolume?: number;
59
+ /**
60
+ *
61
+ * @type {number}
62
+ * @memberof ExchangeStats
63
+ */
64
+ dailyTradesCount?: number;
65
+ }
66
+
67
+ /**
68
+ * Check if a given object implements the ExchangeStats interface.
69
+ */
70
+ export function instanceOfExchangeStats(value: object): value is ExchangeStats {
71
+ return true;
72
+ }
73
+
74
+ export function ExchangeStatsFromJSON(json: any): ExchangeStats {
75
+ return ExchangeStatsFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function ExchangeStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeStats {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'code': json['code'] == null ? undefined : json['code'],
85
+ 'message': json['message'] == null ? undefined : json['message'],
86
+ 'total': json['total'] == null ? undefined : json['total'],
87
+ 'orderBookStats': json['order_book_stats'] == null ? undefined : ((json['order_book_stats'] as Array<any>).map(OrderBookStatsFromJSON)),
88
+ 'dailyUsdVolume': json['daily_usd_volume'] == null ? undefined : json['daily_usd_volume'],
89
+ 'dailyTradesCount': json['daily_trades_count'] == null ? undefined : json['daily_trades_count'],
90
+ };
91
+ }
92
+
93
+ export function ExchangeStatsToJSON(value?: ExchangeStats | null): any {
94
+ if (value == null) {
95
+ return value;
96
+ }
97
+ return {
98
+
99
+ 'code': value['code'],
100
+ 'message': value['message'],
101
+ 'total': value['total'],
102
+ 'order_book_stats': value['orderBookStats'] == null ? undefined : ((value['orderBookStats'] as Array<any>).map(OrderBookStatsToJSON)),
103
+ 'daily_usd_volume': value['dailyUsdVolume'],
104
+ 'daily_trades_count': value['dailyTradesCount'],
105
+ };
106
+ }
107
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Funding
20
+ */
21
+ export interface Funding {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof Funding
26
+ */
27
+ timestamp?: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Funding
32
+ */
33
+ value?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Funding
38
+ */
39
+ rate?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Funding
44
+ */
45
+ direction?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the Funding interface.
50
+ */
51
+ export function instanceOfFunding(value: object): value is Funding {
52
+ return true;
53
+ }
54
+
55
+ export function FundingFromJSON(json: any): Funding {
56
+ return FundingFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function FundingFromJSONTyped(json: any, ignoreDiscriminator: boolean): Funding {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
66
+ 'value': json['value'] == null ? undefined : json['value'],
67
+ 'rate': json['rate'] == null ? undefined : json['rate'],
68
+ 'direction': json['direction'] == null ? undefined : json['direction'],
69
+ };
70
+ }
71
+
72
+ export function FundingToJSON(value?: Funding | null): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+
78
+ 'timestamp': value['timestamp'],
79
+ 'value': value['value'],
80
+ 'rate': value['rate'],
81
+ 'direction': value['direction'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,91 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Funding } from './Funding';
17
+ import {
18
+ FundingFromJSON,
19
+ FundingFromJSONTyped,
20
+ FundingToJSON,
21
+ } from './Funding';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface Fundings
27
+ */
28
+ export interface Fundings {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof Fundings
33
+ */
34
+ code?: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof Fundings
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof Fundings
45
+ */
46
+ resolution?: string;
47
+ /**
48
+ *
49
+ * @type {Array<Funding>}
50
+ * @memberof Fundings
51
+ */
52
+ fundings?: Array<Funding>;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the Fundings interface.
57
+ */
58
+ export function instanceOfFundings(value: object): value is Fundings {
59
+ return true;
60
+ }
61
+
62
+ export function FundingsFromJSON(json: any): Fundings {
63
+ return FundingsFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function FundingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fundings {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'code': json['code'] == null ? undefined : json['code'],
73
+ 'message': json['message'] == null ? undefined : json['message'],
74
+ 'resolution': json['resolution'] == null ? undefined : json['resolution'],
75
+ 'fundings': json['fundings'] == null ? undefined : ((json['fundings'] as Array<any>).map(FundingFromJSON)),
76
+ };
77
+ }
78
+
79
+ export function FundingsToJSON(value?: Fundings | null): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+ return {
84
+
85
+ 'code': value['code'],
86
+ 'message': value['message'],
87
+ 'resolution': value['resolution'],
88
+ 'fundings': value['fundings'] == null ? undefined : ((value['fundings'] as Array<any>).map(FundingToJSON)),
89
+ };
90
+ }
91
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface L1ProviderInfo
20
+ */
21
+ export interface L1ProviderInfo {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof L1ProviderInfo
26
+ */
27
+ chainId?: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof L1ProviderInfo
32
+ */
33
+ networkId?: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof L1ProviderInfo
38
+ */
39
+ latestBlockNumber?: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof L1ProviderInfo
44
+ */
45
+ networkRpc?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the L1ProviderInfo interface.
50
+ */
51
+ export function instanceOfL1ProviderInfo(value: object): value is L1ProviderInfo {
52
+ return true;
53
+ }
54
+
55
+ export function L1ProviderInfoFromJSON(json: any): L1ProviderInfo {
56
+ return L1ProviderInfoFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function L1ProviderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L1ProviderInfo {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'chainId': json['chainId'] == null ? undefined : json['chainId'],
66
+ 'networkId': json['networkId'] == null ? undefined : json['networkId'],
67
+ 'latestBlockNumber': json['latestBlockNumber'] == null ? undefined : json['latestBlockNumber'],
68
+ 'networkRpc': json['NetworkRpc'] == null ? undefined : json['NetworkRpc'],
69
+ };
70
+ }
71
+
72
+ export function L1ProviderInfoToJSON(value?: L1ProviderInfo | null): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+
78
+ 'chainId': value['chainId'],
79
+ 'networkId': value['networkId'],
80
+ 'latestBlockNumber': value['latestBlockNumber'],
81
+ 'NetworkRpc': value['networkRpc'],
82
+ };
83
+ }
84
+