@merkl/api 0.10.86 → 0.10.88
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/database/api/.generated/index.d.ts +28 -100
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +2 -3
- package/dist/src/eden/index.d.ts +48 -18
- package/dist/src/index.d.ts +16 -6
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/getBlacklistedSupply.d.ts +1 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +16 -5
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -3
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +0 -4
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +0 -4
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +0 -2
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -1
- package/dist/src/modules/v4/reward/reward.controller.d.ts +0 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +0 -3
- package/dist/src/modules/v4/reward/reward.service.d.ts +0 -3
- package/dist/src/modules/v4/router.d.ts +16 -6
- package/dist/src/modules/v4/status/status.controller.d.ts +2 -2
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +16 -6
- package/dist/src/routes/v3/blacklist.d.ts +16 -6
- package/dist/src/routes/v3/campaigns.d.ts +16 -6
- package/dist/src/routes/v3/campaignsInfo.d.ts +16 -6
- package/dist/src/routes/v3/multiChainPositions.d.ts +16 -6
- package/dist/src/routes/v3/opportunity.d.ts +16 -6
- package/dist/src/routes/v3/positions.d.ts +16 -6
- package/dist/src/routes/v3/rewards.d.ts +16 -6
- package/dist/src/routes/v3/updates.d.ts +16 -6
- package/dist/src/routes/v3/userRewards.d.ts +16 -6
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -310,10 +310,10 @@ declare const eden: {
|
|
310
310
|
campaigns: {
|
311
311
|
index: {
|
312
312
|
post: (body: {
|
313
|
+
identifier?: string | undefined;
|
313
314
|
subType?: number | undefined;
|
314
315
|
type: number;
|
315
316
|
params: string;
|
316
|
-
identifier: string;
|
317
317
|
chainId: number;
|
318
318
|
startTimestamp: string;
|
319
319
|
endTimestamp: string;
|
@@ -330,14 +330,27 @@ declare const eden: {
|
|
330
330
|
query?: Record<string, unknown> | undefined;
|
331
331
|
fetch?: RequestInit | undefined;
|
332
332
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
333
|
-
200:
|
333
|
+
200: {
|
334
|
+
id: string;
|
335
|
+
computeChainId: number;
|
336
|
+
distributionChainId: number;
|
337
|
+
campaignId: string;
|
338
|
+
type: import("../../database/api/.generated").$Enums.CampaignType;
|
339
|
+
subType: number | null;
|
340
|
+
rewardTokenId: string;
|
341
|
+
amount: string;
|
342
|
+
opportunityId: string;
|
343
|
+
startTimestamp: bigint;
|
344
|
+
endTimestamp: bigint;
|
345
|
+
params: import("../../database/api/.generated").Prisma.JsonValue;
|
346
|
+
creatorAddress: string;
|
347
|
+
} | undefined;
|
334
348
|
}>>;
|
335
349
|
get: (options: {
|
336
350
|
headers?: Record<string, unknown> | undefined;
|
337
351
|
query: {
|
338
352
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
339
353
|
items?: number | undefined;
|
340
|
-
identifier?: string | undefined;
|
341
354
|
subType?: number | undefined;
|
342
355
|
chainId?: number | undefined;
|
343
356
|
startTimestamp?: string | undefined;
|
@@ -375,7 +388,6 @@ declare const eden: {
|
|
375
388
|
id: string;
|
376
389
|
computeChainId: number;
|
377
390
|
distributionChainId: number;
|
378
|
-
identifier: string;
|
379
391
|
campaignId: string;
|
380
392
|
type: import("../../database/api/.generated").$Enums.CampaignType;
|
381
393
|
subType: number | null;
|
@@ -394,7 +406,6 @@ declare const eden: {
|
|
394
406
|
query: {
|
395
407
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
396
408
|
items?: number | undefined;
|
397
|
-
identifier?: string | undefined;
|
398
409
|
subType?: number | undefined;
|
399
410
|
chainId?: number | undefined;
|
400
411
|
startTimestamp?: string | undefined;
|
@@ -656,7 +667,6 @@ declare const eden: {
|
|
656
667
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
657
668
|
200: {
|
658
669
|
Campaign: {
|
659
|
-
identifier: string;
|
660
670
|
campaignId: string;
|
661
671
|
};
|
662
672
|
amount: string;
|
@@ -1791,10 +1801,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
1791
1801
|
index: {
|
1792
1802
|
post: {
|
1793
1803
|
body: {
|
1804
|
+
identifier?: string | undefined;
|
1794
1805
|
subType?: number | undefined;
|
1795
1806
|
type: number;
|
1796
1807
|
params: string;
|
1797
|
-
identifier: string;
|
1798
1808
|
chainId: number;
|
1799
1809
|
startTimestamp: string;
|
1800
1810
|
endTimestamp: string;
|
@@ -1811,7 +1821,21 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
1811
1821
|
authorization: string;
|
1812
1822
|
};
|
1813
1823
|
response: {
|
1814
|
-
200:
|
1824
|
+
200: {
|
1825
|
+
id: string;
|
1826
|
+
computeChainId: number;
|
1827
|
+
distributionChainId: number;
|
1828
|
+
campaignId: string;
|
1829
|
+
type: import("../../database/api/.generated").$Enums.CampaignType;
|
1830
|
+
subType: number | null;
|
1831
|
+
rewardTokenId: string;
|
1832
|
+
amount: string;
|
1833
|
+
opportunityId: string;
|
1834
|
+
startTimestamp: bigint;
|
1835
|
+
endTimestamp: bigint;
|
1836
|
+
params: import("../../database/api/.generated").Prisma.JsonValue;
|
1837
|
+
creatorAddress: string;
|
1838
|
+
} | undefined;
|
1815
1839
|
};
|
1816
1840
|
};
|
1817
1841
|
};
|
@@ -1825,7 +1849,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
1825
1849
|
query: {
|
1826
1850
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
1827
1851
|
items?: number | undefined;
|
1828
|
-
identifier?: string | undefined;
|
1829
1852
|
subType?: number | undefined;
|
1830
1853
|
chainId?: number | undefined;
|
1831
1854
|
startTimestamp?: string | undefined;
|
@@ -1863,7 +1886,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
1863
1886
|
id: string;
|
1864
1887
|
computeChainId: number;
|
1865
1888
|
distributionChainId: number;
|
1866
|
-
identifier: string;
|
1867
1889
|
campaignId: string;
|
1868
1890
|
type: import("../../database/api/.generated").$Enums.CampaignType;
|
1869
1891
|
subType: number | null;
|
@@ -1887,7 +1909,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
1887
1909
|
query: {
|
1888
1910
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
1889
1911
|
items?: number | undefined;
|
1890
|
-
identifier?: string | undefined;
|
1891
1912
|
subType?: number | undefined;
|
1892
1913
|
chainId?: number | undefined;
|
1893
1914
|
startTimestamp?: string | undefined;
|
@@ -2211,7 +2232,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
2211
2232
|
response: {
|
2212
2233
|
200: {
|
2213
2234
|
Campaign: {
|
2214
|
-
identifier: string;
|
2215
2235
|
campaignId: string;
|
2216
2236
|
};
|
2217
2237
|
amount: string;
|
@@ -3520,10 +3540,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3520
3540
|
campaigns: {
|
3521
3541
|
index: {
|
3522
3542
|
post: (body: {
|
3543
|
+
identifier?: string | undefined;
|
3523
3544
|
subType?: number | undefined;
|
3524
3545
|
type: number;
|
3525
3546
|
params: string;
|
3526
|
-
identifier: string;
|
3527
3547
|
chainId: number;
|
3528
3548
|
startTimestamp: string;
|
3529
3549
|
endTimestamp: string;
|
@@ -3540,14 +3560,27 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3540
3560
|
query?: Record<string, unknown> | undefined;
|
3541
3561
|
fetch?: RequestInit | undefined;
|
3542
3562
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3543
|
-
200:
|
3563
|
+
200: {
|
3564
|
+
id: string;
|
3565
|
+
computeChainId: number;
|
3566
|
+
distributionChainId: number;
|
3567
|
+
campaignId: string;
|
3568
|
+
type: import("../../database/api/.generated").$Enums.CampaignType;
|
3569
|
+
subType: number | null;
|
3570
|
+
rewardTokenId: string;
|
3571
|
+
amount: string;
|
3572
|
+
opportunityId: string;
|
3573
|
+
startTimestamp: bigint;
|
3574
|
+
endTimestamp: bigint;
|
3575
|
+
params: import("../../database/api/.generated").Prisma.JsonValue;
|
3576
|
+
creatorAddress: string;
|
3577
|
+
} | undefined;
|
3544
3578
|
}>>;
|
3545
3579
|
get: (options: {
|
3546
3580
|
headers?: Record<string, unknown> | undefined;
|
3547
3581
|
query: {
|
3548
3582
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
3549
3583
|
items?: number | undefined;
|
3550
|
-
identifier?: string | undefined;
|
3551
3584
|
subType?: number | undefined;
|
3552
3585
|
chainId?: number | undefined;
|
3553
3586
|
startTimestamp?: string | undefined;
|
@@ -3585,7 +3618,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3585
3618
|
id: string;
|
3586
3619
|
computeChainId: number;
|
3587
3620
|
distributionChainId: number;
|
3588
|
-
identifier: string;
|
3589
3621
|
campaignId: string;
|
3590
3622
|
type: import("../../database/api/.generated").$Enums.CampaignType;
|
3591
3623
|
subType: number | null;
|
@@ -3604,7 +3636,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3604
3636
|
query: {
|
3605
3637
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
3606
3638
|
items?: number | undefined;
|
3607
|
-
identifier?: string | undefined;
|
3608
3639
|
subType?: number | undefined;
|
3609
3640
|
chainId?: number | undefined;
|
3610
3641
|
startTimestamp?: string | undefined;
|
@@ -3866,7 +3897,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3866
3897
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3867
3898
|
200: {
|
3868
3899
|
Campaign: {
|
3869
|
-
identifier: string;
|
3870
3900
|
campaignId: string;
|
3871
3901
|
};
|
3872
3902
|
amount: string;
|
package/dist/src/index.d.ts
CHANGED
@@ -369,10 +369,10 @@ declare const app: Elysia<"", false, {
|
|
369
369
|
index: {
|
370
370
|
post: {
|
371
371
|
body: {
|
372
|
+
identifier?: string | undefined;
|
372
373
|
subType?: number | undefined;
|
373
374
|
type: number;
|
374
375
|
params: string;
|
375
|
-
identifier: string;
|
376
376
|
chainId: number;
|
377
377
|
startTimestamp: string;
|
378
378
|
endTimestamp: string;
|
@@ -389,7 +389,21 @@ declare const app: Elysia<"", false, {
|
|
389
389
|
authorization: string;
|
390
390
|
};
|
391
391
|
response: {
|
392
|
-
200:
|
392
|
+
200: {
|
393
|
+
id: string;
|
394
|
+
computeChainId: number;
|
395
|
+
distributionChainId: number;
|
396
|
+
campaignId: string;
|
397
|
+
type: import("../database/api/.generated").$Enums.CampaignType;
|
398
|
+
subType: number | null;
|
399
|
+
rewardTokenId: string;
|
400
|
+
amount: string;
|
401
|
+
opportunityId: string;
|
402
|
+
startTimestamp: bigint;
|
403
|
+
endTimestamp: bigint;
|
404
|
+
params: import("../database/api/.generated").Prisma.JsonValue;
|
405
|
+
creatorAddress: string;
|
406
|
+
} | undefined;
|
393
407
|
};
|
394
408
|
};
|
395
409
|
};
|
@@ -403,7 +417,6 @@ declare const app: Elysia<"", false, {
|
|
403
417
|
query: {
|
404
418
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
405
419
|
items?: number | undefined;
|
406
|
-
identifier?: string | undefined;
|
407
420
|
subType?: number | undefined;
|
408
421
|
chainId?: number | undefined;
|
409
422
|
startTimestamp?: string | undefined;
|
@@ -441,7 +454,6 @@ declare const app: Elysia<"", false, {
|
|
441
454
|
id: string;
|
442
455
|
computeChainId: number;
|
443
456
|
distributionChainId: number;
|
444
|
-
identifier: string;
|
445
457
|
campaignId: string;
|
446
458
|
type: import("../database/api/.generated").$Enums.CampaignType;
|
447
459
|
subType: number | null;
|
@@ -465,7 +477,6 @@ declare const app: Elysia<"", false, {
|
|
465
477
|
query: {
|
466
478
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
467
479
|
items?: number | undefined;
|
468
|
-
identifier?: string | undefined;
|
469
480
|
subType?: number | undefined;
|
470
481
|
chainId?: number | undefined;
|
471
482
|
startTimestamp?: string | undefined;
|
@@ -789,7 +800,6 @@ declare const app: Elysia<"", false, {
|
|
789
800
|
response: {
|
790
801
|
200: {
|
791
802
|
Campaign: {
|
792
|
-
identifier: string;
|
793
803
|
campaignId: string;
|
794
804
|
};
|
795
805
|
amount: string;
|
@@ -15,10 +15,10 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
15
15
|
index: {
|
16
16
|
post: {
|
17
17
|
body: {
|
18
|
+
identifier?: string | undefined;
|
18
19
|
subType?: number | undefined;
|
19
20
|
type: number;
|
20
21
|
params: string;
|
21
|
-
identifier: string;
|
22
22
|
chainId: number;
|
23
23
|
startTimestamp: string;
|
24
24
|
endTimestamp: string;
|
@@ -35,7 +35,21 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
35
35
|
authorization: string;
|
36
36
|
};
|
37
37
|
response: {
|
38
|
-
200:
|
38
|
+
200: {
|
39
|
+
id: string;
|
40
|
+
computeChainId: number;
|
41
|
+
distributionChainId: number;
|
42
|
+
campaignId: string;
|
43
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
44
|
+
subType: number | null;
|
45
|
+
rewardTokenId: string;
|
46
|
+
amount: string;
|
47
|
+
opportunityId: string;
|
48
|
+
startTimestamp: bigint;
|
49
|
+
endTimestamp: bigint;
|
50
|
+
params: import("../../../../database/api/.generated").Prisma.JsonValue;
|
51
|
+
creatorAddress: string;
|
52
|
+
} | undefined;
|
39
53
|
};
|
40
54
|
};
|
41
55
|
};
|
@@ -49,7 +63,6 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
49
63
|
query: {
|
50
64
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
51
65
|
items?: number | undefined;
|
52
|
-
identifier?: string | undefined;
|
53
66
|
subType?: number | undefined;
|
54
67
|
chainId?: number | undefined;
|
55
68
|
startTimestamp?: string | undefined;
|
@@ -87,7 +100,6 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
87
100
|
id: string;
|
88
101
|
computeChainId: number;
|
89
102
|
distributionChainId: number;
|
90
|
-
identifier: string;
|
91
103
|
campaignId: string;
|
92
104
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
93
105
|
subType: number | null;
|
@@ -111,7 +123,6 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
111
123
|
query: {
|
112
124
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
113
125
|
items?: number | undefined;
|
114
|
-
identifier?: string | undefined;
|
115
126
|
subType?: number | undefined;
|
116
127
|
chainId?: number | undefined;
|
117
128
|
startTimestamp?: string | undefined;
|
@@ -33,13 +33,13 @@ export declare const campaignTypeToEnumMap: {
|
|
33
33
|
export type ConvertedCampaignType<C extends CampaignType> = (typeof campaignTypeToEnumMap)[C];
|
34
34
|
export declare const CampaignUniqueDto: import("@sinclair/typebox").TObject<{
|
35
35
|
distributionChain: import("@sinclair/typebox").TNumber;
|
36
|
-
|
36
|
+
campaignId: import("@sinclair/typebox").TString;
|
37
37
|
}>;
|
38
38
|
export declare const CreateCampaignDto: import("@sinclair/typebox").TObject<{
|
39
39
|
computeChainId: import("@sinclair/typebox").TNumber;
|
40
40
|
chainId: import("@sinclair/typebox").TNumber;
|
41
41
|
campaignId: import("@sinclair/typebox").TString;
|
42
|
-
identifier: import("@sinclair/typebox").TString
|
42
|
+
identifier: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
43
43
|
creator: import("@sinclair/typebox").TString;
|
44
44
|
type: import("@sinclair/typebox").TNumber;
|
45
45
|
subType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
@@ -71,7 +71,6 @@ export declare const GetCampaignQueryDto: import("@sinclair/typebox").TObject<{
|
|
71
71
|
UNISWAP_V4: "UNISWAP_V4";
|
72
72
|
}>>;
|
73
73
|
subType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
74
|
-
identifier: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
75
74
|
campaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
76
75
|
mainParameter: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
77
76
|
opportunityId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
@@ -8,7 +8,6 @@ export declare abstract class CampaignRepository {
|
|
8
8
|
id: string;
|
9
9
|
computeChainId: number;
|
10
10
|
distributionChainId: number;
|
11
|
-
identifier: string;
|
12
11
|
campaignId: string;
|
13
12
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
14
13
|
subType: number | null;
|
@@ -51,7 +50,6 @@ export declare abstract class CampaignRepository {
|
|
51
50
|
id: string;
|
52
51
|
computeChainId: number;
|
53
52
|
distributionChainId: number;
|
54
|
-
identifier: string;
|
55
53
|
campaignId: string;
|
56
54
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
57
55
|
subType: number | null;
|
@@ -89,7 +87,6 @@ export declare abstract class CampaignRepository {
|
|
89
87
|
id: string;
|
90
88
|
computeChainId: number;
|
91
89
|
distributionChainId: number;
|
92
|
-
identifier: string;
|
93
90
|
campaignId: string;
|
94
91
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
95
92
|
subType: number | null;
|
@@ -103,7 +100,6 @@ export declare abstract class CampaignRepository {
|
|
103
100
|
})[]>;
|
104
101
|
static countMany(query: GetCampaignQueryModel): Promise<number>;
|
105
102
|
static findManyCampaignId(chainId: ChainId): Promise<{
|
106
|
-
identifier: string;
|
107
103
|
campaignId: string;
|
108
104
|
}[]>;
|
109
105
|
static findChains(): Promise<Record<string, ChainId>>;
|
@@ -8,7 +8,6 @@ export declare abstract class CampaignService {
|
|
8
8
|
id: string;
|
9
9
|
computeChainId: number;
|
10
10
|
distributionChainId: number;
|
11
|
-
identifier: string;
|
12
11
|
campaignId: string;
|
13
12
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
14
13
|
subType: number | null;
|
@@ -55,7 +54,6 @@ export declare abstract class CampaignService {
|
|
55
54
|
id: string;
|
56
55
|
computeChainId: number;
|
57
56
|
distributionChainId: number;
|
58
|
-
identifier: string;
|
59
57
|
campaignId: string;
|
60
58
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
61
59
|
subType: number | null;
|
@@ -78,7 +76,6 @@ export declare abstract class CampaignService {
|
|
78
76
|
id: string;
|
79
77
|
computeChainId: number;
|
80
78
|
distributionChainId: number;
|
81
|
-
identifier: string;
|
82
79
|
campaignId: string;
|
83
80
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
84
81
|
subType: number | null;
|
@@ -158,7 +155,6 @@ export declare abstract class CampaignService {
|
|
158
155
|
id: string;
|
159
156
|
computeChainId: number;
|
160
157
|
distributionChainId: number;
|
161
|
-
identifier: string;
|
162
158
|
campaignId: string;
|
163
159
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
164
160
|
subType: number | null;
|
@@ -126,7 +126,6 @@ export declare abstract class OpportunityRepository {
|
|
126
126
|
id: string;
|
127
127
|
computeChainId: number;
|
128
128
|
distributionChainId: number;
|
129
|
-
identifier: string;
|
130
129
|
campaignId: string;
|
131
130
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
132
131
|
subType: number | null;
|
@@ -225,7 +224,6 @@ export declare abstract class OpportunityRepository {
|
|
225
224
|
id: string;
|
226
225
|
computeChainId: number;
|
227
226
|
distributionChainId: number;
|
228
|
-
identifier: string;
|
229
227
|
campaignId: string;
|
230
228
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
231
229
|
subType: number | null;
|
@@ -129,7 +129,6 @@ export declare abstract class OpportunityService {
|
|
129
129
|
id: string;
|
130
130
|
computeChainId: number;
|
131
131
|
distributionChainId: number;
|
132
|
-
identifier: string;
|
133
132
|
campaignId: string;
|
134
133
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
135
134
|
subType: number | null;
|
@@ -17,7 +17,6 @@ export declare abstract class RewardRepository {
|
|
17
17
|
};
|
18
18
|
Breakdown: ({
|
19
19
|
Campaign: {
|
20
|
-
identifier: string;
|
21
20
|
campaignId: string;
|
22
21
|
Opportunity: {
|
23
22
|
Chain: {
|
@@ -89,7 +88,6 @@ export declare abstract class RewardRepository {
|
|
89
88
|
static getByChainRecipientToken(recipient: string, root: string, tokenId: string): Promise<({
|
90
89
|
Breakdown: ({
|
91
90
|
Campaign: {
|
92
|
-
identifier: string;
|
93
91
|
campaignId: string;
|
94
92
|
};
|
95
93
|
} & {
|
@@ -148,7 +146,6 @@ export declare abstract class RewardRepository {
|
|
148
146
|
static findManyRootsWithRewardOnChain(chainId: number): Promise<string[]>;
|
149
147
|
static breakdownForCampaigns(root: string, campaignIds: string[], query: CampaignIdListModel): Promise<{
|
150
148
|
Campaign: {
|
151
|
-
identifier: string;
|
152
149
|
campaignId: string;
|
153
150
|
};
|
154
151
|
amount: string;
|
@@ -164,7 +164,6 @@ export declare abstract class RewardService {
|
|
164
164
|
};
|
165
165
|
Breakdown: ({
|
166
166
|
Campaign: {
|
167
|
-
identifier: string;
|
168
167
|
campaignId: string;
|
169
168
|
Opportunity: {
|
170
169
|
Chain: {
|
@@ -448,7 +447,6 @@ export declare abstract class RewardService {
|
|
448
447
|
};
|
449
448
|
Breakdown: ({
|
450
449
|
Campaign: {
|
451
|
-
identifier: string;
|
452
450
|
campaignId: string;
|
453
451
|
Opportunity: {
|
454
452
|
Chain: {
|
@@ -528,7 +526,6 @@ export declare abstract class RewardService {
|
|
528
526
|
}>>;
|
529
527
|
static breakdownForCampaigns(query: CampaignIdListModel): Promise<{
|
530
528
|
Campaign: {
|
531
|
-
identifier: string;
|
532
529
|
campaignId: string;
|
533
530
|
};
|
534
531
|
amount: string;
|
@@ -351,10 +351,10 @@ export declare const v4: Elysia<"/v4", false, {
|
|
351
351
|
index: {
|
352
352
|
post: {
|
353
353
|
body: {
|
354
|
+
identifier?: string | undefined;
|
354
355
|
subType?: number | undefined;
|
355
356
|
type: number;
|
356
357
|
params: string;
|
357
|
-
identifier: string;
|
358
358
|
chainId: number;
|
359
359
|
startTimestamp: string;
|
360
360
|
endTimestamp: string;
|
@@ -371,7 +371,21 @@ export declare const v4: Elysia<"/v4", false, {
|
|
371
371
|
authorization: string;
|
372
372
|
};
|
373
373
|
response: {
|
374
|
-
200:
|
374
|
+
200: {
|
375
|
+
id: string;
|
376
|
+
computeChainId: number;
|
377
|
+
distributionChainId: number;
|
378
|
+
campaignId: string;
|
379
|
+
type: import("../../../database/api/.generated").$Enums.CampaignType;
|
380
|
+
subType: number | null;
|
381
|
+
rewardTokenId: string;
|
382
|
+
amount: string;
|
383
|
+
opportunityId: string;
|
384
|
+
startTimestamp: bigint;
|
385
|
+
endTimestamp: bigint;
|
386
|
+
params: import("../../../database/api/.generated").Prisma.JsonValue;
|
387
|
+
creatorAddress: string;
|
388
|
+
} | undefined;
|
375
389
|
};
|
376
390
|
};
|
377
391
|
};
|
@@ -385,7 +399,6 @@ export declare const v4: Elysia<"/v4", false, {
|
|
385
399
|
query: {
|
386
400
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
387
401
|
items?: number | undefined;
|
388
|
-
identifier?: string | undefined;
|
389
402
|
subType?: number | undefined;
|
390
403
|
chainId?: number | undefined;
|
391
404
|
startTimestamp?: string | undefined;
|
@@ -423,7 +436,6 @@ export declare const v4: Elysia<"/v4", false, {
|
|
423
436
|
id: string;
|
424
437
|
computeChainId: number;
|
425
438
|
distributionChainId: number;
|
426
|
-
identifier: string;
|
427
439
|
campaignId: string;
|
428
440
|
type: import("../../../database/api/.generated").$Enums.CampaignType;
|
429
441
|
subType: number | null;
|
@@ -447,7 +459,6 @@ export declare const v4: Elysia<"/v4", false, {
|
|
447
459
|
query: {
|
448
460
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
449
461
|
items?: number | undefined;
|
450
|
-
identifier?: string | undefined;
|
451
462
|
subType?: number | undefined;
|
452
463
|
chainId?: number | undefined;
|
453
464
|
startTimestamp?: string | undefined;
|
@@ -771,7 +782,6 @@ export declare const v4: Elysia<"/v4", false, {
|
|
771
782
|
response: {
|
772
783
|
200: {
|
773
784
|
Campaign: {
|
774
|
-
identifier: string;
|
775
785
|
campaignId: string;
|
776
786
|
};
|
777
787
|
amount: string;
|
@@ -71,7 +71,7 @@ export declare const StatusController: Elysia<"/campaignStatus", false, {
|
|
71
71
|
body: unknown;
|
72
72
|
params: Record<never, string>;
|
73
73
|
query: {
|
74
|
-
|
74
|
+
campaignId: string;
|
75
75
|
distributionChain: number;
|
76
76
|
};
|
77
77
|
headers: unknown;
|
@@ -120,7 +120,7 @@ export declare const StatusController: Elysia<"/campaignStatus", false, {
|
|
120
120
|
body: unknown;
|
121
121
|
params: Record<never, string>;
|
122
122
|
query: {
|
123
|
-
|
123
|
+
campaignId: string;
|
124
124
|
distributionChain: number;
|
125
125
|
};
|
126
126
|
headers: {
|
@@ -377,10 +377,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
377
377
|
index: {
|
378
378
|
post: {
|
379
379
|
body: {
|
380
|
+
identifier?: string | undefined;
|
380
381
|
subType?: number | undefined;
|
381
382
|
type: number;
|
382
383
|
params: string;
|
383
|
-
identifier: string;
|
384
384
|
chainId: number;
|
385
385
|
startTimestamp: string;
|
386
386
|
endTimestamp: string;
|
@@ -397,7 +397,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
397
397
|
authorization: string;
|
398
398
|
};
|
399
399
|
response: {
|
400
|
-
200:
|
400
|
+
200: {
|
401
|
+
id: string;
|
402
|
+
computeChainId: number;
|
403
|
+
distributionChainId: number;
|
404
|
+
campaignId: string;
|
405
|
+
type: import("../../../database/api/.generated").$Enums.CampaignType;
|
406
|
+
subType: number | null;
|
407
|
+
rewardTokenId: string;
|
408
|
+
amount: string;
|
409
|
+
opportunityId: string;
|
410
|
+
startTimestamp: bigint;
|
411
|
+
endTimestamp: bigint;
|
412
|
+
params: import("../../../database/api/.generated").Prisma.JsonValue;
|
413
|
+
creatorAddress: string;
|
414
|
+
} | undefined;
|
401
415
|
};
|
402
416
|
};
|
403
417
|
};
|
@@ -411,7 +425,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
411
425
|
query: {
|
412
426
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
413
427
|
items?: number | undefined;
|
414
|
-
identifier?: string | undefined;
|
415
428
|
subType?: number | undefined;
|
416
429
|
chainId?: number | undefined;
|
417
430
|
startTimestamp?: string | undefined;
|
@@ -449,7 +462,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
449
462
|
id: string;
|
450
463
|
computeChainId: number;
|
451
464
|
distributionChainId: number;
|
452
|
-
identifier: string;
|
453
465
|
campaignId: string;
|
454
466
|
type: import("../../../database/api/.generated").$Enums.CampaignType;
|
455
467
|
subType: number | null;
|
@@ -473,7 +485,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
473
485
|
query: {
|
474
486
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
475
487
|
items?: number | undefined;
|
476
|
-
identifier?: string | undefined;
|
477
488
|
subType?: number | undefined;
|
478
489
|
chainId?: number | undefined;
|
479
490
|
startTimestamp?: string | undefined;
|
@@ -797,7 +808,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
797
808
|
response: {
|
798
809
|
200: {
|
799
810
|
Campaign: {
|
800
|
-
identifier: string;
|
801
811
|
campaignId: string;
|
802
812
|
};
|
803
813
|
amount: string;
|