@merkl/api 0.15.36 → 0.15.37

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.
@@ -2683,7 +2683,7 @@ declare const eden: {
2683
2683
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2684
2684
  200: {
2685
2685
  delay: number;
2686
- delayFormatted: string;
2686
+ computedUntil: bigint;
2687
2687
  startTimestamp: bigint;
2688
2688
  endTimestamp: bigint;
2689
2689
  CampaignStatus: {
@@ -2696,6 +2696,7 @@ declare const eden: {
2696
2696
  }[];
2697
2697
  Opportunity: {
2698
2698
  name: string;
2699
+ id: string;
2699
2700
  };
2700
2701
  computeChainId: number;
2701
2702
  distributionChainId: number;
@@ -5766,7 +5767,7 @@ declare const eden: {
5766
5767
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5767
5768
  200: {
5768
5769
  delay: number;
5769
- delayFormatted: string;
5770
+ computedUntil: bigint;
5770
5771
  startTimestamp: bigint;
5771
5772
  endTimestamp: bigint;
5772
5773
  CampaignStatus: {
@@ -5779,6 +5780,7 @@ declare const eden: {
5779
5780
  }[];
5780
5781
  Opportunity: {
5781
5782
  name: string;
5783
+ id: string;
5782
5784
  };
5783
5785
  computeChainId: number;
5784
5786
  distributionChainId: number;
@@ -10173,7 +10175,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
10173
10175
  response: {
10174
10176
  200: {
10175
10177
  delay: number;
10176
- delayFormatted: string;
10178
+ computedUntil: bigint;
10177
10179
  startTimestamp: bigint;
10178
10180
  endTimestamp: bigint;
10179
10181
  CampaignStatus: {
@@ -10186,6 +10188,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
10186
10188
  }[];
10187
10189
  Opportunity: {
10188
10190
  name: string;
10191
+ id: string;
10189
10192
  };
10190
10193
  computeChainId: number;
10191
10194
  distributionChainId: number;
@@ -14281,7 +14284,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14281
14284
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14282
14285
  200: {
14283
14286
  delay: number;
14284
- delayFormatted: string;
14287
+ computedUntil: bigint;
14285
14288
  startTimestamp: bigint;
14286
14289
  endTimestamp: bigint;
14287
14290
  CampaignStatus: {
@@ -14294,6 +14297,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14294
14297
  }[];
14295
14298
  Opportunity: {
14296
14299
  name: string;
14300
+ id: string;
14297
14301
  };
14298
14302
  computeChainId: number;
14299
14303
  distributionChainId: number;
@@ -17364,7 +17368,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17364
17368
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17365
17369
  200: {
17366
17370
  delay: number;
17367
- delayFormatted: string;
17371
+ computedUntil: bigint;
17368
17372
  startTimestamp: bigint;
17369
17373
  endTimestamp: bigint;
17370
17374
  CampaignStatus: {
@@ -17377,6 +17381,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17377
17381
  }[];
17378
17382
  Opportunity: {
17379
17383
  name: string;
17384
+ id: string;
17380
17385
  };
17381
17386
  computeChainId: number;
17382
17387
  distributionChainId: number;
@@ -3309,7 +3309,7 @@ declare const app: Elysia<"", false, {
3309
3309
  response: {
3310
3310
  200: {
3311
3311
  delay: number;
3312
- delayFormatted: string;
3312
+ computedUntil: bigint;
3313
3313
  startTimestamp: bigint;
3314
3314
  endTimestamp: bigint;
3315
3315
  CampaignStatus: {
@@ -3322,6 +3322,7 @@ declare const app: Elysia<"", false, {
3322
3322
  }[];
3323
3323
  Opportunity: {
3324
3324
  name: string;
3325
+ id: string;
3325
3326
  };
3326
3327
  computeChainId: number;
3327
3328
  distributionChainId: number;
@@ -3179,7 +3179,7 @@ export declare const v4: Elysia<"/v4", false, {
3179
3179
  response: {
3180
3180
  200: {
3181
3181
  delay: number;
3182
- delayFormatted: string;
3182
+ computedUntil: bigint;
3183
3183
  startTimestamp: bigint;
3184
3184
  endTimestamp: bigint;
3185
3185
  CampaignStatus: {
@@ -3192,6 +3192,7 @@ export declare const v4: Elysia<"/v4", false, {
3192
3192
  }[];
3193
3193
  Opportunity: {
3194
3194
  name: string;
3195
+ id: string;
3195
3196
  };
3196
3197
  computeChainId: number;
3197
3198
  distributionChainId: number;
@@ -128,7 +128,7 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
128
128
  response: {
129
129
  200: {
130
130
  delay: number;
131
- delayFormatted: string;
131
+ computedUntil: bigint;
132
132
  startTimestamp: bigint;
133
133
  endTimestamp: bigint;
134
134
  CampaignStatus: {
@@ -141,6 +141,7 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
141
141
  }[];
142
142
  Opportunity: {
143
143
  name: string;
144
+ id: string;
144
145
  };
145
146
  computeChainId: number;
146
147
  distributionChainId: number;
@@ -80,6 +80,7 @@ export declare class StatusRepository {
80
80
  }[];
81
81
  Opportunity: {
82
82
  name: string;
83
+ id: string;
83
84
  };
84
85
  computeChainId: number;
85
86
  distributionChainId: number;
@@ -100,6 +100,7 @@ export class StatusRepository {
100
100
  Opportunity: {
101
101
  select: {
102
102
  name: true,
103
+ id: true,
103
104
  },
104
105
  },
105
106
  CampaignStatus: {
@@ -49,7 +49,7 @@ export declare class StatusService {
49
49
  }>>;
50
50
  static findManyDelay(query: DelayModel): Promise<{
51
51
  delay: number;
52
- delayFormatted: string;
52
+ computedUntil: bigint;
53
53
  startTimestamp: bigint;
54
54
  endTimestamp: bigint;
55
55
  CampaignStatus: {
@@ -62,6 +62,7 @@ export declare class StatusService {
62
62
  }[];
63
63
  Opportunity: {
64
64
  name: string;
65
+ id: string;
65
66
  };
66
67
  computeChainId: number;
67
68
  distributionChainId: number;
@@ -92,8 +92,8 @@ export class StatusService {
92
92
  Math.min(now, endTimestamp, Number.parseInt((x.CampaignStatus?.[0]?.computedUntil ?? x.startTimestamp).toString()));
93
93
  return {
94
94
  ...x,
95
- delay: delay,
96
- delayFormatted: moment.duration(delay, "seconds").humanize(),
95
+ delay,
96
+ computedUntil: x.CampaignStatus?.[0]?.computedUntil ?? x.startTimestamp,
97
97
  };
98
98
  })
99
99
  .sort((a, b) => b.delay - a.delay)