@merkl/api 0.10.81 → 0.10.83

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 (62) hide show
  1. package/dist/src/cache/declaration.d.ts +5 -0
  2. package/dist/src/eden/index.d.ts +66 -307
  3. package/dist/src/index.d.ts +24 -117
  4. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicDataRefacto.d.ts +3 -0
  5. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +16 -1
  6. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.d.ts +30 -0
  7. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AssetProcessor.d.ts +35 -0
  8. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AuraProcessor.d.ts +61 -0
  9. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerGaugeProcessor.d.ts +49 -0
  10. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerPoolProcessor.d.ts +53 -0
  11. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BeefyProcessor.d.ts +48 -0
  12. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/CompoundProcessor.d.ts +44 -0
  13. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EnzymeProcessor.d.ts +40 -0
  14. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerBorrowProcessor.d.ts +37 -0
  15. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerLendProcessor.d.ts +37 -0
  16. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/FluidProcessor.d.ts +39 -0
  17. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/FraxProcessor.d.ts +33 -0
  18. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GearboxProcessor.d.ts +40 -0
  19. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MetamorphoProcessor.d.ts +31 -0
  20. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleProcessor.d.ts +27 -0
  21. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/RadiantProcessor.d.ts +32 -0
  22. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SpliceProcessor.d.ts +16 -0
  23. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SturdySiloProcessor.d.ts +39 -0
  24. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TorosProcessor.d.ts +29 -0
  25. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/curveProcessor.d.ts +47 -0
  26. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/genericProcessor.d.ts +61 -0
  27. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.d.ts +6 -0
  28. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/templateProcessor.d.ts +32 -0
  29. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/uniswapProcessor.d.ts +42 -0
  30. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPricesRefactoFinal.d.ts +4 -0
  31. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.d.ts +3 -0
  32. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2RefactoFinal.d.ts +3 -0
  33. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3RefactoFinal.d.ts +3 -0
  34. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4RefactoFinal.d.ts +4 -0
  35. package/dist/src/libs/campaigns/campaignsDynamicDataRefacto.d.ts +3 -0
  36. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +0 -12
  37. package/dist/src/modules/v4/reward/reward.repository.d.ts +1 -0
  38. package/dist/src/modules/v4/reward/reward.service.d.ts +126 -109
  39. package/dist/src/modules/v4/router.d.ts +24 -117
  40. package/dist/src/modules/v4/testdynamicData/dynamicData.controller.d.ts +50 -0
  41. package/dist/src/modules/v4/testdynamicData/dynamicData.model.d.ts +5 -0
  42. package/dist/src/modules/v4/testdynamicData/dynamicData.repository.d.ts +0 -0
  43. package/dist/src/modules/v4/testdynamicData/dynamicData.service.d.ts +12 -0
  44. package/dist/src/modules/v4/testdynamicData/index.d.ts +3 -0
  45. package/dist/src/modules/v4/token/token.repository.d.ts +1 -1
  46. package/dist/src/modules/v4/user/user.controller.d.ts +2 -2
  47. package/dist/src/routes/v3/ERC20Campaigns.d.ts +24 -117
  48. package/dist/src/routes/v3/blacklist.d.ts +24 -117
  49. package/dist/src/routes/v3/campaigns.d.ts +24 -117
  50. package/dist/src/routes/v3/campaignsInfo.d.ts +24 -117
  51. package/dist/src/routes/v3/multiChainPositions.d.ts +24 -117
  52. package/dist/src/routes/v3/opportunity.d.ts +24 -117
  53. package/dist/src/routes/v3/positions.d.ts +24 -117
  54. package/dist/src/routes/v3/rewards.d.ts +24 -117
  55. package/dist/src/routes/v3/updates.d.ts +24 -117
  56. package/dist/src/routes/v3/userRewards.d.ts +24 -117
  57. package/dist/src/utils/decodeCalls.d.ts +2 -0
  58. package/dist/src/utils/encodeCalls.d.ts +3 -0
  59. package/dist/src/utils/generateCardName.d.ts +3 -0
  60. package/dist/src/utils/interfaces.d.ts +39 -0
  61. package/dist/tsconfig.package.tsbuildinfo +1 -1
  62. package/package.json +1 -1
@@ -150,4 +150,9 @@ export declare const CacheDeclaration: {
150
150
  redisTTL: TTLType.Hours3;
151
151
  localCache: true;
152
152
  };
153
+ RootsWithRewardOnChain: {
154
+ compressed: false;
155
+ redisTTL: TTLType.Minutes2;
156
+ localCache: true;
157
+ };
153
158
  };
@@ -917,7 +917,7 @@ declare const eden: {
917
917
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
918
918
  200: (Omit<{
919
919
  chain: import("../../database/api/.generated").Chain;
920
- rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["getByRecipient"]>>;
920
+ rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["format"]>>;
921
921
  }, "rewards"> & {
922
922
  rewards: (Omit<{
923
923
  token: {
@@ -1016,7 +1016,7 @@ declare const eden: {
1016
1016
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1017
1017
  200: (Omit<{
1018
1018
  chain: import("../../database/api/.generated").Chain;
1019
- rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["getByRecipient"]>>;
1019
+ rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["format"]>>;
1020
1020
  }, "rewards"> & {
1021
1021
  rewards: (Omit<{
1022
1022
  token: {
@@ -1388,102 +1388,28 @@ declare const eden: {
1388
1388
  })) & {};
1389
1389
  })) & {};
1390
1390
  };
1391
- campaignStatus: {
1392
- engine: {
1393
- post: (body: {
1394
- status: {
1395
- value: "SUCCESS";
1396
- computedUntil: number;
1397
- } | {
1398
- value: "PROCESSING";
1399
- } | {
1400
- error: string;
1401
- details: string;
1402
- value: "SKIPPED";
1403
- } | {
1404
- error: string;
1405
- details: string;
1406
- value: "FAILED";
1407
- };
1408
- campaignId: string;
1409
- distributionChain: number;
1410
- }, options: {
1411
- headers: {
1412
- authorization: string;
1413
- };
1414
- query?: Record<string, unknown> | undefined;
1415
- fetch?: RequestInit | undefined;
1416
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1417
- 200: void;
1418
- }>>;
1419
- };
1420
- index: {
1421
- get: (options?: {
1422
- headers?: Record<string, unknown> | undefined;
1423
- query?: Record<string, unknown> | undefined;
1424
- fetch?: RequestInit | undefined;
1425
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1426
- 200: {
1427
- campaignId: string;
1428
- computedUntil: bigint;
1429
- processingStarted: bigint;
1430
- status: import("../../database/api/.generated").$Enums.RunStatus;
1431
- error: string;
1432
- details: import("../../database/api/.generated").Prisma.JsonValue;
1433
- }[];
1434
- }>>;
1435
- };
1436
- unique: {
1437
- get: (options: {
1438
- headers?: Record<string, unknown> | undefined;
1439
- query: {
1440
- identifier: string;
1441
- distributionChain: number;
1442
- };
1443
- fetch?: RequestInit | undefined;
1444
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1445
- 200: {
1446
- campaignId: string;
1447
- computedUntil: bigint;
1448
- processingStarted: bigint;
1449
- status: import("../../database/api/.generated").$Enums.RunStatus;
1450
- error: string;
1451
- details: import("../../database/api/.generated").Prisma.JsonValue;
1452
- };
1453
- }>>;
1454
- };
1455
- computeChain: ((params: {
1391
+ dynamicData: {
1392
+ chainId: ((params: {
1456
1393
  chainId: string | number;
1457
1394
  }) => {
1458
- get: (options?: {
1459
- headers?: Record<string, unknown> | undefined;
1460
- query?: Record<string, unknown> | undefined;
1461
- fetch?: RequestInit | undefined;
1462
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1463
- 200: {
1464
- campaignId: string;
1465
- computedUntil: bigint;
1466
- processingStarted: bigint;
1467
- status: import("../../database/api/.generated").$Enums.RunStatus;
1468
- error: string;
1469
- details: import("../../database/api/.generated").Prisma.JsonValue;
1470
- }[];
1471
- }>>;
1395
+ token: ((params: {
1396
+ tokenAddress: string | number;
1397
+ }) => {
1398
+ get: (options?: {
1399
+ headers?: Record<string, unknown> | undefined;
1400
+ query?: Record<string, unknown> | undefined;
1401
+ fetch?: RequestInit | undefined;
1402
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1403
+ 200: {
1404
+ tvl: number;
1405
+ totalSupply: number;
1406
+ cardName: string;
1407
+ blacklistedSupply: number;
1408
+ priceTargetToken: number;
1409
+ };
1410
+ }>>;
1411
+ }) & {};
1472
1412
  }) & {};
1473
- overlaps: {
1474
- get: (options: {
1475
- headers: {
1476
- authorization: string;
1477
- };
1478
- query: {
1479
- identifier: string;
1480
- distributionChain: number;
1481
- };
1482
- fetch?: RequestInit | undefined;
1483
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1484
- 200: boolean;
1485
- }>>;
1486
- };
1487
1413
  };
1488
1414
  };
1489
1415
  };
@@ -2677,7 +2603,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2677
2603
  response: {
2678
2604
  200: (Omit<{
2679
2605
  chain: import("../../database/api/.generated").Chain;
2680
- rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["getByRecipient"]>>;
2606
+ rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["format"]>>;
2681
2607
  }, "rewards"> & {
2682
2608
  rewards: (Omit<{
2683
2609
  token: {
@@ -2787,7 +2713,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2787
2713
  response: {
2788
2714
  200: (Omit<{
2789
2715
  chain: import("../../database/api/.generated").Chain;
2790
- rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["getByRecipient"]>>;
2716
+ rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["format"]>>;
2791
2717
  }, "rewards"> & {
2792
2718
  rewards: (Omit<{
2793
2719
  token: {
@@ -3243,127 +3169,34 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3243
3169
  };
3244
3170
  } & {
3245
3171
  v4: {
3246
- campaignStatus: {
3247
- engine: {
3248
- post: {
3249
- body: {
3250
- status: {
3251
- value: "SUCCESS";
3252
- computedUntil: number;
3253
- } | {
3254
- value: "PROCESSING";
3255
- } | {
3256
- error: string;
3257
- details: string;
3258
- value: "SKIPPED";
3259
- } | {
3260
- error: string;
3261
- details: string;
3262
- value: "FAILED";
3263
- };
3264
- campaignId: string;
3265
- distributionChain: number;
3266
- };
3267
- params: Record<never, string>;
3268
- query: unknown;
3269
- headers: {
3270
- authorization: string;
3271
- };
3272
- response: {
3273
- 200: void;
3274
- };
3275
- };
3276
- };
3277
- };
3278
- } & {
3279
- campaignStatus: {
3280
- index: {
3281
- get: {
3282
- body: unknown;
3283
- params: Record<never, string>;
3284
- query: unknown;
3285
- headers: unknown;
3286
- response: {
3287
- 200: {
3288
- campaignId: string;
3289
- computedUntil: bigint;
3290
- processingStarted: bigint;
3291
- status: import("../../database/api/.generated").$Enums.RunStatus;
3292
- error: string;
3293
- details: import("../../database/api/.generated").Prisma.JsonValue;
3294
- }[];
3295
- };
3296
- };
3297
- };
3298
- };
3299
- } & {
3300
- campaignStatus: {
3301
- unique: {
3302
- get: {
3303
- body: unknown;
3304
- params: Record<never, string>;
3305
- query: {
3306
- identifier: string;
3307
- distributionChain: number;
3308
- };
3309
- headers: unknown;
3310
- response: {
3311
- 200: {
3312
- campaignId: string;
3313
- computedUntil: bigint;
3314
- processingStarted: bigint;
3315
- status: import("../../database/api/.generated").$Enums.RunStatus;
3316
- error: string;
3317
- details: import("../../database/api/.generated").Prisma.JsonValue;
3318
- };
3319
- };
3320
- };
3321
- };
3322
- };
3323
- } & {
3324
- campaignStatus: {
3325
- computeChain: {
3172
+ dynamicData: {
3173
+ chainId: {
3326
3174
  ":chainId": {
3327
- get: {
3328
- body: unknown;
3329
- params: {
3330
- chainId: number;
3331
- };
3332
- query: unknown;
3333
- headers: unknown;
3334
- response: {
3335
- 200: {
3336
- campaignId: string;
3337
- computedUntil: bigint;
3338
- processingStarted: bigint;
3339
- status: import("../../database/api/.generated").$Enums.RunStatus;
3340
- error: string;
3341
- details: import("../../database/api/.generated").Prisma.JsonValue;
3342
- }[];
3175
+ token: {
3176
+ ":tokenAddress": {
3177
+ get: {
3178
+ body: unknown;
3179
+ params: {
3180
+ chainId: string;
3181
+ tokenAddress: string;
3182
+ };
3183
+ query: unknown;
3184
+ headers: unknown;
3185
+ response: {
3186
+ 200: {
3187
+ tvl: number;
3188
+ totalSupply: number;
3189
+ cardName: string;
3190
+ blacklistedSupply: number;
3191
+ priceTargetToken: number;
3192
+ };
3193
+ };
3194
+ };
3343
3195
  };
3344
3196
  };
3345
3197
  };
3346
3198
  };
3347
3199
  };
3348
- } & {
3349
- campaignStatus: {
3350
- overlaps: {
3351
- get: {
3352
- body: unknown;
3353
- params: Record<never, string>;
3354
- query: {
3355
- identifier: string;
3356
- distributionChain: number;
3357
- };
3358
- headers: {
3359
- authorization: string;
3360
- };
3361
- response: {
3362
- 200: boolean;
3363
- };
3364
- };
3365
- };
3366
- };
3367
3200
  };
3368
3201
  }, {
3369
3202
  derive: {};
@@ -4294,7 +4127,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4294
4127
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4295
4128
  200: (Omit<{
4296
4129
  chain: import("../../database/api/.generated").Chain;
4297
- rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["getByRecipient"]>>;
4130
+ rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["format"]>>;
4298
4131
  }, "rewards"> & {
4299
4132
  rewards: (Omit<{
4300
4133
  token: {
@@ -4393,7 +4226,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4393
4226
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4394
4227
  200: (Omit<{
4395
4228
  chain: import("../../database/api/.generated").Chain;
4396
- rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["getByRecipient"]>>;
4229
+ rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["format"]>>;
4397
4230
  }, "rewards"> & {
4398
4231
  rewards: (Omit<{
4399
4232
  token: {
@@ -4765,102 +4598,28 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4765
4598
  })) & {};
4766
4599
  })) & {};
4767
4600
  };
4768
- campaignStatus: {
4769
- engine: {
4770
- post: (body: {
4771
- status: {
4772
- value: "SUCCESS";
4773
- computedUntil: number;
4774
- } | {
4775
- value: "PROCESSING";
4776
- } | {
4777
- error: string;
4778
- details: string;
4779
- value: "SKIPPED";
4780
- } | {
4781
- error: string;
4782
- details: string;
4783
- value: "FAILED";
4784
- };
4785
- campaignId: string;
4786
- distributionChain: number;
4787
- }, options: {
4788
- headers: {
4789
- authorization: string;
4790
- };
4791
- query?: Record<string, unknown> | undefined;
4792
- fetch?: RequestInit | undefined;
4793
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4794
- 200: void;
4795
- }>>;
4796
- };
4797
- index: {
4798
- get: (options?: {
4799
- headers?: Record<string, unknown> | undefined;
4800
- query?: Record<string, unknown> | undefined;
4801
- fetch?: RequestInit | undefined;
4802
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4803
- 200: {
4804
- campaignId: string;
4805
- computedUntil: bigint;
4806
- processingStarted: bigint;
4807
- status: import("../../database/api/.generated").$Enums.RunStatus;
4808
- error: string;
4809
- details: import("../../database/api/.generated").Prisma.JsonValue;
4810
- }[];
4811
- }>>;
4812
- };
4813
- unique: {
4814
- get: (options: {
4815
- headers?: Record<string, unknown> | undefined;
4816
- query: {
4817
- identifier: string;
4818
- distributionChain: number;
4819
- };
4820
- fetch?: RequestInit | undefined;
4821
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4822
- 200: {
4823
- campaignId: string;
4824
- computedUntil: bigint;
4825
- processingStarted: bigint;
4826
- status: import("../../database/api/.generated").$Enums.RunStatus;
4827
- error: string;
4828
- details: import("../../database/api/.generated").Prisma.JsonValue;
4829
- };
4830
- }>>;
4831
- };
4832
- computeChain: ((params: {
4601
+ dynamicData: {
4602
+ chainId: ((params: {
4833
4603
  chainId: string | number;
4834
4604
  }) => {
4835
- get: (options?: {
4836
- headers?: Record<string, unknown> | undefined;
4837
- query?: Record<string, unknown> | undefined;
4838
- fetch?: RequestInit | undefined;
4839
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4840
- 200: {
4841
- campaignId: string;
4842
- computedUntil: bigint;
4843
- processingStarted: bigint;
4844
- status: import("../../database/api/.generated").$Enums.RunStatus;
4845
- error: string;
4846
- details: import("../../database/api/.generated").Prisma.JsonValue;
4847
- }[];
4848
- }>>;
4605
+ token: ((params: {
4606
+ tokenAddress: string | number;
4607
+ }) => {
4608
+ get: (options?: {
4609
+ headers?: Record<string, unknown> | undefined;
4610
+ query?: Record<string, unknown> | undefined;
4611
+ fetch?: RequestInit | undefined;
4612
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4613
+ 200: {
4614
+ tvl: number;
4615
+ totalSupply: number;
4616
+ cardName: string;
4617
+ blacklistedSupply: number;
4618
+ priceTargetToken: number;
4619
+ };
4620
+ }>>;
4621
+ }) & {};
4849
4622
  }) & {};
4850
- overlaps: {
4851
- get: (options: {
4852
- headers: {
4853
- authorization: string;
4854
- };
4855
- query: {
4856
- identifier: string;
4857
- distributionChain: number;
4858
- };
4859
- fetch?: RequestInit | undefined;
4860
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4861
- 200: boolean;
4862
- }>>;
4863
- };
4864
4623
  };
4865
4624
  };
4866
4625
  };
@@ -1181,7 +1181,7 @@ declare const app: Elysia<"", false, {
1181
1181
  response: {
1182
1182
  200: (Omit<{
1183
1183
  chain: import("../database/api/.generated").Chain;
1184
- rewards: Awaited<ReturnType<typeof import("./modules/v4/reward").RewardService["getByRecipient"]>>;
1184
+ rewards: Awaited<ReturnType<typeof import("./modules/v4/reward").RewardService["format"]>>;
1185
1185
  }, "rewards"> & {
1186
1186
  rewards: (Omit<{
1187
1187
  token: {
@@ -1291,7 +1291,7 @@ declare const app: Elysia<"", false, {
1291
1291
  response: {
1292
1292
  200: (Omit<{
1293
1293
  chain: import("../database/api/.generated").Chain;
1294
- rewards: Awaited<ReturnType<typeof import("./modules/v4/reward").RewardService["getByRecipient"]>>;
1294
+ rewards: Awaited<ReturnType<typeof import("./modules/v4/reward").RewardService["format"]>>;
1295
1295
  }, "rewards"> & {
1296
1296
  rewards: (Omit<{
1297
1297
  token: {
@@ -1747,127 +1747,34 @@ declare const app: Elysia<"", false, {
1747
1747
  };
1748
1748
  } & {
1749
1749
  v4: {
1750
- campaignStatus: {
1751
- engine: {
1752
- post: {
1753
- body: {
1754
- status: {
1755
- value: "SUCCESS";
1756
- computedUntil: number;
1757
- } | {
1758
- value: "PROCESSING";
1759
- } | {
1760
- error: string;
1761
- details: string;
1762
- value: "SKIPPED";
1763
- } | {
1764
- error: string;
1765
- details: string;
1766
- value: "FAILED";
1767
- };
1768
- campaignId: string;
1769
- distributionChain: number;
1770
- };
1771
- params: Record<never, string>;
1772
- query: unknown;
1773
- headers: {
1774
- authorization: string;
1775
- };
1776
- response: {
1777
- 200: void;
1778
- };
1779
- };
1780
- };
1781
- };
1782
- } & {
1783
- campaignStatus: {
1784
- index: {
1785
- get: {
1786
- body: unknown;
1787
- params: Record<never, string>;
1788
- query: unknown;
1789
- headers: unknown;
1790
- response: {
1791
- 200: {
1792
- campaignId: string;
1793
- computedUntil: bigint;
1794
- processingStarted: bigint;
1795
- status: import("../database/api/.generated").$Enums.RunStatus;
1796
- error: string;
1797
- details: import("../database/api/.generated").Prisma.JsonValue;
1798
- }[];
1799
- };
1800
- };
1801
- };
1802
- };
1803
- } & {
1804
- campaignStatus: {
1805
- unique: {
1806
- get: {
1807
- body: unknown;
1808
- params: Record<never, string>;
1809
- query: {
1810
- identifier: string;
1811
- distributionChain: number;
1812
- };
1813
- headers: unknown;
1814
- response: {
1815
- 200: {
1816
- campaignId: string;
1817
- computedUntil: bigint;
1818
- processingStarted: bigint;
1819
- status: import("../database/api/.generated").$Enums.RunStatus;
1820
- error: string;
1821
- details: import("../database/api/.generated").Prisma.JsonValue;
1822
- };
1823
- };
1824
- };
1825
- };
1826
- };
1827
- } & {
1828
- campaignStatus: {
1829
- computeChain: {
1750
+ dynamicData: {
1751
+ chainId: {
1830
1752
  ":chainId": {
1831
- get: {
1832
- body: unknown;
1833
- params: {
1834
- chainId: number;
1835
- };
1836
- query: unknown;
1837
- headers: unknown;
1838
- response: {
1839
- 200: {
1840
- campaignId: string;
1841
- computedUntil: bigint;
1842
- processingStarted: bigint;
1843
- status: import("../database/api/.generated").$Enums.RunStatus;
1844
- error: string;
1845
- details: import("../database/api/.generated").Prisma.JsonValue;
1846
- }[];
1753
+ token: {
1754
+ ":tokenAddress": {
1755
+ get: {
1756
+ body: unknown;
1757
+ params: {
1758
+ chainId: string;
1759
+ tokenAddress: string;
1760
+ };
1761
+ query: unknown;
1762
+ headers: unknown;
1763
+ response: {
1764
+ 200: {
1765
+ tvl: number;
1766
+ totalSupply: number;
1767
+ cardName: string;
1768
+ blacklistedSupply: number;
1769
+ priceTargetToken: number;
1770
+ };
1771
+ };
1772
+ };
1847
1773
  };
1848
1774
  };
1849
1775
  };
1850
1776
  };
1851
1777
  };
1852
- } & {
1853
- campaignStatus: {
1854
- overlaps: {
1855
- get: {
1856
- body: unknown;
1857
- params: Record<never, string>;
1858
- query: {
1859
- identifier: string;
1860
- distributionChain: number;
1861
- };
1862
- headers: {
1863
- authorization: string;
1864
- };
1865
- response: {
1866
- 200: boolean;
1867
- };
1868
- };
1869
- };
1870
- };
1871
1778
  };
1872
1779
  }, {
1873
1780
  derive: {};
@@ -0,0 +1,3 @@
1
+ import { type Campaign, type CampaignDynamicData, type CampaignParameters, type MerklChainId } from "@sdk";
2
+ import type { UncachedResult } from "../../../utils/execute";
3
+ export declare function ERC20DynamicDataRefacto(chainId: MerklChainId, campaigns: CampaignParameters<Campaign.ERC20>[]): Promise<UncachedResult<Partial<CampaignDynamicData<Campaign.ERC20>[]>>>;
@@ -36,8 +36,23 @@ export declare enum tokenType {
36
36
  layerbank = "layerbank",
37
37
  beefy = "beefy",
38
38
  fenix = "fenix",
39
- zkswap = "zkswap"
39
+ zkswap = "zkswap",
40
+ filament = "filament",
41
+ syncswap = "syncswap",
42
+ ra = "ra",
43
+ yei_borrowing = "yei_borrowing",
44
+ yei_lending = "yei_lending",
45
+ zerolend_borrowing = "zerolend_borrowing",
46
+ zerolend_lending = "zerolend_lending",
47
+ ironclad_lending = "ironclad_lending",
48
+ ironclad_borrowing = "ironclad_borrowing",
49
+ pendle = "pendle"
40
50
  }
51
+ export declare const tokenTypeToProtocol: {
52
+ [key in tokenType]: {
53
+ [key: string]: string;
54
+ };
55
+ };
41
56
  export type tokenTypeStruct = {
42
57
  type: tokenType;
43
58
  calls: Multicall3.Call3Struct[];