@merkl/api 0.20.172 → 0.20.173
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/src/eden/index.d.ts +373 -323
- package/dist/src/index.d.ts +125 -107
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +125 -107
- package/dist/src/modules/v4/campaign/campaign.controller.js +7 -3
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +4 -0
- package/dist/src/modules/v4/campaign/campaign.model.js +8 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +32 -0
- package/dist/src/modules/v4/campaign/campaign.repository.js +3 -1
- package/dist/src/modules/v4/campaign/campaign.service.js +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.controller.js +5 -9
- package/dist/src/modules/v4/router.d.ts +125 -107
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
@@ -936,6 +936,8 @@ declare const app: Elysia<"", false, {
|
|
936
936
|
startTimestamp?: string | undefined;
|
937
937
|
endTimestamp?: string | undefined;
|
938
938
|
creatorAddress?: string | undefined;
|
939
|
+
rootCampaignId?: string | undefined;
|
940
|
+
parentCampaignId?: string | undefined;
|
939
941
|
chainId?: number | undefined;
|
940
942
|
creatorId?: string | undefined;
|
941
943
|
mainParameter?: string | undefined;
|
@@ -1419,123 +1421,127 @@ declare const app: Elysia<"", false, {
|
|
1419
1421
|
v4: {
|
1420
1422
|
campaigns: {
|
1421
1423
|
engine: {
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
startTimestamp: string;
|
1434
|
-
endTimestamp: string;
|
1435
|
-
chainId: number;
|
1436
|
-
rewardTokenAddress: string;
|
1437
|
-
opportunityIdentifier: string;
|
1438
|
-
};
|
1439
|
-
params: {};
|
1440
|
-
query: unknown;
|
1441
|
-
headers: {
|
1442
|
-
authorization: string;
|
1443
|
-
};
|
1444
|
-
response: {
|
1445
|
-
200: {
|
1446
|
-
type: string;
|
1447
|
-
description: string | null;
|
1448
|
-
id: string;
|
1449
|
-
params: import("database/api/.generated/runtime/library").JsonValue;
|
1450
|
-
subType: number | null;
|
1424
|
+
index: {
|
1425
|
+
post: {
|
1426
|
+
body: {
|
1427
|
+
tags?: string[] | undefined;
|
1428
|
+
identifier?: string | undefined;
|
1429
|
+
subType?: number | undefined;
|
1430
|
+
rootCampaignId?: string | undefined;
|
1431
|
+
parentCampaignId?: string | undefined;
|
1432
|
+
type: number;
|
1433
|
+
params: string;
|
1434
|
+
creator: string;
|
1451
1435
|
computeChainId: number;
|
1452
|
-
distributionChainId: number;
|
1453
1436
|
campaignId: string;
|
1454
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
1455
|
-
rewardTokenId: string;
|
1456
1437
|
amount: string;
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1438
|
+
startTimestamp: string;
|
1439
|
+
endTimestamp: string;
|
1440
|
+
chainId: number;
|
1441
|
+
rewardTokenAddress: string;
|
1442
|
+
opportunityIdentifier: string;
|
1443
|
+
};
|
1444
|
+
params: {};
|
1445
|
+
query: unknown;
|
1446
|
+
headers: {
|
1447
|
+
authorization: string;
|
1448
|
+
};
|
1449
|
+
response: {
|
1450
|
+
200: {
|
1451
|
+
type: string;
|
1452
|
+
description: string | null;
|
1469
1453
|
id: string;
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1454
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
1455
|
+
subType: number | null;
|
1456
|
+
computeChainId: number;
|
1457
|
+
distributionChainId: number;
|
1458
|
+
campaignId: string;
|
1459
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
1460
|
+
rewardTokenId: string;
|
1461
|
+
amount: string;
|
1462
|
+
opportunityId: string;
|
1463
|
+
startTimestamp: bigint;
|
1464
|
+
endTimestamp: bigint;
|
1465
|
+
creatorAddress: string;
|
1466
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
1467
|
+
createdAt: Date;
|
1468
|
+
rootCampaignId: string | null;
|
1469
|
+
parentCampaignId: string | null;
|
1470
|
+
} | {
|
1471
|
+
Tokens: {
|
1472
|
+
symbol: string;
|
1473
|
+
name: string | null;
|
1474
|
+
id: string;
|
1475
|
+
icon: string;
|
1476
|
+
address: string;
|
1477
|
+
chainId: number;
|
1478
|
+
decimals: number;
|
1479
|
+
displaySymbol: string;
|
1480
|
+
verified: boolean;
|
1481
|
+
isTest: boolean;
|
1482
|
+
isPoint: boolean;
|
1483
|
+
isPreTGE: boolean;
|
1484
|
+
isNative: boolean;
|
1485
|
+
price: number | null;
|
1486
|
+
}[];
|
1487
|
+
Protocols: {
|
1488
|
+
url: string;
|
1489
|
+
name: string;
|
1490
|
+
description: string;
|
1491
|
+
id: string;
|
1492
|
+
tags: string[];
|
1493
|
+
icon: string;
|
1494
|
+
}[];
|
1495
|
+
status: import("@db/api").$Enums.Status;
|
1496
|
+
type: string;
|
1484
1497
|
name: string;
|
1485
1498
|
description: string;
|
1486
1499
|
id: string;
|
1487
1500
|
tags: string[];
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
depositUrl: string | null;
|
1502
|
-
explorerAddress: string | null;
|
1503
|
-
mainProtocolId: string | null;
|
1504
|
-
tvl: number;
|
1505
|
-
apr: number;
|
1506
|
-
dailyRewards: number;
|
1507
|
-
lastCampaignCreatedAt: Date;
|
1508
|
-
} | {
|
1509
|
-
id: string;
|
1510
|
-
chainId: number;
|
1511
|
-
type: string;
|
1512
|
-
identifier: string;
|
1513
|
-
name: string;
|
1514
|
-
status: "PAST" | "LIVE" | "SOON";
|
1515
|
-
action: any;
|
1516
|
-
tokens: ({
|
1517
|
-
symbol: string;
|
1518
|
-
name: string | null;
|
1501
|
+
identifier: string;
|
1502
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
1503
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
1504
|
+
chainId: number;
|
1505
|
+
howToSteps: string[];
|
1506
|
+
depositUrl: string | null;
|
1507
|
+
explorerAddress: string | null;
|
1508
|
+
mainProtocolId: string | null;
|
1509
|
+
tvl: number;
|
1510
|
+
apr: number;
|
1511
|
+
dailyRewards: number;
|
1512
|
+
lastCampaignCreatedAt: Date;
|
1513
|
+
} | {
|
1519
1514
|
id: string;
|
1520
|
-
icon: string;
|
1521
|
-
address: string;
|
1522
1515
|
chainId: number;
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1516
|
+
type: string;
|
1517
|
+
identifier: string;
|
1518
|
+
name: string;
|
1519
|
+
status: "PAST" | "LIVE" | "SOON";
|
1520
|
+
action: any;
|
1521
|
+
tokens: ({
|
1522
|
+
symbol: string;
|
1523
|
+
name: string | null;
|
1524
|
+
id: string;
|
1525
|
+
icon: string;
|
1526
|
+
address: string;
|
1527
|
+
chainId: number;
|
1528
|
+
decimals: number;
|
1529
|
+
verified: boolean;
|
1530
|
+
isTest: boolean;
|
1531
|
+
isPoint: boolean;
|
1532
|
+
isPreTGE: boolean;
|
1533
|
+
isNative: boolean;
|
1534
|
+
} & {
|
1535
|
+
price?: number | null | undefined;
|
1536
|
+
})[];
|
1537
|
+
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" | "termmax" | "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;
|
1538
|
+
description: string;
|
1539
|
+
howToSteps: string[];
|
1540
|
+
depositUrl: string | undefined;
|
1541
|
+
explorerAddress: string | undefined;
|
1542
|
+
tags: string[];
|
1543
|
+
} | undefined;
|
1544
|
+
};
|
1539
1545
|
};
|
1540
1546
|
};
|
1541
1547
|
};
|
@@ -1666,6 +1672,8 @@ declare const app: Elysia<"", false, {
|
|
1666
1672
|
startTimestamp?: string | undefined;
|
1667
1673
|
endTimestamp?: string | undefined;
|
1668
1674
|
creatorAddress?: string | undefined;
|
1675
|
+
rootCampaignId?: string | undefined;
|
1676
|
+
parentCampaignId?: string | undefined;
|
1669
1677
|
chainId?: number | undefined;
|
1670
1678
|
creatorId?: string | undefined;
|
1671
1679
|
mainParameter?: string | undefined;
|
@@ -1976,6 +1984,8 @@ declare const app: Elysia<"", false, {
|
|
1976
1984
|
startTimestamp?: string | undefined;
|
1977
1985
|
endTimestamp?: string | undefined;
|
1978
1986
|
creatorAddress?: string | undefined;
|
1987
|
+
rootCampaignId?: string | undefined;
|
1988
|
+
parentCampaignId?: string | undefined;
|
1979
1989
|
chainId?: number | undefined;
|
1980
1990
|
creatorId?: string | undefined;
|
1981
1991
|
mainParameter?: string | undefined;
|
@@ -2091,6 +2101,8 @@ declare const app: Elysia<"", false, {
|
|
2091
2101
|
startTimestamp?: string | undefined;
|
2092
2102
|
endTimestamp?: string | undefined;
|
2093
2103
|
creatorAddress?: string | undefined;
|
2104
|
+
rootCampaignId?: string | undefined;
|
2105
|
+
parentCampaignId?: string | undefined;
|
2094
2106
|
chainId?: number | undefined;
|
2095
2107
|
creatorId?: string | undefined;
|
2096
2108
|
mainParameter?: string | undefined;
|
@@ -2128,6 +2140,8 @@ declare const app: Elysia<"", false, {
|
|
2128
2140
|
startTimestamp?: string | undefined;
|
2129
2141
|
endTimestamp?: string | undefined;
|
2130
2142
|
creatorAddress?: string | undefined;
|
2143
|
+
rootCampaignId?: string | undefined;
|
2144
|
+
parentCampaignId?: string | undefined;
|
2131
2145
|
chainId?: number | undefined;
|
2132
2146
|
creatorId?: string | undefined;
|
2133
2147
|
mainParameter?: string | undefined;
|
@@ -2170,6 +2184,8 @@ declare const app: Elysia<"", false, {
|
|
2170
2184
|
startTimestamp?: string | undefined;
|
2171
2185
|
endTimestamp?: string | undefined;
|
2172
2186
|
creatorAddress?: string | undefined;
|
2187
|
+
rootCampaignId?: string | undefined;
|
2188
|
+
parentCampaignId?: string | undefined;
|
2173
2189
|
chainId?: number | undefined;
|
2174
2190
|
creatorId?: string | undefined;
|
2175
2191
|
mainParameter?: string | undefined;
|
@@ -2213,6 +2229,8 @@ declare const app: Elysia<"", false, {
|
|
2213
2229
|
startTimestamp?: string | undefined;
|
2214
2230
|
endTimestamp?: string | undefined;
|
2215
2231
|
creatorAddress?: string | undefined;
|
2232
|
+
rootCampaignId?: string | undefined;
|
2233
|
+
parentCampaignId?: string | undefined;
|
2216
2234
|
chainId?: number | undefined;
|
2217
2235
|
creatorId?: string | undefined;
|
2218
2236
|
mainParameter?: string | undefined;
|
@@ -14,123 +14,127 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
14
14
|
}, {
|
15
15
|
campaigns: {
|
16
16
|
engine: {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
startTimestamp: string;
|
29
|
-
endTimestamp: string;
|
30
|
-
chainId: number;
|
31
|
-
rewardTokenAddress: string;
|
32
|
-
opportunityIdentifier: string;
|
33
|
-
};
|
34
|
-
params: {};
|
35
|
-
query: unknown;
|
36
|
-
headers: {
|
37
|
-
authorization: string;
|
38
|
-
};
|
39
|
-
response: {
|
40
|
-
200: {
|
41
|
-
type: string;
|
42
|
-
description: string | null;
|
43
|
-
id: string;
|
44
|
-
params: import("database/api/.generated/runtime/library").JsonValue;
|
45
|
-
subType: number | null;
|
17
|
+
index: {
|
18
|
+
post: {
|
19
|
+
body: {
|
20
|
+
tags?: string[] | undefined;
|
21
|
+
identifier?: string | undefined;
|
22
|
+
subType?: number | undefined;
|
23
|
+
rootCampaignId?: string | undefined;
|
24
|
+
parentCampaignId?: string | undefined;
|
25
|
+
type: number;
|
26
|
+
params: string;
|
27
|
+
creator: string;
|
46
28
|
computeChainId: number;
|
47
|
-
distributionChainId: number;
|
48
29
|
campaignId: string;
|
49
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
50
|
-
rewardTokenId: string;
|
51
30
|
amount: string;
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
31
|
+
startTimestamp: string;
|
32
|
+
endTimestamp: string;
|
33
|
+
chainId: number;
|
34
|
+
rewardTokenAddress: string;
|
35
|
+
opportunityIdentifier: string;
|
36
|
+
};
|
37
|
+
params: {};
|
38
|
+
query: unknown;
|
39
|
+
headers: {
|
40
|
+
authorization: string;
|
41
|
+
};
|
42
|
+
response: {
|
43
|
+
200: {
|
44
|
+
type: string;
|
45
|
+
description: string | null;
|
64
46
|
id: string;
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
47
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
48
|
+
subType: number | null;
|
49
|
+
computeChainId: number;
|
50
|
+
distributionChainId: number;
|
51
|
+
campaignId: string;
|
52
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
53
|
+
rewardTokenId: string;
|
54
|
+
amount: string;
|
55
|
+
opportunityId: string;
|
56
|
+
startTimestamp: bigint;
|
57
|
+
endTimestamp: bigint;
|
58
|
+
creatorAddress: string;
|
59
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
60
|
+
createdAt: Date;
|
61
|
+
rootCampaignId: string | null;
|
62
|
+
parentCampaignId: string | null;
|
63
|
+
} | {
|
64
|
+
Tokens: {
|
65
|
+
symbol: string;
|
66
|
+
name: string | null;
|
67
|
+
id: string;
|
68
|
+
icon: string;
|
69
|
+
address: string;
|
70
|
+
chainId: number;
|
71
|
+
decimals: number;
|
72
|
+
displaySymbol: string;
|
73
|
+
verified: boolean;
|
74
|
+
isTest: boolean;
|
75
|
+
isPoint: boolean;
|
76
|
+
isPreTGE: boolean;
|
77
|
+
isNative: boolean;
|
78
|
+
price: number | null;
|
79
|
+
}[];
|
80
|
+
Protocols: {
|
81
|
+
url: string;
|
82
|
+
name: string;
|
83
|
+
description: string;
|
84
|
+
id: string;
|
85
|
+
tags: string[];
|
86
|
+
icon: string;
|
87
|
+
}[];
|
88
|
+
status: import("@db/api").$Enums.Status;
|
89
|
+
type: string;
|
79
90
|
name: string;
|
80
91
|
description: string;
|
81
92
|
id: string;
|
82
93
|
tags: string[];
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
depositUrl: string | null;
|
97
|
-
explorerAddress: string | null;
|
98
|
-
mainProtocolId: string | null;
|
99
|
-
tvl: number;
|
100
|
-
apr: number;
|
101
|
-
dailyRewards: number;
|
102
|
-
lastCampaignCreatedAt: Date;
|
103
|
-
} | {
|
104
|
-
id: string;
|
105
|
-
chainId: number;
|
106
|
-
type: string;
|
107
|
-
identifier: string;
|
108
|
-
name: string;
|
109
|
-
status: "PAST" | "LIVE" | "SOON";
|
110
|
-
action: any;
|
111
|
-
tokens: ({
|
112
|
-
symbol: string;
|
113
|
-
name: string | null;
|
94
|
+
identifier: string;
|
95
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
96
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
97
|
+
chainId: number;
|
98
|
+
howToSteps: string[];
|
99
|
+
depositUrl: string | null;
|
100
|
+
explorerAddress: string | null;
|
101
|
+
mainProtocolId: string | null;
|
102
|
+
tvl: number;
|
103
|
+
apr: number;
|
104
|
+
dailyRewards: number;
|
105
|
+
lastCampaignCreatedAt: Date;
|
106
|
+
} | {
|
114
107
|
id: string;
|
115
|
-
icon: string;
|
116
|
-
address: string;
|
117
108
|
chainId: number;
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
109
|
+
type: string;
|
110
|
+
identifier: string;
|
111
|
+
name: string;
|
112
|
+
status: "PAST" | "LIVE" | "SOON";
|
113
|
+
action: any;
|
114
|
+
tokens: ({
|
115
|
+
symbol: string;
|
116
|
+
name: string | null;
|
117
|
+
id: string;
|
118
|
+
icon: string;
|
119
|
+
address: string;
|
120
|
+
chainId: number;
|
121
|
+
decimals: number;
|
122
|
+
verified: boolean;
|
123
|
+
isTest: boolean;
|
124
|
+
isPoint: boolean;
|
125
|
+
isPreTGE: boolean;
|
126
|
+
isNative: boolean;
|
127
|
+
} & {
|
128
|
+
price?: number | null | undefined;
|
129
|
+
})[];
|
130
|
+
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" | "termmax" | "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;
|
131
|
+
description: string;
|
132
|
+
howToSteps: string[];
|
133
|
+
depositUrl: string | undefined;
|
134
|
+
explorerAddress: string | undefined;
|
135
|
+
tags: string[];
|
136
|
+
} | undefined;
|
137
|
+
};
|
134
138
|
};
|
135
139
|
};
|
136
140
|
};
|
@@ -261,6 +265,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
261
265
|
startTimestamp?: string | undefined;
|
262
266
|
endTimestamp?: string | undefined;
|
263
267
|
creatorAddress?: string | undefined;
|
268
|
+
rootCampaignId?: string | undefined;
|
269
|
+
parentCampaignId?: string | undefined;
|
264
270
|
chainId?: number | undefined;
|
265
271
|
creatorId?: string | undefined;
|
266
272
|
mainParameter?: string | undefined;
|
@@ -571,6 +577,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
571
577
|
startTimestamp?: string | undefined;
|
572
578
|
endTimestamp?: string | undefined;
|
573
579
|
creatorAddress?: string | undefined;
|
580
|
+
rootCampaignId?: string | undefined;
|
581
|
+
parentCampaignId?: string | undefined;
|
574
582
|
chainId?: number | undefined;
|
575
583
|
creatorId?: string | undefined;
|
576
584
|
mainParameter?: string | undefined;
|
@@ -686,6 +694,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
686
694
|
startTimestamp?: string | undefined;
|
687
695
|
endTimestamp?: string | undefined;
|
688
696
|
creatorAddress?: string | undefined;
|
697
|
+
rootCampaignId?: string | undefined;
|
698
|
+
parentCampaignId?: string | undefined;
|
689
699
|
chainId?: number | undefined;
|
690
700
|
creatorId?: string | undefined;
|
691
701
|
mainParameter?: string | undefined;
|
@@ -723,6 +733,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
723
733
|
startTimestamp?: string | undefined;
|
724
734
|
endTimestamp?: string | undefined;
|
725
735
|
creatorAddress?: string | undefined;
|
736
|
+
rootCampaignId?: string | undefined;
|
737
|
+
parentCampaignId?: string | undefined;
|
726
738
|
chainId?: number | undefined;
|
727
739
|
creatorId?: string | undefined;
|
728
740
|
mainParameter?: string | undefined;
|
@@ -765,6 +777,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
765
777
|
startTimestamp?: string | undefined;
|
766
778
|
endTimestamp?: string | undefined;
|
767
779
|
creatorAddress?: string | undefined;
|
780
|
+
rootCampaignId?: string | undefined;
|
781
|
+
parentCampaignId?: string | undefined;
|
768
782
|
chainId?: number | undefined;
|
769
783
|
creatorId?: string | undefined;
|
770
784
|
mainParameter?: string | undefined;
|
@@ -808,6 +822,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
808
822
|
startTimestamp?: string | undefined;
|
809
823
|
endTimestamp?: string | undefined;
|
810
824
|
creatorAddress?: string | undefined;
|
825
|
+
rootCampaignId?: string | undefined;
|
826
|
+
parentCampaignId?: string | undefined;
|
811
827
|
chainId?: number | undefined;
|
812
828
|
creatorId?: string | undefined;
|
813
829
|
mainParameter?: string | undefined;
|
@@ -856,6 +872,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
856
872
|
startTimestamp?: string | undefined;
|
857
873
|
endTimestamp?: string | undefined;
|
858
874
|
creatorAddress?: string | undefined;
|
875
|
+
rootCampaignId?: string | undefined;
|
876
|
+
parentCampaignId?: string | undefined;
|
859
877
|
chainId?: number | undefined;
|
860
878
|
creatorId?: string | undefined;
|
861
879
|
mainParameter?: string | undefined;
|
@@ -15,12 +15,16 @@ import { CampaignService } from "./campaign.service";
|
|
15
15
|
// ─── Campaigns Controller ────────────────────────────────────────────────────
|
16
16
|
export const CampaignController = new Elysia({ prefix: "/campaigns", detail: { tags: ["Campaigns"] } })
|
17
17
|
// ─── Create A Campaign ───────────────────────────────────────────────
|
18
|
-
.
|
19
|
-
beforeHandle: EngineGuard,
|
18
|
+
.group("/engine", {
|
20
19
|
headers: AuthorizationHeadersDto,
|
21
|
-
|
20
|
+
beforeHandle: EngineGuard,
|
22
21
|
detail: { hide: true },
|
22
|
+
}, app => {
|
23
|
+
return app.post("/", async ({ body }) => await CampaignService.create(body), {
|
24
|
+
body: CreateCampaignDto,
|
25
|
+
});
|
23
26
|
})
|
27
|
+
// ─── Backoffice Routes ─────────────────────────────────────────────────────
|
24
28
|
.patch("/opportunity", async ({ body }) => await CampaignService.moveToOpportunity(body), {
|
25
29
|
beforeHandle: BackOfficeGuard,
|
26
30
|
headers: AuthorizationHeadersDto,
|