@merkl/api 0.20.158 → 0.20.160
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/edge.js +6 -2
- package/dist/database/api/.generated/index.js +10 -2
- package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +1 -1
- package/dist/database/engine/.generated/edge.js +6 -2
- package/dist/database/engine/.generated/index.js +10 -2
- package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/package.json +1 -1
- package/dist/database/engine/.generated/schema.prisma +1 -1
- package/dist/src/eden/index.d.ts +747 -747
- package/dist/src/engine/deprecated/dynamicData/factory.js +1 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js +29 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +1 -3
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.js +1 -2
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Locker/metadata.d.ts +24 -0
- package/dist/src/engine/implementations/Locker/metadata.js +36 -0
- package/dist/src/engine/implementations/Locker/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/Locker/tvl.js +21 -0
- package/dist/src/engine/implementations/MultiLog/tvl.d.ts +1 -12
- package/dist/src/engine/implementations/MultiLog/tvl.js +1 -61
- package/dist/src/engine/metadata/factory.js +1 -0
- package/dist/src/engine/tvl/logStates.d.ts +17 -0
- package/dist/src/engine/tvl/logStates.js +106 -0
- package/dist/src/index.d.ts +255 -255
- package/dist/src/index.js +2 -2
- package/dist/src/modules/v4/boost/boost.controller.d.ts +1 -1
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +2 -0
- package/dist/src/modules/v4/bucket/bucket.service.js +3 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +41 -41
- package/dist/src/modules/v4/campaign/campaign.controller.js +0 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +36 -36
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +76 -76
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +18 -18
- package/dist/src/modules/v4/chain/chain.controller.d.ts +11 -11
- package/dist/src/modules/v4/chain/chain.repository.d.ts +13 -13
- package/dist/src/modules/v4/chain/chain.service.d.ts +14 -14
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.controller.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.repository.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.service.d.ts +4 -4
- package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +3 -3
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +4 -4
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +5 -5
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +105 -105
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -3
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +117 -117
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +122 -122
- package/dist/src/modules/v4/price/price.controller.d.ts +4 -4
- package/dist/src/modules/v4/price/price.repository.d.ts +5 -5
- package/dist/src/modules/v4/price/price.service.d.ts +4 -4
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +18 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +14 -7
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +128 -8
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +24 -24
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +14 -14
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +6 -6
- package/dist/src/modules/v4/reward/reward.controller.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.controller.js +0 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -12
- package/dist/src/modules/v4/reward/reward.service.d.ts +82 -82
- package/dist/src/modules/v4/router.d.ts +255 -255
- package/dist/src/modules/v4/status/status.controller.d.ts +5 -5
- package/dist/src/modules/v4/status/status.repository.d.ts +11 -11
- package/dist/src/modules/v4/status/status.service.d.ts +7 -7
- package/dist/src/modules/v4/token/token.controller.d.ts +11 -11
- package/dist/src/modules/v4/token/token.repository.d.ts +4 -4
- package/dist/src/modules/v4/token/token.service.d.ts +14 -14
- package/dist/src/modules/v4/token/token.service.js +3 -3
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +1 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +24 -24
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/src/index.js
CHANGED
@@ -98,8 +98,8 @@ const app = new Elysia({
|
|
98
98
|
.use(v4)
|
99
99
|
.use(v3)
|
100
100
|
.use(errorHandler())
|
101
|
-
.listen({ port: PORT, idleTimeout: 40 },
|
102
|
-
log.info(`🌐 Api started (${hostname}:${port})`);
|
101
|
+
.listen({ port: PORT, idleTimeout: 40 }, server => {
|
102
|
+
log.info(`🌐 Api started (${server.hostname || "localhost"}:${server.port})`);
|
103
103
|
});
|
104
104
|
// ─── Signal Handling ─────────────────────────────────────────────────────────
|
105
105
|
process.on("SIGTERM", () => {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { type S3ListObjectsOptions } from "bun";
|
1
2
|
import type { UploadOptions } from "./bucket.model";
|
2
3
|
export declare class BucketService {
|
3
4
|
#private;
|
@@ -9,4 +10,5 @@ export declare class BucketService {
|
|
9
10
|
pushRaw(filename: string, data: Uint8Array, options?: Omit<UploadOptions<never>, "transform" | "separator">): Promise<number>;
|
10
11
|
pullArray<T>(filename: string, callback: (elem: string) => T, separator?: string): Promise<T[]>;
|
11
12
|
pull(filename: string): Promise<string>;
|
13
|
+
list(input?: S3ListObjectsOptions | null): Promise<Bun.S3ListObjectsResponse>;
|
12
14
|
}
|
@@ -38,9 +38,9 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
38
38
|
};
|
39
39
|
response: {
|
40
40
|
200: {
|
41
|
-
id: string;
|
42
41
|
type: string;
|
43
42
|
description: string | null;
|
43
|
+
id: string;
|
44
44
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
45
45
|
subType: number | null;
|
46
46
|
computeChainId: number;
|
@@ -58,8 +58,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
58
58
|
} | {
|
59
59
|
Tokens: {
|
60
60
|
symbol: string;
|
61
|
-
id: string;
|
62
61
|
name: string | null;
|
62
|
+
id: string;
|
63
63
|
icon: string;
|
64
64
|
address: string;
|
65
65
|
chainId: number;
|
@@ -73,18 +73,18 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
73
73
|
price: number | null;
|
74
74
|
}[];
|
75
75
|
Protocols: {
|
76
|
-
id: string;
|
77
|
-
name: string;
|
78
76
|
url: string;
|
77
|
+
name: string;
|
79
78
|
description: string;
|
79
|
+
id: string;
|
80
80
|
tags: string[];
|
81
81
|
icon: string;
|
82
82
|
}[];
|
83
|
-
id: string;
|
84
|
-
name: string;
|
85
|
-
type: string;
|
86
83
|
status: import("@db/api").$Enums.Status;
|
84
|
+
type: string;
|
85
|
+
name: string;
|
87
86
|
description: string;
|
87
|
+
id: string;
|
88
88
|
tags: string[];
|
89
89
|
identifier: string;
|
90
90
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -108,8 +108,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
108
108
|
action: any;
|
109
109
|
tokens: ({
|
110
110
|
symbol: string;
|
111
|
-
id: string;
|
112
111
|
name: string | null;
|
112
|
+
id: string;
|
113
113
|
icon: string;
|
114
114
|
address: string;
|
115
115
|
chainId: number;
|
@@ -122,7 +122,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
122
122
|
} & {
|
123
123
|
price?: number | null | undefined;
|
124
124
|
})[];
|
125
|
-
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
125
|
+
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | "puffer" | undefined;
|
126
126
|
description: string;
|
127
127
|
howToSteps: string[];
|
128
128
|
depositUrl: string | undefined;
|
@@ -201,9 +201,9 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
201
201
|
};
|
202
202
|
response: {
|
203
203
|
200: {
|
204
|
-
id: string;
|
205
204
|
type: string;
|
206
205
|
description: string | null;
|
206
|
+
id: string;
|
207
207
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
208
208
|
subType: number | null;
|
209
209
|
computeChainId: number;
|
@@ -246,8 +246,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
246
246
|
body: unknown;
|
247
247
|
params: {};
|
248
248
|
query: {
|
249
|
-
type?: string | undefined;
|
250
249
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
250
|
+
type?: string | undefined;
|
251
251
|
items?: number | undefined;
|
252
252
|
subType?: number | undefined;
|
253
253
|
page?: number | undefined;
|
@@ -274,16 +274,16 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
274
274
|
200: {
|
275
275
|
params: any;
|
276
276
|
chain: {
|
277
|
-
id: number;
|
278
277
|
name: string;
|
278
|
+
id: number;
|
279
279
|
icon: string;
|
280
280
|
};
|
281
281
|
endTimestamp: number;
|
282
282
|
startTimestamp: number;
|
283
283
|
rewardToken: {
|
284
284
|
symbol: string;
|
285
|
-
id: string;
|
286
285
|
name: string | null;
|
286
|
+
id: string;
|
287
287
|
icon: string;
|
288
288
|
address: string;
|
289
289
|
chainId: number;
|
@@ -297,15 +297,15 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
297
297
|
price?: number | null | undefined;
|
298
298
|
};
|
299
299
|
distributionChain: {
|
300
|
-
id: number;
|
301
300
|
name: string;
|
301
|
+
id: number;
|
302
302
|
icon: string;
|
303
303
|
} | undefined;
|
304
304
|
campaignStatus: {
|
305
305
|
computedUntil: number;
|
306
306
|
processingStarted: number;
|
307
|
-
error: string;
|
308
307
|
status: import("@db/api").$Enums.RunStatus;
|
308
|
+
error: string;
|
309
309
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
310
310
|
campaignId: string;
|
311
311
|
} | undefined;
|
@@ -318,11 +318,11 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
318
318
|
createdAt: string;
|
319
319
|
description: string | undefined;
|
320
320
|
Opportunity: {
|
321
|
-
id: string;
|
322
|
-
name: string;
|
323
|
-
type: string;
|
324
321
|
status: import("@db/api").$Enums.Status;
|
322
|
+
type: string;
|
323
|
+
name: string;
|
325
324
|
description: string;
|
325
|
+
id: string;
|
326
326
|
tags: string[];
|
327
327
|
identifier: string;
|
328
328
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -337,8 +337,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
337
337
|
dailyRewards: number;
|
338
338
|
lastCampaignCreatedAt: Date;
|
339
339
|
};
|
340
|
-
id: string;
|
341
340
|
type: string;
|
341
|
+
id: string;
|
342
342
|
subType: number | null;
|
343
343
|
computeChainId: number;
|
344
344
|
distributionChainId: number;
|
@@ -364,16 +364,16 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
364
364
|
200: {
|
365
365
|
params: any;
|
366
366
|
chain: {
|
367
|
-
id: number;
|
368
367
|
name: string;
|
368
|
+
id: number;
|
369
369
|
icon: string;
|
370
370
|
};
|
371
371
|
endTimestamp: number;
|
372
372
|
startTimestamp: number;
|
373
373
|
rewardToken: {
|
374
374
|
symbol: string;
|
375
|
-
id: string;
|
376
375
|
name: string | null;
|
376
|
+
id: string;
|
377
377
|
icon: string;
|
378
378
|
address: string;
|
379
379
|
chainId: number;
|
@@ -387,15 +387,15 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
387
387
|
price?: number | null | undefined;
|
388
388
|
};
|
389
389
|
distributionChain: {
|
390
|
-
id: number;
|
391
390
|
name: string;
|
391
|
+
id: number;
|
392
392
|
icon: string;
|
393
393
|
} | undefined;
|
394
394
|
campaignStatus: {
|
395
395
|
computedUntil: number;
|
396
396
|
processingStarted: number;
|
397
|
-
error: string;
|
398
397
|
status: import("@db/api").$Enums.RunStatus;
|
398
|
+
error: string;
|
399
399
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
400
400
|
campaignId: string;
|
401
401
|
} | undefined;
|
@@ -408,11 +408,11 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
408
408
|
createdAt: string;
|
409
409
|
description: string | undefined;
|
410
410
|
Opportunity: {
|
411
|
-
id: string;
|
412
|
-
name: string;
|
413
|
-
type: string;
|
414
411
|
status: import("@db/api").$Enums.Status;
|
412
|
+
type: string;
|
413
|
+
name: string;
|
415
414
|
description: string;
|
415
|
+
id: string;
|
416
416
|
tags: string[];
|
417
417
|
identifier: string;
|
418
418
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -427,8 +427,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
427
427
|
dailyRewards: number;
|
428
428
|
lastCampaignCreatedAt: Date;
|
429
429
|
};
|
430
|
-
id: string;
|
431
430
|
type: string;
|
431
|
+
id: string;
|
432
432
|
subType: number | null;
|
433
433
|
computeChainId: number;
|
434
434
|
distributionChainId: number;
|
@@ -527,8 +527,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
527
527
|
body: unknown;
|
528
528
|
params: {};
|
529
529
|
query: {
|
530
|
-
type?: string | undefined;
|
531
530
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
531
|
+
type?: string | undefined;
|
532
532
|
items?: number | undefined;
|
533
533
|
subType?: number | undefined;
|
534
534
|
page?: number | undefined;
|
@@ -555,16 +555,16 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
555
555
|
200: {
|
556
556
|
params: any;
|
557
557
|
chain: {
|
558
|
-
id: number;
|
559
558
|
name: string;
|
559
|
+
id: number;
|
560
560
|
icon: string;
|
561
561
|
};
|
562
562
|
endTimestamp: number;
|
563
563
|
startTimestamp: number;
|
564
564
|
rewardToken: {
|
565
565
|
symbol: string;
|
566
|
-
id: string;
|
567
566
|
name: string | null;
|
567
|
+
id: string;
|
568
568
|
icon: string;
|
569
569
|
address: string;
|
570
570
|
chainId: number;
|
@@ -578,15 +578,15 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
578
578
|
price?: number | null | undefined;
|
579
579
|
};
|
580
580
|
distributionChain: {
|
581
|
-
id: number;
|
582
581
|
name: string;
|
582
|
+
id: number;
|
583
583
|
icon: string;
|
584
584
|
} | undefined;
|
585
585
|
campaignStatus: {
|
586
586
|
computedUntil: number;
|
587
587
|
processingStarted: number;
|
588
|
-
error: string;
|
589
588
|
status: import("@db/api").$Enums.RunStatus;
|
589
|
+
error: string;
|
590
590
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
591
591
|
campaignId: string;
|
592
592
|
} | undefined;
|
@@ -599,11 +599,11 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
599
599
|
createdAt: string;
|
600
600
|
description: string | undefined;
|
601
601
|
Opportunity: {
|
602
|
-
id: string;
|
603
|
-
name: string;
|
604
|
-
type: string;
|
605
602
|
status: import("@db/api").$Enums.Status;
|
603
|
+
type: string;
|
604
|
+
name: string;
|
606
605
|
description: string;
|
606
|
+
id: string;
|
607
607
|
tags: string[];
|
608
608
|
identifier: string;
|
609
609
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -618,8 +618,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
618
618
|
dailyRewards: number;
|
619
619
|
lastCampaignCreatedAt: Date;
|
620
620
|
};
|
621
|
-
id: string;
|
622
621
|
type: string;
|
622
|
+
id: string;
|
623
623
|
subType: number | null;
|
624
624
|
computeChainId: number;
|
625
625
|
distributionChainId: number;
|
@@ -640,8 +640,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
640
640
|
body: unknown;
|
641
641
|
params: {};
|
642
642
|
query: {
|
643
|
-
type?: string | undefined;
|
644
643
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
644
|
+
type?: string | undefined;
|
645
645
|
items?: number | undefined;
|
646
646
|
subType?: number | undefined;
|
647
647
|
page?: number | undefined;
|
@@ -677,8 +677,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
677
677
|
body: unknown;
|
678
678
|
params: {};
|
679
679
|
query: {
|
680
|
-
type?: string | undefined;
|
681
680
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
681
|
+
type?: string | undefined;
|
682
682
|
items?: number | undefined;
|
683
683
|
subType?: number | undefined;
|
684
684
|
page?: number | undefined;
|
@@ -719,8 +719,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
719
719
|
body: unknown;
|
720
720
|
params: {};
|
721
721
|
query: {
|
722
|
-
type?: string | undefined;
|
723
722
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
723
|
+
type?: string | undefined;
|
724
724
|
items?: number | undefined;
|
725
725
|
subType?: number | undefined;
|
726
726
|
page?: number | undefined;
|
@@ -762,8 +762,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
762
762
|
body: unknown;
|
763
763
|
params: {};
|
764
764
|
query: {
|
765
|
-
type?: string | undefined;
|
766
765
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
766
|
+
type?: string | undefined;
|
767
767
|
items?: number | undefined;
|
768
768
|
subType?: number | undefined;
|
769
769
|
page?: number | undefined;
|
@@ -810,8 +810,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
810
810
|
authorization: string;
|
811
811
|
};
|
812
812
|
query: {
|
813
|
-
type?: string | undefined;
|
814
813
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
814
|
+
type?: string | undefined;
|
815
815
|
items?: number | undefined;
|
816
816
|
subType?: number | undefined;
|
817
817
|
page?: number | undefined;
|
@@ -50,7 +50,6 @@ export const CampaignController = new Elysia({ prefix: "/campaigns", detail: { t
|
|
50
50
|
.put("/tvls/:opportunityId", async ({ params }) => {
|
51
51
|
const campaigns = (await CampaignService.findMany({
|
52
52
|
opportunityId: params.opportunityId,
|
53
|
-
status: "LIVE",
|
54
53
|
test: true,
|
55
54
|
withOpportunity: true,
|
56
55
|
items: 10_000,
|
@@ -303,11 +303,11 @@ export declare abstract class CampaignRepository {
|
|
303
303
|
type?: string;
|
304
304
|
}): Promise<({
|
305
305
|
Opportunity: {
|
306
|
-
id: string;
|
307
|
-
name: string;
|
308
|
-
type: string;
|
309
306
|
status: import("@db/api").$Enums.Status;
|
307
|
+
type: string;
|
308
|
+
name: string;
|
310
309
|
description: string;
|
310
|
+
id: string;
|
311
311
|
tags: string[];
|
312
312
|
identifier: string;
|
313
313
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -323,9 +323,9 @@ export declare abstract class CampaignRepository {
|
|
323
323
|
lastCampaignCreatedAt: Date;
|
324
324
|
};
|
325
325
|
} & {
|
326
|
-
id: string;
|
327
326
|
type: string;
|
328
327
|
description: string | null;
|
328
|
+
id: string;
|
329
329
|
params: Prisma.JsonValue;
|
330
330
|
subType: number | null;
|
331
331
|
computeChainId: number;
|
@@ -354,11 +354,11 @@ export declare abstract class CampaignRepository {
|
|
354
354
|
type?: string;
|
355
355
|
}): Promise<({
|
356
356
|
Opportunity: {
|
357
|
-
id: string;
|
358
|
-
name: string;
|
359
|
-
type: string;
|
360
357
|
status: import("@db/api").$Enums.Status;
|
358
|
+
type: string;
|
359
|
+
name: string;
|
361
360
|
description: string;
|
361
|
+
id: string;
|
362
362
|
tags: string[];
|
363
363
|
identifier: string;
|
364
364
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -374,9 +374,9 @@ export declare abstract class CampaignRepository {
|
|
374
374
|
lastCampaignCreatedAt: Date;
|
375
375
|
};
|
376
376
|
} & {
|
377
|
-
id: string;
|
378
377
|
type: string;
|
379
378
|
description: string | null;
|
379
|
+
id: string;
|
380
380
|
params: Prisma.JsonValue;
|
381
381
|
subType: number | null;
|
382
382
|
computeChainId: number;
|
@@ -407,8 +407,8 @@ export declare abstract class CampaignRepository {
|
|
407
407
|
}): Promise<({
|
408
408
|
RewardToken: {
|
409
409
|
symbol: string;
|
410
|
-
id: string;
|
411
410
|
name: string | null;
|
411
|
+
id: string;
|
412
412
|
icon: string;
|
413
413
|
address: string;
|
414
414
|
chainId: number;
|
@@ -422,11 +422,11 @@ export declare abstract class CampaignRepository {
|
|
422
422
|
price: number | null;
|
423
423
|
};
|
424
424
|
Opportunity: {
|
425
|
-
id: string;
|
426
|
-
name: string;
|
427
|
-
type: string;
|
428
425
|
status: import("@db/api").$Enums.Status;
|
426
|
+
type: string;
|
427
|
+
name: string;
|
429
428
|
description: string;
|
429
|
+
id: string;
|
430
430
|
tags: string[];
|
431
431
|
identifier: string;
|
432
432
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -442,9 +442,9 @@ export declare abstract class CampaignRepository {
|
|
442
442
|
lastCampaignCreatedAt: Date;
|
443
443
|
};
|
444
444
|
} & {
|
445
|
-
id: string;
|
446
445
|
type: string;
|
447
446
|
description: string | null;
|
447
|
+
id: string;
|
448
448
|
params: Prisma.JsonValue;
|
449
449
|
subType: number | null;
|
450
450
|
computeChainId: number;
|
@@ -485,9 +485,9 @@ export declare abstract class CampaignRepository {
|
|
485
485
|
* 5. Logs an error if the upsert operation fails.
|
486
486
|
*/
|
487
487
|
static upsert(campaign: Omit<CampaignWithParams, "manualOverrides">, opportunityIdentifier: string): Promise<{
|
488
|
-
id: string;
|
489
488
|
type: string;
|
490
489
|
description: string | null;
|
490
|
+
id: string;
|
491
491
|
params: Prisma.JsonValue;
|
492
492
|
subType: number | null;
|
493
493
|
computeChainId: number;
|
@@ -526,19 +526,19 @@ export declare abstract class CampaignRepository {
|
|
526
526
|
}[]>;
|
527
527
|
static findUnique(id: string): Promise<({
|
528
528
|
ComputeChain: {
|
529
|
-
id: number;
|
530
529
|
name: string;
|
530
|
+
id: number;
|
531
531
|
icon: string;
|
532
532
|
};
|
533
533
|
DistributionChain: {
|
534
|
-
id: number;
|
535
534
|
name: string;
|
535
|
+
id: number;
|
536
536
|
icon: string;
|
537
537
|
};
|
538
538
|
RewardToken: {
|
539
539
|
symbol: string;
|
540
|
-
id: string;
|
541
540
|
name: string | null;
|
541
|
+
id: string;
|
542
542
|
icon: string;
|
543
543
|
address: string;
|
544
544
|
chainId: number;
|
@@ -557,17 +557,17 @@ export declare abstract class CampaignRepository {
|
|
557
557
|
creatorId: string | null;
|
558
558
|
};
|
559
559
|
CampaignStatus: {
|
560
|
-
error: string;
|
561
560
|
status: import("@db/api").$Enums.RunStatus;
|
561
|
+
error: string;
|
562
562
|
details: Prisma.JsonValue;
|
563
563
|
campaignId: string;
|
564
564
|
computedUntil: bigint;
|
565
565
|
processingStarted: bigint;
|
566
566
|
}[];
|
567
567
|
} & {
|
568
|
-
id: string;
|
569
568
|
type: string;
|
570
569
|
description: string | null;
|
570
|
+
id: string;
|
571
571
|
params: Prisma.JsonValue;
|
572
572
|
subType: number | null;
|
573
573
|
computeChainId: number;
|
@@ -585,19 +585,19 @@ export declare abstract class CampaignRepository {
|
|
585
585
|
}) | null>;
|
586
586
|
static findUniqueOrThrow(id: string, withOpportunity: boolean): Promise<{
|
587
587
|
ComputeChain: {
|
588
|
-
id: number;
|
589
588
|
name: string;
|
589
|
+
id: number;
|
590
590
|
icon: string;
|
591
591
|
};
|
592
592
|
DistributionChain: {
|
593
|
-
id: number;
|
594
593
|
name: string;
|
594
|
+
id: number;
|
595
595
|
icon: string;
|
596
596
|
};
|
597
597
|
RewardToken: {
|
598
598
|
symbol: string;
|
599
|
-
id: string;
|
600
599
|
name: string | null;
|
600
|
+
id: string;
|
601
601
|
icon: string;
|
602
602
|
address: string;
|
603
603
|
chainId: number;
|
@@ -611,11 +611,11 @@ export declare abstract class CampaignRepository {
|
|
611
611
|
price: number | null;
|
612
612
|
};
|
613
613
|
Opportunity: {
|
614
|
-
id: string;
|
615
|
-
name: string;
|
616
|
-
type: string;
|
617
614
|
status: import("@db/api").$Enums.Status;
|
615
|
+
type: string;
|
616
|
+
name: string;
|
618
617
|
description: string;
|
618
|
+
id: string;
|
619
619
|
tags: string[];
|
620
620
|
identifier: string;
|
621
621
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -636,17 +636,17 @@ export declare abstract class CampaignRepository {
|
|
636
636
|
creatorId: string | null;
|
637
637
|
};
|
638
638
|
CampaignStatus: {
|
639
|
-
error: string;
|
640
639
|
status: import("@db/api").$Enums.RunStatus;
|
640
|
+
error: string;
|
641
641
|
details: Prisma.JsonValue;
|
642
642
|
campaignId: string;
|
643
643
|
computedUntil: bigint;
|
644
644
|
processingStarted: bigint;
|
645
645
|
}[];
|
646
646
|
} & {
|
647
|
-
id: string;
|
648
647
|
type: string;
|
649
648
|
description: string | null;
|
649
|
+
id: string;
|
650
650
|
params: Prisma.JsonValue;
|
651
651
|
subType: number | null;
|
652
652
|
computeChainId: number;
|
@@ -673,19 +673,19 @@ export declare abstract class CampaignRepository {
|
|
673
673
|
}[]>;
|
674
674
|
static findMany(query: GetCampaignQueryModel): Promise<({
|
675
675
|
ComputeChain: {
|
676
|
-
id: number;
|
677
676
|
name: string;
|
677
|
+
id: number;
|
678
678
|
icon: string;
|
679
679
|
};
|
680
680
|
DistributionChain: {
|
681
|
-
id: number;
|
682
681
|
name: string;
|
682
|
+
id: number;
|
683
683
|
icon: string;
|
684
684
|
};
|
685
685
|
RewardToken: {
|
686
686
|
symbol: string;
|
687
|
-
id: string;
|
688
687
|
name: string | null;
|
688
|
+
id: string;
|
689
689
|
icon: string;
|
690
690
|
address: string;
|
691
691
|
chainId: number;
|
@@ -699,11 +699,11 @@ export declare abstract class CampaignRepository {
|
|
699
699
|
price: number | null;
|
700
700
|
};
|
701
701
|
Opportunity: {
|
702
|
-
id: string;
|
703
|
-
name: string;
|
704
|
-
type: string;
|
705
702
|
status: import("@db/api").$Enums.Status;
|
703
|
+
type: string;
|
704
|
+
name: string;
|
706
705
|
description: string;
|
706
|
+
id: string;
|
707
707
|
tags: string[];
|
708
708
|
identifier: string;
|
709
709
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -724,17 +724,17 @@ export declare abstract class CampaignRepository {
|
|
724
724
|
creatorId: string | null;
|
725
725
|
};
|
726
726
|
CampaignStatus: {
|
727
|
-
error: string;
|
728
727
|
status: import("@db/api").$Enums.RunStatus;
|
728
|
+
error: string;
|
729
729
|
details: Prisma.JsonValue;
|
730
730
|
campaignId: string;
|
731
731
|
computedUntil: bigint;
|
732
732
|
processingStarted: bigint;
|
733
733
|
}[];
|
734
734
|
} & {
|
735
|
-
id: string;
|
736
735
|
type: string;
|
737
736
|
description: string | null;
|
737
|
+
id: string;
|
738
738
|
params: Prisma.JsonValue;
|
739
739
|
subType: number | null;
|
740
740
|
computeChainId: number;
|
@@ -757,9 +757,9 @@ export declare abstract class CampaignRepository {
|
|
757
757
|
static updateOpportunity(id: string, opportunityId: string): Promise<void>;
|
758
758
|
static updateCreator(id: string, creatorAddress: string): Promise<void>;
|
759
759
|
static updateParams(id: string, params: string): Promise<{
|
760
|
-
id: string;
|
761
760
|
type: string;
|
762
761
|
description: string | null;
|
762
|
+
id: string;
|
763
763
|
params: Prisma.JsonValue;
|
764
764
|
subType: number | null;
|
765
765
|
computeChainId: number;
|