@merkl/api 0.10.391 → 0.10.392

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.
Files changed (147) hide show
  1. package/dist/database/api/.generated/edge.js +9 -7
  2. package/dist/database/api/.generated/index-browser.js +4 -4
  3. package/dist/database/api/.generated/index.d.ts +3687 -491
  4. package/dist/database/api/.generated/index.js +9 -7
  5. package/dist/database/api/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  6. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  7. package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  8. package/dist/database/api/.generated/package.json +1 -1
  9. package/dist/database/api/.generated/runtime/edge-esm.js +18 -18
  10. package/dist/database/api/.generated/runtime/edge.js +18 -18
  11. package/dist/database/api/.generated/runtime/index-browser.d.ts +1 -1
  12. package/dist/database/api/.generated/runtime/library.d.ts +107 -38
  13. package/dist/database/api/.generated/runtime/library.js +53 -53
  14. package/dist/database/api/.generated/runtime/react-native.js +26 -26
  15. package/dist/database/api/.generated/runtime/wasm.js +19 -19
  16. package/dist/database/api/.generated/wasm.js +4 -4
  17. package/dist/database/engine/.generated/edge.js +9 -7
  18. package/dist/database/engine/.generated/index-browser.js +4 -4
  19. package/dist/database/engine/.generated/index.d.ts +1891 -257
  20. package/dist/database/engine/.generated/index.js +9 -7
  21. package/dist/database/engine/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  22. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  23. package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  24. package/dist/database/engine/.generated/package.json +1 -1
  25. package/dist/database/engine/.generated/runtime/edge-esm.js +18 -18
  26. package/dist/database/engine/.generated/runtime/edge.js +18 -18
  27. package/dist/database/engine/.generated/runtime/index-browser.d.ts +1 -1
  28. package/dist/database/engine/.generated/runtime/library.d.ts +107 -38
  29. package/dist/database/engine/.generated/runtime/library.js +53 -53
  30. package/dist/database/engine/.generated/runtime/react-native.js +26 -26
  31. package/dist/database/engine/.generated/runtime/wasm.js +19 -19
  32. package/dist/database/engine/.generated/wasm.js +4 -4
  33. package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +12 -2
  34. package/dist/src/backgroundJobs/jobs/health.d.ts +12 -2
  35. package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +3 -2
  36. package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +3 -2
  37. package/dist/src/backgroundJobs/jobs/sync.d.ts +12 -2
  38. package/dist/src/eden/index.d.ts +4021 -117
  39. package/dist/src/entities/opportunity.js +1 -1
  40. package/dist/src/hooks/checkQueryAddressValidity.d.ts +3 -2
  41. package/dist/src/hooks/checkQueryChainIdValidity.d.ts +3 -2
  42. package/dist/src/index.d.ts +1343 -49
  43. package/dist/src/internal/controllers/endingCampaigns.d.ts +12 -2
  44. package/dist/src/internal/controllers/unclaimed.d.ts +12 -2
  45. package/dist/src/jobs/etl/pendings.js +1 -1
  46. package/dist/src/jobs/etl/reward-breakdowns.js +55 -52
  47. package/dist/src/jobs/etl/rewards.js +37 -35
  48. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +5 -1
  49. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
  50. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.js +2 -3
  51. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +4 -0
  52. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +8 -0
  53. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +66 -2
  54. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +30 -2
  55. package/dist/src/modules/v4/boost/boost.controller.d.ts +12 -2
  56. package/dist/src/modules/v4/bucket/bucket.service.d.ts +1 -1
  57. package/dist/src/modules/v4/bucket/bucket.service.js +5 -0
  58. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +78 -5
  59. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +6 -6
  60. package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
  61. package/dist/src/modules/v4/chain/chain.controller.d.ts +39 -2
  62. package/dist/src/modules/v4/claims/claims.controller.d.ts +12 -2
  63. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +39 -2
  64. package/dist/src/modules/v4/creator/creator.controller.d.ts +39 -2
  65. package/dist/src/modules/v4/dungeonKeeper/dungeonKeeper.controller.d.ts +3 -2
  66. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +31 -3
  67. package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
  68. package/dist/src/modules/v4/explorer/explorer.controller.d.ts +12 -2
  69. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +31 -3
  70. package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +12 -2
  71. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +21 -2
  72. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +118 -18
  73. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -1
  74. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +30 -30
  75. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -12
  76. package/dist/src/modules/v4/price/price.controller.d.ts +48 -2
  77. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +75 -2
  78. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +0 -1
  79. package/dist/src/modules/v4/programPayload/programPayload.repository.js +3 -10
  80. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +46 -9
  81. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +5 -5
  82. package/dist/src/modules/v4/protocol/protocol.service.d.ts +2 -2
  83. package/dist/src/modules/v4/reward/reward.controller.d.ts +111 -2
  84. package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
  85. package/dist/src/modules/v4/reward/reward.service.d.ts +18 -18
  86. package/dist/src/modules/v4/router.d.ts +973 -36
  87. package/dist/src/modules/v4/status/status.controller.d.ts +48 -2
  88. package/dist/src/modules/v4/token/token.controller.d.ts +75 -2
  89. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +12 -2
  90. package/dist/src/modules/v4/user/user.controller.d.ts +90 -8
  91. package/dist/src/plugins/error-handling.plugin.d.ts +3 -2
  92. package/dist/src/plugins/logger.plugin.d.ts +3 -2
  93. package/dist/src/routes/v1/allowances.d.ts +12 -2
  94. package/dist/src/routes/v1/balances.d.ts +12 -2
  95. package/dist/src/routes/v1/prices.d.ts +12 -2
  96. package/dist/src/routes/v1/router.d.ts +39 -2
  97. package/dist/src/routes/v1/tokens.d.ts +12 -2
  98. package/dist/src/routes/v2/merkl.d.ts +12 -2
  99. package/dist/src/routes/v2/router.d.ts +12 -2
  100. package/dist/src/routes/v3/app.d.ts +12 -2
  101. package/dist/src/routes/v3/blacklist.d.ts +12 -2
  102. package/dist/src/routes/v3/campaign/delay.d.ts +12 -2
  103. package/dist/src/routes/v3/campaignClaims.d.ts +12 -2
  104. package/dist/src/routes/v3/campaignReport.d.ts +12 -2
  105. package/dist/src/routes/v3/campaignUnclaimed.d.ts +12 -2
  106. package/dist/src/routes/v3/campaigns.d.ts +12 -2
  107. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +12 -2
  108. package/dist/src/routes/v3/campaignsInfo.d.ts +12 -2
  109. package/dist/src/routes/v3/campaignsRewardsReport.d.ts +12 -2
  110. package/dist/src/routes/v3/claims.d.ts +12 -2
  111. package/dist/src/routes/v3/compoundV2.d.ts +12 -2
  112. package/dist/src/routes/v3/createCampaign.d.ts +12 -2
  113. package/dist/src/routes/v3/dolomite.d.ts +12 -2
  114. package/dist/src/routes/v3/euler.d.ts +12 -2
  115. package/dist/src/routes/v3/exports/campaigns.d.ts +12 -2
  116. package/dist/src/routes/v3/fetch.d.ts +12 -2
  117. package/dist/src/routes/v3/health.d.ts +12 -2
  118. package/dist/src/routes/v3/lostyield.d.ts +12 -2
  119. package/dist/src/routes/v3/merkl.d.ts +3 -2
  120. package/dist/src/routes/v3/morphoMarkets.d.ts +12 -2
  121. package/dist/src/routes/v3/morphoVaults.d.ts +12 -2
  122. package/dist/src/routes/v3/multiChainPositions.d.ts +12 -2
  123. package/dist/src/routes/v3/opportunity.d.ts +12 -2
  124. package/dist/src/routes/v3/overview.d.ts +12 -2
  125. package/dist/src/routes/v3/parse.d.ts +12 -2
  126. package/dist/src/routes/v3/payload.d.ts +12 -2
  127. package/dist/src/routes/v3/poolInfo.d.ts +12 -2
  128. package/dist/src/routes/v3/positions.d.ts +12 -2
  129. package/dist/src/routes/v3/radiant.d.ts +12 -2
  130. package/dist/src/routes/v3/recipients.d.ts +12 -2
  131. package/dist/src/routes/v3/rewards.d.ts +12 -2
  132. package/dist/src/routes/v3/rewardsReport.d.ts +12 -2
  133. package/dist/src/routes/v3/router.d.ts +328 -3
  134. package/dist/src/routes/v3/silo.d.ts +12 -2
  135. package/dist/src/routes/v3/token.d.ts +12 -2
  136. package/dist/src/routes/v3/tokenUnclaimed.d.ts +12 -2
  137. package/dist/src/routes/v3/twt/participants.d.ts +12 -2
  138. package/dist/src/routes/v3/uniswapv4.d.ts +12 -2
  139. package/dist/src/routes/v3/updates.d.ts +12 -2
  140. package/dist/src/routes/v3/userRewards.d.ts +12 -2
  141. package/dist/src/utils/decodeCalls.js +12 -3
  142. package/dist/src/utils/encodeCalls.js +20 -7
  143. package/dist/src/utils/error.d.ts +3 -2
  144. package/dist/src/utils/generateCardName.js +4 -0
  145. package/dist/src/utils/logger.d.ts +29 -5
  146. package/dist/tsconfig.package.tsbuildinfo +1 -1
  147. package/package.json +24 -24
@@ -1,6 +1,7 @@
1
1
  import { log } from "../../../utils/logger";
2
2
  import { Storage } from "@google-cloud/storage";
3
3
  export class BucketService {
4
+ // ─── Upload A File ───────────────────────────────────────────────────
4
5
  static async upload(bucketName, filename, data, isPublic) {
5
6
  const storage = new Storage({ projectId: "angle-production-1" });
6
7
  const file = await storage.bucket(bucketName).file(filename);
@@ -9,6 +10,7 @@ export class BucketService {
9
10
  await file.makePublic();
10
11
  return `https://storage.googleapis.com/${bucketName}/${filename}`;
11
12
  }
13
+ // ─── Write An Object As A Stream ─────────────────────────────────────
12
14
  static async writeStreamToBucket(data, fileName, bucketName, projectID, hook = JSON.stringify, isPublic = false, withLog = true) {
13
15
  const storage = new Storage({ projectId: projectID });
14
16
  const bucket = storage.bucket(bucketName);
@@ -39,6 +41,7 @@ export class BucketService {
39
41
  await streamPromise;
40
42
  withLog && log.local(`✅ successfully updated https://storage.cloud.google.com/${bucketName}/${fileName}`);
41
43
  }
44
+ // ─── Read An Object As A Stream ──────────────────────────────────────
42
45
  static async readStreamFromBucket(fileName, bucketName, projectID, hook = line => JSON.parse(line), withLog = true) {
43
46
  const storage = new Storage({ projectId: projectID });
44
47
  const bucket = storage.bucket(bucketName);
@@ -78,12 +81,14 @@ export class BucketService {
78
81
  });
79
82
  });
80
83
  }
84
+ // ─── Delete A File ───────────────────────────────────────────────────
81
85
  static async deleteFile(fileName, bucketName, projectID) {
82
86
  const storage = new Storage({ projectId: projectID });
83
87
  const bucket = storage.bucket(bucketName);
84
88
  const file = bucket.file(fileName);
85
89
  await file.delete();
86
90
  }
91
+ // ─── Check If A File Exists ──────────────────────────────────────────
87
92
  static async exists(fileName, bucketName, projectID) {
88
93
  const storage = new Storage({ projectId: projectID });
89
94
  const [exists] = await storage.bucket(bucketName).file(fileName).exists();
@@ -1,16 +1,17 @@
1
1
  import Elysia from "elysia";
2
- export declare const CampaignController: Elysia<"/campaigns", false, {
2
+ export declare const CampaignController: Elysia<"/campaigns", {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- type: {};
8
+ typebox: import("@sinclair/typebox").TModule<{}>;
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
+ parser: {};
14
15
  }, {
15
16
  campaigns: {
16
17
  engine: {
@@ -19,8 +20,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
19
20
  tags?: string[] | undefined;
20
21
  identifier?: string | undefined;
21
22
  subType?: number | undefined;
22
- type: number;
23
23
  params: string;
24
+ type: number;
24
25
  creator: string;
25
26
  chainId: number;
26
27
  startTimestamp: string;
@@ -38,9 +39,9 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
38
39
  };
39
40
  response: {
40
41
  200: {
42
+ params: import("database/api/.generated/runtime/library").JsonValue;
41
43
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
42
44
  id: string;
43
- params: import("database/api/.generated/runtime/library").JsonValue;
44
45
  subType: number | null;
45
46
  startTimestamp: bigint;
46
47
  endTimestamp: bigint;
@@ -52,6 +53,15 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
52
53
  opportunityId: string;
53
54
  creatorAddress: string;
54
55
  } | undefined;
56
+ 422: {
57
+ type: "validation";
58
+ on: string;
59
+ summary?: string;
60
+ message?: string;
61
+ found?: unknown;
62
+ property?: string;
63
+ expected?: string;
64
+ };
55
65
  };
56
66
  };
57
67
  };
@@ -71,6 +81,15 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
71
81
  };
72
82
  response: {
73
83
  200: string;
84
+ 422: {
85
+ type: "validation";
86
+ on: string;
87
+ summary?: string;
88
+ message?: string;
89
+ found?: unknown;
90
+ property?: string;
91
+ expected?: string;
92
+ };
74
93
  };
75
94
  };
76
95
  };
@@ -89,9 +108,9 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
89
108
  };
90
109
  response: {
91
110
  200: {
111
+ params: import("database/api/.generated/runtime/library").JsonValue;
92
112
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
93
113
  id: string;
94
- params: import("database/api/.generated/runtime/library").JsonValue;
95
114
  subType: number | null;
96
115
  startTimestamp: bigint;
97
116
  endTimestamp: bigint;
@@ -103,6 +122,15 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
103
122
  opportunityId: string;
104
123
  creatorAddress: string;
105
124
  };
125
+ 422: {
126
+ type: "validation";
127
+ on: string;
128
+ summary?: string;
129
+ message?: string;
130
+ found?: unknown;
131
+ property?: string;
132
+ expected?: string;
133
+ };
106
134
  };
107
135
  };
108
136
  };
@@ -177,6 +205,15 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
177
205
  opportunityId: string;
178
206
  creatorAddress: string;
179
207
  }[];
208
+ 422: {
209
+ type: "validation";
210
+ on: string;
211
+ summary?: string;
212
+ message?: string;
213
+ found?: unknown;
214
+ property?: string;
215
+ expected?: string;
216
+ };
180
217
  };
181
218
  };
182
219
  };
@@ -206,6 +243,15 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
206
243
  headers: unknown;
207
244
  response: {
208
245
  200: number;
246
+ 422: {
247
+ type: "validation";
248
+ on: string;
249
+ summary?: string;
250
+ message?: string;
251
+ found?: unknown;
252
+ property?: string;
253
+ expected?: string;
254
+ };
209
255
  };
210
256
  };
211
257
  };
@@ -227,6 +273,15 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
227
273
  computedUntil: bigint;
228
274
  }[];
229
275
  }[];
276
+ 422: {
277
+ type: "validation";
278
+ on: string;
279
+ summary?: string;
280
+ message?: string;
281
+ found?: unknown;
282
+ property?: string;
283
+ expected?: string;
284
+ };
230
285
  };
231
286
  };
232
287
  };
@@ -243,6 +298,15 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
243
298
  headers: unknown;
244
299
  response: {
245
300
  200: number;
301
+ 422: {
302
+ type: "validation";
303
+ on: string;
304
+ summary?: string;
305
+ message?: string;
306
+ found?: unknown;
307
+ property?: string;
308
+ expected?: string;
309
+ };
246
310
  };
247
311
  };
248
312
  };
@@ -261,6 +325,15 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
261
325
  };
262
326
  response: {
263
327
  200: string;
328
+ 422: {
329
+ type: "validation";
330
+ on: string;
331
+ summary?: string;
332
+ message?: string;
333
+ found?: unknown;
334
+ property?: string;
335
+ expected?: string;
336
+ };
264
337
  };
265
338
  };
266
339
  };
@@ -67,9 +67,9 @@ export declare abstract class CampaignRepository {
67
67
  };
68
68
  };
69
69
  static upsert(campaign: CreateCampaignModel): Promise<{
70
+ params: Prisma.JsonValue;
70
71
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
71
72
  id: string;
72
- params: Prisma.JsonValue;
73
73
  subType: number | null;
74
74
  startTimestamp: bigint;
75
75
  endTimestamp: bigint;
@@ -110,9 +110,9 @@ export declare abstract class CampaignRepository {
110
110
  static checkIfExist(campaign: CampaignUnique): Promise<boolean>;
111
111
  static checkIfIdExist(id: string): Promise<boolean>;
112
112
  static findUnique(campaign: CampaignUnique): Promise<{
113
+ params: Prisma.JsonValue;
113
114
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
114
115
  id: string;
115
- params: Prisma.JsonValue;
116
116
  subType: number | null;
117
117
  startTimestamp: bigint;
118
118
  endTimestamp: bigint;
@@ -125,9 +125,9 @@ export declare abstract class CampaignRepository {
125
125
  creatorAddress: string;
126
126
  } | null>;
127
127
  static findUniqueOrThrow(campaign: CampaignUnique): Promise<{
128
+ params: Prisma.JsonValue;
128
129
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
129
130
  id: string;
130
- params: Prisma.JsonValue;
131
131
  subType: number | null;
132
132
  startTimestamp: bigint;
133
133
  endTimestamp: bigint;
@@ -179,9 +179,9 @@ export declare abstract class CampaignRepository {
179
179
  processingStarted: bigint;
180
180
  }[];
181
181
  } & {
182
+ params: Prisma.JsonValue;
182
183
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
183
184
  id: string;
184
- params: Prisma.JsonValue;
185
185
  subType: number | null;
186
186
  startTimestamp: bigint;
187
187
  endTimestamp: bigint;
@@ -199,9 +199,9 @@ export declare abstract class CampaignRepository {
199
199
  }[]>;
200
200
  static findChains(): Promise<Record<string, ChainId>>;
201
201
  static updateOpportunity(id: string, data: extendedUpdateCampaignModel): Promise<{
202
+ params: Prisma.JsonValue;
202
203
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
203
204
  id: string;
204
- params: Prisma.JsonValue;
205
205
  subType: number | null;
206
206
  startTimestamp: bigint;
207
207
  endTimestamp: bigint;
@@ -214,9 +214,9 @@ export declare abstract class CampaignRepository {
214
214
  creatorAddress: string;
215
215
  }>;
216
216
  static updateMetaData(id: string, params: string): Promise<{
217
+ params: Prisma.JsonValue;
217
218
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
218
219
  id: string;
219
- params: Prisma.JsonValue;
220
220
  subType: number | null;
221
221
  startTimestamp: bigint;
222
222
  endTimestamp: bigint;
@@ -5,9 +5,9 @@ import { type CampaignParameters, type Campaign as CampaignTypeV3, type ChainId
5
5
  export declare abstract class CampaignService {
6
6
  static hashId(campaign: CampaignUnique): string;
7
7
  static create(campaign: Omit<CreateCampaignModel, "id">): Promise<{
8
+ params: import("database/api/.generated/runtime/library").JsonValue;
8
9
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
9
10
  id: string;
10
- params: import("database/api/.generated/runtime/library").JsonValue;
11
11
  subType: number | null;
12
12
  startTimestamp: bigint;
13
13
  endTimestamp: bigint;
@@ -20,9 +20,9 @@ export declare abstract class CampaignService {
20
20
  creatorAddress: string;
21
21
  } | undefined>;
22
22
  static updateMetaData(campaign: Omit<UpdateMetaDataCampaignModel, "id">): Promise<{
23
+ params: import("database/api/.generated/runtime/library").JsonValue;
23
24
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
24
25
  id: string;
25
- params: import("database/api/.generated/runtime/library").JsonValue;
26
26
  subType: number | null;
27
27
  startTimestamp: bigint;
28
28
  endTimestamp: bigint;
@@ -100,9 +100,9 @@ export declare abstract class CampaignService {
100
100
  static checkIfExist(campaign: CampaignUnique): Promise<boolean>;
101
101
  static checkIfIdExist(id: string): Promise<boolean>;
102
102
  static findUnique(campaign: CampaignUnique): Promise<{
103
+ params: import("database/api/.generated/runtime/library").JsonValue;
103
104
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
104
105
  id: string;
105
- params: import("database/api/.generated/runtime/library").JsonValue;
106
106
  subType: number | null;
107
107
  startTimestamp: bigint;
108
108
  endTimestamp: bigint;
@@ -115,9 +115,9 @@ export declare abstract class CampaignService {
115
115
  creatorAddress: string;
116
116
  } | null>;
117
117
  static findUniqueOrThrow(campaign: CampaignUnique): Promise<{
118
+ params: import("database/api/.generated/runtime/library").JsonValue;
118
119
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
119
120
  id: string;
120
- params: import("database/api/.generated/runtime/library").JsonValue;
121
121
  subType: number | null;
122
122
  startTimestamp: bigint;
123
123
  endTimestamp: bigint;
@@ -1,16 +1,17 @@
1
1
  import Elysia from "elysia";
2
- export declare const ChainController: Elysia<"/chains", false, {
2
+ export declare const ChainController: Elysia<"/chains", {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- type: {};
8
+ typebox: import("@sinclair/typebox").TModule<{}>;
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
+ parser: {};
14
15
  }, {
15
16
  chains: {
16
17
  ":chainId": {
@@ -33,6 +34,15 @@ export declare const ChainController: Elysia<"/chains", false, {
33
34
  chainId: number;
34
35
  }[];
35
36
  } | null;
37
+ 422: {
38
+ type: "validation";
39
+ on: string;
40
+ summary?: string;
41
+ message?: string;
42
+ found?: unknown;
43
+ property?: string;
44
+ expected?: string;
45
+ };
36
46
  };
37
47
  };
38
48
  };
@@ -59,6 +69,15 @@ export declare const ChainController: Elysia<"/chains", false, {
59
69
  chainId: number;
60
70
  }[];
61
71
  }[];
72
+ 422: {
73
+ type: "validation";
74
+ on: string;
75
+ summary?: string;
76
+ message?: string;
77
+ found?: unknown;
78
+ property?: string;
79
+ expected?: string;
80
+ };
62
81
  };
63
82
  };
64
83
  };
@@ -75,6 +94,15 @@ export declare const ChainController: Elysia<"/chains", false, {
75
94
  headers: unknown;
76
95
  response: {
77
96
  200: number;
97
+ 422: {
98
+ type: "validation";
99
+ on: string;
100
+ summary?: string;
101
+ message?: string;
102
+ found?: unknown;
103
+ property?: string;
104
+ expected?: string;
105
+ };
78
106
  };
79
107
  };
80
108
  };
@@ -99,6 +127,15 @@ export declare const ChainController: Elysia<"/chains", false, {
99
127
  id: number;
100
128
  icon: string;
101
129
  };
130
+ 422: {
131
+ type: "validation";
132
+ on: string;
133
+ summary?: string;
134
+ message?: string;
135
+ found?: unknown;
136
+ property?: string;
137
+ expected?: string;
138
+ };
102
139
  };
103
140
  };
104
141
  };
@@ -1,16 +1,17 @@
1
1
  import Elysia from "elysia";
2
- export declare const ClaimController: Elysia<"/claims", false, {
2
+ export declare const ClaimController: Elysia<"/claims", {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- type: {};
8
+ typebox: import("@sinclair/typebox").TModule<{}>;
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
+ parser: {};
14
15
  }, {
15
16
  claims: {
16
17
  ":address": {
@@ -27,6 +28,15 @@ export declare const ClaimController: Elysia<"/claims", false, {
27
28
  200: (import("./claims.model").ClaimModel & {
28
29
  token?: import("..").Token["model"];
29
30
  })[];
31
+ 422: {
32
+ type: "validation";
33
+ on: string;
34
+ summary?: string;
35
+ message?: string;
36
+ found?: unknown;
37
+ property?: string;
38
+ expected?: string;
39
+ };
30
40
  };
31
41
  };
32
42
  };
@@ -1,16 +1,17 @@
1
1
  import Elysia from "elysia";
2
- export declare const ComputedValueController: Elysia<"/value", false, {
2
+ export declare const ComputedValueController: Elysia<"/value", {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- type: {};
8
+ typebox: import("@sinclair/typebox").TModule<{}>;
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
+ parser: {};
14
15
  }, {
15
16
  value: {
16
17
  campaign: {
@@ -30,6 +31,15 @@ export declare const ComputedValueController: Elysia<"/value", false, {
30
31
  totalDistributedInUSD: number | null;
31
32
  forfeitingBoost: number | null;
32
33
  } | null;
34
+ 422: {
35
+ type: "validation";
36
+ on: string;
37
+ summary?: string;
38
+ message?: string;
39
+ found?: unknown;
40
+ property?: string;
41
+ expected?: string;
42
+ };
33
43
  };
34
44
  };
35
45
  };
@@ -56,6 +66,15 @@ export declare const ComputedValueController: Elysia<"/value", false, {
56
66
  campaignId: string;
57
67
  boost: number | null;
58
68
  }[];
69
+ 422: {
70
+ type: "validation";
71
+ on: string;
72
+ summary?: string;
73
+ message?: string;
74
+ found?: unknown;
75
+ property?: string;
76
+ expected?: string;
77
+ };
59
78
  };
60
79
  };
61
80
  };
@@ -79,6 +98,15 @@ export declare const ComputedValueController: Elysia<"/value", false, {
79
98
  };
80
99
  response: {
81
100
  200: void;
101
+ 422: {
102
+ type: "validation";
103
+ on: string;
104
+ summary?: string;
105
+ message?: string;
106
+ found?: unknown;
107
+ property?: string;
108
+ expected?: string;
109
+ };
82
110
  };
83
111
  };
84
112
  };
@@ -103,6 +131,15 @@ export declare const ComputedValueController: Elysia<"/value", false, {
103
131
  };
104
132
  response: {
105
133
  200: void;
134
+ 422: {
135
+ type: "validation";
136
+ on: string;
137
+ summary?: string;
138
+ message?: string;
139
+ found?: unknown;
140
+ property?: string;
141
+ expected?: string;
142
+ };
106
143
  };
107
144
  };
108
145
  };
@@ -1,16 +1,17 @@
1
1
  import { Elysia } from "elysia";
2
- export declare const CreatorController: Elysia<"/creators", false, {
2
+ export declare const CreatorController: Elysia<"/creators", {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- type: {};
8
+ typebox: import("@sinclair/typebox").TModule<{}>;
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
+ parser: {};
14
15
  }, {
15
16
  creators: {
16
17
  index: {
@@ -31,6 +32,15 @@ export declare const CreatorController: Elysia<"/creators", false, {
31
32
  } & {
32
33
  icon?: string | undefined;
33
34
  })[];
35
+ 422: {
36
+ type: "validation";
37
+ on: string;
38
+ summary?: string;
39
+ message?: string;
40
+ found?: unknown;
41
+ property?: string;
42
+ expected?: string;
43
+ };
34
44
  };
35
45
  };
36
46
  };
@@ -52,6 +62,15 @@ export declare const CreatorController: Elysia<"/creators", false, {
52
62
  addresses: string[];
53
63
  icon?: string | undefined;
54
64
  };
65
+ 422: {
66
+ type: "validation";
67
+ on: string;
68
+ summary?: string;
69
+ message?: string;
70
+ found?: unknown;
71
+ property?: string;
72
+ expected?: string;
73
+ };
55
74
  };
56
75
  };
57
76
  };
@@ -77,6 +96,15 @@ export declare const CreatorController: Elysia<"/creators", false, {
77
96
  id: string;
78
97
  icon: string | null;
79
98
  };
99
+ 422: {
100
+ type: "validation";
101
+ on: string;
102
+ summary?: string;
103
+ message?: string;
104
+ found?: unknown;
105
+ property?: string;
106
+ expected?: string;
107
+ };
80
108
  };
81
109
  };
82
110
  };
@@ -103,6 +131,15 @@ export declare const CreatorController: Elysia<"/creators", false, {
103
131
  id: string;
104
132
  icon: string | null;
105
133
  };
134
+ 422: {
135
+ type: "validation";
136
+ on: string;
137
+ summary?: string;
138
+ message?: string;
139
+ found?: unknown;
140
+ property?: string;
141
+ expected?: string;
142
+ };
106
143
  };
107
144
  };
108
145
  };
@@ -1,16 +1,17 @@
1
1
  import Elysia from "elysia";
2
- export declare const DungeonKeeperController: Elysia<"/dungeonkeeper", false, {
2
+ export declare const DungeonKeeperController: Elysia<"/dungeonkeeper", {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- type: {};
8
+ typebox: import("@sinclair/typebox").TModule<{}>;
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
+ parser: {};
14
15
  }, {
15
16
  dungeonkeeper: {
16
17
  get: {