zklighter-perps 1.0.126 → 1.0.127

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.
@@ -103,6 +103,7 @@ export interface LeaderboardRequest {
103
103
  type: LeaderboardTypeEnum;
104
104
  authorization?: string;
105
105
  l1_address?: string;
106
+ competition_id?: string;
106
107
  auth?: string;
107
108
  }
108
109
 
@@ -535,6 +536,10 @@ export class AccountApi extends runtime.BaseAPI {
535
536
  queryParameters['l1_address'] = requestParameters['l1_address'];
536
537
  }
537
538
 
539
+ if (requestParameters['competition_id'] != null) {
540
+ queryParameters['competition_id'] = requestParameters['competition_id'];
541
+ }
542
+
538
543
  if (requestParameters['auth'] != null) {
539
544
  queryParameters['auth'] = requestParameters['auth'];
540
545
  }
@@ -895,7 +900,8 @@ export type AccountMetadataByEnum = typeof AccountMetadataByEnum[keyof typeof Ac
895
900
  */
896
901
  export const LeaderboardTypeEnum = {
897
902
  Weekly: 'weekly',
898
- All: 'all'
903
+ All: 'all',
904
+ Competition: 'competition'
899
905
  } as const;
900
906
  export type LeaderboardTypeEnum = typeof LeaderboardTypeEnum[keyof typeof LeaderboardTypeEnum];
901
907
  /**
@@ -32,12 +32,6 @@ export interface Leaderboard {
32
32
  * @memberof Leaderboard
33
33
  */
34
34
  entries: Array<LeaderboardEntry>;
35
- /**
36
- *
37
- * @type {number}
38
- * @memberof Leaderboard
39
- */
40
- week_start: number;
41
35
  }
42
36
 
43
37
  /**
@@ -45,7 +39,6 @@ export interface Leaderboard {
45
39
  */
46
40
  export function instanceOfLeaderboard(value: object): value is Leaderboard {
47
41
  if (!('entries' in value) || value['entries'] === undefined) return false;
48
- if (!('week_start' in value) || value['week_start'] === undefined) return false;
49
42
  return true;
50
43
  }
51
44
 
@@ -60,7 +53,6 @@ export function LeaderboardFromJSONTyped(json: any, ignoreDiscriminator: boolean
60
53
  return {
61
54
 
62
55
  'entries': ((json['entries'] as Array<any>).map(LeaderboardEntryFromJSON)),
63
- 'week_start': json['week_start'],
64
56
  };
65
57
  }
66
58
 
@@ -71,7 +63,6 @@ export function LeaderboardToJSON(value?: Leaderboard | null): any {
71
63
  return {
72
64
 
73
65
  'entries': ((value['entries'] as Array<any>).map(LeaderboardEntryToJSON)),
74
- 'week_start': value['week_start'],
75
66
  };
76
67
  }
77
68
 
@@ -43,6 +43,12 @@ export interface LeaderboardEntry {
43
43
  * @memberof LeaderboardEntry
44
44
  */
45
45
  entryId: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof LeaderboardEntry
50
+ */
51
+ metadata: string;
46
52
  }
47
53
 
48
54
  /**
@@ -53,6 +59,7 @@ export function instanceOfLeaderboardEntry(value: object): value is LeaderboardE
53
59
  if (!('points' in value) || value['points'] === undefined) return false;
54
60
  if (!('entry' in value) || value['entry'] === undefined) return false;
55
61
  if (!('entryId' in value) || value['entryId'] === undefined) return false;
62
+ if (!('metadata' in value) || value['metadata'] === undefined) return false;
56
63
  return true;
57
64
  }
58
65
 
@@ -70,6 +77,7 @@ export function LeaderboardEntryFromJSONTyped(json: any, ignoreDiscriminator: bo
70
77
  'points': json['points'],
71
78
  'entry': json['entry'],
72
79
  'entryId': json['entryId'],
80
+ 'metadata': json['metadata'],
73
81
  };
74
82
  }
75
83
 
@@ -83,6 +91,7 @@ export function LeaderboardEntryToJSON(value?: LeaderboardEntry | null): any {
83
91
  'points': value['points'],
84
92
  'entry': value['entry'],
85
93
  'entryId': value['entryId'],
94
+ 'metadata': value['metadata'],
86
95
  };
87
96
  }
88
97
 
@@ -68,12 +68,6 @@ export interface ReferralPoints {
68
68
  * @memberof ReferralPoints
69
69
  */
70
70
  referral_with_account_count: number;
71
- /**
72
- *
73
- * @type {number}
74
- * @memberof ReferralPoints
75
- */
76
- week_start: number;
77
71
  /**
78
72
  *
79
73
  * @type {string}
@@ -93,7 +87,6 @@ export function instanceOfReferralPoints(value: object): value is ReferralPoints
93
87
  if (!('user_last_week_referral_reward_points' in value) || value['user_last_week_referral_reward_points'] === undefined) return false;
94
88
  if (!('all_referral_count' in value) || value['all_referral_count'] === undefined) return false;
95
89
  if (!('referral_with_account_count' in value) || value['referral_with_account_count'] === undefined) return false;
96
- if (!('week_start' in value) || value['week_start'] === undefined) return false;
97
90
  if (!('reward_point_multiplier' in value) || value['reward_point_multiplier'] === undefined) return false;
98
91
  return true;
99
92
  }
@@ -115,7 +108,6 @@ export function ReferralPointsFromJSONTyped(json: any, ignoreDiscriminator: bool
115
108
  'user_last_week_referral_reward_points': json['user_last_week_referral_reward_points'],
116
109
  'all_referral_count': json['all_referral_count'],
117
110
  'referral_with_account_count': json['referral_with_account_count'],
118
- 'week_start': json['week_start'],
119
111
  'reward_point_multiplier': json['reward_point_multiplier'],
120
112
  };
121
113
  }
@@ -133,7 +125,6 @@ export function ReferralPointsToJSON(value?: ReferralPoints | null): any {
133
125
  'user_last_week_referral_reward_points': value['user_last_week_referral_reward_points'],
134
126
  'all_referral_count': value['all_referral_count'],
135
127
  'referral_with_account_count': value['referral_with_account_count'],
136
- 'week_start': value['week_start'],
137
128
  'reward_point_multiplier': value['reward_point_multiplier'],
138
129
  };
139
130
  }
@@ -31,6 +31,12 @@ export interface ReqGetLeaderboard {
31
31
  * @memberof ReqGetLeaderboard
32
32
  */
33
33
  l1_address?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ReqGetLeaderboard
38
+ */
39
+ competition_id?: string;
34
40
  /**
35
41
  *
36
42
  * @type {string}
@@ -45,7 +51,8 @@ export interface ReqGetLeaderboard {
45
51
  */
46
52
  export const ReqGetLeaderboardTypeEnum = {
47
53
  Weekly: 'weekly',
48
- All: 'all'
54
+ All: 'all',
55
+ Competition: 'competition'
49
56
  } as const;
50
57
  export type ReqGetLeaderboardTypeEnum = typeof ReqGetLeaderboardTypeEnum[keyof typeof ReqGetLeaderboardTypeEnum];
51
58
 
@@ -70,6 +77,7 @@ export function ReqGetLeaderboardFromJSONTyped(json: any, ignoreDiscriminator: b
70
77
 
71
78
  'type': json['type'],
72
79
  'l1_address': json['l1_address'] == null ? undefined : json['l1_address'],
80
+ 'competition_id': json['competition_id'] == null ? undefined : json['competition_id'],
73
81
  'auth': json['auth'] == null ? undefined : json['auth'],
74
82
  };
75
83
  }
@@ -82,6 +90,7 @@ export function ReqGetLeaderboardToJSON(value?: ReqGetLeaderboard | null): any {
82
90
 
83
91
  'type': value['type'],
84
92
  'l1_address': value['l1_address'],
93
+ 'competition_id': value['competition_id'],
85
94
  'auth': value['auth'],
86
95
  };
87
96
  }
package/openapi.json CHANGED
@@ -1499,7 +1499,8 @@
1499
1499
  "type": "string",
1500
1500
  "enum": [
1501
1501
  "weekly",
1502
- "all"
1502
+ "all",
1503
+ "competition"
1503
1504
  ]
1504
1505
  },
1505
1506
  {
@@ -1508,6 +1509,12 @@
1508
1509
  "required": false,
1509
1510
  "type": "string"
1510
1511
  },
1512
+ {
1513
+ "name": "competition_id",
1514
+ "in": "query",
1515
+ "required": false,
1516
+ "type": "string"
1517
+ },
1511
1518
  {
1512
1519
  "name": "auth",
1513
1520
  "in": "query",
@@ -4418,17 +4425,11 @@
4418
4425
  "items": {
4419
4426
  "$ref": "#/definitions/LeaderboardEntry"
4420
4427
  }
4421
- },
4422
- "week_start": {
4423
- "type": "integer",
4424
- "format": "int64",
4425
- "example": "1730073600000"
4426
4428
  }
4427
4429
  },
4428
4430
  "title": "Leaderboard",
4429
4431
  "required": [
4430
- "entries",
4431
- "week_start"
4432
+ "entries"
4432
4433
  ]
4433
4434
  },
4434
4435
  "LeaderboardEntry": {
@@ -4450,6 +4451,10 @@
4450
4451
  "entryId": {
4451
4452
  "type": "integer",
4452
4453
  "format": "int32"
4454
+ },
4455
+ "metadata": {
4456
+ "type": "string",
4457
+ "example": "{}"
4453
4458
  }
4454
4459
  },
4455
4460
  "title": "LeaderboardEntry",
@@ -4457,7 +4462,8 @@
4457
4462
  "l1_address",
4458
4463
  "points",
4459
4464
  "entry",
4460
- "entryId"
4465
+ "entryId",
4466
+ "metadata"
4461
4467
  ]
4462
4468
  },
4463
4469
  "LiqTrade": {
@@ -5805,11 +5811,6 @@
5805
5811
  "format": "int32",
5806
5812
  "example": "100"
5807
5813
  },
5808
- "week_start": {
5809
- "type": "integer",
5810
- "format": "int64",
5811
- "example": "1730073600000"
5812
- },
5813
5814
  "reward_point_multiplier": {
5814
5815
  "type": "string",
5815
5816
  "example": "0.1"
@@ -5824,7 +5825,6 @@
5824
5825
  "user_last_week_referral_reward_points",
5825
5826
  "all_referral_count",
5826
5827
  "referral_with_account_count",
5827
- "week_start",
5828
5828
  "reward_point_multiplier"
5829
5829
  ]
5830
5830
  },
@@ -6473,12 +6473,16 @@
6473
6473
  "type": "string",
6474
6474
  "enum": [
6475
6475
  "weekly",
6476
- "all"
6476
+ "all",
6477
+ "competition"
6477
6478
  ]
6478
6479
  },
6479
6480
  "l1_address": {
6480
6481
  "type": "string"
6481
6482
  },
6483
+ "competition_id": {
6484
+ "type": "string"
6485
+ },
6482
6486
  "auth": {
6483
6487
  "type": "string"
6484
6488
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.126",
3
+ "version": "1.0.127",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {