@merkl/api 0.19.14 → 0.19.16

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 (48) hide show
  1. package/dist/src/eden/index.d.ts +656 -279
  2. package/dist/src/engine/erc20SubTypeProcessors/helpers/tokenType.d.ts +3 -1
  3. package/dist/src/engine/erc20SubTypeProcessors/helpers/tokenType.js +4 -0
  4. package/dist/src/engine/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +51 -0
  5. package/dist/src/engine/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.js +102 -0
  6. package/dist/src/engine/erc20SubTypeProcessors/implementations/processorMapping.js +3 -0
  7. package/dist/src/engine/erc20SubTypeProcessors/subtypesRound1.js +4 -0
  8. package/dist/src/engine/opportunityMetadata/factory.js +1 -1
  9. package/dist/src/engine/opportunityMetadata/implementations/Ajna.d.ts +3 -1
  10. package/dist/src/engine/opportunityMetadata/implementations/Ajna.js +6 -0
  11. package/dist/src/engine/opportunityMetadata/implementations/{Ambiant.d.ts → Ambient.d.ts} +2 -0
  12. package/dist/src/engine/opportunityMetadata/implementations/{Ambiant.js → Ambient.js} +5 -1
  13. package/dist/src/engine/opportunityMetadata/implementations/Badger.d.ts +2 -0
  14. package/dist/src/engine/opportunityMetadata/implementations/Badger.js +5 -0
  15. package/dist/src/engine/opportunityMetadata/implementations/Clamm.d.ts +27 -0
  16. package/dist/src/engine/opportunityMetadata/implementations/Clamm.js +145 -1
  17. package/dist/src/engine/opportunityMetadata/implementations/Compound.d.ts +2 -0
  18. package/dist/src/engine/opportunityMetadata/implementations/Compound.js +4 -0
  19. package/dist/src/engine/opportunityMetadata/implementations/Erc20.d.ts +2 -0
  20. package/dist/src/engine/opportunityMetadata/implementations/Erc20.js +4 -0
  21. package/dist/src/engine/opportunityMetadata/implementations/Euler.d.ts +2 -0
  22. package/dist/src/engine/opportunityMetadata/implementations/Euler.js +4 -0
  23. package/dist/src/engine/opportunityMetadata/implementations/EventBased.d.ts +3 -0
  24. package/dist/src/engine/opportunityMetadata/implementations/EventBased.js +4 -0
  25. package/dist/src/engine/opportunityMetadata/implementations/Hyperdrive.d.ts +2 -0
  26. package/dist/src/engine/opportunityMetadata/implementations/Hyperdrive.js +5 -0
  27. package/dist/src/engine/opportunityMetadata/implementations/JsonAirdrop.d.ts +8 -0
  28. package/dist/src/engine/opportunityMetadata/implementations/JsonAirdrop.js +4 -0
  29. package/dist/src/engine/opportunityMetadata/implementations/Morpho.d.ts +2 -0
  30. package/dist/src/engine/opportunityMetadata/implementations/Morpho.js +17 -1
  31. package/dist/src/index.d.ts +169 -0
  32. package/dist/src/jobs/set-dungeon-keeper.js +8 -1
  33. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +169 -0
  34. package/dist/src/modules/v4/campaign/campaign.controller.js +62 -0
  35. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +2 -2
  36. package/dist/src/modules/v4/dynamicData/dynamicData.service.js +5 -4
  37. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +16 -25
  38. package/dist/src/modules/v4/opportunity/opportunity.service.js +34 -34
  39. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +3 -15
  40. package/dist/src/modules/v4/programPayload/programPayload.repository.js +3 -36
  41. package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
  42. package/dist/src/modules/v4/protocol/protocol.model.js +0 -1
  43. package/dist/src/modules/v4/router.d.ts +169 -0
  44. package/dist/src/utils/decodeCalls.js +9 -1
  45. package/dist/src/utils/encodeCalls.js +9 -1
  46. package/dist/src/utils/generateCardName.js +3 -0
  47. package/dist/tsconfig.package.tsbuildinfo +1 -1
  48. package/package.json +1 -1
@@ -1165,66 +1165,58 @@ declare const eden: {
1165
1165
  };
1166
1166
  }>>;
1167
1167
  };
1168
- "campaigns-to-process": {
1169
- index: {
1170
- get: (options: {
1171
- headers?: Record<string, unknown> | undefined;
1172
- query: {
1173
- chainId: number;
1174
- };
1175
- fetch?: RequestInit | undefined;
1176
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1177
- 200: {
1178
- campaignId: string;
1179
- endTimestamp: bigint;
1180
- CampaignStatus: {
1181
- status: import("@db/api").$Enums.RunStatus;
1182
- computedUntil: bigint;
1183
- processingStarted: bigint;
1184
- }[];
1185
- }[];
1186
- }>>;
1187
- };
1188
- count: {
1168
+ "dry-run": ((params: {
1169
+ campaignId: string | number;
1170
+ }) => {
1171
+ "dynamic-data": {
1189
1172
  get: (options: {
1190
- headers?: Record<string, unknown> | undefined;
1191
- query: {
1192
- chainId: number;
1173
+ headers: {
1174
+ authorization: string;
1193
1175
  };
1176
+ query?: Record<string, unknown> | undefined;
1194
1177
  fetch?: RequestInit | undefined;
1195
1178
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1196
- 200: number;
1179
+ 200: unknown[];
1197
1180
  }>>;
1198
1181
  };
1199
- next: {
1182
+ "meta-data": {
1200
1183
  get: (options: {
1201
- headers?: Record<string, unknown> | undefined;
1202
- query: {
1203
- chainId: number;
1204
- };
1205
- fetch?: RequestInit | undefined;
1206
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1207
- 200: {
1208
- campaignId: string;
1209
- };
1210
- }>>;
1211
- };
1212
- engine: {
1213
- post: (body: unknown, options: {
1214
1184
  headers: {
1215
1185
  authorization: string;
1216
1186
  };
1217
- query: {
1218
- chainId: number;
1219
- };
1187
+ query?: Record<string, unknown> | undefined;
1220
1188
  fetch?: RequestInit | undefined;
1221
1189
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1222
1190
  200: {
1223
- campaignId: string;
1191
+ id: string;
1192
+ chainId: number;
1193
+ type: string;
1194
+ identifier: string;
1195
+ name: string;
1196
+ status: "PAST" | "LIVE" | "SOON";
1197
+ action: any;
1198
+ tokens: ({
1199
+ symbol: string;
1200
+ id: string;
1201
+ name: string | null;
1202
+ icon: string;
1203
+ address: string;
1204
+ chainId: number;
1205
+ decimals: number;
1206
+ verified: boolean;
1207
+ isTest: boolean;
1208
+ isPoint: boolean;
1209
+ isNative: boolean;
1210
+ } & {
1211
+ price?: number | null | undefined;
1212
+ })[][];
1213
+ mainProtocol: string | undefined;
1214
+ depositUrl: any;
1215
+ tags: string[];
1224
1216
  };
1225
1217
  }>>;
1226
1218
  };
1227
- };
1219
+ }) & {};
1228
1220
  index: {
1229
1221
  get: (options: {
1230
1222
  headers?: Record<string, unknown> | undefined;
@@ -1325,6 +1317,66 @@ declare const eden: {
1325
1317
  }[];
1326
1318
  }>>;
1327
1319
  };
1320
+ "campaigns-to-process": {
1321
+ index: {
1322
+ get: (options: {
1323
+ headers?: Record<string, unknown> | undefined;
1324
+ query: {
1325
+ chainId: number;
1326
+ };
1327
+ fetch?: RequestInit | undefined;
1328
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1329
+ 200: {
1330
+ campaignId: string;
1331
+ endTimestamp: bigint;
1332
+ CampaignStatus: {
1333
+ status: import("@db/api").$Enums.RunStatus;
1334
+ computedUntil: bigint;
1335
+ processingStarted: bigint;
1336
+ }[];
1337
+ }[];
1338
+ }>>;
1339
+ };
1340
+ count: {
1341
+ get: (options: {
1342
+ headers?: Record<string, unknown> | undefined;
1343
+ query: {
1344
+ chainId: number;
1345
+ };
1346
+ fetch?: RequestInit | undefined;
1347
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1348
+ 200: number;
1349
+ }>>;
1350
+ };
1351
+ next: {
1352
+ get: (options: {
1353
+ headers?: Record<string, unknown> | undefined;
1354
+ query: {
1355
+ chainId: number;
1356
+ };
1357
+ fetch?: RequestInit | undefined;
1358
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1359
+ 200: {
1360
+ campaignId: string;
1361
+ };
1362
+ }>>;
1363
+ };
1364
+ engine: {
1365
+ post: (body: unknown, options: {
1366
+ headers: {
1367
+ authorization: string;
1368
+ };
1369
+ query: {
1370
+ chainId: number;
1371
+ };
1372
+ fetch?: RequestInit | undefined;
1373
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1374
+ 200: {
1375
+ campaignId: string;
1376
+ };
1377
+ }>>;
1378
+ };
1379
+ };
1328
1380
  count: {
1329
1381
  get: (options: {
1330
1382
  headers?: Record<string, unknown> | undefined;
@@ -4763,66 +4815,58 @@ declare const eden: {
4763
4815
  };
4764
4816
  }>>;
4765
4817
  };
4766
- "campaigns-to-process": {
4767
- index: {
4768
- get: (options: {
4769
- headers?: Record<string, unknown> | undefined;
4770
- query: {
4771
- chainId: number;
4772
- };
4773
- fetch?: RequestInit | undefined;
4774
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4775
- 200: {
4776
- campaignId: string;
4777
- endTimestamp: bigint;
4778
- CampaignStatus: {
4779
- status: import("@db/api").$Enums.RunStatus;
4780
- computedUntil: bigint;
4781
- processingStarted: bigint;
4782
- }[];
4783
- }[];
4784
- }>>;
4785
- };
4786
- count: {
4818
+ "dry-run": ((params: {
4819
+ campaignId: string | number;
4820
+ }) => {
4821
+ "dynamic-data": {
4787
4822
  get: (options: {
4788
- headers?: Record<string, unknown> | undefined;
4789
- query: {
4790
- chainId: number;
4823
+ headers: {
4824
+ authorization: string;
4791
4825
  };
4826
+ query?: Record<string, unknown> | undefined;
4792
4827
  fetch?: RequestInit | undefined;
4793
4828
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4794
- 200: number;
4829
+ 200: unknown[];
4795
4830
  }>>;
4796
4831
  };
4797
- next: {
4832
+ "meta-data": {
4798
4833
  get: (options: {
4799
- headers?: Record<string, unknown> | undefined;
4800
- query: {
4801
- chainId: number;
4802
- };
4803
- fetch?: RequestInit | undefined;
4804
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4805
- 200: {
4806
- campaignId: string;
4807
- };
4808
- }>>;
4809
- };
4810
- engine: {
4811
- post: (body: unknown, options: {
4812
4834
  headers: {
4813
4835
  authorization: string;
4814
4836
  };
4815
- query: {
4816
- chainId: number;
4817
- };
4837
+ query?: Record<string, unknown> | undefined;
4818
4838
  fetch?: RequestInit | undefined;
4819
4839
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4820
4840
  200: {
4821
- campaignId: string;
4841
+ id: string;
4842
+ chainId: number;
4843
+ type: string;
4844
+ identifier: string;
4845
+ name: string;
4846
+ status: "PAST" | "LIVE" | "SOON";
4847
+ action: any;
4848
+ tokens: ({
4849
+ symbol: string;
4850
+ id: string;
4851
+ name: string | null;
4852
+ icon: string;
4853
+ address: string;
4854
+ chainId: number;
4855
+ decimals: number;
4856
+ verified: boolean;
4857
+ isTest: boolean;
4858
+ isPoint: boolean;
4859
+ isNative: boolean;
4860
+ } & {
4861
+ price?: number | null | undefined;
4862
+ })[][];
4863
+ mainProtocol: string | undefined;
4864
+ depositUrl: any;
4865
+ tags: string[];
4822
4866
  };
4823
4867
  }>>;
4824
4868
  };
4825
- };
4869
+ }) & {};
4826
4870
  index: {
4827
4871
  get: (options: {
4828
4872
  headers?: Record<string, unknown> | undefined;
@@ -4923,51 +4967,111 @@ declare const eden: {
4923
4967
  }[];
4924
4968
  }>>;
4925
4969
  };
4926
- count: {
4927
- get: (options: {
4928
- headers?: Record<string, unknown> | undefined;
4929
- query: {
4930
- type?: string | undefined;
4931
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
4932
- items?: number | undefined;
4933
- subType?: number | undefined;
4934
- page?: number | undefined;
4935
- types?: string[] | undefined;
4936
- campaignId?: string | undefined;
4937
- opportunityId?: string | undefined;
4938
- startTimestamp?: string | undefined;
4939
- endTimestamp?: string | undefined;
4940
- creatorAddress?: string | undefined;
4941
- chainId?: number | undefined;
4942
- creatorId?: string | undefined;
4943
- mainParameter?: string | undefined;
4944
- point?: boolean | undefined;
4945
- tokenAddress?: string | undefined;
4946
- test?: boolean | undefined;
4947
- creatorTag?: string | undefined;
4948
- distributionChainIds?: number[] | undefined;
4949
- tokenSymbol?: string | undefined;
4950
- withOpportunity?: boolean | undefined;
4951
- createdAfter?: Date | null | undefined;
4952
- };
4953
- fetch?: RequestInit | undefined;
4954
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4955
- 200: number;
4956
- }>>;
4957
- "by-type": {
4970
+ "campaigns-to-process": {
4971
+ index: {
4958
4972
  get: (options: {
4959
4973
  headers?: Record<string, unknown> | undefined;
4960
4974
  query: {
4961
- type?: string | undefined;
4962
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
4963
- items?: number | undefined;
4964
- subType?: number | undefined;
4965
- page?: number | undefined;
4966
- types?: string[] | undefined;
4967
- campaignId?: string | undefined;
4968
- opportunityId?: string | undefined;
4969
- startTimestamp?: string | undefined;
4970
- endTimestamp?: string | undefined;
4975
+ chainId: number;
4976
+ };
4977
+ fetch?: RequestInit | undefined;
4978
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4979
+ 200: {
4980
+ campaignId: string;
4981
+ endTimestamp: bigint;
4982
+ CampaignStatus: {
4983
+ status: import("@db/api").$Enums.RunStatus;
4984
+ computedUntil: bigint;
4985
+ processingStarted: bigint;
4986
+ }[];
4987
+ }[];
4988
+ }>>;
4989
+ };
4990
+ count: {
4991
+ get: (options: {
4992
+ headers?: Record<string, unknown> | undefined;
4993
+ query: {
4994
+ chainId: number;
4995
+ };
4996
+ fetch?: RequestInit | undefined;
4997
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4998
+ 200: number;
4999
+ }>>;
5000
+ };
5001
+ next: {
5002
+ get: (options: {
5003
+ headers?: Record<string, unknown> | undefined;
5004
+ query: {
5005
+ chainId: number;
5006
+ };
5007
+ fetch?: RequestInit | undefined;
5008
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5009
+ 200: {
5010
+ campaignId: string;
5011
+ };
5012
+ }>>;
5013
+ };
5014
+ engine: {
5015
+ post: (body: unknown, options: {
5016
+ headers: {
5017
+ authorization: string;
5018
+ };
5019
+ query: {
5020
+ chainId: number;
5021
+ };
5022
+ fetch?: RequestInit | undefined;
5023
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5024
+ 200: {
5025
+ campaignId: string;
5026
+ };
5027
+ }>>;
5028
+ };
5029
+ };
5030
+ count: {
5031
+ get: (options: {
5032
+ headers?: Record<string, unknown> | undefined;
5033
+ query: {
5034
+ type?: string | undefined;
5035
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
5036
+ items?: number | undefined;
5037
+ subType?: number | undefined;
5038
+ page?: number | undefined;
5039
+ types?: string[] | undefined;
5040
+ campaignId?: string | undefined;
5041
+ opportunityId?: string | undefined;
5042
+ startTimestamp?: string | undefined;
5043
+ endTimestamp?: string | undefined;
5044
+ creatorAddress?: string | undefined;
5045
+ chainId?: number | undefined;
5046
+ creatorId?: string | undefined;
5047
+ mainParameter?: string | undefined;
5048
+ point?: boolean | undefined;
5049
+ tokenAddress?: string | undefined;
5050
+ test?: boolean | undefined;
5051
+ creatorTag?: string | undefined;
5052
+ distributionChainIds?: number[] | undefined;
5053
+ tokenSymbol?: string | undefined;
5054
+ withOpportunity?: boolean | undefined;
5055
+ createdAfter?: Date | null | undefined;
5056
+ };
5057
+ fetch?: RequestInit | undefined;
5058
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5059
+ 200: number;
5060
+ }>>;
5061
+ "by-type": {
5062
+ get: (options: {
5063
+ headers?: Record<string, unknown> | undefined;
5064
+ query: {
5065
+ type?: string | undefined;
5066
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
5067
+ items?: number | undefined;
5068
+ subType?: number | undefined;
5069
+ page?: number | undefined;
5070
+ types?: string[] | undefined;
5071
+ campaignId?: string | undefined;
5072
+ opportunityId?: string | undefined;
5073
+ startTimestamp?: string | undefined;
5074
+ endTimestamp?: string | undefined;
4971
5075
  creatorAddress?: string | undefined;
4972
5076
  chainId?: number | undefined;
4973
5077
  creatorId?: string | undefined;
@@ -9106,13 +9210,100 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9106
9210
  };
9107
9211
  };
9108
9212
  } & {
9109
- ":id": {
9213
+ "dry-run": {
9214
+ ":campaignId": {
9215
+ "dynamic-data": {
9216
+ get: {
9217
+ body: unknown;
9218
+ params: {
9219
+ campaignId: string;
9220
+ };
9221
+ query: unknown;
9222
+ headers: {
9223
+ authorization: string;
9224
+ };
9225
+ response: {
9226
+ 200: unknown[];
9227
+ };
9228
+ };
9229
+ };
9230
+ };
9231
+ };
9232
+ } & {
9233
+ "dry-run": {
9234
+ ":campaignId": {
9235
+ "meta-data": {
9236
+ get: {
9237
+ body: unknown;
9238
+ params: {
9239
+ campaignId: string;
9240
+ };
9241
+ query: unknown;
9242
+ headers: {
9243
+ authorization: string;
9244
+ };
9245
+ response: {
9246
+ 200: {
9247
+ id: string;
9248
+ chainId: number;
9249
+ type: string;
9250
+ identifier: string;
9251
+ name: string;
9252
+ status: "PAST" | "LIVE" | "SOON";
9253
+ action: any;
9254
+ tokens: ({
9255
+ symbol: string;
9256
+ id: string;
9257
+ name: string | null;
9258
+ icon: string;
9259
+ address: string;
9260
+ chainId: number;
9261
+ decimals: number;
9262
+ verified: boolean;
9263
+ isTest: boolean;
9264
+ isPoint: boolean;
9265
+ isNative: boolean;
9266
+ } & {
9267
+ price?: number | null | undefined;
9268
+ })[][];
9269
+ mainProtocol: string | undefined;
9270
+ depositUrl: any;
9271
+ tags: string[];
9272
+ };
9273
+ };
9274
+ };
9275
+ };
9276
+ };
9277
+ };
9278
+ } & {
9279
+ index: {
9110
9280
  get: {
9111
9281
  body: unknown;
9112
- params: {
9113
- id: string;
9282
+ params: {};
9283
+ query: {
9284
+ type?: string | undefined;
9285
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
9286
+ items?: number | undefined;
9287
+ subType?: number | undefined;
9288
+ page?: number | undefined;
9289
+ types?: string[] | undefined;
9290
+ campaignId?: string | undefined;
9291
+ opportunityId?: string | undefined;
9292
+ startTimestamp?: string | undefined;
9293
+ endTimestamp?: string | undefined;
9294
+ creatorAddress?: string | undefined;
9295
+ chainId?: number | undefined;
9296
+ creatorId?: string | undefined;
9297
+ mainParameter?: string | undefined;
9298
+ point?: boolean | undefined;
9299
+ tokenAddress?: string | undefined;
9300
+ test?: boolean | undefined;
9301
+ creatorTag?: string | undefined;
9302
+ distributionChainIds?: number[] | undefined;
9303
+ tokenSymbol?: string | undefined;
9304
+ withOpportunity?: boolean | undefined;
9305
+ createdAfter?: Date | null | undefined;
9114
9306
  };
9115
- query: unknown;
9116
9307
  headers: unknown;
9117
9308
  response: {
9118
9309
  200: {
@@ -9183,69 +9374,151 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9183
9374
  rewardTokenId: string;
9184
9375
  amount: string;
9185
9376
  opportunityId: string;
9186
- };
9187
- };
9188
- };
9189
- };
9190
- } & {
9191
- "campaigns-to-process": {
9192
- index: {
9193
- get: {
9194
- body: unknown;
9195
- params: {};
9196
- query: {
9197
- chainId: number;
9198
- };
9199
- headers: unknown;
9200
- response: {
9201
- 200: {
9202
- campaignId: string;
9203
- endTimestamp: bigint;
9204
- CampaignStatus: {
9205
- status: import("@db/api").$Enums.RunStatus;
9206
- computedUntil: bigint;
9207
- processingStarted: bigint;
9208
- }[];
9209
- }[];
9210
- };
9377
+ }[];
9211
9378
  };
9212
9379
  };
9213
9380
  };
9214
9381
  } & {
9215
- "campaigns-to-process": {
9216
- count: {
9217
- get: {
9218
- body: unknown;
9219
- params: {};
9220
- query: {
9221
- chainId: number;
9222
- };
9223
- headers: unknown;
9224
- response: {
9225
- 200: number;
9226
- };
9382
+ ":id": {
9383
+ get: {
9384
+ body: unknown;
9385
+ params: {
9386
+ id: string;
9227
9387
  };
9228
- };
9229
- };
9230
- } & {
9231
- "campaigns-to-process": {
9232
- next: {
9233
- get: {
9234
- body: unknown;
9235
- params: {};
9236
- query: {
9237
- chainId: number;
9238
- };
9239
- headers: unknown;
9240
- response: {
9241
- 200: {
9242
- campaignId: string;
9388
+ query: unknown;
9389
+ headers: unknown;
9390
+ response: {
9391
+ 200: {
9392
+ params: any;
9393
+ chain: {
9394
+ id: number;
9395
+ name: string;
9396
+ icon: string;
9243
9397
  };
9244
- };
9245
- };
9246
- };
9247
- };
9248
- } & {
9398
+ endTimestamp: number;
9399
+ startTimestamp: number;
9400
+ rewardToken: {
9401
+ symbol: string;
9402
+ id: string;
9403
+ name: string | null;
9404
+ icon: string;
9405
+ address: string;
9406
+ chainId: number;
9407
+ decimals: number;
9408
+ verified: boolean;
9409
+ isTest: boolean;
9410
+ isPoint: boolean;
9411
+ isNative: boolean;
9412
+ } & {
9413
+ price?: number | null | undefined;
9414
+ };
9415
+ distributionChain: {
9416
+ id: number;
9417
+ name: string;
9418
+ icon: string;
9419
+ } | undefined;
9420
+ campaignStatus: {
9421
+ computedUntil: number;
9422
+ processingStarted: number;
9423
+ error: string;
9424
+ status: import("@db/api").$Enums.RunStatus;
9425
+ details: import("database/api/.generated/runtime/library").JsonValue;
9426
+ campaignId: string;
9427
+ } | undefined;
9428
+ creatorAddress: string;
9429
+ creator: {
9430
+ tags: string[];
9431
+ address: string;
9432
+ creatorId: string | null;
9433
+ };
9434
+ createdAt: string;
9435
+ Opportunity: {
9436
+ id: string;
9437
+ name: string;
9438
+ type: string;
9439
+ status: import("@db/api").$Enums.Status;
9440
+ tags: string[];
9441
+ identifier: string;
9442
+ action: import("@db/api").$Enums.OpportunityAction;
9443
+ chainId: number;
9444
+ depositUrl: string | null;
9445
+ mainProtocolId: string | null;
9446
+ tvl: number;
9447
+ apr: number;
9448
+ dailyRewards: number;
9449
+ };
9450
+ id: string;
9451
+ type: string;
9452
+ subType: number | null;
9453
+ computeChainId: number;
9454
+ distributionChainId: number;
9455
+ campaignId: string;
9456
+ rewardTokenId: string;
9457
+ amount: string;
9458
+ opportunityId: string;
9459
+ };
9460
+ };
9461
+ };
9462
+ };
9463
+ } & {
9464
+ "campaigns-to-process": {
9465
+ index: {
9466
+ get: {
9467
+ body: unknown;
9468
+ params: {};
9469
+ query: {
9470
+ chainId: number;
9471
+ };
9472
+ headers: unknown;
9473
+ response: {
9474
+ 200: {
9475
+ campaignId: string;
9476
+ endTimestamp: bigint;
9477
+ CampaignStatus: {
9478
+ status: import("@db/api").$Enums.RunStatus;
9479
+ computedUntil: bigint;
9480
+ processingStarted: bigint;
9481
+ }[];
9482
+ }[];
9483
+ };
9484
+ };
9485
+ };
9486
+ };
9487
+ } & {
9488
+ "campaigns-to-process": {
9489
+ count: {
9490
+ get: {
9491
+ body: unknown;
9492
+ params: {};
9493
+ query: {
9494
+ chainId: number;
9495
+ };
9496
+ headers: unknown;
9497
+ response: {
9498
+ 200: number;
9499
+ };
9500
+ };
9501
+ };
9502
+ };
9503
+ } & {
9504
+ "campaigns-to-process": {
9505
+ next: {
9506
+ get: {
9507
+ body: unknown;
9508
+ params: {};
9509
+ query: {
9510
+ chainId: number;
9511
+ };
9512
+ headers: unknown;
9513
+ response: {
9514
+ 200: {
9515
+ campaignId: string;
9516
+ };
9517
+ };
9518
+ };
9519
+ };
9520
+ };
9521
+ } & {
9249
9522
  "campaigns-to-process": {
9250
9523
  engine: {
9251
9524
  post: {
@@ -14256,66 +14529,58 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14256
14529
  };
14257
14530
  }>>;
14258
14531
  };
14259
- "campaigns-to-process": {
14260
- index: {
14261
- get: (options: {
14262
- headers?: Record<string, unknown> | undefined;
14263
- query: {
14264
- chainId: number;
14265
- };
14266
- fetch?: RequestInit | undefined;
14267
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14268
- 200: {
14269
- campaignId: string;
14270
- endTimestamp: bigint;
14271
- CampaignStatus: {
14272
- status: import("@db/api").$Enums.RunStatus;
14273
- computedUntil: bigint;
14274
- processingStarted: bigint;
14275
- }[];
14276
- }[];
14277
- }>>;
14278
- };
14279
- count: {
14532
+ "dry-run": ((params: {
14533
+ campaignId: string | number;
14534
+ }) => {
14535
+ "dynamic-data": {
14280
14536
  get: (options: {
14281
- headers?: Record<string, unknown> | undefined;
14282
- query: {
14283
- chainId: number;
14537
+ headers: {
14538
+ authorization: string;
14284
14539
  };
14540
+ query?: Record<string, unknown> | undefined;
14285
14541
  fetch?: RequestInit | undefined;
14286
14542
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14287
- 200: number;
14543
+ 200: unknown[];
14288
14544
  }>>;
14289
14545
  };
14290
- next: {
14546
+ "meta-data": {
14291
14547
  get: (options: {
14292
- headers?: Record<string, unknown> | undefined;
14293
- query: {
14294
- chainId: number;
14295
- };
14296
- fetch?: RequestInit | undefined;
14297
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14298
- 200: {
14299
- campaignId: string;
14300
- };
14301
- }>>;
14302
- };
14303
- engine: {
14304
- post: (body: unknown, options: {
14305
14548
  headers: {
14306
14549
  authorization: string;
14307
14550
  };
14308
- query: {
14309
- chainId: number;
14310
- };
14551
+ query?: Record<string, unknown> | undefined;
14311
14552
  fetch?: RequestInit | undefined;
14312
14553
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14313
14554
  200: {
14314
- campaignId: string;
14555
+ id: string;
14556
+ chainId: number;
14557
+ type: string;
14558
+ identifier: string;
14559
+ name: string;
14560
+ status: "PAST" | "LIVE" | "SOON";
14561
+ action: any;
14562
+ tokens: ({
14563
+ symbol: string;
14564
+ id: string;
14565
+ name: string | null;
14566
+ icon: string;
14567
+ address: string;
14568
+ chainId: number;
14569
+ decimals: number;
14570
+ verified: boolean;
14571
+ isTest: boolean;
14572
+ isPoint: boolean;
14573
+ isNative: boolean;
14574
+ } & {
14575
+ price?: number | null | undefined;
14576
+ })[][];
14577
+ mainProtocol: string | undefined;
14578
+ depositUrl: any;
14579
+ tags: string[];
14315
14580
  };
14316
14581
  }>>;
14317
14582
  };
14318
- };
14583
+ }) & {};
14319
14584
  index: {
14320
14585
  get: (options: {
14321
14586
  headers?: Record<string, unknown> | undefined;
@@ -14416,6 +14681,66 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14416
14681
  }[];
14417
14682
  }>>;
14418
14683
  };
14684
+ "campaigns-to-process": {
14685
+ index: {
14686
+ get: (options: {
14687
+ headers?: Record<string, unknown> | undefined;
14688
+ query: {
14689
+ chainId: number;
14690
+ };
14691
+ fetch?: RequestInit | undefined;
14692
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14693
+ 200: {
14694
+ campaignId: string;
14695
+ endTimestamp: bigint;
14696
+ CampaignStatus: {
14697
+ status: import("@db/api").$Enums.RunStatus;
14698
+ computedUntil: bigint;
14699
+ processingStarted: bigint;
14700
+ }[];
14701
+ }[];
14702
+ }>>;
14703
+ };
14704
+ count: {
14705
+ get: (options: {
14706
+ headers?: Record<string, unknown> | undefined;
14707
+ query: {
14708
+ chainId: number;
14709
+ };
14710
+ fetch?: RequestInit | undefined;
14711
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14712
+ 200: number;
14713
+ }>>;
14714
+ };
14715
+ next: {
14716
+ get: (options: {
14717
+ headers?: Record<string, unknown> | undefined;
14718
+ query: {
14719
+ chainId: number;
14720
+ };
14721
+ fetch?: RequestInit | undefined;
14722
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14723
+ 200: {
14724
+ campaignId: string;
14725
+ };
14726
+ }>>;
14727
+ };
14728
+ engine: {
14729
+ post: (body: unknown, options: {
14730
+ headers: {
14731
+ authorization: string;
14732
+ };
14733
+ query: {
14734
+ chainId: number;
14735
+ };
14736
+ fetch?: RequestInit | undefined;
14737
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14738
+ 200: {
14739
+ campaignId: string;
14740
+ };
14741
+ }>>;
14742
+ };
14743
+ };
14419
14744
  count: {
14420
14745
  get: (options: {
14421
14746
  headers?: Record<string, unknown> | undefined;
@@ -17854,66 +18179,58 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17854
18179
  };
17855
18180
  }>>;
17856
18181
  };
17857
- "campaigns-to-process": {
17858
- index: {
17859
- get: (options: {
17860
- headers?: Record<string, unknown> | undefined;
17861
- query: {
17862
- chainId: number;
17863
- };
17864
- fetch?: RequestInit | undefined;
17865
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17866
- 200: {
17867
- campaignId: string;
17868
- endTimestamp: bigint;
17869
- CampaignStatus: {
17870
- status: import("@db/api").$Enums.RunStatus;
17871
- computedUntil: bigint;
17872
- processingStarted: bigint;
17873
- }[];
17874
- }[];
17875
- }>>;
17876
- };
17877
- count: {
18182
+ "dry-run": ((params: {
18183
+ campaignId: string | number;
18184
+ }) => {
18185
+ "dynamic-data": {
17878
18186
  get: (options: {
17879
- headers?: Record<string, unknown> | undefined;
17880
- query: {
17881
- chainId: number;
18187
+ headers: {
18188
+ authorization: string;
17882
18189
  };
18190
+ query?: Record<string, unknown> | undefined;
17883
18191
  fetch?: RequestInit | undefined;
17884
18192
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17885
- 200: number;
18193
+ 200: unknown[];
17886
18194
  }>>;
17887
18195
  };
17888
- next: {
18196
+ "meta-data": {
17889
18197
  get: (options: {
17890
- headers?: Record<string, unknown> | undefined;
17891
- query: {
17892
- chainId: number;
17893
- };
17894
- fetch?: RequestInit | undefined;
17895
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17896
- 200: {
17897
- campaignId: string;
17898
- };
17899
- }>>;
17900
- };
17901
- engine: {
17902
- post: (body: unknown, options: {
17903
18198
  headers: {
17904
18199
  authorization: string;
17905
18200
  };
17906
- query: {
17907
- chainId: number;
17908
- };
18201
+ query?: Record<string, unknown> | undefined;
17909
18202
  fetch?: RequestInit | undefined;
17910
18203
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17911
18204
  200: {
17912
- campaignId: string;
18205
+ id: string;
18206
+ chainId: number;
18207
+ type: string;
18208
+ identifier: string;
18209
+ name: string;
18210
+ status: "PAST" | "LIVE" | "SOON";
18211
+ action: any;
18212
+ tokens: ({
18213
+ symbol: string;
18214
+ id: string;
18215
+ name: string | null;
18216
+ icon: string;
18217
+ address: string;
18218
+ chainId: number;
18219
+ decimals: number;
18220
+ verified: boolean;
18221
+ isTest: boolean;
18222
+ isPoint: boolean;
18223
+ isNative: boolean;
18224
+ } & {
18225
+ price?: number | null | undefined;
18226
+ })[][];
18227
+ mainProtocol: string | undefined;
18228
+ depositUrl: any;
18229
+ tags: string[];
17913
18230
  };
17914
18231
  }>>;
17915
18232
  };
17916
- };
18233
+ }) & {};
17917
18234
  index: {
17918
18235
  get: (options: {
17919
18236
  headers?: Record<string, unknown> | undefined;
@@ -18014,6 +18331,66 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18014
18331
  }[];
18015
18332
  }>>;
18016
18333
  };
18334
+ "campaigns-to-process": {
18335
+ index: {
18336
+ get: (options: {
18337
+ headers?: Record<string, unknown> | undefined;
18338
+ query: {
18339
+ chainId: number;
18340
+ };
18341
+ fetch?: RequestInit | undefined;
18342
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
18343
+ 200: {
18344
+ campaignId: string;
18345
+ endTimestamp: bigint;
18346
+ CampaignStatus: {
18347
+ status: import("@db/api").$Enums.RunStatus;
18348
+ computedUntil: bigint;
18349
+ processingStarted: bigint;
18350
+ }[];
18351
+ }[];
18352
+ }>>;
18353
+ };
18354
+ count: {
18355
+ get: (options: {
18356
+ headers?: Record<string, unknown> | undefined;
18357
+ query: {
18358
+ chainId: number;
18359
+ };
18360
+ fetch?: RequestInit | undefined;
18361
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
18362
+ 200: number;
18363
+ }>>;
18364
+ };
18365
+ next: {
18366
+ get: (options: {
18367
+ headers?: Record<string, unknown> | undefined;
18368
+ query: {
18369
+ chainId: number;
18370
+ };
18371
+ fetch?: RequestInit | undefined;
18372
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
18373
+ 200: {
18374
+ campaignId: string;
18375
+ };
18376
+ }>>;
18377
+ };
18378
+ engine: {
18379
+ post: (body: unknown, options: {
18380
+ headers: {
18381
+ authorization: string;
18382
+ };
18383
+ query: {
18384
+ chainId: number;
18385
+ };
18386
+ fetch?: RequestInit | undefined;
18387
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
18388
+ 200: {
18389
+ campaignId: string;
18390
+ };
18391
+ }>>;
18392
+ };
18393
+ };
18017
18394
  count: {
18018
18395
  get: (options: {
18019
18396
  headers?: Record<string, unknown> | undefined;