@merkl/api 1.8.27 → 1.8.29

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 (71) hide show
  1. package/dist/src/eden/index.d.ts +114 -0
  2. package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +1 -1
  3. package/dist/src/engine/implementations/StabullStaking/metadata.d.ts +1 -1
  4. package/dist/src/index.d.ts +503 -116
  5. package/dist/src/jobs/update-user-claim-db.js.map +1 -1
  6. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +18 -6
  7. package/dist/src/modules/v4/apr/apr.controller.d.ts +3 -1
  8. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +62 -22
  9. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +24 -8
  10. package/dist/src/modules/v4/campaignStatus/campaignStatus.controller.d.ts +36 -16
  11. package/dist/src/modules/v4/campaignToProcess/campaignToProcess.controller.d.ts +24 -8
  12. package/dist/src/modules/v4/carousel/carousel.controller.d.ts +10 -13
  13. package/dist/src/modules/v4/chain/chain.repository.d.ts +3 -6
  14. package/dist/src/modules/v4/chain/chain.repository.js.map +1 -1
  15. package/dist/src/modules/v4/claims/claims.repository.js.map +1 -1
  16. package/dist/src/modules/v4/clamm/clamm.controller.d.ts +3 -1
  17. package/dist/src/modules/v4/dispute/dispute.controller.d.ts +6 -2
  18. package/dist/src/modules/v4/enum/enum.controller.d.ts +158 -0
  19. package/dist/src/modules/v4/enum/enum.controller.js.map +1 -0
  20. package/dist/src/modules/v4/enum/enum.model.d.ts +91 -0
  21. package/dist/src/modules/v4/enum/enum.model.js.map +1 -0
  22. package/dist/src/modules/v4/enum/enum.service.d.ts +28 -0
  23. package/dist/src/modules/v4/enum/enum.service.js.map +1 -0
  24. package/dist/src/modules/v4/euler/euler.controller.d.ts +3 -1
  25. package/dist/src/modules/v4/indexingRange/indexingRange.controller.d.ts +6 -2
  26. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +5 -10
  27. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +21 -21
  28. package/dist/src/modules/v4/override/override.controller.d.ts +12 -4
  29. package/dist/src/modules/v4/payload/payload.controller.d.ts +15 -5
  30. package/dist/src/modules/v4/priceSource/priceSource.controller.d.ts +15 -5
  31. package/dist/src/modules/v4/priceSource/priceSource.repository.d.ts +3 -1
  32. package/dist/src/modules/v4/priceSource/priceSource.repository.js.map +1 -1
  33. package/dist/src/modules/v4/priceSource/priceSource.service.d.ts +4 -1
  34. package/dist/src/modules/v4/priceSource/priceSource.service.js.map +1 -1
  35. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +30 -16
  36. package/dist/src/modules/v4/reward/reward.controller.d.ts +33 -23
  37. package/dist/src/modules/v4/router.d.ts +476 -114
  38. package/dist/src/modules/v4/router.js.map +1 -1
  39. package/dist/src/modules/v4/template/template.controller.d.ts +7 -10
  40. package/dist/src/modules/v4/token/token.controller.d.ts +27 -9
  41. package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +25 -4
  42. package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +14 -0
  43. package/dist/src/modules/v4/user/user.controller.d.ts +8 -11
  44. package/dist/src/routes/v1/allowances.d.ts +12 -0
  45. package/dist/src/routes/v1/balances.d.ts +12 -0
  46. package/dist/src/routes/v1/router.d.ts +18 -0
  47. package/dist/src/routes/v2/router.d.ts +6 -0
  48. package/dist/src/routes/v3/blacklist.d.ts +6 -0
  49. package/dist/src/routes/v3/campaignClaims.d.ts +6 -0
  50. package/dist/src/routes/v3/campaignUnclaimed.d.ts +6 -0
  51. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +6 -0
  52. package/dist/src/routes/v3/claims.d.ts +6 -0
  53. package/dist/src/routes/v3/createCampaign.d.ts +12 -0
  54. package/dist/src/routes/v3/euler.d.ts +3 -1
  55. package/dist/src/routes/v3/fetch.d.ts +6 -0
  56. package/dist/src/routes/v3/lostyield.d.ts +6 -0
  57. package/dist/src/routes/v3/merkl.d.ts +6 -0
  58. package/dist/src/routes/v3/overview.d.ts +6 -0
  59. package/dist/src/routes/v3/payload.d.ts +6 -0
  60. package/dist/src/routes/v3/poolInfo.d.ts +6 -0
  61. package/dist/src/routes/v3/recipients.d.ts +6 -0
  62. package/dist/src/routes/v3/rewards.d.ts +6 -0
  63. package/dist/src/routes/v3/rewardsReport.d.ts +6 -0
  64. package/dist/src/routes/v3/router.d.ts +27 -1
  65. package/dist/src/routes/v3/token.d.ts +12 -0
  66. package/dist/src/routes/v3/userRewards.d.ts +12 -0
  67. package/dist/src/utils/getAPR.d.ts +75 -75
  68. package/dist/src/utils/parseDistributionType.d.ts +75 -75
  69. package/dist/src/utils/providers.d.ts +2 -0
  70. package/dist/tsconfig.tsbuildinfo +1 -1
  71. package/package.json +2 -2
@@ -9168,6 +9168,107 @@ declare const eden: {
9168
9168
  }>>;
9169
9169
  }) & {};
9170
9170
  };
9171
+ enums: ((params: {
9172
+ enumName: string | number;
9173
+ }) => {
9174
+ get: (options?: {
9175
+ fetch?: RequestInit | undefined;
9176
+ headers?: Record<string, unknown> | undefined;
9177
+ query?: Record<string, unknown> | undefined;
9178
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
9179
+ 200: {
9180
+ name: string;
9181
+ entries: {
9182
+ value: string | number;
9183
+ key: string;
9184
+ description?: string | undefined;
9185
+ }[];
9186
+ type: "number" | "string";
9187
+ };
9188
+ 422: {
9189
+ type: "validation";
9190
+ on: string;
9191
+ summary?: string | undefined;
9192
+ message?: string | undefined;
9193
+ found?: unknown;
9194
+ property?: string | undefined;
9195
+ expected?: string | undefined;
9196
+ };
9197
+ }>>;
9198
+ "batch-convert": {
9199
+ post: (body: {
9200
+ values: (string | number)[];
9201
+ }, options?: {
9202
+ fetch?: RequestInit | undefined;
9203
+ headers?: Record<string, unknown> | undefined;
9204
+ query?: Record<string, unknown> | undefined;
9205
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
9206
+ 200: {
9207
+ results: {
9208
+ input: string | number;
9209
+ output: string | number;
9210
+ description?: string | undefined;
9211
+ }[];
9212
+ };
9213
+ 422: {
9214
+ type: "validation";
9215
+ on: string;
9216
+ summary?: string | undefined;
9217
+ message?: string | undefined;
9218
+ found?: unknown;
9219
+ property?: string | undefined;
9220
+ expected?: string | undefined;
9221
+ };
9222
+ }>>;
9223
+ };
9224
+ convert: ((params: {
9225
+ value: string | number;
9226
+ }) => {
9227
+ get: (options?: {
9228
+ fetch?: RequestInit | undefined;
9229
+ headers?: Record<string, unknown> | undefined;
9230
+ query?: Record<string, unknown> | undefined;
9231
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
9232
+ 200: {
9233
+ input: string | number;
9234
+ output: string | number;
9235
+ description?: string | undefined;
9236
+ };
9237
+ 422: {
9238
+ type: "validation";
9239
+ on: string;
9240
+ summary?: string | undefined;
9241
+ message?: string | undefined;
9242
+ found?: unknown;
9243
+ property?: string | undefined;
9244
+ expected?: string | undefined;
9245
+ };
9246
+ }>>;
9247
+ }) & {};
9248
+ }) & {
9249
+ get: (options?: {
9250
+ fetch?: RequestInit | undefined;
9251
+ headers?: Record<string, unknown> | undefined;
9252
+ query?: Record<string, unknown> | undefined;
9253
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
9254
+ 200: {
9255
+ enums: {
9256
+ name: string;
9257
+ type: "number" | "string";
9258
+ hasMetadata: boolean;
9259
+ }[];
9260
+ };
9261
+ 422: {
9262
+ type: "validation";
9263
+ on: string;
9264
+ summary?: string | undefined;
9265
+ message?: string | undefined;
9266
+ found?: unknown;
9267
+ property?: string | undefined;
9268
+ expected?: string | undefined;
9269
+ };
9270
+ }>>;
9271
+ };
9171
9272
  euler: {
9172
9273
  vaults: ((params: {
9173
9274
  chainId: string | number;
@@ -16460,6 +16561,19 @@ declare const eden: {
16460
16561
  symbolCurrency1: string;
16461
16562
  tickSpacing: number;
16462
16563
  }> | undefined;
16564
+ 4114?: Record<string, {
16565
+ chainId: number;
16566
+ currency0: string;
16567
+ currency1: string;
16568
+ decimalsCurrency0: number;
16569
+ decimalsCurrency1: number;
16570
+ hooks: string;
16571
+ lpFee: number;
16572
+ poolId: string;
16573
+ symbolCurrency0: string;
16574
+ symbolCurrency1: string;
16575
+ tickSpacing: number;
16576
+ }> | undefined;
16463
16577
  42161?: Record<string, {
16464
16578
  chainId: number;
16465
16579
  currency0: string;
@@ -18,13 +18,13 @@ export declare class ErcMultiTokenMetadata implements MetadataBuilder<campaignTy
18
18
  mainProtocol: ProtocolType;
19
19
  depositUrl: string;
20
20
  } | {
21
+ description?: undefined;
21
22
  action: "HOLD";
22
23
  name: string;
23
24
  tokens: never[];
24
25
  explorerAddress: string;
25
26
  mainProtocol: undefined;
26
27
  depositUrl: undefined;
27
- description?: undefined;
28
28
  }>;
29
29
  }
30
30
  export {};
@@ -16,6 +16,7 @@ export declare class StabullStakingMetadata implements MetadataBuilder<campaignT
16
16
  description: string;
17
17
  howToSteps: string[];
18
18
  } | {
19
+ description?: undefined;
19
20
  howToSteps?: undefined;
20
21
  action: "STAKE";
21
22
  mainProtocol: ProtocolType;
@@ -26,7 +27,6 @@ export declare class StabullStakingMetadata implements MetadataBuilder<campaignT
26
27
  }[];
27
28
  explorerAddress: string | undefined;
28
29
  depositUrl: string | undefined;
29
- description?: undefined;
30
30
  }>;
31
31
  }
32
32
  export {};