zklighter-perps 1.0.127 → 1.0.129
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/models/ReferralPointEntry.ts +9 -0
- package/models/ReferralPoints.ts +0 -18
- package/models/RiskParameters.ts +106 -0
- package/openapi.json +6 -13
- package/package.json +1 -1
|
@@ -49,6 +49,12 @@ export interface ReferralPointEntry {
|
|
|
49
49
|
* @memberof ReferralPointEntry
|
|
50
50
|
*/
|
|
51
51
|
week_reward_points: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ReferralPointEntry
|
|
56
|
+
*/
|
|
57
|
+
reward_point_multiplier: string;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
/**
|
|
@@ -60,6 +66,7 @@ export function instanceOfReferralPointEntry(value: object): value is ReferralPo
|
|
|
60
66
|
if (!('week_points' in value) || value['week_points'] === undefined) return false;
|
|
61
67
|
if (!('total_reward_points' in value) || value['total_reward_points'] === undefined) return false;
|
|
62
68
|
if (!('week_reward_points' in value) || value['week_reward_points'] === undefined) return false;
|
|
69
|
+
if (!('reward_point_multiplier' in value) || value['reward_point_multiplier'] === undefined) return false;
|
|
63
70
|
return true;
|
|
64
71
|
}
|
|
65
72
|
|
|
@@ -78,6 +85,7 @@ export function ReferralPointEntryFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
78
85
|
'week_points': json['week_points'],
|
|
79
86
|
'total_reward_points': json['total_reward_points'],
|
|
80
87
|
'week_reward_points': json['week_reward_points'],
|
|
88
|
+
'reward_point_multiplier': json['reward_point_multiplier'],
|
|
81
89
|
};
|
|
82
90
|
}
|
|
83
91
|
|
|
@@ -92,6 +100,7 @@ export function ReferralPointEntryToJSON(value?: ReferralPointEntry | null): any
|
|
|
92
100
|
'week_points': value['week_points'],
|
|
93
101
|
'total_reward_points': value['total_reward_points'],
|
|
94
102
|
'week_reward_points': value['week_reward_points'],
|
|
103
|
+
'reward_point_multiplier': value['reward_point_multiplier'],
|
|
95
104
|
};
|
|
96
105
|
}
|
|
97
106
|
|
package/models/ReferralPoints.ts
CHANGED
|
@@ -56,18 +56,6 @@ export interface ReferralPoints {
|
|
|
56
56
|
* @memberof ReferralPoints
|
|
57
57
|
*/
|
|
58
58
|
user_last_week_referral_reward_points: number;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {number}
|
|
62
|
-
* @memberof ReferralPoints
|
|
63
|
-
*/
|
|
64
|
-
all_referral_count: number;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {number}
|
|
68
|
-
* @memberof ReferralPoints
|
|
69
|
-
*/
|
|
70
|
-
referral_with_account_count: number;
|
|
71
59
|
/**
|
|
72
60
|
*
|
|
73
61
|
* @type {string}
|
|
@@ -85,8 +73,6 @@ export function instanceOfReferralPoints(value: object): value is ReferralPoints
|
|
|
85
73
|
if (!('user_last_week_points' in value) || value['user_last_week_points'] === undefined) return false;
|
|
86
74
|
if (!('user_total_referral_reward_points' in value) || value['user_total_referral_reward_points'] === undefined) return false;
|
|
87
75
|
if (!('user_last_week_referral_reward_points' in value) || value['user_last_week_referral_reward_points'] === undefined) return false;
|
|
88
|
-
if (!('all_referral_count' in value) || value['all_referral_count'] === undefined) return false;
|
|
89
|
-
if (!('referral_with_account_count' in value) || value['referral_with_account_count'] === undefined) return false;
|
|
90
76
|
if (!('reward_point_multiplier' in value) || value['reward_point_multiplier'] === undefined) return false;
|
|
91
77
|
return true;
|
|
92
78
|
}
|
|
@@ -106,8 +92,6 @@ export function ReferralPointsFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
106
92
|
'user_last_week_points': json['user_last_week_points'],
|
|
107
93
|
'user_total_referral_reward_points': json['user_total_referral_reward_points'],
|
|
108
94
|
'user_last_week_referral_reward_points': json['user_last_week_referral_reward_points'],
|
|
109
|
-
'all_referral_count': json['all_referral_count'],
|
|
110
|
-
'referral_with_account_count': json['referral_with_account_count'],
|
|
111
95
|
'reward_point_multiplier': json['reward_point_multiplier'],
|
|
112
96
|
};
|
|
113
97
|
}
|
|
@@ -123,8 +107,6 @@ export function ReferralPointsToJSON(value?: ReferralPoints | null): any {
|
|
|
123
107
|
'user_last_week_points': value['user_last_week_points'],
|
|
124
108
|
'user_total_referral_reward_points': value['user_total_referral_reward_points'],
|
|
125
109
|
'user_last_week_referral_reward_points': value['user_last_week_referral_reward_points'],
|
|
126
|
-
'all_referral_count': value['all_referral_count'],
|
|
127
|
-
'referral_with_account_count': value['referral_with_account_count'],
|
|
128
110
|
'reward_point_multiplier': value['reward_point_multiplier'],
|
|
129
111
|
};
|
|
130
112
|
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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 RiskParameters
|
|
20
|
+
*/
|
|
21
|
+
export interface RiskParameters {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof RiskParameters
|
|
26
|
+
*/
|
|
27
|
+
market_id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RiskParameters
|
|
32
|
+
*/
|
|
33
|
+
collateral: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RiskParameters
|
|
38
|
+
*/
|
|
39
|
+
total_account_value: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof RiskParameters
|
|
44
|
+
*/
|
|
45
|
+
initial_margin_req: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof RiskParameters
|
|
50
|
+
*/
|
|
51
|
+
maintenance_margin_req: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof RiskParameters
|
|
56
|
+
*/
|
|
57
|
+
close_out_margin_req: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the RiskParameters interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfRiskParameters(value: object): value is RiskParameters {
|
|
64
|
+
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
65
|
+
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
66
|
+
if (!('total_account_value' in value) || value['total_account_value'] === undefined) return false;
|
|
67
|
+
if (!('initial_margin_req' in value) || value['initial_margin_req'] === undefined) return false;
|
|
68
|
+
if (!('maintenance_margin_req' in value) || value['maintenance_margin_req'] === undefined) return false;
|
|
69
|
+
if (!('close_out_margin_req' in value) || value['close_out_margin_req'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function RiskParametersFromJSON(json: any): RiskParameters {
|
|
74
|
+
return RiskParametersFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function RiskParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): RiskParameters {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'market_id': json['market_id'],
|
|
84
|
+
'collateral': json['collateral'],
|
|
85
|
+
'total_account_value': json['total_account_value'],
|
|
86
|
+
'initial_margin_req': json['initial_margin_req'],
|
|
87
|
+
'maintenance_margin_req': json['maintenance_margin_req'],
|
|
88
|
+
'close_out_margin_req': json['close_out_margin_req'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function RiskParametersToJSON(value?: RiskParameters | null): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'market_id': value['market_id'],
|
|
99
|
+
'collateral': value['collateral'],
|
|
100
|
+
'total_account_value': value['total_account_value'],
|
|
101
|
+
'initial_margin_req': value['initial_margin_req'],
|
|
102
|
+
'maintenance_margin_req': value['maintenance_margin_req'],
|
|
103
|
+
'close_out_margin_req': value['close_out_margin_req'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
package/openapi.json
CHANGED
|
@@ -5761,6 +5761,10 @@
|
|
|
5761
5761
|
"type": "integer",
|
|
5762
5762
|
"format": "int64",
|
|
5763
5763
|
"example": "200"
|
|
5764
|
+
},
|
|
5765
|
+
"reward_point_multiplier": {
|
|
5766
|
+
"type": "string",
|
|
5767
|
+
"example": "0.1"
|
|
5764
5768
|
}
|
|
5765
5769
|
},
|
|
5766
5770
|
"title": "ReferralPointEntry",
|
|
@@ -5769,7 +5773,8 @@
|
|
|
5769
5773
|
"total_points",
|
|
5770
5774
|
"week_points",
|
|
5771
5775
|
"total_reward_points",
|
|
5772
|
-
"week_reward_points"
|
|
5776
|
+
"week_reward_points",
|
|
5777
|
+
"reward_point_multiplier"
|
|
5773
5778
|
]
|
|
5774
5779
|
},
|
|
5775
5780
|
"ReferralPoints": {
|
|
@@ -5801,16 +5806,6 @@
|
|
|
5801
5806
|
"format": "int64",
|
|
5802
5807
|
"example": "1000"
|
|
5803
5808
|
},
|
|
5804
|
-
"all_referral_count": {
|
|
5805
|
-
"type": "integer",
|
|
5806
|
-
"format": "int32",
|
|
5807
|
-
"example": "100"
|
|
5808
|
-
},
|
|
5809
|
-
"referral_with_account_count": {
|
|
5810
|
-
"type": "integer",
|
|
5811
|
-
"format": "int32",
|
|
5812
|
-
"example": "100"
|
|
5813
|
-
},
|
|
5814
5809
|
"reward_point_multiplier": {
|
|
5815
5810
|
"type": "string",
|
|
5816
5811
|
"example": "0.1"
|
|
@@ -5823,8 +5818,6 @@
|
|
|
5823
5818
|
"user_last_week_points",
|
|
5824
5819
|
"user_total_referral_reward_points",
|
|
5825
5820
|
"user_last_week_referral_reward_points",
|
|
5826
|
-
"all_referral_count",
|
|
5827
|
-
"referral_with_account_count",
|
|
5828
5821
|
"reward_point_multiplier"
|
|
5829
5822
|
]
|
|
5830
5823
|
},
|