@merkl/api 0.10.168 → 0.10.169

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/dist/src/cache/declaration.d.ts +0 -30
  2. package/dist/src/cache/declaration.js +0 -30
  3. package/dist/src/eden/index.d.ts +59 -12
  4. package/dist/src/index.d.ts +23 -4
  5. package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.js +2 -2
  6. package/dist/src/libs/positions/clamm/index.d.ts +1 -2
  7. package/dist/src/libs/positions/clamm/index.js +322 -330
  8. package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.d.ts +1 -1
  9. package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.js +1 -1
  10. package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +1 -1
  11. package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.js +2 -2
  12. package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.d.ts +1 -2
  13. package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.js +1 -4
  14. package/dist/src/libs/positions/euler/index.js +2 -3
  15. package/dist/src/libs/positions/index.js +1 -1
  16. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +2 -2
  17. package/dist/src/modules/v4/campaign/campaign.service.d.ts +6 -5
  18. package/dist/src/modules/v4/campaign/campaign.service.js +10 -2
  19. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -2
  20. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +159 -0
  21. package/dist/src/modules/v4/opportunity/opportunity.repository.js +29 -0
  22. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +131 -3
  23. package/dist/src/modules/v4/opportunity/opportunity.service.js +11 -0
  24. package/dist/src/modules/v4/position/implementations/AjnaPositionFetcher.d.ts +6 -0
  25. package/dist/src/modules/v4/position/implementations/AjnaPositionFetcher.js +90 -0
  26. package/dist/src/modules/v4/position/implementations/BadgerPositionFetcher.d.ts +6 -0
  27. package/dist/src/modules/v4/position/implementations/BadgerPositionFetcher.js +69 -0
  28. package/dist/src/modules/v4/position/implementations/ClammPositionFetcher.d.ts +6 -0
  29. package/dist/src/modules/v4/position/implementations/ClammPositionFetcher.js +71 -0
  30. package/dist/src/modules/v4/position/implementations/DolomitePositionFetcher.d.ts +6 -0
  31. package/dist/src/modules/v4/position/implementations/DolomitePositionFetcher.js +45 -0
  32. package/dist/src/modules/v4/position/implementations/ERC20PositionFetcher.d.ts +6 -0
  33. package/dist/src/modules/v4/position/implementations/ERC20PositionFetcher.js +47 -0
  34. package/dist/src/modules/v4/position/implementations/EulerPositionFetcher.d.ts +6 -0
  35. package/dist/src/modules/v4/position/implementations/EulerPositionFetcher.js +40 -0
  36. package/dist/src/modules/v4/position/index.d.ts +2 -0
  37. package/dist/src/modules/v4/position/index.js +2 -0
  38. package/dist/src/modules/v4/position/position.controller.d.ts +39 -0
  39. package/dist/src/modules/v4/position/position.controller.js +16 -0
  40. package/dist/src/modules/v4/position/position.model.d.ts +25 -0
  41. package/dist/src/modules/v4/position/position.model.js +5 -0
  42. package/dist/src/modules/v4/position/position.repository.d.ts +14 -0
  43. package/dist/src/modules/v4/position/position.repository.js +6 -0
  44. package/dist/src/modules/v4/position/position.service.d.ts +5 -0
  45. package/dist/src/modules/v4/position/position.service.js +34 -0
  46. package/dist/src/modules/v4/reward/reward.service.d.ts +5 -0
  47. package/dist/src/modules/v4/reward/reward.service.js +5 -2
  48. package/dist/src/modules/v4/router.d.ts +23 -4
  49. package/dist/src/modules/v4/router.js +3 -1
  50. package/dist/src/routes/v1/prices.js +2 -4
  51. package/dist/src/routes/v3/blacklist.d.ts +23 -4
  52. package/dist/src/routes/v3/campaigns.d.ts +24 -5
  53. package/dist/src/routes/v3/campaignsInfo.d.ts +23 -4
  54. package/dist/src/routes/v3/multiChainPositions.d.ts +23 -4
  55. package/dist/src/routes/v3/opportunity.d.ts +23 -4
  56. package/dist/src/routes/v3/positions.d.ts +23 -4
  57. package/dist/src/routes/v3/recipients.d.ts +6 -2
  58. package/dist/src/routes/v3/recipients.js +14 -8
  59. package/dist/src/routes/v3/rewards.d.ts +23 -4
  60. package/dist/src/routes/v3/updates.d.ts +23 -4
  61. package/dist/src/routes/v3/userRewards.d.ts +23 -4
  62. package/dist/src/utils/prices/services/erc4626Service.js +4 -4
  63. package/dist/tsconfig.package.tsbuildinfo +1 -1
  64. package/package.json +1 -1
  65. package/dist/src/libs/reports/campaignReport.d.ts +0 -9
  66. package/dist/src/libs/reports/campaignReport.js +0 -37
  67. package/dist/src/libs/reports/mainParameterRewards.d.ts +0 -3
  68. package/dist/src/libs/reports/mainParameterRewards.js +0 -48
@@ -241,7 +241,7 @@ export declare const v4: Elysia<"/v4", false, {
241
241
  tvl: number;
242
242
  apr: number;
243
243
  dailyRewards: number;
244
- campaigns: ({
244
+ campaigns: {
245
245
  params: any;
246
246
  chain: {
247
247
  name: string;
@@ -284,7 +284,7 @@ export declare const v4: Elysia<"/v4", false, {
284
284
  amount: string;
285
285
  opportunityId: string;
286
286
  creatorAddress: string;
287
- } | null)[];
287
+ }[];
288
288
  } | null | undefined;
289
289
  };
290
290
  };
@@ -526,7 +526,7 @@ export declare const v4: Elysia<"/v4", false, {
526
526
  };
527
527
  headers: unknown;
528
528
  response: {
529
- 200: ({
529
+ 200: {
530
530
  params: any;
531
531
  chain: {
532
532
  name: string;
@@ -569,7 +569,7 @@ export declare const v4: Elysia<"/v4", false, {
569
569
  amount: string;
570
570
  opportunityId: string;
571
571
  creatorAddress: string;
572
- } | null)[];
572
+ }[];
573
573
  };
574
574
  };
575
575
  };
@@ -2194,6 +2194,25 @@ export declare const v4: Elysia<"/v4", false, {
2194
2194
  };
2195
2195
  };
2196
2196
  };
2197
+ } & {
2198
+ v4: {
2199
+ positions: {
2200
+ index: {
2201
+ get: {
2202
+ body: unknown;
2203
+ params: {};
2204
+ query: {
2205
+ chainId: number;
2206
+ address: string;
2207
+ };
2208
+ headers: unknown;
2209
+ response: {
2210
+ 200: any[];
2211
+ };
2212
+ };
2213
+ };
2214
+ };
2215
+ };
2197
2216
  }, {
2198
2217
  derive: {};
2199
2218
  resolve: {};
@@ -18,6 +18,7 @@ import Elysia from "elysia";
18
18
  import { DynamicDataController } from "./dynamicData";
19
19
  import { InteractionController } from "./interaction/interaction.controller";
20
20
  import { MerklRootController } from "./merklRoot";
21
+ import { PositionController } from "./position/position.controller";
21
22
  import { StatusController } from "./status";
22
23
  import { UserController } from "./user";
23
24
  // ─── V4 Router ───────────────────────────────────────────────────────────────
@@ -57,4 +58,5 @@ export const v4 = new Elysia({ tags: ["v4"], prefix: "/v4" })
57
58
  .use(InteractionController)
58
59
  .use(AccountingController)
59
60
  .use(DynamicDataController)
60
- .use(StatusController);
61
+ .use(StatusController)
62
+ .use(PositionController);
@@ -1,10 +1,8 @@
1
- import { Pricer } from "../../utils/pricer";
1
+ import { PriceService } from "../../modules/v4/price";
2
2
  import { t } from "elysia";
3
3
  export const response = t.Array(t.Object({ rate: t.Number(), token: t.String() }));
4
4
  export default (app) => app.get("", async () => {
5
- return await Pricer.load().then(async (pricer) => {
6
- return pricer.getArray();
7
- });
5
+ return await PriceService.findManyArray();
8
6
  }, {
9
7
  query: t.Object({}),
10
8
  tags: ["Onchain"],
@@ -265,7 +265,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
265
265
  tvl: number;
266
266
  apr: number;
267
267
  dailyRewards: number;
268
- campaigns: ({
268
+ campaigns: {
269
269
  params: any;
270
270
  chain: {
271
271
  name: string;
@@ -308,7 +308,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
308
308
  amount: string;
309
309
  opportunityId: string;
310
310
  creatorAddress: string;
311
- } | null)[];
311
+ }[];
312
312
  } | null | undefined;
313
313
  };
314
314
  };
@@ -550,7 +550,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
550
550
  };
551
551
  headers: unknown;
552
552
  response: {
553
- 200: ({
553
+ 200: {
554
554
  params: any;
555
555
  chain: {
556
556
  name: string;
@@ -593,7 +593,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
593
593
  amount: string;
594
594
  opportunityId: string;
595
595
  creatorAddress: string;
596
- } | null)[];
596
+ }[];
597
597
  };
598
598
  };
599
599
  };
@@ -2218,6 +2218,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2218
2218
  };
2219
2219
  };
2220
2220
  };
2221
+ } & {
2222
+ v4: {
2223
+ positions: {
2224
+ index: {
2225
+ get: {
2226
+ body: unknown;
2227
+ params: {};
2228
+ query: {
2229
+ chainId: number;
2230
+ address: string;
2231
+ };
2232
+ headers: unknown;
2233
+ response: {
2234
+ 200: any[];
2235
+ };
2236
+ };
2237
+ };
2238
+ };
2239
+ };
2221
2240
  } & {
2222
2241
  index: {
2223
2242
  get: {
@@ -268,7 +268,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
268
268
  tvl: number;
269
269
  apr: number;
270
270
  dailyRewards: number;
271
- campaigns: ({
271
+ campaigns: {
272
272
  params: any;
273
273
  chain: {
274
274
  name: string;
@@ -311,7 +311,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
311
311
  amount: string;
312
312
  opportunityId: string;
313
313
  creatorAddress: string;
314
- } | null)[];
314
+ }[];
315
315
  } | null | undefined;
316
316
  };
317
317
  };
@@ -553,7 +553,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
553
553
  };
554
554
  headers: unknown;
555
555
  response: {
556
- 200: ({
556
+ 200: {
557
557
  params: any;
558
558
  chain: {
559
559
  name: string;
@@ -596,7 +596,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
596
596
  amount: string;
597
597
  opportunityId: string;
598
598
  creatorAddress: string;
599
- } | null)[];
599
+ }[];
600
600
  };
601
601
  };
602
602
  };
@@ -2221,13 +2221,32 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2221
2221
  };
2222
2222
  };
2223
2223
  };
2224
+ } & {
2225
+ v4: {
2226
+ positions: {
2227
+ index: {
2228
+ get: {
2229
+ body: unknown;
2230
+ params: {};
2231
+ query: {
2232
+ chainId: number;
2233
+ address: string;
2234
+ };
2235
+ headers: unknown;
2236
+ response: {
2237
+ 200: any[];
2238
+ };
2239
+ };
2240
+ };
2241
+ };
2242
+ };
2224
2243
  } & {
2225
2244
  index: {
2226
2245
  get: {
2227
2246
  body: unknown;
2228
2247
  params: {};
2229
2248
  query: {
2230
- types?: string | number | number[] | string[] | undefined;
2249
+ types?: string | number | string[] | number[] | undefined;
2231
2250
  live?: boolean | undefined;
2232
2251
  chainIds?: string | string[] | undefined;
2233
2252
  creatorTag?: string | undefined;
@@ -259,7 +259,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
259
259
  tvl: number;
260
260
  apr: number;
261
261
  dailyRewards: number;
262
- campaigns: ({
262
+ campaigns: {
263
263
  params: any;
264
264
  chain: {
265
265
  name: string;
@@ -302,7 +302,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
302
302
  amount: string;
303
303
  opportunityId: string;
304
304
  creatorAddress: string;
305
- } | null)[];
305
+ }[];
306
306
  } | null | undefined;
307
307
  };
308
308
  };
@@ -544,7 +544,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
544
544
  };
545
545
  headers: unknown;
546
546
  response: {
547
- 200: ({
547
+ 200: {
548
548
  params: any;
549
549
  chain: {
550
550
  name: string;
@@ -587,7 +587,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
587
587
  amount: string;
588
588
  opportunityId: string;
589
589
  creatorAddress: string;
590
- } | null)[];
590
+ }[];
591
591
  };
592
592
  };
593
593
  };
@@ -2212,6 +2212,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2212
2212
  };
2213
2213
  };
2214
2214
  };
2215
+ } & {
2216
+ v4: {
2217
+ positions: {
2218
+ index: {
2219
+ get: {
2220
+ body: unknown;
2221
+ params: {};
2222
+ query: {
2223
+ chainId: number;
2224
+ address: string;
2225
+ };
2226
+ headers: unknown;
2227
+ response: {
2228
+ 200: any[];
2229
+ };
2230
+ };
2231
+ };
2232
+ };
2233
+ };
2215
2234
  } & {
2216
2235
  index: {
2217
2236
  post: {
@@ -264,7 +264,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
264
264
  tvl: number;
265
265
  apr: number;
266
266
  dailyRewards: number;
267
- campaigns: ({
267
+ campaigns: {
268
268
  params: any;
269
269
  chain: {
270
270
  name: string;
@@ -307,7 +307,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
307
307
  amount: string;
308
308
  opportunityId: string;
309
309
  creatorAddress: string;
310
- } | null)[];
310
+ }[];
311
311
  } | null | undefined;
312
312
  };
313
313
  };
@@ -549,7 +549,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
549
549
  };
550
550
  headers: unknown;
551
551
  response: {
552
- 200: ({
552
+ 200: {
553
553
  params: any;
554
554
  chain: {
555
555
  name: string;
@@ -592,7 +592,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
592
592
  amount: string;
593
593
  opportunityId: string;
594
594
  creatorAddress: string;
595
- } | null)[];
595
+ }[];
596
596
  };
597
597
  };
598
598
  };
@@ -2217,6 +2217,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2217
2217
  };
2218
2218
  };
2219
2219
  };
2220
+ } & {
2221
+ v4: {
2222
+ positions: {
2223
+ index: {
2224
+ get: {
2225
+ body: unknown;
2226
+ params: {};
2227
+ query: {
2228
+ chainId: number;
2229
+ address: string;
2230
+ };
2231
+ headers: unknown;
2232
+ response: {
2233
+ 200: any[];
2234
+ };
2235
+ };
2236
+ };
2237
+ };
2238
+ };
2220
2239
  } & {
2221
2240
  index: {
2222
2241
  get: {
@@ -282,7 +282,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
282
282
  tvl: number;
283
283
  apr: number;
284
284
  dailyRewards: number;
285
- campaigns: ({
285
+ campaigns: {
286
286
  params: any;
287
287
  chain: {
288
288
  name: string;
@@ -325,7 +325,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
325
325
  amount: string;
326
326
  opportunityId: string;
327
327
  creatorAddress: string;
328
- } | null)[];
328
+ }[];
329
329
  } | null | undefined;
330
330
  };
331
331
  };
@@ -567,7 +567,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
567
567
  };
568
568
  headers: unknown;
569
569
  response: {
570
- 200: ({
570
+ 200: {
571
571
  params: any;
572
572
  chain: {
573
573
  name: string;
@@ -610,7 +610,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
610
610
  amount: string;
611
611
  opportunityId: string;
612
612
  creatorAddress: string;
613
- } | null)[];
613
+ }[];
614
614
  };
615
615
  };
616
616
  };
@@ -2235,6 +2235,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2235
2235
  };
2236
2236
  };
2237
2237
  };
2238
+ } & {
2239
+ v4: {
2240
+ positions: {
2241
+ index: {
2242
+ get: {
2243
+ body: unknown;
2244
+ params: {};
2245
+ query: {
2246
+ chainId: number;
2247
+ address: string;
2248
+ };
2249
+ headers: unknown;
2250
+ response: {
2251
+ 200: any[];
2252
+ };
2253
+ };
2254
+ };
2255
+ };
2256
+ };
2238
2257
  } & {
2239
2258
  index: {
2240
2259
  get: {
@@ -283,7 +283,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
283
283
  tvl: number;
284
284
  apr: number;
285
285
  dailyRewards: number;
286
- campaigns: ({
286
+ campaigns: {
287
287
  params: any;
288
288
  chain: {
289
289
  name: string;
@@ -326,7 +326,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
326
326
  amount: string;
327
327
  opportunityId: string;
328
328
  creatorAddress: string;
329
- } | null)[];
329
+ }[];
330
330
  } | null | undefined;
331
331
  };
332
332
  };
@@ -568,7 +568,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
568
568
  };
569
569
  headers: unknown;
570
570
  response: {
571
- 200: ({
571
+ 200: {
572
572
  params: any;
573
573
  chain: {
574
574
  name: string;
@@ -611,7 +611,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
611
611
  amount: string;
612
612
  opportunityId: string;
613
613
  creatorAddress: string;
614
- } | null)[];
614
+ }[];
615
615
  };
616
616
  };
617
617
  };
@@ -2236,6 +2236,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2236
2236
  };
2237
2237
  };
2238
2238
  };
2239
+ } & {
2240
+ v4: {
2241
+ positions: {
2242
+ index: {
2243
+ get: {
2244
+ body: unknown;
2245
+ params: {};
2246
+ query: {
2247
+ chainId: number;
2248
+ address: string;
2249
+ };
2250
+ headers: unknown;
2251
+ response: {
2252
+ 200: any[];
2253
+ };
2254
+ };
2255
+ };
2256
+ };
2257
+ };
2239
2258
  } & {
2240
2259
  index: {
2241
2260
  get: {
@@ -1,5 +1,4 @@
1
1
  import { type Elysia } from "elysia";
2
- import type { RewardsAmountQueryOutput } from "../../utils/queries/rewardsAmount";
3
2
  declare const _default: (app: Elysia) => Elysia<"", false, {
4
3
  decorator: {};
5
4
  store: {};
@@ -23,7 +22,12 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
23
22
  };
24
23
  headers: unknown;
25
24
  response: {
26
- 200: RewardsAmountQueryOutput;
25
+ 200: {
26
+ recipient: string;
27
+ reason: string;
28
+ rewardToken: string;
29
+ amount: string;
30
+ }[];
27
31
  };
28
32
  };
29
33
  };
@@ -1,16 +1,22 @@
1
- import { getCampaignRewardsWithCache } from "../../libs/reports/campaignReport";
1
+ import { RewardService } from "../../modules/v4/reward";
2
2
  import { t } from "elysia";
3
3
  import checkQueryChainIdValidity from "../../hooks/checkQueryChainIdValidity";
4
- import { merklChainDataWithCache } from "../../libs/merklChainData";
5
4
  export default (app) => app.use(checkQueryChainIdValidity()).get("", async ({ query }) => {
6
5
  const campaignId = query.campaignId;
7
6
  const chainId = query.chainId;
8
- const root = (await merklChainDataWithCache(chainId)).merkleRoot;
9
- let recipients = [];
10
- if (!!root) {
11
- recipients = await getCampaignRewardsWithCache(chainId, root, campaignId);
12
- }
13
- return recipients;
7
+ return (await RewardService.breakdownForCampaign({
8
+ campaignId,
9
+ chainId,
10
+ items: 10_000,
11
+ page: 0,
12
+ })).map(x => {
13
+ return {
14
+ recipient: x.recipient,
15
+ reason: x.reason,
16
+ rewardToken: x.rewardTokenAddress,
17
+ amount: x.amount,
18
+ };
19
+ });
14
20
  }, {
15
21
  query: t.Object({
16
22
  campaignId: t.String(),
@@ -265,7 +265,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
265
265
  tvl: number;
266
266
  apr: number;
267
267
  dailyRewards: number;
268
- campaigns: ({
268
+ campaigns: {
269
269
  params: any;
270
270
  chain: {
271
271
  name: string;
@@ -308,7 +308,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
308
308
  amount: string;
309
309
  opportunityId: string;
310
310
  creatorAddress: string;
311
- } | null)[];
311
+ }[];
312
312
  } | null | undefined;
313
313
  };
314
314
  };
@@ -550,7 +550,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
550
550
  };
551
551
  headers: unknown;
552
552
  response: {
553
- 200: ({
553
+ 200: {
554
554
  params: any;
555
555
  chain: {
556
556
  name: string;
@@ -593,7 +593,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
593
593
  amount: string;
594
594
  opportunityId: string;
595
595
  creatorAddress: string;
596
- } | null)[];
596
+ }[];
597
597
  };
598
598
  };
599
599
  };
@@ -2218,6 +2218,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2218
2218
  };
2219
2219
  };
2220
2220
  };
2221
+ } & {
2222
+ v4: {
2223
+ positions: {
2224
+ index: {
2225
+ get: {
2226
+ body: unknown;
2227
+ params: {};
2228
+ query: {
2229
+ chainId: number;
2230
+ address: string;
2231
+ };
2232
+ headers: unknown;
2233
+ response: {
2234
+ 200: any[];
2235
+ };
2236
+ };
2237
+ };
2238
+ };
2239
+ };
2221
2240
  } & {
2222
2241
  index: {
2223
2242
  get: {
@@ -266,7 +266,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
266
266
  tvl: number;
267
267
  apr: number;
268
268
  dailyRewards: number;
269
- campaigns: ({
269
+ campaigns: {
270
270
  params: any;
271
271
  chain: {
272
272
  name: string;
@@ -309,7 +309,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
309
309
  amount: string;
310
310
  opportunityId: string;
311
311
  creatorAddress: string;
312
- } | null)[];
312
+ }[];
313
313
  } | null | undefined;
314
314
  };
315
315
  };
@@ -551,7 +551,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
551
551
  };
552
552
  headers: unknown;
553
553
  response: {
554
- 200: ({
554
+ 200: {
555
555
  params: any;
556
556
  chain: {
557
557
  name: string;
@@ -594,7 +594,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
594
594
  amount: string;
595
595
  opportunityId: string;
596
596
  creatorAddress: string;
597
- } | null)[];
597
+ }[];
598
598
  };
599
599
  };
600
600
  };
@@ -2219,6 +2219,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2219
2219
  };
2220
2220
  };
2221
2221
  };
2222
+ } & {
2223
+ v4: {
2224
+ positions: {
2225
+ index: {
2226
+ get: {
2227
+ body: unknown;
2228
+ params: {};
2229
+ query: {
2230
+ chainId: number;
2231
+ address: string;
2232
+ };
2233
+ headers: unknown;
2234
+ response: {
2235
+ 200: any[];
2236
+ };
2237
+ };
2238
+ };
2239
+ };
2240
+ };
2222
2241
  } & {
2223
2242
  index: {
2224
2243
  get: {