@merkl/api 0.20.171 → 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/database/api/.generated/drizzle/schema.d.ts +57 -0
- package/dist/database/api/.generated/drizzle/schema.js +52 -4
- package/dist/database/api/.generated/drizzle/schema.ts +52 -4
- package/dist/database/api/.generated/edge.js +13 -7
- package/dist/database/api/.generated/index-browser.js +10 -4
- package/dist/database/api/.generated/index.d.ts +1624 -39
- package/dist/database/api/.generated/index.js +13 -7
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +23 -13
- package/dist/database/api/.generated/wasm.js +10 -4
- package/dist/src/eden/index.d.ts +430 -315
- package/dist/src/engine/deprecated/dynamicData/factory.js +0 -1
- package/dist/src/engine/metadata/factory.js +0 -1
- package/dist/src/index.d.ts +146 -105
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +133 -105
- package/dist/src/modules/v4/campaign/campaign.controller.js +7 -3
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +8 -0
- package/dist/src/modules/v4/campaign/campaign.model.js +10 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +48 -0
- package/dist/src/modules/v4/campaign/campaign.repository.js +3 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +24 -0
- package/dist/src/modules/v4/campaign/campaign.service.js +5 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +4 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +8 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +10 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +10 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.controller.js +5 -9
- package/dist/src/modules/v4/reward/reward.model.d.ts +3 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +9 -0
- package/dist/src/modules/v4/reward/reward.service.js +2 -1
- package/dist/src/modules/v4/router.d.ts +146 -105
- package/dist/src/modules/v4/user/user.controller.d.ts +3 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -50,7 +50,6 @@ const map = {
|
|
50
50
|
[Campaign.UNISWAP_V4]: new UniswapV4DynamicData(),
|
51
51
|
[Campaign.VEST]: new VestDynamicData(),
|
52
52
|
[Campaign.ION]: new DefaultDynamicData(), // TODO
|
53
|
-
[Campaign.ERC20TRANSFERS]: new DefaultDynamicData(), // TODO
|
54
53
|
[Campaign.M0]: new DefaultDynamicData(), // TODO
|
55
54
|
[Campaign.MORPHOSUPPLY]: new DefaultDynamicData(), // TODO
|
56
55
|
[Campaign.SYNCSWAP_VAULT]: new DefaultDynamicData(), // TODO
|
@@ -53,7 +53,6 @@ const map = {
|
|
53
53
|
[Campaign.VEST]: new VestMetadata(),
|
54
54
|
[Campaign.ERC20LOGPROCESSOR]: new Erc20Metadata(),
|
55
55
|
[Campaign.ERC20REBASELOGPROCESSOR]: new Erc20Metadata(),
|
56
|
-
[Campaign.ERC20TRANSFERS]: new DefaultMetadata(), // TODO
|
57
56
|
[Campaign.M0]: new DefaultMetadata(), // TODO
|
58
57
|
[Campaign.MORPHOSUPPLY]: new DefaultMetadata(), // TODO
|
59
58
|
[Campaign.SYNCSWAP_VAULT]: new DefaultMetadata(), // TODO
|
package/dist/src/index.d.ts
CHANGED
@@ -596,6 +596,8 @@ declare const app: Elysia<"", false, {
|
|
596
596
|
};
|
597
597
|
createdAt: string;
|
598
598
|
description: string | undefined;
|
599
|
+
parentCampaignId: string | undefined;
|
600
|
+
rootCampaignId: string | undefined;
|
599
601
|
Opportunity: {
|
600
602
|
status: import("@db/api").$Enums.Status;
|
601
603
|
type: string;
|
@@ -934,6 +936,8 @@ declare const app: Elysia<"", false, {
|
|
934
936
|
startTimestamp?: string | undefined;
|
935
937
|
endTimestamp?: string | undefined;
|
936
938
|
creatorAddress?: string | undefined;
|
939
|
+
rootCampaignId?: string | undefined;
|
940
|
+
parentCampaignId?: string | undefined;
|
937
941
|
chainId?: number | undefined;
|
938
942
|
creatorId?: string | undefined;
|
939
943
|
mainParameter?: string | undefined;
|
@@ -1044,6 +1048,8 @@ declare const app: Elysia<"", false, {
|
|
1044
1048
|
creatorId?: string | null | undefined;
|
1045
1049
|
address: string;
|
1046
1050
|
} | undefined;
|
1051
|
+
rootCampaignId?: string | undefined;
|
1052
|
+
parentCampaignId?: string | undefined;
|
1047
1053
|
campaignStatus?: {
|
1048
1054
|
error?: string | undefined;
|
1049
1055
|
details?: any;
|
@@ -1216,6 +1222,8 @@ declare const app: Elysia<"", false, {
|
|
1216
1222
|
creatorId?: string | null | undefined;
|
1217
1223
|
address: string;
|
1218
1224
|
} | undefined;
|
1225
|
+
rootCampaignId?: string | undefined;
|
1226
|
+
parentCampaignId?: string | undefined;
|
1219
1227
|
campaignStatus?: {
|
1220
1228
|
error?: string | undefined;
|
1221
1229
|
details?: any;
|
@@ -1413,121 +1421,127 @@ declare const app: Elysia<"", false, {
|
|
1413
1421
|
v4: {
|
1414
1422
|
campaigns: {
|
1415
1423
|
engine: {
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
startTimestamp: string;
|
1428
|
-
endTimestamp: string;
|
1429
|
-
chainId: number;
|
1430
|
-
rewardTokenAddress: string;
|
1431
|
-
opportunityIdentifier: string;
|
1432
|
-
};
|
1433
|
-
params: {};
|
1434
|
-
query: unknown;
|
1435
|
-
headers: {
|
1436
|
-
authorization: string;
|
1437
|
-
};
|
1438
|
-
response: {
|
1439
|
-
200: {
|
1440
|
-
type: string;
|
1441
|
-
description: string | null;
|
1442
|
-
id: string;
|
1443
|
-
params: import("database/api/.generated/runtime/library").JsonValue;
|
1444
|
-
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;
|
1445
1435
|
computeChainId: number;
|
1446
|
-
distributionChainId: number;
|
1447
1436
|
campaignId: string;
|
1448
|
-
distributionType: import("@db/api").$Enums.DistributionType;
|
1449
|
-
rewardTokenId: string;
|
1450
1437
|
amount: string;
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
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;
|
1461
1453
|
id: string;
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
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;
|
1476
1497
|
name: string;
|
1477
1498
|
description: string;
|
1478
1499
|
id: string;
|
1479
1500
|
tags: string[];
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
depositUrl: string | null;
|
1494
|
-
explorerAddress: string | null;
|
1495
|
-
mainProtocolId: string | null;
|
1496
|
-
tvl: number;
|
1497
|
-
apr: number;
|
1498
|
-
dailyRewards: number;
|
1499
|
-
lastCampaignCreatedAt: Date;
|
1500
|
-
} | {
|
1501
|
-
id: string;
|
1502
|
-
chainId: number;
|
1503
|
-
type: string;
|
1504
|
-
identifier: string;
|
1505
|
-
name: string;
|
1506
|
-
status: "PAST" | "LIVE" | "SOON";
|
1507
|
-
action: any;
|
1508
|
-
tokens: ({
|
1509
|
-
symbol: string;
|
1510
|
-
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
|
+
} | {
|
1511
1514
|
id: string;
|
1512
|
-
icon: string;
|
1513
|
-
address: string;
|
1514
1515
|
chainId: number;
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
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
|
+
};
|
1531
1545
|
};
|
1532
1546
|
};
|
1533
1547
|
};
|
@@ -1617,6 +1631,8 @@ declare const app: Elysia<"", false, {
|
|
1617
1631
|
creatorAddress: string;
|
1618
1632
|
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
1619
1633
|
createdAt: Date;
|
1634
|
+
rootCampaignId: string | null;
|
1635
|
+
parentCampaignId: string | null;
|
1620
1636
|
};
|
1621
1637
|
};
|
1622
1638
|
};
|
@@ -1656,6 +1672,8 @@ declare const app: Elysia<"", false, {
|
|
1656
1672
|
startTimestamp?: string | undefined;
|
1657
1673
|
endTimestamp?: string | undefined;
|
1658
1674
|
creatorAddress?: string | undefined;
|
1675
|
+
rootCampaignId?: string | undefined;
|
1676
|
+
parentCampaignId?: string | undefined;
|
1659
1677
|
chainId?: number | undefined;
|
1660
1678
|
creatorId?: string | undefined;
|
1661
1679
|
mainParameter?: string | undefined;
|
@@ -1716,6 +1734,8 @@ declare const app: Elysia<"", false, {
|
|
1716
1734
|
};
|
1717
1735
|
createdAt: string;
|
1718
1736
|
description: string | undefined;
|
1737
|
+
parentCampaignId: string | undefined;
|
1738
|
+
rootCampaignId: string | undefined;
|
1719
1739
|
Opportunity: {
|
1720
1740
|
status: import("@db/api").$Enums.Status;
|
1721
1741
|
type: string;
|
@@ -1806,6 +1826,8 @@ declare const app: Elysia<"", false, {
|
|
1806
1826
|
};
|
1807
1827
|
createdAt: string;
|
1808
1828
|
description: string | undefined;
|
1829
|
+
parentCampaignId: string | undefined;
|
1830
|
+
rootCampaignId: string | undefined;
|
1809
1831
|
Opportunity: {
|
1810
1832
|
status: import("@db/api").$Enums.Status;
|
1811
1833
|
type: string;
|
@@ -1962,6 +1984,8 @@ declare const app: Elysia<"", false, {
|
|
1962
1984
|
startTimestamp?: string | undefined;
|
1963
1985
|
endTimestamp?: string | undefined;
|
1964
1986
|
creatorAddress?: string | undefined;
|
1987
|
+
rootCampaignId?: string | undefined;
|
1988
|
+
parentCampaignId?: string | undefined;
|
1965
1989
|
chainId?: number | undefined;
|
1966
1990
|
creatorId?: string | undefined;
|
1967
1991
|
mainParameter?: string | undefined;
|
@@ -2022,6 +2046,8 @@ declare const app: Elysia<"", false, {
|
|
2022
2046
|
};
|
2023
2047
|
createdAt: string;
|
2024
2048
|
description: string | undefined;
|
2049
|
+
parentCampaignId: string | undefined;
|
2050
|
+
rootCampaignId: string | undefined;
|
2025
2051
|
Opportunity: {
|
2026
2052
|
status: import("@db/api").$Enums.Status;
|
2027
2053
|
type: string;
|
@@ -2075,6 +2101,8 @@ declare const app: Elysia<"", false, {
|
|
2075
2101
|
startTimestamp?: string | undefined;
|
2076
2102
|
endTimestamp?: string | undefined;
|
2077
2103
|
creatorAddress?: string | undefined;
|
2104
|
+
rootCampaignId?: string | undefined;
|
2105
|
+
parentCampaignId?: string | undefined;
|
2078
2106
|
chainId?: number | undefined;
|
2079
2107
|
creatorId?: string | undefined;
|
2080
2108
|
mainParameter?: string | undefined;
|
@@ -2112,6 +2140,8 @@ declare const app: Elysia<"", false, {
|
|
2112
2140
|
startTimestamp?: string | undefined;
|
2113
2141
|
endTimestamp?: string | undefined;
|
2114
2142
|
creatorAddress?: string | undefined;
|
2143
|
+
rootCampaignId?: string | undefined;
|
2144
|
+
parentCampaignId?: string | undefined;
|
2115
2145
|
chainId?: number | undefined;
|
2116
2146
|
creatorId?: string | undefined;
|
2117
2147
|
mainParameter?: string | undefined;
|
@@ -2154,6 +2184,8 @@ declare const app: Elysia<"", false, {
|
|
2154
2184
|
startTimestamp?: string | undefined;
|
2155
2185
|
endTimestamp?: string | undefined;
|
2156
2186
|
creatorAddress?: string | undefined;
|
2187
|
+
rootCampaignId?: string | undefined;
|
2188
|
+
parentCampaignId?: string | undefined;
|
2157
2189
|
chainId?: number | undefined;
|
2158
2190
|
creatorId?: string | undefined;
|
2159
2191
|
mainParameter?: string | undefined;
|
@@ -2197,6 +2229,8 @@ declare const app: Elysia<"", false, {
|
|
2197
2229
|
startTimestamp?: string | undefined;
|
2198
2230
|
endTimestamp?: string | undefined;
|
2199
2231
|
creatorAddress?: string | undefined;
|
2232
|
+
rootCampaignId?: string | undefined;
|
2233
|
+
parentCampaignId?: string | undefined;
|
2200
2234
|
chainId?: number | undefined;
|
2201
2235
|
creatorId?: string | undefined;
|
2202
2236
|
mainParameter?: string | undefined;
|
@@ -2382,6 +2416,8 @@ declare const app: Elysia<"", false, {
|
|
2382
2416
|
creatorAddress: string;
|
2383
2417
|
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
2384
2418
|
createdAt: Date;
|
2419
|
+
rootCampaignId: string | null;
|
2420
|
+
parentCampaignId: string | null;
|
2385
2421
|
} | {
|
2386
2422
|
Tokens: {
|
2387
2423
|
symbol: string;
|
@@ -2492,6 +2528,8 @@ declare const app: Elysia<"", false, {
|
|
2492
2528
|
creatorAddress: string;
|
2493
2529
|
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
2494
2530
|
createdAt: Date;
|
2531
|
+
rootCampaignId: string | null;
|
2532
|
+
parentCampaignId: string | null;
|
2495
2533
|
} | {
|
2496
2534
|
Tokens: {
|
2497
2535
|
symbol: string;
|
@@ -4106,6 +4144,7 @@ declare const app: Elysia<"", false, {
|
|
4106
4144
|
};
|
4107
4145
|
breakdowns: {
|
4108
4146
|
campaignId: string;
|
4147
|
+
subCampaignId: string | undefined;
|
4109
4148
|
opportunity: {
|
4110
4149
|
Chain: {
|
4111
4150
|
name: string;
|
@@ -4231,6 +4270,7 @@ declare const app: Elysia<"", false, {
|
|
4231
4270
|
};
|
4232
4271
|
breakdowns: {
|
4233
4272
|
campaignId: string;
|
4273
|
+
subCampaignId: string | undefined;
|
4234
4274
|
opportunity: {
|
4235
4275
|
Chain: {
|
4236
4276
|
name: string;
|
@@ -4303,6 +4343,7 @@ declare const app: Elysia<"", false, {
|
|
4303
4343
|
}, "breakdowns"> & {
|
4304
4344
|
breakdowns: {
|
4305
4345
|
campaignId: string;
|
4346
|
+
subCampaignId: string | undefined;
|
4306
4347
|
reason: string;
|
4307
4348
|
pending: string;
|
4308
4349
|
amount: string;
|