zklighter-perps 1.0.125 → 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
  /**
package/apis/OrderApi.ts CHANGED
@@ -577,7 +577,7 @@ export class OrderApi extends runtime.BaseAPI {
577
577
  * @export
578
578
  */
579
579
  export const ExportTypeEnum = {
580
- Order: 'order',
580
+ Funding: 'funding',
581
581
  Trade: 'trade'
582
582
  } as const;
583
583
  export type ExportTypeEnum = typeof ExportTypeEnum[keyof typeof ExportTypeEnum];
@@ -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
  }
@@ -50,7 +50,7 @@ export interface ReqExportData {
50
50
  * @export
51
51
  */
52
52
  export const ReqExportDataTypeEnum = {
53
- Order: 'order',
53
+ Funding: 'funding',
54
54
  Trade: 'trade'
55
55
  } as const;
56
56
  export type ReqExportDataTypeEnum = typeof ReqExportDataTypeEnum[keyof typeof ReqExportDataTypeEnum];
@@ -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
@@ -1098,10 +1098,9 @@
1098
1098
  "required": true,
1099
1099
  "type": "string",
1100
1100
  "enum": [
1101
- "order",
1101
+ "funding",
1102
1102
  "trade"
1103
- ],
1104
- "default": "trade"
1103
+ ]
1105
1104
  }
1106
1105
  ],
1107
1106
  "tags": [
@@ -1500,7 +1499,8 @@
1500
1499
  "type": "string",
1501
1500
  "enum": [
1502
1501
  "weekly",
1503
- "all"
1502
+ "all",
1503
+ "competition"
1504
1504
  ]
1505
1505
  },
1506
1506
  {
@@ -1509,6 +1509,12 @@
1509
1509
  "required": false,
1510
1510
  "type": "string"
1511
1511
  },
1512
+ {
1513
+ "name": "competition_id",
1514
+ "in": "query",
1515
+ "required": false,
1516
+ "type": "string"
1517
+ },
1512
1518
  {
1513
1519
  "name": "auth",
1514
1520
  "in": "query",
@@ -4419,17 +4425,11 @@
4419
4425
  "items": {
4420
4426
  "$ref": "#/definitions/LeaderboardEntry"
4421
4427
  }
4422
- },
4423
- "week_start": {
4424
- "type": "integer",
4425
- "format": "int64",
4426
- "example": "1730073600000"
4427
4428
  }
4428
4429
  },
4429
4430
  "title": "Leaderboard",
4430
4431
  "required": [
4431
- "entries",
4432
- "week_start"
4432
+ "entries"
4433
4433
  ]
4434
4434
  },
4435
4435
  "LeaderboardEntry": {
@@ -4451,6 +4451,10 @@
4451
4451
  "entryId": {
4452
4452
  "type": "integer",
4453
4453
  "format": "int32"
4454
+ },
4455
+ "metadata": {
4456
+ "type": "string",
4457
+ "example": "{}"
4454
4458
  }
4455
4459
  },
4456
4460
  "title": "LeaderboardEntry",
@@ -4458,7 +4462,8 @@
4458
4462
  "l1_address",
4459
4463
  "points",
4460
4464
  "entry",
4461
- "entryId"
4465
+ "entryId",
4466
+ "metadata"
4462
4467
  ]
4463
4468
  },
4464
4469
  "LiqTrade": {
@@ -5806,11 +5811,6 @@
5806
5811
  "format": "int32",
5807
5812
  "example": "100"
5808
5813
  },
5809
- "week_start": {
5810
- "type": "integer",
5811
- "format": "int64",
5812
- "example": "1730073600000"
5813
- },
5814
5814
  "reward_point_multiplier": {
5815
5815
  "type": "string",
5816
5816
  "example": "0.1"
@@ -5825,7 +5825,6 @@
5825
5825
  "user_last_week_referral_reward_points",
5826
5826
  "all_referral_count",
5827
5827
  "referral_with_account_count",
5828
- "week_start",
5829
5828
  "reward_point_multiplier"
5830
5829
  ]
5831
5830
  },
@@ -5939,10 +5938,9 @@
5939
5938
  "type": {
5940
5939
  "type": "string",
5941
5940
  "enum": [
5942
- "order",
5941
+ "funding",
5943
5942
  "trade"
5944
- ],
5945
- "default": "trade"
5943
+ ]
5946
5944
  }
5947
5945
  },
5948
5946
  "title": "ReqExportData",
@@ -6475,12 +6473,16 @@
6475
6473
  "type": "string",
6476
6474
  "enum": [
6477
6475
  "weekly",
6478
- "all"
6476
+ "all",
6477
+ "competition"
6479
6478
  ]
6480
6479
  },
6481
6480
  "l1_address": {
6482
6481
  "type": "string"
6483
6482
  },
6483
+ "competition_id": {
6484
+ "type": "string"
6485
+ },
6484
6486
  "auth": {
6485
6487
  "type": "string"
6486
6488
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.125",
3
+ "version": "1.0.127",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {