zklighter-perps 1.0.343 → 1.0.344
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/AccountMetadata.ts +2 -3
- package/models/DetailedAccount.ts +2 -3
- package/models/GuildDuelMemberScore.ts +2 -3
- package/models/GuildDuelRosterMember.ts +2 -3
- package/models/GuildDuelSide.ts +2 -3
- package/models/GuildInviteCode.ts +2 -3
- package/models/GuildJoinRequest.ts +2 -3
- package/models/GuildMember.ts +2 -3
- package/models/PublicProfile.ts +8 -12
- package/openapi.json +8 -20
- package/package.json +1 -1
|
@@ -103,7 +103,7 @@ export interface AccountMetadata {
|
|
|
103
103
|
* @type {PublicProfile}
|
|
104
104
|
* @memberof AccountMetadata
|
|
105
105
|
*/
|
|
106
|
-
profile
|
|
106
|
+
profile?: PublicProfile;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/**
|
|
@@ -121,7 +121,6 @@ export function instanceOfAccountMetadata(value: object): value is AccountMetada
|
|
|
121
121
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
122
122
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
123
123
|
if (!('instance' in value) || value['instance'] === undefined) return false;
|
|
124
|
-
if (!('profile' in value) || value['profile'] === undefined) return false;
|
|
125
124
|
return true;
|
|
126
125
|
}
|
|
127
126
|
|
|
@@ -146,7 +145,7 @@ export function AccountMetadataFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
146
145
|
'created_at': json['created_at'],
|
|
147
146
|
'metadata': SubAccountMetadataFromJSON(json['metadata']),
|
|
148
147
|
'instance': json['instance'],
|
|
149
|
-
'profile': PublicProfileFromJSON(json['profile']),
|
|
148
|
+
'profile': json['profile'] == null ? undefined : PublicProfileFromJSON(json['profile']),
|
|
150
149
|
};
|
|
151
150
|
}
|
|
152
151
|
|
|
@@ -229,7 +229,7 @@ export interface DetailedAccount {
|
|
|
229
229
|
* @type {PublicProfile}
|
|
230
230
|
* @memberof DetailedAccount
|
|
231
231
|
*/
|
|
232
|
-
profile
|
|
232
|
+
profile?: PublicProfile;
|
|
233
233
|
/**
|
|
234
234
|
*
|
|
235
235
|
* @type {Array<AccountPosition>}
|
|
@@ -349,7 +349,6 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
|
|
|
349
349
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
350
350
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
351
351
|
if (!('instance' in value) || value['instance'] === undefined) return false;
|
|
352
|
-
if (!('profile' in value) || value['profile'] === undefined) return false;
|
|
353
352
|
if (!('positions' in value) || value['positions'] === undefined) return false;
|
|
354
353
|
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
355
354
|
if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
|
|
@@ -396,7 +395,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
396
395
|
'created_at': json['created_at'],
|
|
397
396
|
'metadata': SubAccountMetadataFromJSON(json['metadata']),
|
|
398
397
|
'instance': json['instance'],
|
|
399
|
-
'profile': PublicProfileFromJSON(json['profile']),
|
|
398
|
+
'profile': json['profile'] == null ? undefined : PublicProfileFromJSON(json['profile']),
|
|
400
399
|
'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
|
|
401
400
|
'bo_positions': json['bo_positions'] == null ? undefined : ((json['bo_positions'] as Array<any>).map(AccountBinaryOptionsPositionFromJSON)),
|
|
402
401
|
'assets': ((json['assets'] as Array<any>).map(AccountAssetFromJSON)),
|
|
@@ -67,7 +67,7 @@ export interface GuildDuelMemberScore {
|
|
|
67
67
|
* @type {PublicProfile}
|
|
68
68
|
* @memberof GuildDuelMemberScore
|
|
69
69
|
*/
|
|
70
|
-
profile
|
|
70
|
+
profile?: PublicProfile;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
@@ -80,7 +80,6 @@ export function instanceOfGuildDuelMemberScore(value: object): value is GuildDue
|
|
|
80
80
|
if (!('capital' in value) || value['capital'] === undefined) return false;
|
|
81
81
|
if (!('roi' in value) || value['roi'] === undefined) return false;
|
|
82
82
|
if (!('volume' in value) || value['volume'] === undefined) return false;
|
|
83
|
-
if (!('profile' in value) || value['profile'] === undefined) return false;
|
|
84
83
|
return true;
|
|
85
84
|
}
|
|
86
85
|
|
|
@@ -100,7 +99,7 @@ export function GuildDuelMemberScoreFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
100
99
|
'capital': json['capital'],
|
|
101
100
|
'roi': json['roi'],
|
|
102
101
|
'volume': json['volume'],
|
|
103
|
-
'profile': PublicProfileFromJSON(json['profile']),
|
|
102
|
+
'profile': json['profile'] == null ? undefined : PublicProfileFromJSON(json['profile']),
|
|
104
103
|
};
|
|
105
104
|
}
|
|
106
105
|
|
|
@@ -49,7 +49,7 @@ export interface GuildDuelRosterMember {
|
|
|
49
49
|
* @type {PublicProfile}
|
|
50
50
|
* @memberof GuildDuelRosterMember
|
|
51
51
|
*/
|
|
52
|
-
profile
|
|
52
|
+
profile?: PublicProfile;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
@@ -59,7 +59,6 @@ export function instanceOfGuildDuelRosterMember(value: object): value is GuildDu
|
|
|
59
59
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
60
60
|
if (!('guild_id' in value) || value['guild_id'] === undefined) return false;
|
|
61
61
|
if (!('selected_by_l1' in value) || value['selected_by_l1'] === undefined) return false;
|
|
62
|
-
if (!('profile' in value) || value['profile'] === undefined) return false;
|
|
63
62
|
return true;
|
|
64
63
|
}
|
|
65
64
|
|
|
@@ -76,7 +75,7 @@ export function GuildDuelRosterMemberFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
76
75
|
'l1_address': json['l1_address'],
|
|
77
76
|
'guild_id': json['guild_id'],
|
|
78
77
|
'selected_by_l1': json['selected_by_l1'],
|
|
79
|
-
'profile': PublicProfileFromJSON(json['profile']),
|
|
78
|
+
'profile': json['profile'] == null ? undefined : PublicProfileFromJSON(json['profile']),
|
|
80
79
|
};
|
|
81
80
|
}
|
|
82
81
|
|
package/models/GuildDuelSide.ts
CHANGED
|
@@ -73,7 +73,7 @@ export interface GuildDuelSide {
|
|
|
73
73
|
* @type {PublicProfile}
|
|
74
74
|
* @memberof GuildDuelSide
|
|
75
75
|
*/
|
|
76
|
-
leader_profile
|
|
76
|
+
leader_profile?: PublicProfile;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
@@ -87,7 +87,6 @@ export function instanceOfGuildDuelSide(value: object): value is GuildDuelSide {
|
|
|
87
87
|
if (!('roster_locked_at' in value) || value['roster_locked_at'] === undefined) return false;
|
|
88
88
|
if (!('stake_status' in value) || value['stake_status'] === undefined) return false;
|
|
89
89
|
if (!('stake_tx_hash' in value) || value['stake_tx_hash'] === undefined) return false;
|
|
90
|
-
if (!('leader_profile' in value) || value['leader_profile'] === undefined) return false;
|
|
91
90
|
return true;
|
|
92
91
|
}
|
|
93
92
|
|
|
@@ -108,7 +107,7 @@ export function GuildDuelSideFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
108
107
|
'roster_locked_at': json['roster_locked_at'],
|
|
109
108
|
'stake_status': json['stake_status'],
|
|
110
109
|
'stake_tx_hash': json['stake_tx_hash'],
|
|
111
|
-
'leader_profile': PublicProfileFromJSON(json['leader_profile']),
|
|
110
|
+
'leader_profile': json['leader_profile'] == null ? undefined : PublicProfileFromJSON(json['leader_profile']),
|
|
112
111
|
};
|
|
113
112
|
}
|
|
114
113
|
|
|
@@ -91,7 +91,7 @@ export interface GuildInviteCode {
|
|
|
91
91
|
* @type {PublicProfile}
|
|
92
92
|
* @memberof GuildInviteCode
|
|
93
93
|
*/
|
|
94
|
-
bound_profile
|
|
94
|
+
bound_profile?: PublicProfile;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
@@ -105,7 +105,6 @@ export function instanceOfGuildInviteCode(value: object): value is GuildInviteCo
|
|
|
105
105
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
106
106
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
107
107
|
if (!('expires_at' in value) || value['expires_at'] === undefined) return false;
|
|
108
|
-
if (!('bound_profile' in value) || value['bound_profile'] === undefined) return false;
|
|
109
108
|
return true;
|
|
110
109
|
}
|
|
111
110
|
|
|
@@ -129,7 +128,7 @@ export function GuildInviteCodeFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
129
128
|
'expires_at': json['expires_at'],
|
|
130
129
|
'resolved_at': json['resolved_at'] == null ? undefined : json['resolved_at'],
|
|
131
130
|
'redeemed_by_l1': json['redeemed_by_l1'] == null ? undefined : json['redeemed_by_l1'],
|
|
132
|
-
'bound_profile': PublicProfileFromJSON(json['bound_profile']),
|
|
131
|
+
'bound_profile': json['bound_profile'] == null ? undefined : PublicProfileFromJSON(json['bound_profile']),
|
|
133
132
|
};
|
|
134
133
|
}
|
|
135
134
|
|
|
@@ -79,7 +79,7 @@ export interface GuildJoinRequest {
|
|
|
79
79
|
* @type {PublicProfile}
|
|
80
80
|
* @memberof GuildJoinRequest
|
|
81
81
|
*/
|
|
82
|
-
profile
|
|
82
|
+
profile?: PublicProfile;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/**
|
|
@@ -94,7 +94,6 @@ export function instanceOfGuildJoinRequest(value: object): value is GuildJoinReq
|
|
|
94
94
|
if (!('source' in value) || value['source'] === undefined) return false;
|
|
95
95
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
96
96
|
if (!('expires_at' in value) || value['expires_at'] === undefined) return false;
|
|
97
|
-
if (!('profile' in value) || value['profile'] === undefined) return false;
|
|
98
97
|
return true;
|
|
99
98
|
}
|
|
100
99
|
|
|
@@ -116,7 +115,7 @@ export function GuildJoinRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
116
115
|
'source': json['source'],
|
|
117
116
|
'created_at': json['created_at'],
|
|
118
117
|
'expires_at': json['expires_at'],
|
|
119
|
-
'profile': PublicProfileFromJSON(json['profile']),
|
|
118
|
+
'profile': json['profile'] == null ? undefined : PublicProfileFromJSON(json['profile']),
|
|
120
119
|
};
|
|
121
120
|
}
|
|
122
121
|
|
package/models/GuildMember.ts
CHANGED
|
@@ -55,7 +55,7 @@ export interface GuildMember {
|
|
|
55
55
|
* @type {PublicProfile}
|
|
56
56
|
* @memberof GuildMember
|
|
57
57
|
*/
|
|
58
|
-
profile
|
|
58
|
+
profile?: PublicProfile;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -66,7 +66,6 @@ export function instanceOfGuildMember(value: object): value is GuildMember {
|
|
|
66
66
|
if (!('role' in value) || value['role'] === undefined) return false;
|
|
67
67
|
if (!('joined_at' in value) || value['joined_at'] === undefined) return false;
|
|
68
68
|
if (!('duel_opt_in' in value) || value['duel_opt_in'] === undefined) return false;
|
|
69
|
-
if (!('profile' in value) || value['profile'] === undefined) return false;
|
|
70
69
|
return true;
|
|
71
70
|
}
|
|
72
71
|
|
|
@@ -84,7 +83,7 @@ export function GuildMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
84
83
|
'role': json['role'],
|
|
85
84
|
'joined_at': json['joined_at'],
|
|
86
85
|
'duel_opt_in': json['duel_opt_in'],
|
|
87
|
-
'profile': PublicProfileFromJSON(json['profile']),
|
|
86
|
+
'profile': json['profile'] == null ? undefined : PublicProfileFromJSON(json['profile']),
|
|
88
87
|
};
|
|
89
88
|
}
|
|
90
89
|
|
package/models/PublicProfile.ts
CHANGED
|
@@ -30,25 +30,25 @@ export interface PublicProfile {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof PublicProfile
|
|
32
32
|
*/
|
|
33
|
-
username
|
|
33
|
+
username?: string;
|
|
34
34
|
/**
|
|
35
35
|
* ens is resolved by the client from l1_address on chain 1
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof PublicProfile
|
|
38
38
|
*/
|
|
39
|
-
display_name_source
|
|
39
|
+
display_name_source?: PublicProfileDisplayNameSourceEnum;
|
|
40
40
|
/**
|
|
41
41
|
* verified through X OAuth; link by id, the handle can change hands after a rename
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof PublicProfile
|
|
44
44
|
*/
|
|
45
|
-
x_user_id
|
|
45
|
+
x_user_id?: string;
|
|
46
46
|
/**
|
|
47
47
|
* as of connecting
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof PublicProfile
|
|
50
50
|
*/
|
|
51
|
-
x_handle
|
|
51
|
+
x_handle?: string;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
|
|
@@ -69,10 +69,6 @@ export type PublicProfileDisplayNameSourceEnum = typeof PublicProfileDisplayName
|
|
|
69
69
|
*/
|
|
70
70
|
export function instanceOfPublicProfile(value: object): value is PublicProfile {
|
|
71
71
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
72
|
-
if (!('username' in value) || value['username'] === undefined) return false;
|
|
73
|
-
if (!('display_name_source' in value) || value['display_name_source'] === undefined) return false;
|
|
74
|
-
if (!('x_user_id' in value) || value['x_user_id'] === undefined) return false;
|
|
75
|
-
if (!('x_handle' in value) || value['x_handle'] === undefined) return false;
|
|
76
72
|
return true;
|
|
77
73
|
}
|
|
78
74
|
|
|
@@ -87,10 +83,10 @@ export function PublicProfileFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
87
83
|
return {
|
|
88
84
|
|
|
89
85
|
'l1_address': json['l1_address'],
|
|
90
|
-
'username': json['username'],
|
|
91
|
-
'display_name_source': json['display_name_source'],
|
|
92
|
-
'x_user_id': json['x_user_id'],
|
|
93
|
-
'x_handle': json['x_handle'],
|
|
86
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
87
|
+
'display_name_source': json['display_name_source'] == null ? undefined : json['display_name_source'],
|
|
88
|
+
'x_user_id': json['x_user_id'] == null ? undefined : json['x_user_id'],
|
|
89
|
+
'x_handle': json['x_handle'] == null ? undefined : json['x_handle'],
|
|
94
90
|
};
|
|
95
91
|
}
|
|
96
92
|
|
package/openapi.json
CHANGED
|
@@ -8672,8 +8672,7 @@
|
|
|
8672
8672
|
"agent_enabled",
|
|
8673
8673
|
"created_at",
|
|
8674
8674
|
"metadata",
|
|
8675
|
-
"instance"
|
|
8676
|
-
"profile"
|
|
8675
|
+
"instance"
|
|
8677
8676
|
]
|
|
8678
8677
|
},
|
|
8679
8678
|
"AccountMetadatas": {
|
|
@@ -10841,7 +10840,6 @@
|
|
|
10841
10840
|
"created_at",
|
|
10842
10841
|
"metadata",
|
|
10843
10842
|
"instance",
|
|
10844
|
-
"profile",
|
|
10845
10843
|
"positions",
|
|
10846
10844
|
"assets",
|
|
10847
10845
|
"total_asset_value",
|
|
@@ -12034,8 +12032,7 @@
|
|
|
12034
12032
|
"pnl",
|
|
12035
12033
|
"capital",
|
|
12036
12034
|
"roi",
|
|
12037
|
-
"volume"
|
|
12038
|
-
"profile"
|
|
12035
|
+
"volume"
|
|
12039
12036
|
]
|
|
12040
12037
|
},
|
|
12041
12038
|
"GuildDuelOffer": {
|
|
@@ -12235,8 +12232,7 @@
|
|
|
12235
12232
|
"required": [
|
|
12236
12233
|
"l1_address",
|
|
12237
12234
|
"guild_id",
|
|
12238
|
-
"selected_by_l1"
|
|
12239
|
-
"profile"
|
|
12235
|
+
"selected_by_l1"
|
|
12240
12236
|
]
|
|
12241
12237
|
},
|
|
12242
12238
|
"GuildDuelScore": {
|
|
@@ -12304,8 +12300,7 @@
|
|
|
12304
12300
|
"roster_size",
|
|
12305
12301
|
"roster_locked_at",
|
|
12306
12302
|
"stake_status",
|
|
12307
|
-
"stake_tx_hash"
|
|
12308
|
-
"leader_profile"
|
|
12303
|
+
"stake_tx_hash"
|
|
12309
12304
|
]
|
|
12310
12305
|
},
|
|
12311
12306
|
"GuildDuelStakeInfo": {
|
|
@@ -12429,8 +12424,7 @@
|
|
|
12429
12424
|
"created_by_l1",
|
|
12430
12425
|
"status",
|
|
12431
12426
|
"created_at",
|
|
12432
|
-
"expires_at"
|
|
12433
|
-
"bound_profile"
|
|
12427
|
+
"expires_at"
|
|
12434
12428
|
]
|
|
12435
12429
|
},
|
|
12436
12430
|
"GuildJoinRequest": {
|
|
@@ -12477,8 +12471,7 @@
|
|
|
12477
12471
|
"status",
|
|
12478
12472
|
"source",
|
|
12479
12473
|
"created_at",
|
|
12480
|
-
"expires_at"
|
|
12481
|
-
"profile"
|
|
12474
|
+
"expires_at"
|
|
12482
12475
|
]
|
|
12483
12476
|
},
|
|
12484
12477
|
"GuildLeaderboardEntry": {
|
|
@@ -12590,8 +12583,7 @@
|
|
|
12590
12583
|
"l1_address",
|
|
12591
12584
|
"role",
|
|
12592
12585
|
"joined_at",
|
|
12593
|
-
"duel_opt_in"
|
|
12594
|
-
"profile"
|
|
12586
|
+
"duel_opt_in"
|
|
12595
12587
|
]
|
|
12596
12588
|
},
|
|
12597
12589
|
"GuildPnlStats": {
|
|
@@ -15943,11 +15935,7 @@
|
|
|
15943
15935
|
},
|
|
15944
15936
|
"title": "PublicProfile",
|
|
15945
15937
|
"required": [
|
|
15946
|
-
"l1_address"
|
|
15947
|
-
"username",
|
|
15948
|
-
"display_name_source",
|
|
15949
|
-
"x_user_id",
|
|
15950
|
-
"x_handle"
|
|
15938
|
+
"l1_address"
|
|
15951
15939
|
]
|
|
15952
15940
|
},
|
|
15953
15941
|
"PushNotifDeliveryResult": {
|