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.
- package/.circleci/config.yml +86 -0
- package/.openapi-generator/FILES +95 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/apis/AccountApi.ts +454 -0
- package/apis/BlockApi.ts +178 -0
- package/apis/CandlestickApi.ts +231 -0
- package/apis/InfoApi.ts +197 -0
- package/apis/OrderApi.ts +607 -0
- package/apis/RelayerApi.ts +95 -0
- package/apis/RootApi.ts +56 -0
- package/apis/TransactionApi.ts +608 -0
- package/apis/WsApi.ts +82 -0
- package/apis/index.ts +11 -0
- package/config.yaml +5 -0
- package/index.ts +5 -0
- package/models/AccountMarketStats.ts +100 -0
- package/models/AccountPnL.ts +91 -0
- package/models/AccountPosition.ts +140 -0
- package/models/AccountStats.ts +92 -0
- package/models/Block.ts +163 -0
- package/models/Blocks.ts +91 -0
- package/models/Candlestick.ts +108 -0
- package/models/Candlesticks.ts +91 -0
- package/models/ContractAddress.ts +68 -0
- package/models/CurrentHeight.ts +76 -0
- package/models/Cursor.ts +60 -0
- package/models/DetailedAccount.ts +169 -0
- package/models/DetailedAccounts.ts +91 -0
- package/models/EnrichedTx.ts +204 -0
- package/models/ExchangeStats.ts +107 -0
- package/models/Funding.ts +84 -0
- package/models/Fundings.ts +91 -0
- package/models/L1ProviderInfo.ts +84 -0
- package/models/Layer1BasicInfo.ts +143 -0
- package/models/Layer2BasicInfo.ts +92 -0
- package/models/MainAccount.ts +92 -0
- package/models/MainAccounts.ts +91 -0
- package/models/MarketInfo.ts +140 -0
- package/models/MarketSig.ts +100 -0
- package/models/NextNonce.ts +76 -0
- package/models/Order.ts +209 -0
- package/models/OrderBook.ts +143 -0
- package/models/OrderBookDepth.ts +99 -0
- package/models/OrderBookDetail.ts +287 -0
- package/models/OrderBookDetails.ts +83 -0
- package/models/OrderBookOrders.ts +107 -0
- package/models/OrderBookStats.ts +100 -0
- package/models/OrderBooks.ts +83 -0
- package/models/Orders.ts +91 -0
- package/models/Permission.ts +76 -0
- package/models/PnLEntry.ts +68 -0
- package/models/PriceLevel.ts +68 -0
- package/models/ReqDoFaucet.ts +60 -0
- package/models/ReqGetAccount.ts +79 -0
- package/models/ReqGetAccountActiveOrders.ts +76 -0
- package/models/ReqGetAccountByL1Address.ts +60 -0
- package/models/ReqGetAccountInactiveOrders.ts +111 -0
- package/models/ReqGetAccountOrders.ts +84 -0
- package/models/ReqGetAccountPendingTxs.ts +87 -0
- package/models/ReqGetAccountPnL.ts +124 -0
- package/models/ReqGetAccountTxs.ts +103 -0
- package/models/ReqGetBlock.ts +79 -0
- package/models/ReqGetBlockTxs.ts +79 -0
- package/models/ReqGetByAccount.ts +79 -0
- package/models/ReqGetCandlesticks.ts +107 -0
- package/models/ReqGetFundings.ts +102 -0
- package/models/ReqGetL1Tx.ts +60 -0
- package/models/ReqGetMarketSig.ts +76 -0
- package/models/ReqGetNextNonce.ts +68 -0
- package/models/ReqGetOrderBookDetails.ts +79 -0
- package/models/ReqGetOrderBookOrders.ts +68 -0
- package/models/ReqGetOrderBooks.ts +79 -0
- package/models/ReqGetPermission.ts +87 -0
- package/models/ReqGetRangeWithCursor.ts +68 -0
- package/models/ReqGetRangeWithIndex.ts +68 -0
- package/models/ReqGetRangeWithIndexSortable.ts +87 -0
- package/models/ReqGetRecentTrades.ts +68 -0
- package/models/ReqGetRollbacks.ts +76 -0
- package/models/ReqGetSubAccount.ts +87 -0
- package/models/ReqGetTrades.ts +104 -0
- package/models/ReqGetTx.ts +79 -0
- package/models/ReqSearch.ts +60 -0
- package/models/ResultCode.ts +68 -0
- package/models/Rollback.ts +84 -0
- package/models/Rollbacks.ts +91 -0
- package/models/Search.ts +76 -0
- package/models/SignBody.ts +76 -0
- package/models/SimpleOrder.ts +100 -0
- package/models/Status.ts +68 -0
- package/models/SubAccount.ts +116 -0
- package/models/SubAccounts.ts +107 -0
- package/models/Trade.ts +148 -0
- package/models/Trades.ts +83 -0
- package/models/Tx.ts +164 -0
- package/models/TxHash.ts +76 -0
- package/models/Txs.ts +83 -0
- package/models/ValidatorInfo.ts +68 -0
- package/models/index.ts +84 -0
- package/openapi-generator-cli.jar +0 -0
- package/openapi.json +3934 -0
- package/package.json +23 -0
- 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
|
+
|