zklighter-perps 1.0.93 → 1.0.95
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/.openapi-generator/FILES +7 -0
- package/apis/AnnouncementApi.ts +61 -0
- package/apis/BridgeApi.ts +31 -0
- package/apis/ReferralApi.ts +58 -0
- package/apis/index.ts +1 -0
- package/models/AccountMarketStats.ts +54 -0
- package/models/AccountTradeStats.ts +46 -10
- package/models/Announcement.ts +79 -0
- package/models/Announcements.ts +85 -0
- package/models/L1ProviderInfo.ts +0 -9
- package/models/ReferralPointEntry.ts +88 -0
- package/models/ReferralPoints.ts +122 -0
- package/models/ReqGetReferralPoints.ts +70 -0
- package/models/RespGetFastBridgeInfo.ts +78 -0
- package/models/index.ts +6 -0
- package/openapi.json +322 -12
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
apis/AccountApi.ts
|
|
2
|
+
apis/AnnouncementApi.ts
|
|
2
3
|
apis/BlockApi.ts
|
|
3
4
|
apis/BridgeApi.ts
|
|
4
5
|
apis/CandlestickApi.ts
|
|
@@ -19,6 +20,8 @@ models/AccountPosition.ts
|
|
|
19
20
|
models/AccountStats.ts
|
|
20
21
|
models/AccountTradeStats.ts
|
|
21
22
|
models/Accounts.ts
|
|
23
|
+
models/Announcement.ts
|
|
24
|
+
models/Announcements.ts
|
|
22
25
|
models/ApiKey.ts
|
|
23
26
|
models/Block.ts
|
|
24
27
|
models/Blocks.ts
|
|
@@ -67,6 +70,8 @@ models/PublicPoolInfo.ts
|
|
|
67
70
|
models/PublicPoolShare.ts
|
|
68
71
|
models/PublicPools.ts
|
|
69
72
|
models/ReferralCode.ts
|
|
73
|
+
models/ReferralPointEntry.ts
|
|
74
|
+
models/ReferralPoints.ts
|
|
70
75
|
models/ReqDoFaucet.ts
|
|
71
76
|
models/ReqGetAccount.ts
|
|
72
77
|
models/ReqGetAccountActiveOrders.ts
|
|
@@ -97,10 +102,12 @@ models/ReqGetRangeWithIndex.ts
|
|
|
97
102
|
models/ReqGetRangeWithIndexSortable.ts
|
|
98
103
|
models/ReqGetRecentTrades.ts
|
|
99
104
|
models/ReqGetReferralCode.ts
|
|
105
|
+
models/ReqGetReferralPoints.ts
|
|
100
106
|
models/ReqGetTrades.ts
|
|
101
107
|
models/ReqGetTx.ts
|
|
102
108
|
models/ReqGetWithdrawHistory.ts
|
|
103
109
|
models/ReqIsWhitelisted.ts
|
|
110
|
+
models/RespGetFastBridgeInfo.ts
|
|
104
111
|
models/RespGetFastwithdrawalInfo.ts
|
|
105
112
|
models/ResultCode.ts
|
|
106
113
|
models/SimpleOrder.ts
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
Announcements,
|
|
19
|
+
ResultCode,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
AnnouncementsFromJSON,
|
|
23
|
+
AnnouncementsToJSON,
|
|
24
|
+
ResultCodeFromJSON,
|
|
25
|
+
ResultCodeToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export class AnnouncementApi extends runtime.BaseAPI {
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Get announcement
|
|
35
|
+
* announcement
|
|
36
|
+
*/
|
|
37
|
+
async announcementRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Announcements>> {
|
|
38
|
+
const queryParameters: any = {};
|
|
39
|
+
|
|
40
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
41
|
+
|
|
42
|
+
const response = await this.request({
|
|
43
|
+
path: `/api/v1/announcement`,
|
|
44
|
+
method: 'GET',
|
|
45
|
+
headers: headerParameters,
|
|
46
|
+
query: queryParameters,
|
|
47
|
+
}, initOverrides);
|
|
48
|
+
|
|
49
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AnnouncementsFromJSON(jsonValue));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Get announcement
|
|
54
|
+
* announcement
|
|
55
|
+
*/
|
|
56
|
+
async announcement(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Announcements> {
|
|
57
|
+
const response = await this.announcementRaw(initOverrides);
|
|
58
|
+
return await response.value();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
}
|
package/apis/BridgeApi.ts
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
BridgeSupportedNetworks,
|
|
19
19
|
CreateIntentAddressResp,
|
|
20
20
|
Deposit,
|
|
21
|
+
RespGetFastBridgeInfo,
|
|
21
22
|
RespGetFastwithdrawalInfo,
|
|
22
23
|
ResultCode,
|
|
23
24
|
} from '../models/index';
|
|
@@ -28,6 +29,8 @@ import {
|
|
|
28
29
|
CreateIntentAddressRespToJSON,
|
|
29
30
|
DepositFromJSON,
|
|
30
31
|
DepositToJSON,
|
|
32
|
+
RespGetFastBridgeInfoFromJSON,
|
|
33
|
+
RespGetFastBridgeInfoToJSON,
|
|
31
34
|
RespGetFastwithdrawalInfoFromJSON,
|
|
32
35
|
RespGetFastwithdrawalInfoToJSON,
|
|
33
36
|
ResultCodeFromJSON,
|
|
@@ -273,6 +276,34 @@ export class BridgeApi extends runtime.BaseAPI {
|
|
|
273
276
|
return await response.value();
|
|
274
277
|
}
|
|
275
278
|
|
|
279
|
+
/**
|
|
280
|
+
* Get fast bridge info
|
|
281
|
+
* fastbridge_info
|
|
282
|
+
*/
|
|
283
|
+
async fastbridgeInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespGetFastBridgeInfo>> {
|
|
284
|
+
const queryParameters: any = {};
|
|
285
|
+
|
|
286
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
287
|
+
|
|
288
|
+
const response = await this.request({
|
|
289
|
+
path: `/api/v1/fastbridge/info`,
|
|
290
|
+
method: 'GET',
|
|
291
|
+
headers: headerParameters,
|
|
292
|
+
query: queryParameters,
|
|
293
|
+
}, initOverrides);
|
|
294
|
+
|
|
295
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespGetFastBridgeInfoFromJSON(jsonValue));
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Get fast bridge info
|
|
300
|
+
* fastbridge_info
|
|
301
|
+
*/
|
|
302
|
+
async fastbridgeInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespGetFastBridgeInfo> {
|
|
303
|
+
const response = await this.fastbridgeInfoRaw(initOverrides);
|
|
304
|
+
return await response.value();
|
|
305
|
+
}
|
|
306
|
+
|
|
276
307
|
/**
|
|
277
308
|
* Fast withdraw
|
|
278
309
|
* fastwithdraw
|
package/apis/ReferralApi.ts
CHANGED
|
@@ -16,11 +16,14 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ReferralCode,
|
|
19
|
+
ReferralPoints,
|
|
19
20
|
ResultCode,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
22
23
|
ReferralCodeFromJSON,
|
|
23
24
|
ReferralCodeToJSON,
|
|
25
|
+
ReferralPointsFromJSON,
|
|
26
|
+
ReferralPointsToJSON,
|
|
24
27
|
ResultCodeFromJSON,
|
|
25
28
|
ResultCodeToJSON,
|
|
26
29
|
} from '../models/index';
|
|
@@ -35,6 +38,11 @@ export interface ReferralGetRequest {
|
|
|
35
38
|
account_index: number;
|
|
36
39
|
}
|
|
37
40
|
|
|
41
|
+
export interface ReferralPointsRequest {
|
|
42
|
+
auth: string;
|
|
43
|
+
account_index: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
38
46
|
export interface ReferralUseRequest {
|
|
39
47
|
l1_address: string;
|
|
40
48
|
referral_code: string;
|
|
@@ -163,6 +171,56 @@ export class ReferralApi extends runtime.BaseAPI {
|
|
|
163
171
|
return await response.value();
|
|
164
172
|
}
|
|
165
173
|
|
|
174
|
+
/**
|
|
175
|
+
* Get referral points
|
|
176
|
+
* referral_points
|
|
177
|
+
*/
|
|
178
|
+
async referralPointsRaw(requestParameters: ReferralPointsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReferralPoints>> {
|
|
179
|
+
if (requestParameters['auth'] == null) {
|
|
180
|
+
throw new runtime.RequiredError(
|
|
181
|
+
'auth',
|
|
182
|
+
'Required parameter "auth" was null or undefined when calling referralPoints().'
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (requestParameters['account_index'] == null) {
|
|
187
|
+
throw new runtime.RequiredError(
|
|
188
|
+
'account_index',
|
|
189
|
+
'Required parameter "account_index" was null or undefined when calling referralPoints().'
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
const queryParameters: any = {};
|
|
194
|
+
|
|
195
|
+
if (requestParameters['auth'] != null) {
|
|
196
|
+
queryParameters['auth'] = requestParameters['auth'];
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (requestParameters['account_index'] != null) {
|
|
200
|
+
queryParameters['account_index'] = requestParameters['account_index'];
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
204
|
+
|
|
205
|
+
const response = await this.request({
|
|
206
|
+
path: `/api/v1/referral/points`,
|
|
207
|
+
method: 'GET',
|
|
208
|
+
headers: headerParameters,
|
|
209
|
+
query: queryParameters,
|
|
210
|
+
}, initOverrides);
|
|
211
|
+
|
|
212
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ReferralPointsFromJSON(jsonValue));
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Get referral points
|
|
217
|
+
* referral_points
|
|
218
|
+
*/
|
|
219
|
+
async referralPoints(requestParameters: ReferralPointsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReferralPoints> {
|
|
220
|
+
const response = await this.referralPointsRaw(requestParameters, initOverrides);
|
|
221
|
+
return await response.value();
|
|
222
|
+
}
|
|
223
|
+
|
|
166
224
|
/**
|
|
167
225
|
* Use referral code
|
|
168
226
|
* referral_use
|
package/apis/index.ts
CHANGED
|
@@ -43,6 +43,42 @@ export interface AccountMarketStats {
|
|
|
43
43
|
* @memberof AccountMarketStats
|
|
44
44
|
*/
|
|
45
45
|
daily_quote_token_volume: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AccountMarketStats
|
|
50
|
+
*/
|
|
51
|
+
weekly_trades_count: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof AccountMarketStats
|
|
56
|
+
*/
|
|
57
|
+
weekly_base_token_volume: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof AccountMarketStats
|
|
62
|
+
*/
|
|
63
|
+
weekly_quote_token_volume: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof AccountMarketStats
|
|
68
|
+
*/
|
|
69
|
+
monthly_trades_count: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof AccountMarketStats
|
|
74
|
+
*/
|
|
75
|
+
monthly_base_token_volume: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof AccountMarketStats
|
|
80
|
+
*/
|
|
81
|
+
monthly_quote_token_volume: number;
|
|
46
82
|
/**
|
|
47
83
|
*
|
|
48
84
|
* @type {number}
|
|
@@ -71,6 +107,12 @@ export function instanceOfAccountMarketStats(value: object): value is AccountMar
|
|
|
71
107
|
if (!('daily_trades_count' in value) || value['daily_trades_count'] === undefined) return false;
|
|
72
108
|
if (!('daily_base_token_volume' in value) || value['daily_base_token_volume'] === undefined) return false;
|
|
73
109
|
if (!('daily_quote_token_volume' in value) || value['daily_quote_token_volume'] === undefined) return false;
|
|
110
|
+
if (!('weekly_trades_count' in value) || value['weekly_trades_count'] === undefined) return false;
|
|
111
|
+
if (!('weekly_base_token_volume' in value) || value['weekly_base_token_volume'] === undefined) return false;
|
|
112
|
+
if (!('weekly_quote_token_volume' in value) || value['weekly_quote_token_volume'] === undefined) return false;
|
|
113
|
+
if (!('monthly_trades_count' in value) || value['monthly_trades_count'] === undefined) return false;
|
|
114
|
+
if (!('monthly_base_token_volume' in value) || value['monthly_base_token_volume'] === undefined) return false;
|
|
115
|
+
if (!('monthly_quote_token_volume' in value) || value['monthly_quote_token_volume'] === undefined) return false;
|
|
74
116
|
if (!('total_trades_count' in value) || value['total_trades_count'] === undefined) return false;
|
|
75
117
|
if (!('total_base_token_volume' in value) || value['total_base_token_volume'] === undefined) return false;
|
|
76
118
|
if (!('total_quote_token_volume' in value) || value['total_quote_token_volume'] === undefined) return false;
|
|
@@ -91,6 +133,12 @@ export function AccountMarketStatsFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
91
133
|
'daily_trades_count': json['daily_trades_count'],
|
|
92
134
|
'daily_base_token_volume': json['daily_base_token_volume'],
|
|
93
135
|
'daily_quote_token_volume': json['daily_quote_token_volume'],
|
|
136
|
+
'weekly_trades_count': json['weekly_trades_count'],
|
|
137
|
+
'weekly_base_token_volume': json['weekly_base_token_volume'],
|
|
138
|
+
'weekly_quote_token_volume': json['weekly_quote_token_volume'],
|
|
139
|
+
'monthly_trades_count': json['monthly_trades_count'],
|
|
140
|
+
'monthly_base_token_volume': json['monthly_base_token_volume'],
|
|
141
|
+
'monthly_quote_token_volume': json['monthly_quote_token_volume'],
|
|
94
142
|
'total_trades_count': json['total_trades_count'],
|
|
95
143
|
'total_base_token_volume': json['total_base_token_volume'],
|
|
96
144
|
'total_quote_token_volume': json['total_quote_token_volume'],
|
|
@@ -107,6 +155,12 @@ export function AccountMarketStatsToJSON(value?: AccountMarketStats | null): any
|
|
|
107
155
|
'daily_trades_count': value['daily_trades_count'],
|
|
108
156
|
'daily_base_token_volume': value['daily_base_token_volume'],
|
|
109
157
|
'daily_quote_token_volume': value['daily_quote_token_volume'],
|
|
158
|
+
'weekly_trades_count': value['weekly_trades_count'],
|
|
159
|
+
'weekly_base_token_volume': value['weekly_base_token_volume'],
|
|
160
|
+
'weekly_quote_token_volume': value['weekly_quote_token_volume'],
|
|
161
|
+
'monthly_trades_count': value['monthly_trades_count'],
|
|
162
|
+
'monthly_base_token_volume': value['monthly_base_token_volume'],
|
|
163
|
+
'monthly_quote_token_volume': value['monthly_quote_token_volume'],
|
|
110
164
|
'total_trades_count': value['total_trades_count'],
|
|
111
165
|
'total_base_token_volume': value['total_base_token_volume'],
|
|
112
166
|
'total_quote_token_volume': value['total_quote_token_volume'],
|
|
@@ -24,35 +24,63 @@ export interface AccountTradeStats {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof AccountTradeStats
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
daily_trades_count: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof AccountTradeStats
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
daily_volume: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof AccountTradeStats
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
weekly_trades_count: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof AccountTradeStats
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
weekly_volume: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AccountTradeStats
|
|
50
|
+
*/
|
|
51
|
+
monthly_trades_count: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof AccountTradeStats
|
|
56
|
+
*/
|
|
57
|
+
monthly_volume: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof AccountTradeStats
|
|
62
|
+
*/
|
|
63
|
+
total_trades_count: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof AccountTradeStats
|
|
68
|
+
*/
|
|
69
|
+
total_volume: number;
|
|
46
70
|
}
|
|
47
71
|
|
|
48
72
|
/**
|
|
49
73
|
* Check if a given object implements the AccountTradeStats interface.
|
|
50
74
|
*/
|
|
51
75
|
export function instanceOfAccountTradeStats(value: object): value is AccountTradeStats {
|
|
52
|
-
if (!('total_trades_count' in value) || value['total_trades_count'] === undefined) return false;
|
|
53
|
-
if (!('total_volume' in value) || value['total_volume'] === undefined) return false;
|
|
54
76
|
if (!('daily_trades_count' in value) || value['daily_trades_count'] === undefined) return false;
|
|
55
77
|
if (!('daily_volume' in value) || value['daily_volume'] === undefined) return false;
|
|
78
|
+
if (!('weekly_trades_count' in value) || value['weekly_trades_count'] === undefined) return false;
|
|
79
|
+
if (!('weekly_volume' in value) || value['weekly_volume'] === undefined) return false;
|
|
80
|
+
if (!('monthly_trades_count' in value) || value['monthly_trades_count'] === undefined) return false;
|
|
81
|
+
if (!('monthly_volume' in value) || value['monthly_volume'] === undefined) return false;
|
|
82
|
+
if (!('total_trades_count' in value) || value['total_trades_count'] === undefined) return false;
|
|
83
|
+
if (!('total_volume' in value) || value['total_volume'] === undefined) return false;
|
|
56
84
|
return true;
|
|
57
85
|
}
|
|
58
86
|
|
|
@@ -66,10 +94,14 @@ export function AccountTradeStatsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
66
94
|
}
|
|
67
95
|
return {
|
|
68
96
|
|
|
69
|
-
'total_trades_count': json['total_trades_count'],
|
|
70
|
-
'total_volume': json['total_volume'],
|
|
71
97
|
'daily_trades_count': json['daily_trades_count'],
|
|
72
98
|
'daily_volume': json['daily_volume'],
|
|
99
|
+
'weekly_trades_count': json['weekly_trades_count'],
|
|
100
|
+
'weekly_volume': json['weekly_volume'],
|
|
101
|
+
'monthly_trades_count': json['monthly_trades_count'],
|
|
102
|
+
'monthly_volume': json['monthly_volume'],
|
|
103
|
+
'total_trades_count': json['total_trades_count'],
|
|
104
|
+
'total_volume': json['total_volume'],
|
|
73
105
|
};
|
|
74
106
|
}
|
|
75
107
|
|
|
@@ -79,10 +111,14 @@ export function AccountTradeStatsToJSON(value?: AccountTradeStats | null): any {
|
|
|
79
111
|
}
|
|
80
112
|
return {
|
|
81
113
|
|
|
82
|
-
'total_trades_count': value['total_trades_count'],
|
|
83
|
-
'total_volume': value['total_volume'],
|
|
84
114
|
'daily_trades_count': value['daily_trades_count'],
|
|
85
115
|
'daily_volume': value['daily_volume'],
|
|
116
|
+
'weekly_trades_count': value['weekly_trades_count'],
|
|
117
|
+
'weekly_volume': value['weekly_volume'],
|
|
118
|
+
'monthly_trades_count': value['monthly_trades_count'],
|
|
119
|
+
'monthly_volume': value['monthly_volume'],
|
|
120
|
+
'total_trades_count': value['total_trades_count'],
|
|
121
|
+
'total_volume': value['total_volume'],
|
|
86
122
|
};
|
|
87
123
|
}
|
|
88
124
|
|
|
@@ -0,0 +1,79 @@
|
|
|
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 Announcement
|
|
20
|
+
*/
|
|
21
|
+
export interface Announcement {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Announcement
|
|
26
|
+
*/
|
|
27
|
+
title: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Announcement
|
|
32
|
+
*/
|
|
33
|
+
content: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof Announcement
|
|
38
|
+
*/
|
|
39
|
+
created_at: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the Announcement interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAnnouncement(value: object): value is Announcement {
|
|
46
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
47
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
48
|
+
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AnnouncementFromJSON(json: any): Announcement {
|
|
53
|
+
return AnnouncementFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AnnouncementFromJSONTyped(json: any, ignoreDiscriminator: boolean): Announcement {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'title': json['title'],
|
|
63
|
+
'content': json['content'],
|
|
64
|
+
'created_at': json['created_at'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function AnnouncementToJSON(value?: Announcement | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'title': value['title'],
|
|
75
|
+
'content': value['content'],
|
|
76
|
+
'created_at': value['created_at'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { Announcement } from './Announcement';
|
|
17
|
+
import {
|
|
18
|
+
AnnouncementFromJSON,
|
|
19
|
+
AnnouncementFromJSONTyped,
|
|
20
|
+
AnnouncementToJSON,
|
|
21
|
+
} from './Announcement';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Announcements
|
|
27
|
+
*/
|
|
28
|
+
export interface Announcements {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof Announcements
|
|
33
|
+
*/
|
|
34
|
+
code: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Announcements
|
|
39
|
+
*/
|
|
40
|
+
message?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<Announcement>}
|
|
44
|
+
* @memberof Announcements
|
|
45
|
+
*/
|
|
46
|
+
announcements: Array<Announcement>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the Announcements interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfAnnouncements(value: object): value is Announcements {
|
|
53
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
54
|
+
if (!('announcements' in value) || value['announcements'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function AnnouncementsFromJSON(json: any): Announcements {
|
|
59
|
+
return AnnouncementsFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AnnouncementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Announcements {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'code': json['code'],
|
|
69
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
70
|
+
'announcements': ((json['announcements'] as Array<any>).map(AnnouncementFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function AnnouncementsToJSON(value?: Announcements | null): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'code': value['code'],
|
|
81
|
+
'message': value['message'],
|
|
82
|
+
'announcements': ((value['announcements'] as Array<any>).map(AnnouncementToJSON)),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
package/models/L1ProviderInfo.ts
CHANGED
|
@@ -37,12 +37,6 @@ export interface L1ProviderInfo {
|
|
|
37
37
|
* @memberof L1ProviderInfo
|
|
38
38
|
*/
|
|
39
39
|
latestBlockNumber: number;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof L1ProviderInfo
|
|
44
|
-
*/
|
|
45
|
-
NetworkRpc: string;
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
/**
|
|
@@ -52,7 +46,6 @@ export function instanceOfL1ProviderInfo(value: object): value is L1ProviderInfo
|
|
|
52
46
|
if (!('chainId' in value) || value['chainId'] === undefined) return false;
|
|
53
47
|
if (!('networkId' in value) || value['networkId'] === undefined) return false;
|
|
54
48
|
if (!('latestBlockNumber' in value) || value['latestBlockNumber'] === undefined) return false;
|
|
55
|
-
if (!('NetworkRpc' in value) || value['NetworkRpc'] === undefined) return false;
|
|
56
49
|
return true;
|
|
57
50
|
}
|
|
58
51
|
|
|
@@ -69,7 +62,6 @@ export function L1ProviderInfoFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
69
62
|
'chainId': json['chainId'],
|
|
70
63
|
'networkId': json['networkId'],
|
|
71
64
|
'latestBlockNumber': json['latestBlockNumber'],
|
|
72
|
-
'NetworkRpc': json['NetworkRpc'],
|
|
73
65
|
};
|
|
74
66
|
}
|
|
75
67
|
|
|
@@ -82,7 +74,6 @@ export function L1ProviderInfoToJSON(value?: L1ProviderInfo | null): any {
|
|
|
82
74
|
'chainId': value['chainId'],
|
|
83
75
|
'networkId': value['networkId'],
|
|
84
76
|
'latestBlockNumber': value['latestBlockNumber'],
|
|
85
|
-
'NetworkRpc': value['NetworkRpc'],
|
|
86
77
|
};
|
|
87
78
|
}
|
|
88
79
|
|