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
|
@@ -0,0 +1,88 @@
|
|
|
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 ReferralPointEntry
|
|
20
|
+
*/
|
|
21
|
+
export interface ReferralPointEntry {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReferralPointEntry
|
|
26
|
+
*/
|
|
27
|
+
l1_address: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ReferralPointEntry
|
|
32
|
+
*/
|
|
33
|
+
total_points: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ReferralPointEntry
|
|
38
|
+
*/
|
|
39
|
+
week_points: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ReferralPointEntry
|
|
44
|
+
*/
|
|
45
|
+
reward_points: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ReferralPointEntry interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfReferralPointEntry(value: object): value is ReferralPointEntry {
|
|
52
|
+
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
53
|
+
if (!('total_points' in value) || value['total_points'] === undefined) return false;
|
|
54
|
+
if (!('week_points' in value) || value['week_points'] === undefined) return false;
|
|
55
|
+
if (!('reward_points' in value) || value['reward_points'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ReferralPointEntryFromJSON(json: any): ReferralPointEntry {
|
|
60
|
+
return ReferralPointEntryFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ReferralPointEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferralPointEntry {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'l1_address': json['l1_address'],
|
|
70
|
+
'total_points': json['total_points'],
|
|
71
|
+
'week_points': json['week_points'],
|
|
72
|
+
'reward_points': json['reward_points'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ReferralPointEntryToJSON(value?: ReferralPointEntry | null): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'l1_address': value['l1_address'],
|
|
83
|
+
'total_points': value['total_points'],
|
|
84
|
+
'week_points': value['week_points'],
|
|
85
|
+
'reward_points': value['reward_points'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
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 { ReferralPointEntry } from './ReferralPointEntry';
|
|
17
|
+
import {
|
|
18
|
+
ReferralPointEntryFromJSON,
|
|
19
|
+
ReferralPointEntryFromJSONTyped,
|
|
20
|
+
ReferralPointEntryToJSON,
|
|
21
|
+
} from './ReferralPointEntry';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ReferralPoints
|
|
27
|
+
*/
|
|
28
|
+
export interface ReferralPoints {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<ReferralPointEntry>}
|
|
32
|
+
* @memberof ReferralPoints
|
|
33
|
+
*/
|
|
34
|
+
referrals: Array<ReferralPointEntry>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof ReferralPoints
|
|
39
|
+
*/
|
|
40
|
+
user_total_points: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof ReferralPoints
|
|
45
|
+
*/
|
|
46
|
+
user_last_week_points: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof ReferralPoints
|
|
51
|
+
*/
|
|
52
|
+
user_referral_reward_points: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof ReferralPoints
|
|
57
|
+
*/
|
|
58
|
+
all_referral_count: number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof ReferralPoints
|
|
63
|
+
*/
|
|
64
|
+
referral_with_account_count: number;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof ReferralPoints
|
|
69
|
+
*/
|
|
70
|
+
week_start: number;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the ReferralPoints interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfReferralPoints(value: object): value is ReferralPoints {
|
|
77
|
+
if (!('referrals' in value) || value['referrals'] === undefined) return false;
|
|
78
|
+
if (!('user_total_points' in value) || value['user_total_points'] === undefined) return false;
|
|
79
|
+
if (!('user_last_week_points' in value) || value['user_last_week_points'] === undefined) return false;
|
|
80
|
+
if (!('user_referral_reward_points' in value) || value['user_referral_reward_points'] === undefined) return false;
|
|
81
|
+
if (!('all_referral_count' in value) || value['all_referral_count'] === undefined) return false;
|
|
82
|
+
if (!('referral_with_account_count' in value) || value['referral_with_account_count'] === undefined) return false;
|
|
83
|
+
if (!('week_start' in value) || value['week_start'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ReferralPointsFromJSON(json: any): ReferralPoints {
|
|
88
|
+
return ReferralPointsFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ReferralPointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferralPoints {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'referrals': ((json['referrals'] as Array<any>).map(ReferralPointEntryFromJSON)),
|
|
98
|
+
'user_total_points': json['user_total_points'],
|
|
99
|
+
'user_last_week_points': json['user_last_week_points'],
|
|
100
|
+
'user_referral_reward_points': json['user_referral_reward_points'],
|
|
101
|
+
'all_referral_count': json['all_referral_count'],
|
|
102
|
+
'referral_with_account_count': json['referral_with_account_count'],
|
|
103
|
+
'week_start': json['week_start'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function ReferralPointsToJSON(value?: ReferralPoints | null): any {
|
|
108
|
+
if (value == null) {
|
|
109
|
+
return value;
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'referrals': ((value['referrals'] as Array<any>).map(ReferralPointEntryToJSON)),
|
|
114
|
+
'user_total_points': value['user_total_points'],
|
|
115
|
+
'user_last_week_points': value['user_last_week_points'],
|
|
116
|
+
'user_referral_reward_points': value['user_referral_reward_points'],
|
|
117
|
+
'all_referral_count': value['all_referral_count'],
|
|
118
|
+
'referral_with_account_count': value['referral_with_account_count'],
|
|
119
|
+
'week_start': value['week_start'],
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
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 ReqGetReferralPoints
|
|
20
|
+
*/
|
|
21
|
+
export interface ReqGetReferralPoints {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReqGetReferralPoints
|
|
26
|
+
*/
|
|
27
|
+
auth: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ReqGetReferralPoints
|
|
32
|
+
*/
|
|
33
|
+
account_index: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ReqGetReferralPoints interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfReqGetReferralPoints(value: object): value is ReqGetReferralPoints {
|
|
40
|
+
if (!('auth' in value) || value['auth'] === undefined) return false;
|
|
41
|
+
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ReqGetReferralPointsFromJSON(json: any): ReqGetReferralPoints {
|
|
46
|
+
return ReqGetReferralPointsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ReqGetReferralPointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetReferralPoints {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'auth': json['auth'],
|
|
56
|
+
'account_index': json['account_index'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ReqGetReferralPointsToJSON(value?: ReqGetReferralPoints | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'auth': value['auth'],
|
|
67
|
+
'account_index': value['account_index'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
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 RespGetFastBridgeInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface RespGetFastBridgeInfo {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof RespGetFastBridgeInfo
|
|
26
|
+
*/
|
|
27
|
+
code: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RespGetFastBridgeInfo
|
|
32
|
+
*/
|
|
33
|
+
message?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RespGetFastBridgeInfo
|
|
38
|
+
*/
|
|
39
|
+
fast_bridge_limit: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the RespGetFastBridgeInfo interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfRespGetFastBridgeInfo(value: object): value is RespGetFastBridgeInfo {
|
|
46
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
47
|
+
if (!('fast_bridge_limit' in value) || value['fast_bridge_limit'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function RespGetFastBridgeInfoFromJSON(json: any): RespGetFastBridgeInfo {
|
|
52
|
+
return RespGetFastBridgeInfoFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function RespGetFastBridgeInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespGetFastBridgeInfo {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'code': json['code'],
|
|
62
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
63
|
+
'fast_bridge_limit': json['fast_bridge_limit'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function RespGetFastBridgeInfoToJSON(value?: RespGetFastBridgeInfo | null): any {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'code': value['code'],
|
|
74
|
+
'message': value['message'],
|
|
75
|
+
'fast_bridge_limit': value['fast_bridge_limit'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
package/models/index.ts
CHANGED
|
@@ -9,6 +9,8 @@ export * from './AccountPosition';
|
|
|
9
9
|
export * from './AccountStats';
|
|
10
10
|
export * from './AccountTradeStats';
|
|
11
11
|
export * from './Accounts';
|
|
12
|
+
export * from './Announcement';
|
|
13
|
+
export * from './Announcements';
|
|
12
14
|
export * from './ApiKey';
|
|
13
15
|
export * from './Block';
|
|
14
16
|
export * from './Blocks';
|
|
@@ -57,6 +59,8 @@ export * from './PublicPoolInfo';
|
|
|
57
59
|
export * from './PublicPoolShare';
|
|
58
60
|
export * from './PublicPools';
|
|
59
61
|
export * from './ReferralCode';
|
|
62
|
+
export * from './ReferralPointEntry';
|
|
63
|
+
export * from './ReferralPoints';
|
|
60
64
|
export * from './ReqDoFaucet';
|
|
61
65
|
export * from './ReqGetAccount';
|
|
62
66
|
export * from './ReqGetAccountActiveOrders';
|
|
@@ -87,10 +91,12 @@ export * from './ReqGetRangeWithIndex';
|
|
|
87
91
|
export * from './ReqGetRangeWithIndexSortable';
|
|
88
92
|
export * from './ReqGetRecentTrades';
|
|
89
93
|
export * from './ReqGetReferralCode';
|
|
94
|
+
export * from './ReqGetReferralPoints';
|
|
90
95
|
export * from './ReqGetTrades';
|
|
91
96
|
export * from './ReqGetTx';
|
|
92
97
|
export * from './ReqGetWithdrawHistory';
|
|
93
98
|
export * from './ReqIsWhitelisted';
|
|
99
|
+
export * from './RespGetFastBridgeInfo';
|
|
94
100
|
export * from './RespGetFastwithdrawalInfo';
|
|
95
101
|
export * from './ResultCode';
|
|
96
102
|
export * from './SimpleOrder';
|