@merkl/api 0.10.393 → 0.10.396
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.
- package/dist/database/api/.generated/drizzle/schema.d.ts +2806 -0
- package/dist/database/api/.generated/drizzle/schema.js +849 -0
- package/dist/database/api/.generated/drizzle/schema.ts +906 -0
- package/dist/database/api/.generated/edge.js +3 -7
- package/dist/database/api/.generated/index-browser.js +0 -4
- package/dist/database/api/.generated/index.d.ts +1 -99
- package/dist/database/api/.generated/index.js +3 -7
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +16 -13
- package/dist/database/api/.generated/wasm.js +0 -4
- package/dist/database/engine/.generated/edge.js +3 -7
- package/dist/database/engine/.generated/index-browser.js +0 -4
- package/dist/database/engine/.generated/index.d.ts +2 -218
- package/dist/database/engine/.generated/index.js +3 -7
- package/dist/database/engine/.generated/package.json +1 -1
- package/dist/database/engine/.generated/schema.prisma +6 -10
- package/dist/database/engine/.generated/wasm.js +0 -4
- package/dist/src/eden/index.d.ts +314 -78
- package/dist/src/index.d.ts +120 -26
- package/dist/src/jobs/etl/reward-breakdowns.js +0 -2
- package/dist/src/modules/v4/cache/cache.service.js +2 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +10 -10
- package/dist/src/modules/v4/campaign/campaign.repository.js +2 -2
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +3 -2
- package/dist/src/modules/v4/campaign/campaign.service.js +9 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +3 -3
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +5 -5
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +72 -72
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.controller.d.ts +109 -5
- package/dist/src/modules/v4/reward/reward.controller.js +29 -21
- package/dist/src/modules/v4/reward/reward.model.d.ts +5 -8
- package/dist/src/modules/v4/reward/reward.model.js +8 -6
- package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -16
- package/dist/src/modules/v4/reward/reward.repository.js +13 -20
- package/dist/src/modules/v4/reward/reward.service.d.ts +10 -23
- package/dist/src/modules/v4/reward/reward.service.js +0 -2
- package/dist/src/modules/v4/reward/subservices/converter.js +0 -2
- package/dist/src/modules/v4/router.d.ts +120 -24
- package/dist/src/modules/v4/status/status.controller.d.ts +6 -6
- package/dist/src/modules/v4/status/status.repository.d.ts +6 -6
- package/dist/src/modules/v4/status/status.service.d.ts +6 -6
- package/dist/src/modules/v4/token/token.repository.d.ts +2 -2
- package/dist/src/modules/v4/token/token.service.d.ts +3 -4
- package/dist/src/modules/v4/token/token.service.js +2 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +0 -8
- package/dist/src/modules/v4/user/user.model.d.ts +5 -2
- package/dist/src/modules/v4/user/user.model.js +4 -2
- package/dist/src/modules/v4/user/user.repository.d.ts +1 -1
- package/dist/src/modules/v4/user/user.service.d.ts +1 -1
- package/dist/src/routes/v3/rewards.d.ts +0 -2
- package/dist/src/routes/v3/router.d.ts +0 -2
- package/dist/src/utils/prisma.d.ts +16 -3
- package/dist/src/utils/prisma.js +2 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +4 -2
@@ -1,9 +1,8 @@
|
|
1
|
-
import type { Prisma } from "../../../../database/api/.generated";
|
2
1
|
import type { ChainId } from "@sdk";
|
3
|
-
import type { BreakdownForCampaignsRaw,
|
2
|
+
import type { BreakdownForCampaignsRaw, CampaignIdModel, CampaignIdWithoutPageModel, CreateManyBreakdownModel, CreateManyRewardModel, PendingEntity, TokenIdModel } from "./reward.model";
|
4
3
|
export declare abstract class RewardRepository {
|
5
|
-
static createManyReward(rewards: CreateManyRewardModel): Promise<
|
6
|
-
static createManyBreakdown(data: CreateManyBreakdownModel): Promise<
|
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>;
|
7
6
|
static getByRecipient(recipient: string, roots: string[], withToken: boolean, withTestTokens: boolean, chainFilter?: ChainId[]): Promise<({
|
8
7
|
RewardToken: {
|
9
8
|
symbol: string;
|
@@ -20,7 +19,6 @@ export declare abstract class RewardRepository {
|
|
20
19
|
};
|
21
20
|
Breakdown: ({
|
22
21
|
Campaign: {
|
23
|
-
campaignId: string;
|
24
22
|
Opportunity: {
|
25
23
|
Chain: {
|
26
24
|
name: string;
|
@@ -71,6 +69,7 @@ export declare abstract class RewardRepository {
|
|
71
69
|
apr: number;
|
72
70
|
dailyRewards: number;
|
73
71
|
};
|
72
|
+
campaignId: string;
|
74
73
|
};
|
75
74
|
} & {
|
76
75
|
reason: string;
|
@@ -80,8 +79,6 @@ export declare abstract class RewardRepository {
|
|
80
79
|
amount: string;
|
81
80
|
claimed: string;
|
82
81
|
protocolId: string | null;
|
83
|
-
auxiliaryData1: string | null;
|
84
|
-
auxiliaryData2: string | null;
|
85
82
|
rewardId: string;
|
86
83
|
})[];
|
87
84
|
} & {
|
@@ -107,8 +104,6 @@ export declare abstract class RewardRepository {
|
|
107
104
|
amount: string;
|
108
105
|
claimed: string;
|
109
106
|
protocolId: string | null;
|
110
|
-
auxiliaryData1: string | null;
|
111
|
-
auxiliaryData2: string | null;
|
112
107
|
rewardId: string;
|
113
108
|
})[];
|
114
109
|
} & {
|
@@ -125,8 +120,8 @@ export declare abstract class RewardRepository {
|
|
125
120
|
rewardCount: number;
|
126
121
|
breakdownCount: number;
|
127
122
|
}>;
|
128
|
-
static updateRewardClaimed(recipient: string, rewardTokenId: string, amount: string): Promise<
|
129
|
-
static updateBreakdownClaimed(recipient: string, rewardTokenId: string, campaignId: string, reason: string, amount: string): Promise<
|
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>;
|
130
125
|
static findManyBreakdownUniques(uniques: {
|
131
126
|
rewardId: string;
|
132
127
|
campaignId: string;
|
@@ -158,8 +153,6 @@ export declare abstract class RewardRepository {
|
|
158
153
|
amount: string;
|
159
154
|
claimed: string;
|
160
155
|
protocolId: string | null;
|
161
|
-
auxiliaryData1: string | null;
|
162
|
-
auxiliaryData2: string | null;
|
163
156
|
rewardId: string;
|
164
157
|
}[]>;
|
165
158
|
static createRewardPendings(rewardTokenId: string, root: string, toCreate: {
|
@@ -183,8 +176,6 @@ export declare abstract class RewardRepository {
|
|
183
176
|
amount: string;
|
184
177
|
claimed: string;
|
185
178
|
protocolId: string | null;
|
186
|
-
auxiliaryData1: string | null;
|
187
|
-
auxiliaryData2: string | null;
|
188
179
|
rewardId: string;
|
189
180
|
}[]>;
|
190
181
|
static findManyRootsWithRewardOnChain(chainId: number): Promise<string[]>;
|
@@ -196,7 +187,12 @@ export declare abstract class RewardRepository {
|
|
196
187
|
static countForCampaign(campaignId: string, root: string): Promise<{
|
197
188
|
count: number;
|
198
189
|
}>;
|
199
|
-
static breakdownForToken(root: string, id: string, query: TokenIdModel): Promise<
|
190
|
+
static breakdownForToken(root: string, id: string, query: TokenIdModel): Promise<{
|
191
|
+
amount: string;
|
192
|
+
claimed: string;
|
193
|
+
pending: string;
|
194
|
+
recipient: string;
|
195
|
+
}[]>;
|
200
196
|
static totalForToken(tokenId: string, root: string): Promise<{
|
201
197
|
tokenId: string;
|
202
198
|
amount: bigint;
|
@@ -1,4 +1,6 @@
|
|
1
|
+
import { Campaign, Reward, RewardBreakdown } from "../../../../database/api/.generated/drizzle/schema.ts";
|
1
2
|
import { apiDbClient } from "../../../utils/prisma";
|
3
|
+
import { and, eq, inArray, sql } from "drizzle-orm";
|
2
4
|
import { CampaignService } from "../campaign";
|
3
5
|
import { TokenService } from "../token";
|
4
6
|
import { UserService } from "../user";
|
@@ -46,8 +48,6 @@ export class RewardRepository {
|
|
46
48
|
amount: breakdown.amount,
|
47
49
|
claimed: breakdown.claimed,
|
48
50
|
pending: breakdown.pending,
|
49
|
-
auxiliaryData1: breakdown.auxiliaryData1 ?? "",
|
50
|
-
auxiliaryData2: breakdown.auxiliaryData2 ?? "",
|
51
51
|
});
|
52
52
|
});
|
53
53
|
}
|
@@ -211,8 +211,6 @@ export class RewardRepository {
|
|
211
211
|
},
|
212
212
|
data: {
|
213
213
|
pending: x.pending,
|
214
|
-
auxiliaryData1: x.auxiliaryData1,
|
215
|
-
auxiliaryData2: x.auxiliaryData2,
|
216
214
|
},
|
217
215
|
});
|
218
216
|
}));
|
@@ -329,24 +327,19 @@ export class RewardRepository {
|
|
329
327
|
return { count };
|
330
328
|
}
|
331
329
|
static async breakdownForToken(root, id, query) {
|
332
|
-
const { page: _page, items: _items } = query;
|
330
|
+
const { page: _page, items: _items, campaignIds } = query;
|
333
331
|
const page = _page || 0;
|
334
332
|
const items = _items || 50;
|
335
|
-
const
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
ORDER BY
|
346
|
-
(r."amount"::numeric + r."pending"::numeric) DESC
|
347
|
-
LIMIT $3
|
348
|
-
OFFSET $4
|
349
|
-
`, root, id, items, items * page);
|
333
|
+
const ids = typeof campaignIds === "string" ? [campaignIds] : (campaignIds ?? []);
|
334
|
+
const result = await apiDbClient.$drizzle
|
335
|
+
.select({ amount: Reward.amount, claimed: Reward.claimed, pending: Reward.pending, recipient: Reward.recipient })
|
336
|
+
.from(Reward)
|
337
|
+
.innerJoin(RewardBreakdown, eq(RewardBreakdown.rewardId, Reward.id))
|
338
|
+
.innerJoin(Campaign, eq(RewardBreakdown.campaignId, Campaign.id))
|
339
|
+
.where(and(eq(Reward.root, root), eq(Reward.rewardTokenId, id), ids.length > 0 ? inArray(Campaign.campaignId, ids) : sql `TRUE`))
|
340
|
+
.orderBy(sql `(${Reward.amount}::numeric + ${Reward.pending}::numeric) desc`)
|
341
|
+
.limit(items)
|
342
|
+
.offset(items * page);
|
350
343
|
return result;
|
351
344
|
}
|
352
345
|
static async totalForToken(tokenId, root) {
|
@@ -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("
|
10
|
+
static createManyReward(rewards: CreateManyRewardModel): Promise<import("database/api/.generated/runtime/library").GetBatchResult>;
|
11
11
|
/**
|
12
12
|
* Format the reward breakdown to conform to its resource model declaration
|
13
13
|
* @param breakdown straight from db
|
@@ -69,8 +69,6 @@ export declare abstract class RewardService {
|
|
69
69
|
pending: string;
|
70
70
|
amount: string;
|
71
71
|
claimed: string;
|
72
|
-
auxiliaryData1: string | null;
|
73
|
-
auxiliaryData2: string | null;
|
74
72
|
};
|
75
73
|
/**
|
76
74
|
* Format the reward to conform to its resource model declaration
|
@@ -147,8 +145,6 @@ export declare abstract class RewardService {
|
|
147
145
|
pending: string;
|
148
146
|
amount: string;
|
149
147
|
claimed: string;
|
150
|
-
auxiliaryData1: string | null;
|
151
|
-
auxiliaryData2: string | null;
|
152
148
|
}[];
|
153
149
|
claimed: bigint;
|
154
150
|
amount: bigint;
|
@@ -157,7 +153,7 @@ export declare abstract class RewardService {
|
|
157
153
|
root: string;
|
158
154
|
proofs: string[];
|
159
155
|
}[];
|
160
|
-
static createManyBreakdown(data: CreateManyBreakdownModel): Promise<import("
|
156
|
+
static createManyBreakdown(data: CreateManyBreakdownModel): Promise<import("database/api/.generated/runtime/library").GetBatchResult | undefined>;
|
161
157
|
static getByRecipient(recipient: string, roots: string[], withToken?: boolean, withTestTokens?: boolean, chainFilter?: ChainId[]): Promise<({
|
162
158
|
RewardToken: {
|
163
159
|
symbol: string;
|
@@ -174,7 +170,6 @@ export declare abstract class RewardService {
|
|
174
170
|
};
|
175
171
|
Breakdown: ({
|
176
172
|
Campaign: {
|
177
|
-
campaignId: string;
|
178
173
|
Opportunity: {
|
179
174
|
Chain: {
|
180
175
|
name: string;
|
@@ -225,6 +220,7 @@ export declare abstract class RewardService {
|
|
225
220
|
apr: number;
|
226
221
|
dailyRewards: number;
|
227
222
|
};
|
223
|
+
campaignId: string;
|
228
224
|
};
|
229
225
|
} & {
|
230
226
|
reason: string;
|
@@ -234,8 +230,6 @@ export declare abstract class RewardService {
|
|
234
230
|
amount: string;
|
235
231
|
claimed: string;
|
236
232
|
protocolId: string | null;
|
237
|
-
auxiliaryData1: string | null;
|
238
|
-
auxiliaryData2: string | null;
|
239
233
|
rewardId: string;
|
240
234
|
})[];
|
241
235
|
} & {
|
@@ -260,8 +254,6 @@ export declare abstract class RewardService {
|
|
260
254
|
claimed: bigint;
|
261
255
|
amount: bigint;
|
262
256
|
pending: bigint;
|
263
|
-
auxiliaryData1: string | null;
|
264
|
-
auxiliaryData2: string | null;
|
265
257
|
}[];
|
266
258
|
/**
|
267
259
|
* Applies the splitBreakdownByOpportunity function to each rewards in the array
|
@@ -342,8 +334,6 @@ export declare abstract class RewardService {
|
|
342
334
|
pending: string;
|
343
335
|
amount: string;
|
344
336
|
claimed: string;
|
345
|
-
auxiliaryData1: string | null;
|
346
|
-
auxiliaryData2: string | null;
|
347
337
|
}[];
|
348
338
|
claimed: bigint;
|
349
339
|
amount: bigint;
|
@@ -357,8 +347,6 @@ export declare abstract class RewardService {
|
|
357
347
|
claimed: bigint;
|
358
348
|
amount: bigint;
|
359
349
|
pending: bigint;
|
360
|
-
auxiliaryData1: string | null;
|
361
|
-
auxiliaryData2: string | null;
|
362
350
|
}[];
|
363
351
|
})[];
|
364
352
|
distributor: string;
|
@@ -437,8 +425,6 @@ export declare abstract class RewardService {
|
|
437
425
|
pending: string;
|
438
426
|
amount: string;
|
439
427
|
claimed: string;
|
440
|
-
auxiliaryData1: string | null;
|
441
|
-
auxiliaryData2: string | null;
|
442
428
|
}[];
|
443
429
|
claimed: bigint;
|
444
430
|
amount: bigint;
|
@@ -453,8 +439,6 @@ export declare abstract class RewardService {
|
|
453
439
|
pending: string;
|
454
440
|
amount: string;
|
455
441
|
claimed: string;
|
456
|
-
auxiliaryData1: string | null;
|
457
|
-
auxiliaryData2: string | null;
|
458
442
|
}[];
|
459
443
|
})[];
|
460
444
|
})[];
|
@@ -475,7 +459,6 @@ export declare abstract class RewardService {
|
|
475
459
|
};
|
476
460
|
Breakdown: ({
|
477
461
|
Campaign: {
|
478
|
-
campaignId: string;
|
479
462
|
Opportunity: {
|
480
463
|
Chain: {
|
481
464
|
name: string;
|
@@ -526,6 +509,7 @@ export declare abstract class RewardService {
|
|
526
509
|
apr: number;
|
527
510
|
dailyRewards: number;
|
528
511
|
};
|
512
|
+
campaignId: string;
|
529
513
|
};
|
530
514
|
} & {
|
531
515
|
reason: string;
|
@@ -535,8 +519,6 @@ export declare abstract class RewardService {
|
|
535
519
|
amount: string;
|
536
520
|
claimed: string;
|
537
521
|
protocolId: string | null;
|
538
|
-
auxiliaryData1: string | null;
|
539
|
-
auxiliaryData2: string | null;
|
540
522
|
rewardId: string;
|
541
523
|
})[];
|
542
524
|
} & {
|
@@ -572,7 +554,12 @@ export declare abstract class RewardService {
|
|
572
554
|
campaignId: string;
|
573
555
|
amount: bigint;
|
574
556
|
}>;
|
575
|
-
static breakdownForToken(query: TokenIdModel): Promise<
|
557
|
+
static breakdownForToken(query: TokenIdModel): Promise<{
|
558
|
+
amount: string;
|
559
|
+
claimed: string;
|
560
|
+
pending: string;
|
561
|
+
recipient: string;
|
562
|
+
}[]>;
|
576
563
|
static countForToken(query: TokenIdModel): Promise<{
|
577
564
|
count: number;
|
578
565
|
}>;
|
@@ -106,8 +106,6 @@ export class RewardService {
|
|
106
106
|
claimed: relatedBreakdowns.reduce((total, { claimed }) => total + BigInt(claimed), 0n),
|
107
107
|
amount: relatedBreakdowns.reduce((total, { amount }) => total + BigInt(amount), 0n),
|
108
108
|
pending: relatedBreakdowns.reduce((total, { pending }) => total + BigInt(pending), 0n),
|
109
|
-
auxiliaryData1: relatedBreakdowns[0]?.auxiliaryData1,
|
110
|
-
auxiliaryData2: relatedBreakdowns[0]?.auxiliaryData2,
|
111
109
|
};
|
112
110
|
});
|
113
111
|
}
|
@@ -77,8 +77,6 @@ export class RewardConvertorService {
|
|
77
77
|
accumulated: "0",
|
78
78
|
unclaimed: "0",
|
79
79
|
pending: "0",
|
80
|
-
auxiliaryData1: breakdown.auxiliaryData1 === "" ? "0" : (breakdown.auxiliaryData1 ?? "0"),
|
81
|
-
auxiliaryData2: breakdown.auxiliaryData2 === "" ? "0" : (breakdown.auxiliaryData2 ?? "0"),
|
82
80
|
decimals: token.decimals,
|
83
81
|
mainParameter: breakdown.opportunity.identifier,
|
84
82
|
symbol: token.symbol,
|
@@ -312,7 +312,6 @@ export declare const v4: Elysia<"/v4", {
|
|
312
312
|
tags: string[];
|
313
313
|
icon: string;
|
314
314
|
} | null | undefined;
|
315
|
-
depositUrl?: string | undefined;
|
316
315
|
aprRecord?: {
|
317
316
|
timestamp: string | bigint;
|
318
317
|
cumulated: number;
|
@@ -324,6 +323,7 @@ export declare const v4: Elysia<"/v4", {
|
|
324
323
|
aprRecordId: string;
|
325
324
|
}[];
|
326
325
|
} | undefined;
|
326
|
+
depositUrl?: string | undefined;
|
327
327
|
tvlRecord?: {
|
328
328
|
total: number;
|
329
329
|
timestamp: string | bigint;
|
@@ -445,7 +445,6 @@ export declare const v4: Elysia<"/v4", {
|
|
445
445
|
tags: string[];
|
446
446
|
icon: string;
|
447
447
|
} | null | undefined;
|
448
|
-
depositUrl?: string | undefined;
|
449
448
|
aprRecord?: {
|
450
449
|
timestamp: string | bigint;
|
451
450
|
cumulated: number;
|
@@ -457,6 +456,7 @@ export declare const v4: Elysia<"/v4", {
|
|
457
456
|
aprRecordId: string;
|
458
457
|
}[];
|
459
458
|
} | undefined;
|
459
|
+
depositUrl?: string | undefined;
|
460
460
|
tvlRecord?: {
|
461
461
|
total: number;
|
462
462
|
timestamp: string | bigint;
|
@@ -613,7 +613,6 @@ export declare const v4: Elysia<"/v4", {
|
|
613
613
|
tags: string[];
|
614
614
|
icon: string;
|
615
615
|
} | null | undefined;
|
616
|
-
depositUrl?: string | undefined;
|
617
616
|
aprRecord?: {
|
618
617
|
timestamp: string | bigint;
|
619
618
|
cumulated: number;
|
@@ -625,6 +624,7 @@ export declare const v4: Elysia<"/v4", {
|
|
625
624
|
aprRecordId: string;
|
626
625
|
}[];
|
627
626
|
} | undefined;
|
627
|
+
depositUrl?: string | undefined;
|
628
628
|
tvlRecord?: {
|
629
629
|
total: number;
|
630
630
|
timestamp: string | bigint;
|
@@ -1195,10 +1195,10 @@ export declare const v4: Elysia<"/v4", {
|
|
1195
1195
|
response: {
|
1196
1196
|
200: {
|
1197
1197
|
endTimestamp: bigint;
|
1198
|
-
campaignId: string;
|
1199
1198
|
CampaignStatus: {
|
1200
1199
|
computedUntil: bigint;
|
1201
1200
|
}[];
|
1201
|
+
campaignId: string;
|
1202
1202
|
}[];
|
1203
1203
|
422: {
|
1204
1204
|
type: "validation";
|
@@ -1873,6 +1873,106 @@ export declare const v4: Elysia<"/v4", {
|
|
1873
1873
|
};
|
1874
1874
|
};
|
1875
1875
|
};
|
1876
|
+
} & {
|
1877
|
+
campaign: {
|
1878
|
+
":campaignId": {
|
1879
|
+
index: {
|
1880
|
+
get: {
|
1881
|
+
body: unknown;
|
1882
|
+
params: {
|
1883
|
+
campaignId: string;
|
1884
|
+
};
|
1885
|
+
query: {
|
1886
|
+
items?: number | undefined;
|
1887
|
+
page?: number | undefined;
|
1888
|
+
};
|
1889
|
+
headers: unknown;
|
1890
|
+
response: {
|
1891
|
+
200: {
|
1892
|
+
amount: string;
|
1893
|
+
claimed: string;
|
1894
|
+
pending: string;
|
1895
|
+
recipient: string;
|
1896
|
+
}[];
|
1897
|
+
422: {
|
1898
|
+
type: "validation";
|
1899
|
+
on: string;
|
1900
|
+
summary?: string;
|
1901
|
+
message?: string;
|
1902
|
+
found?: unknown;
|
1903
|
+
property?: string;
|
1904
|
+
expected?: string;
|
1905
|
+
};
|
1906
|
+
};
|
1907
|
+
};
|
1908
|
+
};
|
1909
|
+
};
|
1910
|
+
};
|
1911
|
+
} & {
|
1912
|
+
campaign: {
|
1913
|
+
":campaignId": {
|
1914
|
+
total: {
|
1915
|
+
get: {
|
1916
|
+
body: unknown;
|
1917
|
+
params: {
|
1918
|
+
campaignId: string;
|
1919
|
+
};
|
1920
|
+
query: {
|
1921
|
+
items?: number | undefined;
|
1922
|
+
page?: number | undefined;
|
1923
|
+
};
|
1924
|
+
headers: unknown;
|
1925
|
+
response: {
|
1926
|
+
200: {
|
1927
|
+
tokenId: string;
|
1928
|
+
amount: bigint;
|
1929
|
+
};
|
1930
|
+
422: {
|
1931
|
+
type: "validation";
|
1932
|
+
on: string;
|
1933
|
+
summary?: string;
|
1934
|
+
message?: string;
|
1935
|
+
found?: unknown;
|
1936
|
+
property?: string;
|
1937
|
+
expected?: string;
|
1938
|
+
};
|
1939
|
+
};
|
1940
|
+
};
|
1941
|
+
};
|
1942
|
+
};
|
1943
|
+
};
|
1944
|
+
} & {
|
1945
|
+
campaign: {
|
1946
|
+
":campaignId": {
|
1947
|
+
count: {
|
1948
|
+
get: {
|
1949
|
+
body: unknown;
|
1950
|
+
params: {
|
1951
|
+
campaignId: string;
|
1952
|
+
};
|
1953
|
+
query: {
|
1954
|
+
items?: number | undefined;
|
1955
|
+
page?: number | undefined;
|
1956
|
+
};
|
1957
|
+
headers: unknown;
|
1958
|
+
response: {
|
1959
|
+
200: {
|
1960
|
+
count: number;
|
1961
|
+
};
|
1962
|
+
422: {
|
1963
|
+
type: "validation";
|
1964
|
+
on: string;
|
1965
|
+
summary?: string;
|
1966
|
+
message?: string;
|
1967
|
+
found?: unknown;
|
1968
|
+
property?: string;
|
1969
|
+
expected?: string;
|
1970
|
+
};
|
1971
|
+
};
|
1972
|
+
};
|
1973
|
+
};
|
1974
|
+
};
|
1975
|
+
};
|
1876
1976
|
} & {
|
1877
1977
|
token: {
|
1878
1978
|
index: {
|
@@ -1882,12 +1982,18 @@ export declare const v4: Elysia<"/v4", {
|
|
1882
1982
|
query: {
|
1883
1983
|
items?: number | undefined;
|
1884
1984
|
page?: number | undefined;
|
1985
|
+
campaignIds?: string[] | undefined;
|
1885
1986
|
chainId: number;
|
1886
1987
|
address: string;
|
1887
1988
|
};
|
1888
1989
|
headers: unknown;
|
1889
1990
|
response: {
|
1890
|
-
200:
|
1991
|
+
200: {
|
1992
|
+
amount: string;
|
1993
|
+
claimed: string;
|
1994
|
+
pending: string;
|
1995
|
+
recipient: string;
|
1996
|
+
}[];
|
1891
1997
|
422: {
|
1892
1998
|
type: "validation";
|
1893
1999
|
on: string;
|
@@ -1910,6 +2016,7 @@ export declare const v4: Elysia<"/v4", {
|
|
1910
2016
|
query: {
|
1911
2017
|
items?: number | undefined;
|
1912
2018
|
page?: number | undefined;
|
2019
|
+
campaignIds?: string[] | undefined;
|
1913
2020
|
chainId: number;
|
1914
2021
|
address: string;
|
1915
2022
|
};
|
@@ -1941,6 +2048,7 @@ export declare const v4: Elysia<"/v4", {
|
|
1941
2048
|
query: {
|
1942
2049
|
items?: number | undefined;
|
1943
2050
|
page?: number | undefined;
|
2051
|
+
campaignIds?: string[] | undefined;
|
1944
2052
|
chainId: number;
|
1945
2053
|
address: string;
|
1946
2054
|
};
|
@@ -2009,8 +2117,6 @@ export declare const v4: Elysia<"/v4", {
|
|
2009
2117
|
rewardToken: string;
|
2010
2118
|
breakdowns: {
|
2011
2119
|
protocolId?: string | undefined;
|
2012
|
-
auxiliaryData1?: string | undefined;
|
2013
|
-
auxiliaryData2?: string | undefined;
|
2014
2120
|
reason: string;
|
2015
2121
|
pending: string;
|
2016
2122
|
recipient: string;
|
@@ -2076,8 +2182,6 @@ export declare const v4: Elysia<"/v4", {
|
|
2076
2182
|
post: {
|
2077
2183
|
body: {
|
2078
2184
|
data: {
|
2079
|
-
auxiliaryData1?: string | undefined;
|
2080
|
-
auxiliaryData2?: string | undefined;
|
2081
2185
|
reason: string;
|
2082
2186
|
pending: string;
|
2083
2187
|
recipient: string;
|
@@ -2856,8 +2960,6 @@ export declare const v4: Elysia<"/v4", {
|
|
2856
2960
|
pending: string;
|
2857
2961
|
amount: string;
|
2858
2962
|
claimed: string;
|
2859
|
-
auxiliaryData1: string | null;
|
2860
|
-
auxiliaryData2: string | null;
|
2861
2963
|
}[];
|
2862
2964
|
claimed: bigint;
|
2863
2965
|
amount: bigint;
|
@@ -2871,8 +2973,6 @@ export declare const v4: Elysia<"/v4", {
|
|
2871
2973
|
claimed: bigint;
|
2872
2974
|
amount: bigint;
|
2873
2975
|
pending: bigint;
|
2874
|
-
auxiliaryData1: string | null;
|
2875
|
-
auxiliaryData2: string | null;
|
2876
2976
|
}[];
|
2877
2977
|
})[];
|
2878
2978
|
distributor: string;
|
@@ -2982,8 +3082,6 @@ export declare const v4: Elysia<"/v4", {
|
|
2982
3082
|
pending: string;
|
2983
3083
|
amount: string;
|
2984
3084
|
claimed: string;
|
2985
|
-
auxiliaryData1: string | null;
|
2986
|
-
auxiliaryData2: string | null;
|
2987
3085
|
}[];
|
2988
3086
|
claimed: bigint;
|
2989
3087
|
amount: bigint;
|
@@ -2998,8 +3096,6 @@ export declare const v4: Elysia<"/v4", {
|
|
2998
3096
|
pending: string;
|
2999
3097
|
amount: string;
|
3000
3098
|
claimed: string;
|
3001
|
-
auxiliaryData1: string | null;
|
3002
|
-
auxiliaryData2: string | null;
|
3003
3099
|
}[];
|
3004
3100
|
})[];
|
3005
3101
|
})[];
|
@@ -3603,13 +3699,13 @@ export declare const v4: Elysia<"/v4", {
|
|
3603
3699
|
chainId?: number | undefined;
|
3604
3700
|
startTimestamp?: string | undefined;
|
3605
3701
|
endTimestamp?: string | undefined;
|
3702
|
+
campaignStatus?: {} | undefined;
|
3606
3703
|
distributionChainId?: number | undefined;
|
3607
3704
|
campaignId?: string | undefined;
|
3608
3705
|
rewardTokenId?: string | undefined;
|
3609
3706
|
amount?: string | undefined;
|
3610
3707
|
opportunityId?: string | undefined;
|
3611
3708
|
creatorAddress?: string | undefined;
|
3612
|
-
campaignStatus?: {} | undefined;
|
3613
3709
|
rewardToken?: {} | undefined;
|
3614
3710
|
rewardTokenAddress?: string | undefined;
|
3615
3711
|
distributionChain?: {} | undefined;
|
@@ -3837,12 +3933,6 @@ export declare const v4: Elysia<"/v4", {
|
|
3837
3933
|
delayFormatted: string;
|
3838
3934
|
startTimestamp: bigint;
|
3839
3935
|
endTimestamp: bigint;
|
3840
|
-
computeChainId: number;
|
3841
|
-
distributionChainId: number;
|
3842
|
-
campaignId: string;
|
3843
|
-
Opportunity: {
|
3844
|
-
name: string;
|
3845
|
-
};
|
3846
3936
|
CampaignStatus: {
|
3847
3937
|
error: string;
|
3848
3938
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
@@ -3851,6 +3941,12 @@ export declare const v4: Elysia<"/v4", {
|
|
3851
3941
|
computedUntil: bigint;
|
3852
3942
|
processingStarted: bigint;
|
3853
3943
|
}[];
|
3944
|
+
Opportunity: {
|
3945
|
+
name: string;
|
3946
|
+
};
|
3947
|
+
computeChainId: number;
|
3948
|
+
distributionChainId: number;
|
3949
|
+
campaignId: string;
|
3854
3950
|
}[];
|
3855
3951
|
422: {
|
3856
3952
|
type: "validation";
|
@@ -167,12 +167,6 @@ export declare const StatusController: Elysia<"/campaign-status", {
|
|
167
167
|
delayFormatted: string;
|
168
168
|
startTimestamp: bigint;
|
169
169
|
endTimestamp: bigint;
|
170
|
-
computeChainId: number;
|
171
|
-
distributionChainId: number;
|
172
|
-
campaignId: string;
|
173
|
-
Opportunity: {
|
174
|
-
name: string;
|
175
|
-
};
|
176
170
|
CampaignStatus: {
|
177
171
|
error: string;
|
178
172
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
@@ -181,6 +175,12 @@ export declare const StatusController: Elysia<"/campaign-status", {
|
|
181
175
|
computedUntil: bigint;
|
182
176
|
processingStarted: bigint;
|
183
177
|
}[];
|
178
|
+
Opportunity: {
|
179
|
+
name: string;
|
180
|
+
};
|
181
|
+
computeChainId: number;
|
182
|
+
distributionChainId: number;
|
183
|
+
campaignId: string;
|
184
184
|
}[];
|
185
185
|
422: {
|
186
186
|
type: "validation";
|
@@ -70,12 +70,6 @@ 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
|
-
};
|
79
73
|
CampaignStatus: {
|
80
74
|
error: string;
|
81
75
|
details: Prisma.JsonValue;
|
@@ -84,5 +78,11 @@ export declare class StatusRepository {
|
|
84
78
|
computedUntil: bigint;
|
85
79
|
processingStarted: bigint;
|
86
80
|
}[];
|
81
|
+
Opportunity: {
|
82
|
+
name: string;
|
83
|
+
};
|
84
|
+
computeChainId: number;
|
85
|
+
distributionChainId: number;
|
86
|
+
campaignId: string;
|
87
87
|
}[]>;
|
88
88
|
}
|
@@ -40,12 +40,6 @@ 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
|
-
};
|
49
43
|
CampaignStatus: {
|
50
44
|
error: string;
|
51
45
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
@@ -54,5 +48,11 @@ export declare class StatusService {
|
|
54
48
|
computedUntil: bigint;
|
55
49
|
processingStarted: bigint;
|
56
50
|
}[];
|
51
|
+
Opportunity: {
|
52
|
+
name: string;
|
53
|
+
};
|
54
|
+
computeChainId: number;
|
55
|
+
distributionChainId: number;
|
56
|
+
campaignId: string;
|
57
57
|
}[]>;
|
58
58
|
}
|