@merkl/api 0.10.405 → 0.10.407

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 (100) hide show
  1. package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +2 -12
  2. package/dist/src/backgroundJobs/jobs/health.d.ts +2 -12
  3. package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +2 -3
  4. package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +2 -3
  5. package/dist/src/backgroundJobs/jobs/sync.d.ts +2 -12
  6. package/dist/src/eden/index.d.ts +10853 -8818
  7. package/dist/src/hooks/checkQueryAddressValidity.d.ts +2 -3
  8. package/dist/src/hooks/checkQueryChainIdValidity.d.ts +2 -3
  9. package/dist/src/index.d.ts +66 -1379
  10. package/dist/src/internal/controllers/endingCampaigns.d.ts +2 -12
  11. package/dist/src/internal/controllers/unclaimed.d.ts +2 -12
  12. package/dist/src/jobs/etl/pendings.js +129 -2
  13. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +2 -66
  14. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +2 -30
  15. package/dist/src/modules/v4/boost/boost.controller.d.ts +2 -12
  16. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +5 -78
  17. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +6 -6
  18. package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
  19. package/dist/src/modules/v4/chain/chain.controller.d.ts +2 -39
  20. package/dist/src/modules/v4/claims/claims.controller.d.ts +2 -12
  21. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +2 -39
  22. package/dist/src/modules/v4/creator/creator.controller.d.ts +2 -39
  23. package/dist/src/modules/v4/dungeonKeeper/dungeonKeeper.controller.d.ts +2 -3
  24. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +3 -31
  25. package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
  26. package/dist/src/modules/v4/explorer/explorer.controller.d.ts +2 -12
  27. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +3 -31
  28. package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +2 -12
  29. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +2 -21
  30. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +18 -118
  31. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -1
  32. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +30 -30
  33. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -12
  34. package/dist/src/modules/v4/price/price.controller.d.ts +2 -48
  35. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +2 -75
  36. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +9 -46
  37. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +5 -5
  38. package/dist/src/modules/v4/protocol/protocol.service.d.ts +2 -2
  39. package/dist/src/modules/v4/reward/reward.controller.d.ts +5 -147
  40. package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
  41. package/dist/src/modules/v4/reward/reward.service.d.ts +18 -18
  42. package/dist/src/modules/v4/router.d.ts +45 -1009
  43. package/dist/src/modules/v4/status/status.controller.d.ts +2 -48
  44. package/dist/src/modules/v4/token/token.controller.d.ts +2 -75
  45. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +2 -12
  46. package/dist/src/modules/v4/user/user.controller.d.ts +8 -90
  47. package/dist/src/plugins/error-handling.plugin.d.ts +2 -3
  48. package/dist/src/plugins/logger.plugin.d.ts +2 -3
  49. package/dist/src/routes/v1/allowances.d.ts +2 -12
  50. package/dist/src/routes/v1/balances.d.ts +2 -12
  51. package/dist/src/routes/v1/prices.d.ts +2 -12
  52. package/dist/src/routes/v1/router.d.ts +2 -39
  53. package/dist/src/routes/v1/tokens.d.ts +2 -12
  54. package/dist/src/routes/v2/merkl.d.ts +2 -12
  55. package/dist/src/routes/v2/router.d.ts +2 -12
  56. package/dist/src/routes/v3/app.d.ts +2 -12
  57. package/dist/src/routes/v3/blacklist.d.ts +2 -12
  58. package/dist/src/routes/v3/campaign/delay.d.ts +2 -12
  59. package/dist/src/routes/v3/campaignClaims.d.ts +2 -12
  60. package/dist/src/routes/v3/campaignReport.d.ts +2 -12
  61. package/dist/src/routes/v3/campaignUnclaimed.d.ts +2 -12
  62. package/dist/src/routes/v3/campaigns.d.ts +2 -12
  63. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +2 -12
  64. package/dist/src/routes/v3/campaignsInfo.d.ts +2 -12
  65. package/dist/src/routes/v3/campaignsRewardsReport.d.ts +2 -12
  66. package/dist/src/routes/v3/claims.d.ts +2 -12
  67. package/dist/src/routes/v3/compoundV2.d.ts +2 -12
  68. package/dist/src/routes/v3/createCampaign.d.ts +2 -12
  69. package/dist/src/routes/v3/dolomite.d.ts +2 -12
  70. package/dist/src/routes/v3/euler.d.ts +2 -12
  71. package/dist/src/routes/v3/exports/campaigns.d.ts +2 -12
  72. package/dist/src/routes/v3/fetch.d.ts +2 -12
  73. package/dist/src/routes/v3/health.d.ts +2 -12
  74. package/dist/src/routes/v3/lostyield.d.ts +2 -12
  75. package/dist/src/routes/v3/merkl.d.ts +2 -3
  76. package/dist/src/routes/v3/morphoMarkets.d.ts +2 -12
  77. package/dist/src/routes/v3/morphoVaults.d.ts +2 -12
  78. package/dist/src/routes/v3/multiChainPositions.d.ts +2 -12
  79. package/dist/src/routes/v3/opportunity.d.ts +2 -12
  80. package/dist/src/routes/v3/overview.d.ts +2 -12
  81. package/dist/src/routes/v3/parse.d.ts +2 -12
  82. package/dist/src/routes/v3/payload.d.ts +2 -12
  83. package/dist/src/routes/v3/poolInfo.d.ts +2 -12
  84. package/dist/src/routes/v3/positions.d.ts +2 -12
  85. package/dist/src/routes/v3/radiant.d.ts +2 -12
  86. package/dist/src/routes/v3/recipients.d.ts +2 -12
  87. package/dist/src/routes/v3/rewards.d.ts +2 -12
  88. package/dist/src/routes/v3/rewardsReport.d.ts +2 -12
  89. package/dist/src/routes/v3/router.d.ts +3 -328
  90. package/dist/src/routes/v3/silo.d.ts +2 -12
  91. package/dist/src/routes/v3/token.d.ts +2 -12
  92. package/dist/src/routes/v3/tokenUnclaimed.d.ts +2 -12
  93. package/dist/src/routes/v3/twt/participants.d.ts +2 -12
  94. package/dist/src/routes/v3/uniswapv4.d.ts +2 -12
  95. package/dist/src/routes/v3/updates.d.ts +2 -12
  96. package/dist/src/routes/v3/userRewards.d.ts +2 -12
  97. package/dist/src/utils/error.d.ts +2 -3
  98. package/dist/src/utils/logger.d.ts +8 -0
  99. package/dist/tsconfig.package.tsbuildinfo +1 -1
  100. package/package.json +6 -6
@@ -1,17 +1,16 @@
1
1
  import { type Elysia } from "elysia";
2
- export declare const endingCampaignsController: (app: Elysia) => Elysia<"", {
2
+ export declare const endingCampaignsController: (app: Elysia) => Elysia<"", false, {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- typebox: import("@sinclair/typebox").TModule<{}>;
8
+ type: {};
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
- parser: {};
15
14
  }, {
16
15
  v3: {
17
16
  internal: {
@@ -28,15 +27,6 @@ export declare const endingCampaignsController: (app: Elysia) => Elysia<"", {
28
27
  headers: unknown;
29
28
  response: {
30
29
  200: any[];
31
- 422: {
32
- type: "validation";
33
- on: string;
34
- summary?: string;
35
- message?: string;
36
- found?: unknown;
37
- property?: string;
38
- expected?: string;
39
- };
40
30
  };
41
31
  };
42
32
  };
@@ -1,18 +1,17 @@
1
1
  import { type Elysia } from "elysia";
2
2
  import { type TotalUnclaimedOutput } from "../../utils/queries/unclaimed";
3
- export declare const unclaimedController: (app: Elysia) => Elysia<"", {
3
+ export declare const unclaimedController: (app: Elysia) => Elysia<"", false, {
4
4
  decorator: {};
5
5
  store: {};
6
6
  derive: {};
7
7
  resolve: {};
8
8
  }, {
9
- typebox: import("@sinclair/typebox").TModule<{}>;
9
+ type: {};
10
10
  error: {};
11
11
  }, {
12
12
  schema: {};
13
13
  macro: {};
14
14
  macroFn: {};
15
- parser: {};
16
15
  }, {
17
16
  v3: {
18
17
  internal: {
@@ -29,15 +28,6 @@ export declare const unclaimedController: (app: Elysia) => Elysia<"", {
29
28
  200: (TotalUnclaimedOutput & {
30
29
  usdValue?: number;
31
30
  })[];
32
- 422: {
33
- type: "validation";
34
- on: string;
35
- summary?: string;
36
- message?: string;
37
- found?: unknown;
38
- property?: string;
39
- expected?: string;
40
- };
41
31
  };
42
32
  };
43
33
  };
@@ -1,8 +1,8 @@
1
1
  // ─── Pending Rewards Etl ─────────────────────────────────────────────────────
2
2
  if (!process.env.ENV || !process.env.FILENAME)
3
3
  throw new Error("[ENV]: missing variable");
4
- import { RewardService } from "../../modules/v4/reward";
5
4
  import { log } from "../../utils/logger";
5
+ import { apiDbClient } from "../../utils/prisma";
6
6
  import { S3Client } from "bun";
7
7
  import moment from "moment";
8
8
  // ─── Constants ───────────────────────────────────────────────
@@ -49,7 +49,7 @@ const extract = async () => {
49
49
  };
50
50
  // ─── Transform & Load ────────────────────────────────────────────────────────
51
51
  const load = async (pendings) => {
52
- const { updated, created } = await RewardService.updatePendings({
52
+ const { updated, created } = await updatePendings({
53
53
  distributionChainId: chainId,
54
54
  rewardToken: pendings[0].rewardToken,
55
55
  campaignId,
@@ -58,6 +58,133 @@ const load = async (pendings) => {
58
58
  });
59
59
  return updated + created;
60
60
  };
61
+ const updatePendings = async (data) => {
62
+ const rewardTokenId = Bun.hash(`${data.distributionChainId}${data.rewardToken}`).toString();
63
+ const campaignId = Bun.hash(`${data.distributionChainId}${data.campaignId}`).toString();
64
+ const rewardUniques = {};
65
+ // Adds a record to the Reward row where pendings need to be updated
66
+ const updateRewardUniques = (recipient, pending, previousPending) => {
67
+ Bun.hash(`${root}${recipient}${rewardTokenId}`).toString();
68
+ const rewardId = Bun.hash(`${data.root}${recipient}${rewardTokenId}`).toString();
69
+ if (!rewardUniques[rewardId]) {
70
+ rewardUniques[rewardId] = { pending: "0", recipient: recipient };
71
+ }
72
+ rewardUniques[rewardId].pending = (BigInt(rewardUniques[rewardId].pending) +
73
+ BigInt(pending) -
74
+ BigInt(previousPending ?? "0")) // Store the delta
75
+ .toString();
76
+ };
77
+ const breakdownUniques = await data.data.map(({ recipient, reason }) => {
78
+ const rewardId = Bun.hash(`${data.root}${recipient}${rewardTokenId}`).toString();
79
+ return { rewardId, reason, campaignId };
80
+ });
81
+ const breakdownToUpdate = [];
82
+ const breakdownToCreate = [];
83
+ const breakdownExists = await apiDbClient.$transaction(breakdownUniques.map(x => apiDbClient.rewardBreakdown.findUnique({
84
+ select: {
85
+ pending: true,
86
+ },
87
+ where: {
88
+ rewardId_campaignId_reason: {
89
+ rewardId: x.rewardId,
90
+ campaignId: x.campaignId,
91
+ reason: x.reason,
92
+ },
93
+ },
94
+ })));
95
+ for (const [pointIndex, point] of data.data.entries()) {
96
+ updateRewardUniques(point.recipient, point.pending, breakdownExists[pointIndex]?.pending);
97
+ if (!!breakdownExists[pointIndex]) {
98
+ breakdownToUpdate.push(point);
99
+ }
100
+ else {
101
+ breakdownToCreate.push(point);
102
+ }
103
+ }
104
+ const toUpdate = [];
105
+ const toCreate = [];
106
+ const exists = await apiDbClient.$transaction(Object.keys(rewardUniques).map(x => apiDbClient.reward.findUnique({
107
+ select: {
108
+ pending: true,
109
+ },
110
+ where: {
111
+ id: x,
112
+ },
113
+ })));
114
+ for (const [pointIndex, point] of Object.values(rewardUniques).entries()) {
115
+ if (!!exists[pointIndex]) {
116
+ toUpdate.push({
117
+ ...point,
118
+ pending: (BigInt(exists[pointIndex].pending) + BigInt(point.pending)).toString(), // Store the delta
119
+ });
120
+ }
121
+ else {
122
+ toCreate.push(point);
123
+ }
124
+ }
125
+ await apiDbClient.$transaction(toUpdate.map(x => {
126
+ const rewardId = Bun.hash(`${data.root}${x.recipient}${rewardTokenId}`).toString();
127
+ return apiDbClient.reward.update({
128
+ where: {
129
+ id: rewardId,
130
+ },
131
+ data: {
132
+ pending: x.pending,
133
+ },
134
+ });
135
+ }));
136
+ let users = toCreate.map(x => x.recipient);
137
+ await apiDbClient.user.createMany({ data: users.map(x => ({ address: x, tags: [] })), skipDuplicates: true });
138
+ await apiDbClient.$transaction(toCreate.map(x => {
139
+ const rewardId = Bun.hash(`${root}${x.recipient}${rewardTokenId}`).toString();
140
+ return apiDbClient.reward.create({
141
+ data: {
142
+ id: rewardId,
143
+ MerklRoot: { connect: { root } },
144
+ User: { connect: { address: x.recipient } },
145
+ RewardToken: { connect: { id: rewardTokenId } },
146
+ proofs: [],
147
+ amount: "0",
148
+ pending: x.pending,
149
+ claimed: "0",
150
+ },
151
+ });
152
+ }));
153
+ await apiDbClient.$transaction(breakdownToUpdate.map(x => {
154
+ return apiDbClient.rewardBreakdown.update({
155
+ where: {
156
+ rewardId_campaignId_reason: {
157
+ rewardId: Bun.hash(`${root}${x.recipient}${rewardTokenId}`).toString(),
158
+ campaignId: campaignId,
159
+ reason: x.reason,
160
+ },
161
+ },
162
+ data: {
163
+ pending: x.pending,
164
+ },
165
+ });
166
+ }));
167
+ users = toCreate.map(x => x.recipient);
168
+ await apiDbClient.user.createMany({ data: users.map(x => ({ address: x, tags: [] })), skipDuplicates: true });
169
+ await apiDbClient.$transaction(breakdownToCreate.map(x => {
170
+ const rewardId = Bun.hash(`${root}${x.recipient}${rewardTokenId}`).toString();
171
+ return apiDbClient.rewardBreakdown.create({
172
+ data: {
173
+ reason: x.reason,
174
+ amount: "0",
175
+ pending: x.pending,
176
+ claimed: "0",
177
+ Reward: {
178
+ connect: {
179
+ id: rewardId,
180
+ },
181
+ },
182
+ Campaign: { connect: { id: campaignId } },
183
+ },
184
+ });
185
+ }));
186
+ return { created: breakdownToCreate.length, updated: breakdownToUpdate.length };
187
+ };
61
188
  // ─────────────────────────────────────────────────────────────────────────────
62
189
  export const main = async () => {
63
190
  const start = moment().unix();
@@ -1,17 +1,16 @@
1
1
  import Elysia from "elysia";
2
- export declare const AccountingController: Elysia<"/accounting", {
2
+ export declare const AccountingController: Elysia<"/accounting", false, {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- typebox: import("@sinclair/typebox").TModule<{}>;
8
+ type: {};
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
- parser: {};
15
14
  }, {
16
15
  accounting: {
17
16
  index: {
@@ -38,15 +37,6 @@ export declare const AccountingController: Elysia<"/accounting", {
38
37
  amountOut: string;
39
38
  datetime: Date;
40
39
  }[];
41
- 422: {
42
- type: "validation";
43
- on: string;
44
- summary?: string;
45
- message?: string;
46
- found?: unknown;
47
- property?: string;
48
- expected?: string;
49
- };
50
40
  };
51
41
  };
52
42
  };
@@ -69,15 +59,6 @@ export declare const AccountingController: Elysia<"/accounting", {
69
59
  };
70
60
  };
71
61
  };
72
- 422: {
73
- type: "validation";
74
- on: string;
75
- summary?: string;
76
- message?: string;
77
- found?: unknown;
78
- property?: string;
79
- expected?: string;
80
- };
81
62
  };
82
63
  };
83
64
  };
@@ -102,15 +83,6 @@ export declare const AccountingController: Elysia<"/accounting", {
102
83
  from: string;
103
84
  to: string;
104
85
  };
105
- 422: {
106
- type: "validation";
107
- on: string;
108
- summary?: string;
109
- message?: string;
110
- found?: unknown;
111
- property?: string;
112
- expected?: string;
113
- };
114
86
  };
115
87
  };
116
88
  };
@@ -134,15 +106,6 @@ export declare const AccountingController: Elysia<"/accounting", {
134
106
  200: {
135
107
  totalAmount: number;
136
108
  };
137
- 422: {
138
- type: "validation";
139
- on: string;
140
- summary?: string;
141
- message?: string;
142
- found?: unknown;
143
- property?: string;
144
- expected?: string;
145
- };
146
109
  };
147
110
  };
148
111
  };
@@ -172,15 +135,6 @@ export declare const AccountingController: Elysia<"/accounting", {
172
135
  from: string;
173
136
  to: string;
174
137
  };
175
- 422: {
176
- type: "validation";
177
- on: string;
178
- summary?: string;
179
- message?: string;
180
- found?: unknown;
181
- property?: string;
182
- expected?: string;
183
- };
184
138
  };
185
139
  };
186
140
  };
@@ -208,15 +162,6 @@ export declare const AccountingController: Elysia<"/accounting", {
208
162
  totalAmount: number;
209
163
  totalAmountUSD: number;
210
164
  };
211
- 422: {
212
- type: "validation";
213
- on: string;
214
- summary?: string;
215
- message?: string;
216
- found?: unknown;
217
- property?: string;
218
- expected?: string;
219
- };
220
165
  };
221
166
  };
222
167
  };
@@ -248,15 +193,6 @@ export declare const AccountingController: Elysia<"/accounting", {
248
193
  from: string;
249
194
  to: string;
250
195
  };
251
- 422: {
252
- type: "validation";
253
- on: string;
254
- summary?: string;
255
- message?: string;
256
- found?: unknown;
257
- property?: string;
258
- expected?: string;
259
- };
260
196
  };
261
197
  };
262
198
  };
@@ -1,17 +1,16 @@
1
1
  import Elysia from "elysia";
2
- export declare const BlacklistController: Elysia<"/blacklists", {
2
+ export declare const BlacklistController: Elysia<"/blacklists", false, {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- typebox: import("@sinclair/typebox").TModule<{}>;
8
+ type: {};
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
- parser: {};
15
14
  }, {
16
15
  blacklists: {
17
16
  index: {
@@ -60,15 +59,6 @@ export declare const BlacklistController: Elysia<"/blacklists", {
60
59
  headers: unknown;
61
60
  response: {
62
61
  200: boolean;
63
- 422: {
64
- type: "validation";
65
- on: string;
66
- summary?: string;
67
- message?: string;
68
- found?: unknown;
69
- property?: string;
70
- expected?: string;
71
- };
72
62
  };
73
63
  };
74
64
  };
@@ -98,15 +88,6 @@ export declare const BlacklistController: Elysia<"/blacklists", {
98
88
  arrestTimestamp: bigint;
99
89
  arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
100
90
  };
101
- 422: {
102
- type: "validation";
103
- on: string;
104
- summary?: string;
105
- message?: string;
106
- found?: unknown;
107
- property?: string;
108
- expected?: string;
109
- };
110
91
  };
111
92
  };
112
93
  };
@@ -126,15 +107,6 @@ export declare const BlacklistController: Elysia<"/blacklists", {
126
107
  };
127
108
  response: {
128
109
  200: boolean;
129
- 422: {
130
- type: "validation";
131
- on: string;
132
- summary?: string;
133
- message?: string;
134
- found?: unknown;
135
- property?: string;
136
- expected?: string;
137
- };
138
110
  };
139
111
  };
140
112
  };
@@ -1,17 +1,16 @@
1
1
  import Elysia from "elysia";
2
- export declare const BoostController: Elysia<"/boosts", {
2
+ export declare const BoostController: Elysia<"/boosts", false, {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- typebox: import("@sinclair/typebox").TModule<{}>;
8
+ type: {};
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
- parser: {};
15
14
  }, {
16
15
  boosts: {
17
16
  euler: {
@@ -30,15 +29,6 @@ export declare const BoostController: Elysia<"/boosts", {
30
29
  address: string;
31
30
  boost: string;
32
31
  }[];
33
- 422: {
34
- type: "validation";
35
- on: string;
36
- summary?: string;
37
- message?: string;
38
- found?: unknown;
39
- property?: string;
40
- expected?: string;
41
- };
42
32
  };
43
33
  };
44
34
  };
@@ -1,17 +1,16 @@
1
1
  import Elysia from "elysia";
2
- export declare const CampaignController: Elysia<"/campaigns", {
2
+ export declare const CampaignController: Elysia<"/campaigns", false, {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- typebox: import("@sinclair/typebox").TModule<{}>;
8
+ type: {};
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
- parser: {};
15
14
  }, {
16
15
  campaigns: {
17
16
  engine: {
@@ -20,8 +19,8 @@ export declare const CampaignController: Elysia<"/campaigns", {
20
19
  tags?: string[] | undefined;
21
20
  identifier?: string | undefined;
22
21
  subType?: number | undefined;
23
- params: string;
24
22
  type: number;
23
+ params: string;
25
24
  creator: string;
26
25
  chainId: number;
27
26
  startTimestamp: string;
@@ -39,9 +38,9 @@ export declare const CampaignController: Elysia<"/campaigns", {
39
38
  };
40
39
  response: {
41
40
  200: {
42
- params: import("database/api/.generated/runtime/library").JsonValue;
43
41
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
44
42
  id: string;
43
+ params: import("database/api/.generated/runtime/library").JsonValue;
45
44
  subType: number | null;
46
45
  startTimestamp: bigint;
47
46
  endTimestamp: bigint;
@@ -53,15 +52,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
53
52
  opportunityId: string;
54
53
  creatorAddress: string;
55
54
  } | 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
- };
65
55
  };
66
56
  };
67
57
  };
@@ -81,15 +71,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
81
71
  };
82
72
  response: {
83
73
  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
- };
93
74
  };
94
75
  };
95
76
  };
@@ -108,9 +89,9 @@ export declare const CampaignController: Elysia<"/campaigns", {
108
89
  };
109
90
  response: {
110
91
  200: {
111
- params: import("database/api/.generated/runtime/library").JsonValue;
112
92
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
113
93
  id: string;
94
+ params: import("database/api/.generated/runtime/library").JsonValue;
114
95
  subType: number | null;
115
96
  startTimestamp: bigint;
116
97
  endTimestamp: bigint;
@@ -122,15 +103,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
122
103
  opportunityId: string;
123
104
  creatorAddress: string;
124
105
  };
125
- 422: {
126
- type: "validation";
127
- on: string;
128
- summary?: string;
129
- message?: string;
130
- found?: unknown;
131
- property?: string;
132
- expected?: string;
133
- };
134
106
  };
135
107
  };
136
108
  };
@@ -205,15 +177,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
205
177
  opportunityId: string;
206
178
  creatorAddress: string;
207
179
  }[];
208
- 422: {
209
- type: "validation";
210
- on: string;
211
- summary?: string;
212
- message?: string;
213
- found?: unknown;
214
- property?: string;
215
- expected?: string;
216
- };
217
180
  };
218
181
  };
219
182
  };
@@ -243,15 +206,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
243
206
  headers: unknown;
244
207
  response: {
245
208
  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
- };
255
209
  };
256
210
  };
257
211
  };
@@ -273,15 +227,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
273
227
  }[];
274
228
  campaignId: string;
275
229
  }[];
276
- 422: {
277
- type: "validation";
278
- on: string;
279
- summary?: string;
280
- message?: string;
281
- found?: unknown;
282
- property?: string;
283
- expected?: string;
284
- };
285
230
  };
286
231
  };
287
232
  };
@@ -298,15 +243,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
298
243
  headers: unknown;
299
244
  response: {
300
245
  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
- };
310
246
  };
311
247
  };
312
248
  };
@@ -325,15 +261,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
325
261
  };
326
262
  response: {
327
263
  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
- };
337
264
  };
338
265
  };
339
266
  };