@merkl/api 0.10.115 → 0.10.117

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. package/dist/database/api/.generated/default.d.ts +1 -1
  2. package/dist/database/api/.generated/edge.d.ts +1 -1
  3. package/dist/database/api/.generated/index.d.ts +335 -311
  4. package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  5. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  6. package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  7. package/dist/database/api/.generated/package.json +15 -2
  8. package/dist/database/api/.generated/runtime/library.d.ts +195 -79
  9. package/dist/database/api/.generated/schema.prisma +1 -1
  10. package/dist/database/api/.generated/wasm.d.ts +1 -1
  11. package/dist/database/engine/.generated/default.d.ts +1 -1
  12. package/dist/database/engine/.generated/edge.d.ts +1 -1
  13. package/dist/database/engine/.generated/index.d.ts +16 -104
  14. package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  15. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  16. package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  17. package/dist/database/engine/.generated/package.json +14 -1
  18. package/dist/database/engine/.generated/runtime/library.d.ts +195 -79
  19. package/dist/database/engine/.generated/wasm.d.ts +1 -1
  20. package/dist/src/eden/index.d.ts +543 -426
  21. package/dist/src/index.d.ts +188 -141
  22. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +1 -1
  23. package/dist/src/modules/v4/accounting/accounting.repository.d.ts +8 -8
  24. package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
  25. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +5 -3
  26. package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
  27. package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +5 -3
  28. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +14 -14
  29. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +27 -27
  30. package/dist/src/modules/v4/campaign/campaign.service.d.ts +28 -28
  31. package/dist/src/modules/v4/chain/chain.controller.d.ts +5 -5
  32. package/dist/src/modules/v4/chain/chain.repository.d.ts +6 -6
  33. package/dist/src/modules/v4/chain/chain.service.d.ts +5 -5
  34. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +4 -2
  35. package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +2 -2
  36. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +2 -1
  37. package/dist/src/modules/v4/explorer/explorer.repository.d.ts +2 -2
  38. package/dist/src/modules/v4/explorer/explorer.service.d.ts +2 -2
  39. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +22 -3
  40. package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +4 -4
  41. package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +4 -4
  42. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +36 -36
  43. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +94 -94
  44. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +57 -57
  45. package/dist/src/modules/v4/price/price.controller.d.ts +8 -8
  46. package/dist/src/modules/v4/price/price.repository.d.ts +10 -10
  47. package/dist/src/modules/v4/price/price.service.d.ts +8 -8
  48. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +12 -12
  49. package/dist/src/modules/v4/reward/reward.controller.d.ts +32 -8
  50. package/dist/src/modules/v4/reward/reward.model.d.ts +9 -9
  51. package/dist/src/modules/v4/reward/reward.repository.d.ts +42 -39
  52. package/dist/src/modules/v4/reward/reward.service.d.ts +134 -131
  53. package/dist/src/modules/v4/router.d.ts +188 -141
  54. package/dist/src/modules/v4/status/status.controller.d.ts +17 -17
  55. package/dist/src/modules/v4/status/status.repository.d.ts +32 -32
  56. package/dist/src/modules/v4/status/status.service.d.ts +20 -20
  57. package/dist/src/modules/v4/user/user.controller.d.ts +44 -44
  58. package/dist/src/modules/v4/user/user.repository.d.ts +3 -3
  59. package/dist/src/modules/v4/user/user.service.d.ts +3 -3
  60. package/dist/src/routes/v3/ERC20Campaigns.d.ts +188 -141
  61. package/dist/src/routes/v3/blacklist.d.ts +188 -141
  62. package/dist/src/routes/v3/campaigns.d.ts +188 -141
  63. package/dist/src/routes/v3/campaignsInfo.d.ts +188 -141
  64. package/dist/src/routes/v3/multiChainPositions.d.ts +188 -141
  65. package/dist/src/routes/v3/opportunity.d.ts +188 -141
  66. package/dist/src/routes/v3/positions.d.ts +188 -141
  67. package/dist/src/routes/v3/rewards.d.ts +188 -141
  68. package/dist/src/routes/v3/rootForTimestamp.d.ts +2 -2
  69. package/dist/src/routes/v3/updates.d.ts +188 -141
  70. package/dist/src/routes/v3/userRewards.d.ts +188 -141
  71. package/dist/src/utils/bigintToString.d.ts +1 -1
  72. package/dist/tsconfig.package.tsbuildinfo +1 -1
  73. package/package.json +3 -3
  74. package/dist/src/libs/campaigns/getRewards.d.ts +0 -29
@@ -19,27 +19,27 @@ export declare abstract class OpportunityService {
19
19
  static getMetadata(campaign: CreateCampaignModel): Promise<OpportunityMetadata>;
20
20
  static updateMetadata(chain: ChainId): Promise<void>;
21
21
  static updateStatus(opportunityId: string, newStatus: Status): Promise<{
22
- id: string;
23
- chainId: number;
24
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
25
- identifier: string;
26
22
  name: string;
23
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
24
+ id: string;
27
25
  status: import("../../../../database/api/.generated").$Enums.Status;
26
+ tags: string[];
27
+ identifier: string;
28
+ chainId: number;
28
29
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
29
30
  mainProtocolId: string | null;
30
31
  tvl: number;
31
32
  apr: number;
32
33
  dailyRewards: number;
33
- tags: string[];
34
34
  }>;
35
35
  static getUniqueWithCampaignsOrThrow(opportunityId: string | OpportunityUnique): Promise<({
36
36
  aprRecord: {
37
37
  cumulated: number;
38
38
  timestamp: bigint;
39
39
  breakdowns: {
40
+ type: import("../../../../database/api/.generated").$Enums.AprType;
40
41
  id: number;
41
42
  identifier: string;
42
- type: import("../../../../database/api/.generated").$Enums.AprType;
43
43
  value: number;
44
44
  aprRecordId: string;
45
45
  }[];
@@ -49,9 +49,9 @@ export declare abstract class OpportunityService {
49
49
  total: number;
50
50
  timestamp: bigint;
51
51
  breakdowns: {
52
+ type: import("../../../../database/api/.generated").$Enums.TvlType;
52
53
  id: number;
53
54
  identifier: string;
54
- type: import("../../../../database/api/.generated").$Enums.TvlType;
55
55
  value: number;
56
56
  tvlRecordId: string;
57
57
  }[];
@@ -69,27 +69,27 @@ export declare abstract class OpportunityService {
69
69
  };
70
70
  id: string;
71
71
  tokens: {
72
- id: string;
72
+ symbol: string;
73
73
  name: string | null;
74
+ id: string;
74
75
  chainId: number;
75
76
  address: string;
76
- decimals: number;
77
- symbol: string;
78
77
  icon: string;
78
+ decimals: number;
79
79
  verified: boolean;
80
80
  price: number | null;
81
81
  }[];
82
82
  chain: {
83
- id: number;
84
83
  name: string;
84
+ id: number;
85
85
  icon: string;
86
86
  };
87
87
  protocol: {
88
- id: string;
89
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
90
88
  name: string;
91
- description: string;
92
89
  url: string;
90
+ description: string;
91
+ id: string;
92
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
93
93
  icon: string;
94
94
  } | undefined;
95
95
  name: string;
@@ -106,37 +106,37 @@ export declare abstract class OpportunityService {
106
106
  campaigns: ({
107
107
  params: any;
108
108
  chain: {
109
- id: number;
110
109
  name: string;
110
+ id: number;
111
111
  icon: string;
112
112
  };
113
113
  rewardToken: {
114
- id: string;
114
+ symbol: string;
115
115
  name: string | null;
116
+ id: string;
116
117
  chainId: number;
117
118
  address: string;
118
- decimals: number;
119
- symbol: string;
120
119
  icon: string;
120
+ decimals: number;
121
121
  verified: boolean;
122
122
  price: number | null;
123
123
  };
124
124
  distributionChain: {
125
- id: number;
126
125
  name: string;
126
+ id: number;
127
127
  icon: string;
128
128
  } | undefined;
129
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
129
130
  id: string;
131
+ subType: number | null;
132
+ startTimestamp: bigint;
133
+ endTimestamp: bigint;
130
134
  computeChainId: number;
131
135
  distributionChainId: number;
132
136
  campaignId: string;
133
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
134
- subType: number | null;
135
137
  rewardTokenId: string;
136
138
  amount: string;
137
139
  opportunityId: string;
138
- startTimestamp: bigint;
139
- endTimestamp: bigint;
140
140
  creatorAddress: string;
141
141
  } | null)[];
142
142
  }) | null>;
@@ -145,9 +145,9 @@ export declare abstract class OpportunityService {
145
145
  cumulated: number;
146
146
  timestamp: bigint;
147
147
  breakdowns: {
148
+ type: import("../../../../database/api/.generated").$Enums.AprType;
148
149
  id: number;
149
150
  identifier: string;
150
- type: import("../../../../database/api/.generated").$Enums.AprType;
151
151
  value: number;
152
152
  aprRecordId: string;
153
153
  }[];
@@ -157,9 +157,9 @@ export declare abstract class OpportunityService {
157
157
  total: number;
158
158
  timestamp: bigint;
159
159
  breakdowns: {
160
+ type: import("../../../../database/api/.generated").$Enums.TvlType;
160
161
  id: number;
161
162
  identifier: string;
162
- type: import("../../../../database/api/.generated").$Enums.TvlType;
163
163
  value: number;
164
164
  tvlRecordId: string;
165
165
  }[];
@@ -177,27 +177,27 @@ export declare abstract class OpportunityService {
177
177
  };
178
178
  id: string;
179
179
  tokens: {
180
- id: string;
180
+ symbol: string;
181
181
  name: string | null;
182
+ id: string;
182
183
  chainId: number;
183
184
  address: string;
184
- decimals: number;
185
- symbol: string;
186
185
  icon: string;
186
+ decimals: number;
187
187
  verified: boolean;
188
188
  price: number | null;
189
189
  }[];
190
190
  chain: {
191
- id: number;
192
191
  name: string;
192
+ id: number;
193
193
  icon: string;
194
194
  };
195
195
  protocol: {
196
- id: string;
197
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
198
196
  name: string;
199
- description: string;
200
197
  url: string;
198
+ description: string;
199
+ id: string;
200
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
201
201
  icon: string;
202
202
  } | undefined;
203
203
  name: string;
@@ -221,9 +221,9 @@ export declare abstract class OpportunityService {
221
221
  cumulated: number;
222
222
  timestamp: bigint;
223
223
  breakdowns: {
224
+ type: import("../../../../database/api/.generated").$Enums.AprType;
224
225
  id: number;
225
226
  identifier: string;
226
- type: import("../../../../database/api/.generated").$Enums.AprType;
227
227
  value: number;
228
228
  aprRecordId: string;
229
229
  }[];
@@ -233,9 +233,9 @@ export declare abstract class OpportunityService {
233
233
  total: number;
234
234
  timestamp: bigint;
235
235
  breakdowns: {
236
+ type: import("../../../../database/api/.generated").$Enums.TvlType;
236
237
  id: number;
237
238
  identifier: string;
238
- type: import("../../../../database/api/.generated").$Enums.TvlType;
239
239
  value: number;
240
240
  tvlRecordId: string;
241
241
  }[];
@@ -253,27 +253,27 @@ export declare abstract class OpportunityService {
253
253
  };
254
254
  id: string;
255
255
  tokens: {
256
- id: string;
256
+ symbol: string;
257
257
  name: string | null;
258
+ id: string;
258
259
  chainId: number;
259
260
  address: string;
260
- decimals: number;
261
- symbol: string;
262
261
  icon: string;
262
+ decimals: number;
263
263
  verified: boolean;
264
264
  price: number | null;
265
265
  }[];
266
266
  chain: {
267
- id: number;
268
267
  name: string;
268
+ id: number;
269
269
  icon: string;
270
270
  };
271
271
  protocol: {
272
- id: string;
273
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
274
272
  name: string;
275
- description: string;
276
273
  url: string;
274
+ description: string;
275
+ id: string;
276
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
277
277
  icon: string;
278
278
  } | undefined;
279
279
  name: string;
@@ -302,9 +302,9 @@ export declare abstract class OpportunityService {
302
302
  cumulated: number;
303
303
  timestamp: bigint;
304
304
  breakdowns: {
305
+ type: import("../../../../database/api/.generated").$Enums.AprType;
305
306
  id: number;
306
307
  identifier: string;
307
- type: import("../../../../database/api/.generated").$Enums.AprType;
308
308
  value: number;
309
309
  aprRecordId: string;
310
310
  }[];
@@ -314,9 +314,9 @@ export declare abstract class OpportunityService {
314
314
  total: number;
315
315
  timestamp: bigint;
316
316
  breakdowns: {
317
+ type: import("../../../../database/api/.generated").$Enums.TvlType;
317
318
  id: number;
318
319
  identifier: string;
319
- type: import("../../../../database/api/.generated").$Enums.TvlType;
320
320
  value: number;
321
321
  tvlRecordId: string;
322
322
  }[];
@@ -334,27 +334,27 @@ export declare abstract class OpportunityService {
334
334
  };
335
335
  id: string;
336
336
  tokens: {
337
- id: string;
337
+ symbol: string;
338
338
  name: string | null;
339
+ id: string;
339
340
  chainId: number;
340
341
  address: string;
341
- decimals: number;
342
- symbol: string;
343
342
  icon: string;
343
+ decimals: number;
344
344
  verified: boolean;
345
345
  price: number | null;
346
346
  }[];
347
347
  chain: {
348
- id: number;
349
348
  name: string;
349
+ id: number;
350
350
  icon: string;
351
351
  };
352
352
  protocol: {
353
- id: string;
354
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
355
353
  name: string;
356
- description: string;
357
354
  url: string;
355
+ description: string;
356
+ id: string;
357
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
358
358
  icon: string;
359
359
  } | undefined;
360
360
  name: string;
@@ -371,27 +371,27 @@ export declare abstract class OpportunityService {
371
371
  static formatResponseBase(opportunity: LightOpportunityFromDB): {
372
372
  id: string;
373
373
  tokens: {
374
- id: string;
374
+ symbol: string;
375
375
  name: string | null;
376
+ id: string;
376
377
  chainId: number;
377
378
  address: string;
378
- decimals: number;
379
- symbol: string;
380
379
  icon: string;
380
+ decimals: number;
381
381
  verified: boolean;
382
382
  price: number | null;
383
383
  }[];
384
384
  chain: {
385
- id: number;
386
385
  name: string;
386
+ id: number;
387
387
  icon: string;
388
388
  };
389
389
  protocol: {
390
- id: string;
391
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
392
390
  name: string;
393
- description: string;
394
391
  url: string;
392
+ description: string;
393
+ id: string;
394
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
395
395
  icon: string;
396
396
  } | undefined;
397
397
  name: string;
@@ -66,10 +66,10 @@ export declare const PriceController: Elysia<"/prices", false, {
66
66
  headers: unknown;
67
67
  response: {
68
68
  200: {
69
- id: number;
70
69
  symbol: string;
71
70
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
72
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
71
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
72
+ id: number;
73
73
  }[];
74
74
  };
75
75
  };
@@ -88,10 +88,10 @@ export declare const PriceController: Elysia<"/prices", false, {
88
88
  headers: unknown;
89
89
  response: {
90
90
  200: {
91
- id: number;
92
91
  symbol: string;
93
92
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
94
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
93
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
94
+ id: number;
95
95
  };
96
96
  };
97
97
  };
@@ -137,10 +137,10 @@ export declare const PriceController: Elysia<"/prices", false, {
137
137
  };
138
138
  response: {
139
139
  200: {
140
- id: number;
141
140
  symbol: string;
142
141
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
143
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
142
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
143
+ id: number;
144
144
  };
145
145
  };
146
146
  };
@@ -162,10 +162,10 @@ export declare const PriceController: Elysia<"/prices", false, {
162
162
  };
163
163
  response: {
164
164
  200: {
165
- id: number;
166
165
  symbol: string;
167
166
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
168
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
167
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
168
+ id: number;
169
169
  };
170
170
  };
171
171
  };
@@ -1,33 +1,33 @@
1
1
  import type { CreatePriceSourceModel, UpdatePriceSourceModel } from ".";
2
2
  export declare class PriceRepository {
3
3
  static findBySymbolOrThrow(symbol: string): Promise<{
4
- id: number;
5
4
  symbol: string;
6
5
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
7
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
6
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
7
+ id: number;
8
8
  }>;
9
9
  static findMany(): Promise<{
10
- id: number;
11
10
  symbol: string;
12
11
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
13
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
12
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
13
+ id: number;
14
14
  }[]>;
15
15
  static create(priceSource: CreatePriceSourceModel): Promise<{
16
- id: number;
17
16
  symbol: string;
18
17
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
19
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
18
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
19
+ id: number;
20
20
  }>;
21
21
  static updateBySymbol(unique: string, newPriceSource: UpdatePriceSourceModel): Promise<{
22
- id: number;
23
22
  symbol: string;
24
23
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
25
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
24
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
25
+ id: number;
26
26
  }>;
27
27
  static deleteBySymbol(symbol: string): Promise<{
28
- id: number;
29
28
  symbol: string;
30
29
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
31
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
30
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
31
+ id: number;
32
32
  }>;
33
33
  }
@@ -10,28 +10,28 @@ export declare class PriceService {
10
10
  /** Fetches a single price */
11
11
  static fetchPriceSourceBySymbol(symbol: string): Promise<number>;
12
12
  static getPriceSourceBySymbol(symbol: string): Promise<{
13
- id: number;
14
13
  symbol: string;
15
14
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
16
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
15
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
16
+ id: number;
17
17
  }>;
18
18
  static getManyPriceSources(): Promise<{
19
- id: number;
20
19
  symbol: string;
21
20
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
22
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
21
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
22
+ id: number;
23
23
  }[]>;
24
24
  static createPriceSource(priceSource: CreatePriceSourceModel): Promise<number>;
25
25
  static updatePriceSource(symbol: string, newPriceSource: UpdatePriceSourceModel): Promise<{
26
- id: number;
27
26
  symbol: string;
28
27
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
29
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
28
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
29
+ id: number;
30
30
  }>;
31
31
  static deletePriceSource(symbol: string): Promise<{
32
- id: number;
33
32
  symbol: string;
34
33
  method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
35
- args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
34
+ args: import("database/api/.generated/runtime/library").JsonValue | null;
35
+ id: number;
36
36
  }>;
37
37
  }
@@ -2,35 +2,35 @@ import type { GetProtocolsQueryModel, Protocol } from "./protocol.model";
2
2
  export declare abstract class ProtocolRepository {
3
3
  #private;
4
4
  static create(template: Protocol["action"]["create"]["args"]): Promise<{
5
- id: string;
6
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
7
5
  name: string;
8
- description: string;
9
6
  url: string;
7
+ description: string;
8
+ id: string;
9
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
10
10
  icon: string;
11
11
  }>;
12
12
  static read(type: string): Promise<{
13
- id: string;
14
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
15
13
  name: string;
16
- description: string;
17
14
  url: string;
15
+ description: string;
16
+ id: string;
17
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
18
18
  icon: string;
19
19
  } | null>;
20
20
  static findManyByName(name: string): Promise<{
21
- id: string;
22
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
23
21
  name: string;
24
- description: string;
25
22
  url: string;
23
+ description: string;
24
+ id: string;
25
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
26
26
  icon: string;
27
27
  }[]>;
28
28
  static findMany(query: GetProtocolsQueryModel): Promise<{
29
- id: string;
30
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
31
29
  name: string;
32
- description: string;
33
30
  url: string;
31
+ description: string;
32
+ id: string;
33
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
34
34
  icon: string;
35
35
  }[]>;
36
36
  static countMany(query: GetProtocolsQueryModel): Promise<number>;
@@ -18,9 +18,9 @@ export declare const RewardController: Elysia<"/rewards", false, {
18
18
  params: Record<never, string>;
19
19
  query: {
20
20
  items?: number | undefined;
21
- chainId?: number | undefined;
22
21
  page?: number | undefined;
23
- campaignId?: string | undefined;
22
+ chainId: number;
23
+ campaignId: string;
24
24
  };
25
25
  headers: unknown;
26
26
  response: {
@@ -37,13 +37,16 @@ export declare const RewardController: Elysia<"/rewards", false, {
37
37
  params: Record<never, string>;
38
38
  query: {
39
39
  items?: number | undefined;
40
- chainId?: number | undefined;
41
40
  page?: number | undefined;
42
- campaignId?: string | undefined;
41
+ chainId: number;
42
+ campaignId: string;
43
43
  };
44
44
  headers: unknown;
45
45
  response: {
46
- 200: unknown;
46
+ 200: {
47
+ campaignId: string;
48
+ amount: bigint;
49
+ };
47
50
  };
48
51
  };
49
52
  };
@@ -146,15 +149,36 @@ export declare const RewardController: Elysia<"/rewards", false, {
146
149
  params: Record<never, string>;
147
150
  query: {
148
151
  items?: number | undefined;
149
- chainId?: number | undefined;
150
152
  page?: number | undefined;
151
- campaignId?: string | undefined;
153
+ chainId: number;
154
+ campaignId: string;
152
155
  };
153
156
  headers: unknown;
154
157
  response: {
155
158
  200: {
156
159
  count: number;
157
- } | null;
160
+ };
161
+ };
162
+ };
163
+ };
164
+ };
165
+ } & {
166
+ rewards: {
167
+ count: {
168
+ chains: {
169
+ get: {
170
+ body: unknown;
171
+ params: Record<never, string>;
172
+ query: unknown;
173
+ headers: {
174
+ authorization: string;
175
+ };
176
+ response: {
177
+ 200: Record<string, {
178
+ breakdown: number;
179
+ rewards: Record<string, number>;
180
+ }>;
181
+ };
158
182
  };
159
183
  };
160
184
  };
@@ -107,8 +107,14 @@ export declare const RewardsPerChainDto: import("@sinclair/typebox").TObject<{
107
107
  chainId: import("@sinclair/typebox").TNumber;
108
108
  }>;
109
109
  export declare const CampaignIdListDto: import("@sinclair/typebox").TObject<{
110
- chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
111
- campaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
110
+ chainId: import("@sinclair/typebox").TNumber;
111
+ campaignIds: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>, string[]>;
112
+ page: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
113
+ items: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
114
+ }>;
115
+ export declare const CampaignIdDto: import("@sinclair/typebox").TObject<{
116
+ chainId: import("@sinclair/typebox").TNumber;
117
+ campaignId: import("@sinclair/typebox").TString;
112
118
  page: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
113
119
  items: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
114
120
  }>;
@@ -146,12 +152,6 @@ export declare const RewardV3Dto: import("@sinclair/typebox").TRecord<import("@s
146
152
  symbol: import("@sinclair/typebox").TString;
147
153
  }>>;
148
154
  }>>;
149
- export declare const GetRewardsQueryDto: import("@sinclair/typebox").TObject<{
150
- page: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
151
- items: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
152
- campaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
153
- chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
154
- }>;
155
155
  export type CreateManyRewardModel = typeof CreateManyRewardDto.static;
156
156
  export type CreateManyBreakdownModel = typeof CreateManyBreakdownDto.static;
157
157
  export type RewardEntity = typeof RewardDto.static;
@@ -159,9 +159,9 @@ export type RewardPerChainModel = typeof RewardsPerChainDto.static;
159
159
  export type UpdatePendingModel = typeof UpdatePendingDto.static;
160
160
  export type PendingEntity = typeof PendingDto.static;
161
161
  export type CampaignIdListModel = typeof CampaignIdListDto.static;
162
+ export type CampaignIdModel = typeof CampaignIdDto.static;
162
163
  export type UserRewardV3Model = typeof UserRewardV3Dto.static;
163
164
  export type RewardV3Model = typeof RewardV3Dto.static;
164
- export type GetRewardsQueryModel = typeof GetRewardsQueryDto.static;
165
165
  export type BreakdownForCampaignsRaw = {
166
166
  amount: string;
167
167
  recipient: string;