@merkl/api 0.10.421 → 0.10.422

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 (40) hide show
  1. package/dist/database/api/.generated/drizzle/schema.d.ts +127 -0
  2. package/dist/database/api/.generated/drizzle/schema.js +13 -0
  3. package/dist/database/api/.generated/drizzle/schema.ts +15 -0
  4. package/dist/database/api/.generated/edge.js +28 -4
  5. package/dist/database/api/.generated/index-browser.js +25 -1
  6. package/dist/database/api/.generated/index.d.ts +1633 -205
  7. package/dist/database/api/.generated/index.js +28 -4
  8. package/dist/database/api/.generated/package.json +1 -1
  9. package/dist/database/api/.generated/schema.prisma +19 -0
  10. package/dist/database/api/.generated/wasm.js +25 -1
  11. package/dist/src/eden/index.d.ts +75 -115
  12. package/dist/src/index.d.ts +15 -23
  13. package/dist/src/index.js +1 -1
  14. package/dist/src/libs/campaigns/utils/getEulerV2Vaults.d.ts +5 -0
  15. package/dist/src/libs/campaigns/utils/getEulerV2Vaults.js +63 -4
  16. package/dist/src/libs/campaigns/utils/getUniswapV4Pools.js +72 -13
  17. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +1 -1
  18. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +9 -9
  19. package/dist/src/modules/v4/campaign/campaign.service.d.ts +1 -1
  20. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +1 -1
  21. package/dist/src/modules/v4/interaction/interaction.service.js +2 -3
  22. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +3 -3
  23. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +5 -5
  24. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +72 -72
  25. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +1 -1
  26. package/dist/src/modules/v4/reward/reward.controller.d.ts +4 -12
  27. package/dist/src/modules/v4/reward/reward.repository.d.ts +7 -11
  28. package/dist/src/modules/v4/reward/reward.service.d.ts +5 -10
  29. package/dist/src/modules/v4/router.d.ts +15 -23
  30. package/dist/src/modules/v4/status/status.controller.d.ts +6 -6
  31. package/dist/src/modules/v4/status/status.repository.d.ts +6 -6
  32. package/dist/src/modules/v4/status/status.service.d.ts +6 -6
  33. package/dist/src/modules/v4/token/token.repository.d.ts +2 -2
  34. package/dist/src/modules/v4/token/token.service.d.ts +3 -2
  35. package/dist/src/modules/v4/user/user.repository.d.ts +1 -1
  36. package/dist/src/modules/v4/user/user.service.d.ts +1 -1
  37. package/dist/src/utils/prisma.d.ts +3 -16
  38. package/dist/src/utils/prisma.js +1 -2
  39. package/dist/tsconfig.package.tsbuildinfo +1 -1
  40. package/package.json +1 -1
@@ -119,14 +119,6 @@ export declare abstract class OpportunityRepository {
119
119
  Campaign: {
120
120
  startTimestamp: bigint;
121
121
  endTimestamp: bigint;
122
- CampaignStatus: {
123
- error: string;
124
- details: Prisma.JsonValue;
125
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
126
- campaignId: string;
127
- computedUntil: bigint;
128
- processingStarted: bigint;
129
- }[];
130
122
  amount: string;
131
123
  RewardToken: {
132
124
  symbol: string;
@@ -141,6 +133,14 @@ export declare abstract class OpportunityRepository {
141
133
  isTest: boolean;
142
134
  price: number | null;
143
135
  };
136
+ CampaignStatus: {
137
+ error: string;
138
+ details: Prisma.JsonValue;
139
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
140
+ campaignId: string;
141
+ computedUntil: bigint;
142
+ processingStarted: bigint;
143
+ }[];
144
144
  };
145
145
  } & {
146
146
  id: number;
@@ -237,14 +237,6 @@ export declare abstract class OpportunityRepository {
237
237
  Campaign: {
238
238
  startTimestamp: bigint;
239
239
  endTimestamp: bigint;
240
- CampaignStatus: {
241
- error: string;
242
- details: Prisma.JsonValue;
243
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
244
- campaignId: string;
245
- computedUntil: bigint;
246
- processingStarted: bigint;
247
- }[];
248
240
  amount: string;
249
241
  RewardToken: {
250
242
  symbol: string;
@@ -259,6 +251,14 @@ export declare abstract class OpportunityRepository {
259
251
  isTest: boolean;
260
252
  price: number | null;
261
253
  };
254
+ CampaignStatus: {
255
+ error: string;
256
+ details: Prisma.JsonValue;
257
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
258
+ campaignId: string;
259
+ computedUntil: bigint;
260
+ processingStarted: bigint;
261
+ }[];
262
262
  };
263
263
  } & {
264
264
  id: number;
@@ -301,14 +301,6 @@ export declare abstract class OpportunityRepository {
301
301
  icon: string;
302
302
  };
303
303
  Campaigns: ({
304
- CampaignStatus: {
305
- error: string;
306
- details: Prisma.JsonValue;
307
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
308
- campaignId: string;
309
- computedUntil: bigint;
310
- processingStarted: bigint;
311
- }[];
312
304
  ComputeChain: {
313
305
  name: string;
314
306
  id: number;
@@ -339,6 +331,14 @@ export declare abstract class OpportunityRepository {
339
331
  isTest: boolean;
340
332
  price: number | null;
341
333
  };
334
+ CampaignStatus: {
335
+ error: string;
336
+ details: Prisma.JsonValue;
337
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
338
+ campaignId: string;
339
+ computedUntil: bigint;
340
+ processingStarted: bigint;
341
+ }[];
342
342
  } & {
343
343
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
344
344
  id: string;
@@ -416,14 +416,6 @@ export declare abstract class OpportunityRepository {
416
416
  Campaign: {
417
417
  startTimestamp: bigint;
418
418
  endTimestamp: bigint;
419
- CampaignStatus: {
420
- error: string;
421
- details: Prisma.JsonValue;
422
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
423
- campaignId: string;
424
- computedUntil: bigint;
425
- processingStarted: bigint;
426
- }[];
427
419
  amount: string;
428
420
  RewardToken: {
429
421
  symbol: string;
@@ -438,6 +430,14 @@ export declare abstract class OpportunityRepository {
438
430
  isTest: boolean;
439
431
  price: number | null;
440
432
  };
433
+ CampaignStatus: {
434
+ error: string;
435
+ details: Prisma.JsonValue;
436
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
437
+ campaignId: string;
438
+ computedUntil: bigint;
439
+ processingStarted: bigint;
440
+ }[];
441
441
  };
442
442
  } & {
443
443
  id: number;
@@ -485,14 +485,6 @@ export declare abstract class OpportunityRepository {
485
485
  icon: string;
486
486
  };
487
487
  Campaigns: ({
488
- CampaignStatus: {
489
- error: string;
490
- details: Prisma.JsonValue;
491
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
492
- campaignId: string;
493
- computedUntil: bigint;
494
- processingStarted: bigint;
495
- }[];
496
488
  ComputeChain: {
497
489
  name: string;
498
490
  id: number;
@@ -523,6 +515,14 @@ export declare abstract class OpportunityRepository {
523
515
  isTest: boolean;
524
516
  price: number | null;
525
517
  };
518
+ CampaignStatus: {
519
+ error: string;
520
+ details: Prisma.JsonValue;
521
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
522
+ campaignId: string;
523
+ computedUntil: bigint;
524
+ processingStarted: bigint;
525
+ }[];
526
526
  } & {
527
527
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
528
528
  id: string;
@@ -600,14 +600,6 @@ export declare abstract class OpportunityRepository {
600
600
  Campaign: {
601
601
  startTimestamp: bigint;
602
602
  endTimestamp: bigint;
603
- CampaignStatus: {
604
- error: string;
605
- details: Prisma.JsonValue;
606
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
607
- campaignId: string;
608
- computedUntil: bigint;
609
- processingStarted: bigint;
610
- }[];
611
603
  amount: string;
612
604
  RewardToken: {
613
605
  symbol: string;
@@ -622,6 +614,14 @@ export declare abstract class OpportunityRepository {
622
614
  isTest: boolean;
623
615
  price: number | null;
624
616
  };
617
+ CampaignStatus: {
618
+ error: string;
619
+ details: Prisma.JsonValue;
620
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
621
+ campaignId: string;
622
+ computedUntil: bigint;
623
+ processingStarted: bigint;
624
+ }[];
625
625
  };
626
626
  } & {
627
627
  id: number;
@@ -763,14 +763,6 @@ export declare abstract class OpportunityRepository {
763
763
  Campaign: {
764
764
  startTimestamp: bigint;
765
765
  endTimestamp: bigint;
766
- CampaignStatus: {
767
- error: string;
768
- details: Prisma.JsonValue;
769
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
770
- campaignId: string;
771
- computedUntil: bigint;
772
- processingStarted: bigint;
773
- }[];
774
766
  amount: string;
775
767
  RewardToken: {
776
768
  symbol: string;
@@ -785,6 +777,14 @@ export declare abstract class OpportunityRepository {
785
777
  isTest: boolean;
786
778
  price: number | null;
787
779
  };
780
+ CampaignStatus: {
781
+ error: string;
782
+ details: Prisma.JsonValue;
783
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
784
+ campaignId: string;
785
+ computedUntil: bigint;
786
+ processingStarted: bigint;
787
+ }[];
788
788
  };
789
789
  } & {
790
790
  id: number;
@@ -820,14 +820,6 @@ export declare abstract class OpportunityRepository {
820
820
  icon: string;
821
821
  };
822
822
  Campaigns: ({
823
- CampaignStatus: {
824
- error: string;
825
- details: Prisma.JsonValue;
826
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
827
- campaignId: string;
828
- computedUntil: bigint;
829
- processingStarted: bigint;
830
- }[];
831
823
  ComputeChain: {
832
824
  name: string;
833
825
  id: number;
@@ -851,6 +843,14 @@ export declare abstract class OpportunityRepository {
851
843
  isTest: boolean;
852
844
  price: number | null;
853
845
  };
846
+ CampaignStatus: {
847
+ error: string;
848
+ details: Prisma.JsonValue;
849
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
850
+ campaignId: string;
851
+ computedUntil: bigint;
852
+ processingStarted: bigint;
853
+ }[];
854
854
  } & {
855
855
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
856
856
  id: string;
@@ -928,14 +928,6 @@ export declare abstract class OpportunityRepository {
928
928
  Campaign: {
929
929
  startTimestamp: bigint;
930
930
  endTimestamp: bigint;
931
- CampaignStatus: {
932
- error: string;
933
- details: Prisma.JsonValue;
934
- status: import("../../../../database/api/.generated").$Enums.RunStatus;
935
- campaignId: string;
936
- computedUntil: bigint;
937
- processingStarted: bigint;
938
- }[];
939
931
  amount: string;
940
932
  RewardToken: {
941
933
  symbol: string;
@@ -950,6 +942,14 @@ export declare abstract class OpportunityRepository {
950
942
  isTest: boolean;
951
943
  price: number | null;
952
944
  };
945
+ CampaignStatus: {
946
+ error: string;
947
+ details: Prisma.JsonValue;
948
+ status: import("../../../../database/api/.generated").$Enums.RunStatus;
949
+ campaignId: string;
950
+ computedUntil: bigint;
951
+ processingStarted: bigint;
952
+ }[];
953
953
  };
954
954
  } & {
955
955
  id: number;
@@ -131,6 +131,7 @@ export declare abstract class OpportunityService {
131
131
  tags: string[];
132
132
  icon: string;
133
133
  } | null | undefined;
134
+ depositUrl?: string | undefined;
134
135
  aprRecord?: {
135
136
  timestamp: string | bigint;
136
137
  cumulated: number;
@@ -142,7 +143,6 @@ export declare abstract class OpportunityService {
142
143
  aprRecordId: string;
143
144
  }[];
144
145
  } | undefined;
145
- depositUrl?: string | undefined;
146
146
  tvlRecord?: {
147
147
  total: number;
148
148
  timestamp: string | bigint;
@@ -81,12 +81,8 @@ export declare const RewardController: Elysia<"/rewards", false, {
81
81
  };
82
82
  headers: unknown;
83
83
  response: {
84
- 200: {
85
- amount: string;
86
- claimed: string;
87
- pending: string;
88
- recipient: string;
89
- }[];
84
+ [x: string]: any;
85
+ 200: any;
90
86
  };
91
87
  };
92
88
  };
@@ -150,12 +146,8 @@ export declare const RewardController: Elysia<"/rewards", false, {
150
146
  };
151
147
  headers: unknown;
152
148
  response: {
153
- 200: {
154
- amount: string;
155
- claimed: string;
156
- pending: string;
157
- recipient: string;
158
- }[];
149
+ [x: string]: any;
150
+ 200: any;
159
151
  };
160
152
  };
161
153
  };
@@ -1,8 +1,9 @@
1
+ import type { Prisma } from "../../../../database/api/.generated";
1
2
  import type { ChainId } from "@sdk";
2
3
  import type { BreakdownForCampaignsRaw, CampaignIdModel, CampaignIdWithoutPageModel, CreateManyBreakdownModel, CreateManyRewardModel, TokenIdModel } from "./reward.model";
3
4
  export declare abstract class RewardRepository {
4
- static createManyReward(rewards: CreateManyRewardModel): Promise<import("database/api/.generated/runtime/library").GetBatchResult>;
5
- static createManyBreakdown(data: CreateManyBreakdownModel): Promise<import("database/api/.generated/runtime/library").GetBatchResult>;
5
+ static createManyReward(rewards: CreateManyRewardModel): Promise<Prisma.BatchPayload>;
6
+ static createManyBreakdown(data: CreateManyBreakdownModel): Promise<Prisma.BatchPayload>;
6
7
  static getByRecipient(recipient: string, roots: string[], withToken: boolean, withTestTokens: boolean, chainFilter?: ChainId[]): Promise<({
7
8
  RewardToken: {
8
9
  symbol: string;
@@ -19,6 +20,7 @@ export declare abstract class RewardRepository {
19
20
  };
20
21
  Breakdown: ({
21
22
  Campaign: {
23
+ campaignId: string;
22
24
  Opportunity: {
23
25
  Chain: {
24
26
  name: string;
@@ -69,7 +71,6 @@ export declare abstract class RewardRepository {
69
71
  apr: number;
70
72
  dailyRewards: number;
71
73
  };
72
- campaignId: string;
73
74
  };
74
75
  } & {
75
76
  reason: string;
@@ -120,8 +121,8 @@ export declare abstract class RewardRepository {
120
121
  rewardCount: number;
121
122
  breakdownCount: number;
122
123
  }>;
123
- static updateRewardClaimed(recipient: string, rewardTokenId: string, amount: string): Promise<import("database/api/.generated/runtime/library").GetBatchResult>;
124
- static updateBreakdownClaimed(recipient: string, rewardTokenId: string, campaignId: string, reason: string, amount: string): Promise<import("database/api/.generated/runtime/library").GetBatchResult>;
124
+ static updateRewardClaimed(recipient: string, rewardTokenId: string, amount: string): Promise<Prisma.BatchPayload>;
125
+ static updateBreakdownClaimed(recipient: string, rewardTokenId: string, campaignId: string, reason: string, amount: string): Promise<Prisma.BatchPayload>;
125
126
  static findManyRootsWithRewardOnChain(chainId: number): Promise<string[]>;
126
127
  static breakdownForCampaign(root: string, id: string, query: CampaignIdModel): Promise<BreakdownForCampaignsRaw[]>;
127
128
  static totalForCampaign(campaignId: string, root: string): Promise<{
@@ -131,12 +132,7 @@ export declare abstract class RewardRepository {
131
132
  static countForCampaign(campaignId: string, root: string): Promise<{
132
133
  count: number;
133
134
  }>;
134
- static breakdownForToken(root: string, id: string, query: TokenIdModel): Promise<{
135
- amount: string;
136
- claimed: string;
137
- pending: string;
138
- recipient: string;
139
- }[]>;
135
+ static breakdownForToken(root: string, id: string, query: TokenIdModel): Promise<any>;
140
136
  static totalForToken(tokenId: string, root: string): Promise<{
141
137
  tokenId: string;
142
138
  amount: bigint;
@@ -7,7 +7,7 @@ import { RewardRepository } from "./reward.repository";
7
7
  export declare abstract class RewardService {
8
8
  static hashId(root: string, recipient: string, rewardTokenId: string): string;
9
9
  static hashDailyRewardsRecordId(opportunityId: string, timestamp: bigint): string;
10
- static createManyReward(rewards: CreateManyRewardModel): Promise<import("database/api/.generated/runtime/library").GetBatchResult>;
10
+ static createManyReward(rewards: CreateManyRewardModel): Promise<import("../../../../database/api/.generated").Prisma.BatchPayload>;
11
11
  /**
12
12
  * Format the reward breakdown to conform to its resource model declaration
13
13
  * @param breakdown straight from db
@@ -153,7 +153,7 @@ export declare abstract class RewardService {
153
153
  root: string;
154
154
  proofs: string[];
155
155
  }[];
156
- static createManyBreakdown(data: CreateManyBreakdownModel): Promise<import("database/api/.generated/runtime/library").GetBatchResult | undefined>;
156
+ static createManyBreakdown(data: CreateManyBreakdownModel): Promise<import("../../../../database/api/.generated").Prisma.BatchPayload | undefined>;
157
157
  static getByRecipient(recipient: string, roots: string[], withToken?: boolean, withTestTokens?: boolean, chainFilter?: ChainId[]): Promise<({
158
158
  RewardToken: {
159
159
  symbol: string;
@@ -170,6 +170,7 @@ export declare abstract class RewardService {
170
170
  };
171
171
  Breakdown: ({
172
172
  Campaign: {
173
+ campaignId: string;
173
174
  Opportunity: {
174
175
  Chain: {
175
176
  name: string;
@@ -220,7 +221,6 @@ export declare abstract class RewardService {
220
221
  apr: number;
221
222
  dailyRewards: number;
222
223
  };
223
- campaignId: string;
224
224
  };
225
225
  } & {
226
226
  reason: string;
@@ -459,6 +459,7 @@ export declare abstract class RewardService {
459
459
  };
460
460
  Breakdown: ({
461
461
  Campaign: {
462
+ campaignId: string;
462
463
  Opportunity: {
463
464
  Chain: {
464
465
  name: string;
@@ -509,7 +510,6 @@ export declare abstract class RewardService {
509
510
  apr: number;
510
511
  dailyRewards: number;
511
512
  };
512
- campaignId: string;
513
513
  };
514
514
  } & {
515
515
  reason: string;
@@ -550,12 +550,7 @@ export declare abstract class RewardService {
550
550
  campaignId: string;
551
551
  amount: bigint;
552
552
  }>;
553
- static breakdownForToken(query: TokenIdModel): Promise<{
554
- amount: string;
555
- claimed: string;
556
- pending: string;
557
- recipient: string;
558
- }[]>;
553
+ static breakdownForToken(query: TokenIdModel): Promise<any>;
559
554
  static countForToken(query: TokenIdModel): Promise<{
560
555
  count: number;
561
556
  }>;
@@ -281,6 +281,7 @@ export declare const v4: Elysia<"/v4", false, {
281
281
  tags: string[];
282
282
  icon: string;
283
283
  } | null | undefined;
284
+ depositUrl?: string | undefined;
284
285
  aprRecord?: {
285
286
  timestamp: string | bigint;
286
287
  cumulated: number;
@@ -292,7 +293,6 @@ export declare const v4: Elysia<"/v4", false, {
292
293
  aprRecordId: string;
293
294
  }[];
294
295
  } | undefined;
295
- depositUrl?: string | undefined;
296
296
  tvlRecord?: {
297
297
  total: number;
298
298
  timestamp: string | bigint;
@@ -405,6 +405,7 @@ export declare const v4: Elysia<"/v4", false, {
405
405
  tags: string[];
406
406
  icon: string;
407
407
  } | null | undefined;
408
+ depositUrl?: string | undefined;
408
409
  aprRecord?: {
409
410
  timestamp: string | bigint;
410
411
  cumulated: number;
@@ -416,7 +417,6 @@ export declare const v4: Elysia<"/v4", false, {
416
417
  aprRecordId: string;
417
418
  }[];
418
419
  } | undefined;
419
- depositUrl?: string | undefined;
420
420
  tvlRecord?: {
421
421
  total: number;
422
422
  timestamp: string | bigint;
@@ -564,6 +564,7 @@ export declare const v4: Elysia<"/v4", false, {
564
564
  tags: string[];
565
565
  icon: string;
566
566
  } | null | undefined;
567
+ depositUrl?: string | undefined;
567
568
  aprRecord?: {
568
569
  timestamp: string | bigint;
569
570
  cumulated: number;
@@ -575,7 +576,6 @@ export declare const v4: Elysia<"/v4", false, {
575
576
  aprRecordId: string;
576
577
  }[];
577
578
  } | undefined;
578
- depositUrl?: string | undefined;
579
579
  tvlRecord?: {
580
580
  total: number;
581
581
  timestamp: string | bigint;
@@ -1056,10 +1056,10 @@ export declare const v4: Elysia<"/v4", false, {
1056
1056
  response: {
1057
1057
  200: {
1058
1058
  endTimestamp: bigint;
1059
+ campaignId: string;
1059
1060
  CampaignStatus: {
1060
1061
  computedUntil: bigint;
1061
1062
  }[];
1062
- campaignId: string;
1063
1063
  }[];
1064
1064
  };
1065
1065
  };
@@ -1576,12 +1576,8 @@ export declare const v4: Elysia<"/v4", false, {
1576
1576
  };
1577
1577
  headers: unknown;
1578
1578
  response: {
1579
- 200: {
1580
- amount: string;
1581
- claimed: string;
1582
- pending: string;
1583
- recipient: string;
1584
- }[];
1579
+ [x: string]: any;
1580
+ 200: any;
1585
1581
  };
1586
1582
  };
1587
1583
  };
@@ -1645,12 +1641,8 @@ export declare const v4: Elysia<"/v4", false, {
1645
1641
  };
1646
1642
  headers: unknown;
1647
1643
  response: {
1648
- 200: {
1649
- amount: string;
1650
- claimed: string;
1651
- pending: string;
1652
- recipient: string;
1653
- }[];
1644
+ [x: string]: any;
1645
+ 200: any;
1654
1646
  };
1655
1647
  };
1656
1648
  };
@@ -2967,13 +2959,13 @@ export declare const v4: Elysia<"/v4", false, {
2967
2959
  chainId?: number | undefined;
2968
2960
  startTimestamp?: string | undefined;
2969
2961
  endTimestamp?: string | undefined;
2970
- campaignStatus?: {} | undefined;
2971
2962
  distributionChainId?: number | undefined;
2972
2963
  campaignId?: string | undefined;
2973
2964
  rewardTokenId?: string | undefined;
2974
2965
  amount?: string | undefined;
2975
2966
  opportunityId?: string | undefined;
2976
2967
  creatorAddress?: string | undefined;
2968
+ campaignStatus?: {} | undefined;
2977
2969
  rewardToken?: {} | undefined;
2978
2970
  rewardTokenAddress?: string | undefined;
2979
2971
  distributionChain?: {} | undefined;
@@ -3147,6 +3139,12 @@ export declare const v4: Elysia<"/v4", false, {
3147
3139
  delayFormatted: string;
3148
3140
  startTimestamp: bigint;
3149
3141
  endTimestamp: bigint;
3142
+ computeChainId: number;
3143
+ distributionChainId: number;
3144
+ campaignId: string;
3145
+ Opportunity: {
3146
+ name: string;
3147
+ };
3150
3148
  CampaignStatus: {
3151
3149
  error: string;
3152
3150
  details: import("database/api/.generated/runtime/library").JsonValue;
@@ -3155,12 +3153,6 @@ export declare const v4: Elysia<"/v4", false, {
3155
3153
  computedUntil: bigint;
3156
3154
  processingStarted: bigint;
3157
3155
  }[];
3158
- Opportunity: {
3159
- name: string;
3160
- };
3161
- computeChainId: number;
3162
- distributionChainId: number;
3163
- campaignId: string;
3164
3156
  }[];
3165
3157
  };
3166
3158
  };
@@ -130,6 +130,12 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
130
130
  delayFormatted: string;
131
131
  startTimestamp: bigint;
132
132
  endTimestamp: bigint;
133
+ computeChainId: number;
134
+ distributionChainId: number;
135
+ campaignId: string;
136
+ Opportunity: {
137
+ name: string;
138
+ };
133
139
  CampaignStatus: {
134
140
  error: string;
135
141
  details: import("database/api/.generated/runtime/library").JsonValue;
@@ -138,12 +144,6 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
138
144
  computedUntil: bigint;
139
145
  processingStarted: bigint;
140
146
  }[];
141
- Opportunity: {
142
- name: string;
143
- };
144
- computeChainId: number;
145
- distributionChainId: number;
146
- campaignId: string;
147
147
  }[];
148
148
  };
149
149
  };
@@ -70,6 +70,12 @@ export declare class StatusRepository {
70
70
  static findManyDelay(query: DelayModel): Promise<{
71
71
  startTimestamp: bigint;
72
72
  endTimestamp: bigint;
73
+ computeChainId: number;
74
+ distributionChainId: number;
75
+ campaignId: string;
76
+ Opportunity: {
77
+ name: string;
78
+ };
73
79
  CampaignStatus: {
74
80
  error: string;
75
81
  details: Prisma.JsonValue;
@@ -78,11 +84,5 @@ export declare class StatusRepository {
78
84
  computedUntil: bigint;
79
85
  processingStarted: bigint;
80
86
  }[];
81
- Opportunity: {
82
- name: string;
83
- };
84
- computeChainId: number;
85
- distributionChainId: number;
86
- campaignId: string;
87
87
  }[]>;
88
88
  }
@@ -40,6 +40,12 @@ export declare class StatusService {
40
40
  delayFormatted: string;
41
41
  startTimestamp: bigint;
42
42
  endTimestamp: bigint;
43
+ computeChainId: number;
44
+ distributionChainId: number;
45
+ campaignId: string;
46
+ Opportunity: {
47
+ name: string;
48
+ };
43
49
  CampaignStatus: {
44
50
  error: string;
45
51
  details: import("database/api/.generated/runtime/library").JsonValue;
@@ -48,11 +54,5 @@ export declare class StatusService {
48
54
  computedUntil: bigint;
49
55
  processingStarted: bigint;
50
56
  }[];
51
- Opportunity: {
52
- name: string;
53
- };
54
- computeChainId: number;
55
- distributionChainId: number;
56
- campaignId: string;
57
57
  }[]>;
58
58
  }
@@ -67,14 +67,14 @@ export declare abstract class TokenRepository {
67
67
  * @param price value
68
68
  * @param excludeAddresses to not update even if symbol match
69
69
  */
70
- static updateSymbolPrices(symbol: string, price: number, excludeAddresses: string[]): Promise<import("database/api/.generated/runtime/library").GetBatchResult>;
70
+ static updateSymbolPrices(symbol: string, price: number, excludeAddresses: string[]): Promise<import("../../../../database/api/.generated").Prisma.BatchPayload>;
71
71
  /**
72
72
  * Updates price of tokens that share the same address
73
73
  * @param address
74
74
  * @param price value
75
75
  * @param chainId
76
76
  */
77
- static updateAddressPrices(address: string, price: number, chainId?: number): Promise<import("database/api/.generated/runtime/library").GetBatchResult>;
77
+ static updateAddressPrices(address: string, price: number, chainId?: number): Promise<import("../../../../database/api/.generated").Prisma.BatchPayload>;
78
78
  static findChains(): Promise<Record<string, ChainId>>;
79
79
  /**
80
80
  * create a token on database
@@ -1,5 +1,6 @@
1
1
  import type { CreateTokenModel, GetTokenQueryModel, Token, TokenModel, TokenUnique, UpdateTokenModel } from "./";
2
2
  import type { Pricer } from "../../../utils/pricer";
3
+ import { Prisma } from "../../../../database/api/.generated";
3
4
  import { type ChainId } from "@sdk";
4
5
  import { TokenRepository } from "./token.repository";
5
6
  export declare abstract class TokenService {
@@ -71,14 +72,14 @@ export declare abstract class TokenService {
71
72
  * @param price value
72
73
  * @param excludeAddresses to not update symbols that defined using addresses
73
74
  */
74
- static updateSymbolPrices(symbol: string, price: number, excludeAddresses: string[]): Promise<import("database/api/.generated/runtime/library").GetBatchResult>;
75
+ static updateSymbolPrices(symbol: string, price: number, excludeAddresses: string[]): Promise<Prisma.BatchPayload>;
75
76
  /**
76
77
  * Updates price of tokens that share the same address
77
78
  * @param address
78
79
  * @param price value
79
80
  * @param chainId
80
81
  */
81
- static updateAddressPrices(address: string, price: number, chainId?: number): Promise<import("database/api/.generated/runtime/library").GetBatchResult>;
82
+ static updateAddressPrices(address: string, price: number, chainId?: number): Promise<Prisma.BatchPayload>;
82
83
  /**
83
84
  * Updates price of tokens that share the same symbol
84
85
  * @param symbol