@merkl/api 1.4.3 → 1.4.5
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 +1795 -2646
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/factories.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/eulerEarn/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/eulerEarn/metadata.js.map +1 -0
- package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +1 -0
- package/dist/src/engine/implementations/Erc20/subTypes/index.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/tvl.js.map +1 -1
- package/dist/src/hooks/checkQueryAddressValidity.d.ts +6 -0
- package/dist/src/hooks/checkQueryChainIdValidity.d.ts +6 -0
- package/dist/src/index.d.ts +4437 -6187
- package/dist/src/index.js.map +1 -1
- package/dist/src/jobs/prices.js.map +1 -1
- package/dist/src/libs/computeFee.d.ts +6 -6
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +8 -5
- package/dist/src/modules/v4/authentication/authentication.controller.d.ts +3 -2
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +6 -5
- package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +2 -2
- package/dist/src/modules/v4/boost/boost.controller.d.ts +3 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +34 -174
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +18 -15
- package/dist/src/modules/v4/campaign/campaign.repository.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +9 -6
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +99 -500
- package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.d.ts +18 -22
- package/dist/src/modules/v4/campaignBatch/campaignBatch.repository.d.ts +3 -3
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +3 -3
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.js.map +1 -1
- package/dist/src/modules/v4/campaignGroup/campaignGroup.repository.d.ts +4 -4
- package/dist/src/modules/v4/campaignGroup/campaignGroup.service.d.ts +4 -4
- package/dist/src/modules/v4/campaignStatus/campaignStatus.controller.d.ts +58 -51
- package/dist/src/modules/v4/campaignStatus/campaignStatus.repository.d.ts +11 -11
- package/dist/src/modules/v4/campaignStatus/campaignStatus.service.d.ts +9 -9
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.controller.d.ts +17 -2
- package/dist/src/modules/v4/chain/chain.controller.d.ts +9 -5
- package/dist/src/modules/v4/claims/claims.controller.d.ts +3 -0
- package/dist/src/modules/v4/clamm/clamm.controller.d.ts +4 -1
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +4 -4
- 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/config/config.controller.d.ts +9 -7
- package/dist/src/modules/v4/creator/creator.controller.d.ts +13 -6
- package/dist/src/modules/v4/creator/creator.repository.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +5 -2
- package/dist/src/modules/v4/euler/euler.controller.d.ts +5 -2
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +3 -0
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +4 -9
- package/dist/src/modules/v4/interaction/interaction.controller.js.map +1 -1
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +3 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +10 -9
- package/dist/src/modules/v4/node/node.controller.d.ts +3 -0
- package/dist/src/modules/v4/node/node.repository.d.ts +3 -3
- package/dist/src/modules/v4/node/node.service.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +67 -62
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +12 -12
- package/dist/src/modules/v4/parse/parse.controller.d.ts +3 -0
- package/dist/src/modules/v4/payload/payload.controller.d.ts +231 -234
- package/dist/src/modules/v4/payload/payload.service.d.ts +0 -7
- package/dist/src/modules/v4/payload/payload.service.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/dexScreenerService.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceSource.controller.d.ts +21 -9
- package/dist/src/modules/v4/priceSource/priceSource.repository.d.ts +6 -6
- package/dist/src/modules/v4/priceSource/priceSource.service.d.ts +6 -6
- package/dist/src/modules/v4/program/program.controller.d.ts +23 -17
- package/dist/src/modules/v4/program/program.repository.d.ts +2 -2
- package/dist/src/modules/v4/program/program.service.d.ts +2 -2
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +835 -797
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +8 -4
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -1
- package/dist/src/modules/v4/referral/referral.controller.d.ts +3 -0
- package/dist/src/modules/v4/reward/reward.controller.d.ts +10 -23
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.repository.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +37 -36
- package/dist/src/modules/v4/reward/reward.service.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +1880 -2411
- package/dist/src/modules/v4/router.js.map +1 -1
- package/dist/src/modules/v4/token/token.controller.d.ts +32 -52
- package/dist/src/modules/v4/token/token.controller.js.map +1 -1
- package/dist/src/modules/v4/ton/ton.controller.d.ts +3 -0
- package/dist/src/modules/v4/turtle/turtle.controller.d.ts +4 -1
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +416 -405
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +2 -2
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +2 -2
- package/dist/src/modules/v4/user/user.controller.d.ts +9 -6
- package/dist/src/modules/v4/user/user.controller.js.map +1 -1
- package/dist/src/modules/v4/user/user.model.d.ts +5 -0
- package/dist/src/modules/v4/user/user.model.js.map +1 -1
- package/dist/src/plugins/errorHandler.d.ts +13 -0
- package/dist/src/routes/v1/allowances.d.ts +7 -1
- package/dist/src/routes/v1/balances.d.ts +7 -1
- package/dist/src/routes/v1/prices.d.ts +6 -0
- package/dist/src/routes/v1/router.d.ts +7 -12
- package/dist/src/routes/v1/router.js.map +1 -1
- package/dist/src/routes/v1/tokens.d.ts +8 -10
- package/dist/src/routes/v2/merkl.d.ts +7 -112
- package/dist/src/routes/v2/router.d.ts +4 -112
- package/dist/src/routes/v2/router.js.map +1 -1
- package/dist/src/routes/v3/app.d.ts +7 -1
- package/dist/src/routes/v3/blacklist.d.ts +6 -0
- package/dist/src/routes/v3/campaign/delay.d.ts +10 -4
- package/dist/src/routes/v3/campaignClaims.d.ts +6 -1
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +7 -3
- package/dist/src/routes/v3/campaigns.d.ts +8 -10
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +6 -0
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +6 -0
- package/dist/src/routes/v3/claims.d.ts +6 -0
- package/dist/src/routes/v3/compoundV2.d.ts +8 -10
- package/dist/src/routes/v3/createCampaign.d.ts +6 -0
- package/dist/src/routes/v3/dolomite.d.ts +8 -10
- package/dist/src/routes/v3/euler.d.ts +16 -1
- package/dist/src/routes/v3/fetch.d.ts +6 -0
- package/dist/src/routes/v3/health.d.ts +3 -0
- package/dist/src/routes/v3/lostyield.d.ts +8 -10
- package/dist/src/routes/v3/merkl.d.ts +8 -113
- package/dist/src/routes/v3/morphoMarkets.d.ts +8 -10
- package/dist/src/routes/v3/morphoVaults.d.ts +8 -10
- package/dist/src/routes/v3/multiChainPositions.d.ts +6 -2
- package/dist/src/routes/v3/opportunity.d.ts +7 -1
- package/dist/src/routes/v3/overview.d.ts +26 -19
- package/dist/src/routes/v3/parse.d.ts +6 -0
- package/dist/src/routes/v3/payload.d.ts +6 -0
- package/dist/src/routes/v3/poolInfo.d.ts +14 -7
- package/dist/src/routes/v3/positions.d.ts +6 -2
- package/dist/src/routes/v3/radiant.d.ts +8 -10
- package/dist/src/routes/v3/recipients.d.ts +6 -0
- package/dist/src/routes/v3/rewards.d.ts +6 -0
- package/dist/src/routes/v3/rewardsReport.d.ts +6 -0
- package/dist/src/routes/v3/router.d.ts +37 -211
- package/dist/src/routes/v3/router.js.map +1 -1
- package/dist/src/routes/v3/silo.d.ts +8 -10
- package/dist/src/routes/v3/token.d.ts +6 -0
- package/dist/src/routes/v3/twt/participants.d.ts +8 -10
- package/dist/src/routes/v3/updates.d.ts +10 -8
- package/dist/src/routes/v3/userRewards.d.ts +6 -0
- package/dist/src/utils/error.d.ts +8 -0
- package/dist/src/utils/models.d.ts +12 -6
- package/dist/src/utils/queries/allCampaigns.d.ts +1 -1
- package/package.json +3 -3
- package/dist/src/scripts/campaign-config.test.d.ts +0 -1
- package/dist/src/scripts/campaign-config.test.js.map +0 -1
|
@@ -14,6 +14,7 @@ export declare const MerklRootController: Elysia<"/roots", {
|
|
|
14
14
|
macro: {};
|
|
15
15
|
macroFn: {};
|
|
16
16
|
parser: {};
|
|
17
|
+
response: {};
|
|
17
18
|
}, {
|
|
18
19
|
roots: {
|
|
19
20
|
get: {
|
|
@@ -56,15 +57,13 @@ export declare const MerklRootController: Elysia<"/roots", {
|
|
|
56
57
|
query: unknown;
|
|
57
58
|
headers: unknown;
|
|
58
59
|
response: {
|
|
59
|
-
200: {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
};
|
|
67
|
-
};
|
|
60
|
+
200: Record<number, {
|
|
61
|
+
live: string;
|
|
62
|
+
tree: string;
|
|
63
|
+
lastTree: string;
|
|
64
|
+
endOfDisputePeriod: number;
|
|
65
|
+
disputer: string;
|
|
66
|
+
}>;
|
|
68
67
|
};
|
|
69
68
|
};
|
|
70
69
|
};
|
|
@@ -147,9 +146,11 @@ export declare const MerklRootController: Elysia<"/roots", {
|
|
|
147
146
|
resolve: {};
|
|
148
147
|
schema: {};
|
|
149
148
|
standaloneSchema: {};
|
|
149
|
+
response: {};
|
|
150
150
|
}, {
|
|
151
151
|
derive: {};
|
|
152
152
|
resolve: {};
|
|
153
153
|
schema: {};
|
|
154
154
|
standaloneSchema: {};
|
|
155
|
+
response: {};
|
|
155
156
|
}>;
|
|
@@ -13,6 +13,7 @@ export declare const NodeController: Elysia<"/node", {
|
|
|
13
13
|
macro: {};
|
|
14
14
|
macroFn: {};
|
|
15
15
|
parser: {};
|
|
16
|
+
response: {};
|
|
16
17
|
}, {
|
|
17
18
|
node: {
|
|
18
19
|
get: {
|
|
@@ -57,9 +58,11 @@ export declare const NodeController: Elysia<"/node", {
|
|
|
57
58
|
resolve: {};
|
|
58
59
|
schema: {};
|
|
59
60
|
standaloneSchema: {};
|
|
61
|
+
response: {};
|
|
60
62
|
}, {
|
|
61
63
|
derive: {};
|
|
62
64
|
resolve: {};
|
|
63
65
|
schema: {};
|
|
64
66
|
standaloneSchema: {};
|
|
67
|
+
response: {};
|
|
65
68
|
}>;
|
|
@@ -17,7 +17,7 @@ export declare class NodeRepository {
|
|
|
17
17
|
recipient: string;
|
|
18
18
|
nodesSourceId: string;
|
|
19
19
|
creationBlockNumber: number;
|
|
20
|
-
metadata: import("@prisma/client/runtime/
|
|
20
|
+
metadata: import("@prisma/client/runtime/client").JsonValue;
|
|
21
21
|
})[]>;
|
|
22
22
|
static getNodesByProtocols(protocols: Protocol[], chainIds?: ChainId[]): Promise<{
|
|
23
23
|
id: string;
|
|
@@ -26,7 +26,7 @@ export declare class NodeRepository {
|
|
|
26
26
|
recipient: string;
|
|
27
27
|
nodesSourceId: string;
|
|
28
28
|
creationBlockNumber: number;
|
|
29
|
-
metadata: import("@prisma/client/runtime/
|
|
29
|
+
metadata: import("@prisma/client/runtime/client").JsonValue;
|
|
30
30
|
}[]>;
|
|
31
31
|
static getNodesByProtocol(protocol: Protocol, chainIds?: ChainId[]): Promise<{
|
|
32
32
|
id: string;
|
|
@@ -35,6 +35,6 @@ export declare class NodeRepository {
|
|
|
35
35
|
recipient: string;
|
|
36
36
|
nodesSourceId: string;
|
|
37
37
|
creationBlockNumber: number;
|
|
38
|
-
metadata: import("@prisma/client/runtime/
|
|
38
|
+
metadata: import("@prisma/client/runtime/client").JsonValue;
|
|
39
39
|
}[]>;
|
|
40
40
|
}
|
|
@@ -17,7 +17,7 @@ export declare abstract class NodeService {
|
|
|
17
17
|
recipient: string;
|
|
18
18
|
nodesSourceId: string;
|
|
19
19
|
creationBlockNumber: number;
|
|
20
|
-
metadata: import("@prisma/client/runtime/
|
|
20
|
+
metadata: import("@prisma/client/runtime/client").JsonValue;
|
|
21
21
|
})[]>;
|
|
22
22
|
// Solution 1: Remove the generic and infer from the protocol parameter
|
|
23
23
|
static getNodesByMetadata<P extends Protocol>(chainIds: ChainId[], protocol: P, // Change this to P instead of Protocol
|
|
@@ -14,6 +14,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
14
14
|
macro: {};
|
|
15
15
|
macroFn: {};
|
|
16
16
|
parser: {};
|
|
17
|
+
response: {};
|
|
17
18
|
}, {
|
|
18
19
|
opportunities: {
|
|
19
20
|
campaigns: {
|
|
@@ -253,6 +254,10 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
253
254
|
} | undefined;
|
|
254
255
|
type: string;
|
|
255
256
|
}[];
|
|
257
|
+
404: {
|
|
258
|
+
name: string;
|
|
259
|
+
message: string;
|
|
260
|
+
};
|
|
256
261
|
422: {
|
|
257
262
|
type: "validation";
|
|
258
263
|
on: string;
|
|
@@ -262,11 +267,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
262
267
|
property?: string | undefined;
|
|
263
268
|
expected?: string | undefined;
|
|
264
269
|
};
|
|
265
|
-
|
|
266
|
-
name: string;
|
|
267
|
-
message: string;
|
|
268
|
-
};
|
|
269
|
-
readonly 500: {
|
|
270
|
+
500: {
|
|
270
271
|
code: string;
|
|
271
272
|
httpCode: number;
|
|
272
273
|
info: string;
|
|
@@ -604,6 +605,10 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
604
605
|
} | undefined;
|
|
605
606
|
type: string;
|
|
606
607
|
};
|
|
608
|
+
404: {
|
|
609
|
+
name: string;
|
|
610
|
+
message: string;
|
|
611
|
+
};
|
|
607
612
|
422: {
|
|
608
613
|
type: "validation";
|
|
609
614
|
on: string;
|
|
@@ -613,11 +618,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
613
618
|
property?: string | undefined;
|
|
614
619
|
expected?: string | undefined;
|
|
615
620
|
};
|
|
616
|
-
|
|
617
|
-
name: string;
|
|
618
|
-
message: string;
|
|
619
|
-
};
|
|
620
|
-
readonly 500: {
|
|
621
|
+
500: {
|
|
621
622
|
code: string;
|
|
622
623
|
httpCode: number;
|
|
623
624
|
info: string;
|
|
@@ -842,6 +843,10 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
842
843
|
} | undefined;
|
|
843
844
|
type: string;
|
|
844
845
|
};
|
|
846
|
+
404: {
|
|
847
|
+
name: string;
|
|
848
|
+
message: string;
|
|
849
|
+
};
|
|
845
850
|
422: {
|
|
846
851
|
type: "validation";
|
|
847
852
|
on: string;
|
|
@@ -851,11 +856,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
851
856
|
property?: string | undefined;
|
|
852
857
|
expected?: string | undefined;
|
|
853
858
|
};
|
|
854
|
-
|
|
855
|
-
name: string;
|
|
856
|
-
message: string;
|
|
857
|
-
};
|
|
858
|
-
readonly 500: {
|
|
859
|
+
500: {
|
|
859
860
|
code: string;
|
|
860
861
|
httpCode: number;
|
|
861
862
|
info: string;
|
|
@@ -1611,7 +1612,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1611
1612
|
identifier: string;
|
|
1612
1613
|
name: string;
|
|
1613
1614
|
status: "LIVE" | "PAST" | "SOON";
|
|
1614
|
-
action:
|
|
1615
|
+
action: OpportunityAction;
|
|
1615
1616
|
tokens: ({
|
|
1616
1617
|
address: string;
|
|
1617
1618
|
chainId: number;
|
|
@@ -1637,27 +1638,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1637
1638
|
depositUrl: string | undefined;
|
|
1638
1639
|
explorerAddress: string | undefined;
|
|
1639
1640
|
tags: string[];
|
|
1640
|
-
} | {
|
|
1641
|
-
id: string;
|
|
1642
|
-
chainId: number;
|
|
1643
|
-
type: string;
|
|
1644
|
-
identifier: string;
|
|
1645
|
-
name: string;
|
|
1646
|
-
description: string;
|
|
1647
|
-
howToSteps: string[];
|
|
1648
|
-
depositUrl: string | null;
|
|
1649
|
-
explorerAddress: string | null;
|
|
1650
|
-
status: import("@package/databases").Status;
|
|
1651
|
-
action: import("@package/databases").OpportunityAction;
|
|
1652
|
-
mainProtocolId: string | null;
|
|
1653
|
-
tvl: number;
|
|
1654
|
-
apr: number;
|
|
1655
|
-
maxApr: number | null;
|
|
1656
|
-
dailyRewards: number;
|
|
1657
|
-
tags: string[];
|
|
1658
|
-
lastCampaignCreatedAt: Date;
|
|
1659
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
1660
|
-
liveCampaigns: number;
|
|
1641
|
+
} | ({
|
|
1661
1642
|
Protocols: {
|
|
1662
1643
|
id: string;
|
|
1663
1644
|
tags: string[];
|
|
@@ -1683,7 +1664,28 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1683
1664
|
updatedAt: number | null;
|
|
1684
1665
|
priceSource: string | null;
|
|
1685
1666
|
}[];
|
|
1686
|
-
}
|
|
1667
|
+
} & {
|
|
1668
|
+
id: string;
|
|
1669
|
+
chainId: number;
|
|
1670
|
+
type: string;
|
|
1671
|
+
identifier: string;
|
|
1672
|
+
name: string;
|
|
1673
|
+
description: string;
|
|
1674
|
+
howToSteps: string[];
|
|
1675
|
+
depositUrl: string | null;
|
|
1676
|
+
explorerAddress: string | null;
|
|
1677
|
+
status: import("@package/databases").Status;
|
|
1678
|
+
action: import("@package/databases").OpportunityAction;
|
|
1679
|
+
mainProtocolId: string | null;
|
|
1680
|
+
tvl: number;
|
|
1681
|
+
apr: number;
|
|
1682
|
+
maxApr: number | null;
|
|
1683
|
+
dailyRewards: number;
|
|
1684
|
+
tags: string[];
|
|
1685
|
+
lastCampaignCreatedAt: Date;
|
|
1686
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
1687
|
+
liveCampaigns: number;
|
|
1688
|
+
});
|
|
1687
1689
|
422: {
|
|
1688
1690
|
type: "validation";
|
|
1689
1691
|
on: string;
|
|
@@ -1828,7 +1830,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1828
1830
|
identifier: string;
|
|
1829
1831
|
name: string;
|
|
1830
1832
|
status: "LIVE" | "PAST" | "SOON";
|
|
1831
|
-
action:
|
|
1833
|
+
action: OpportunityAction;
|
|
1832
1834
|
tokens: ({
|
|
1833
1835
|
address: string;
|
|
1834
1836
|
chainId: number;
|
|
@@ -1854,27 +1856,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1854
1856
|
depositUrl: string | undefined;
|
|
1855
1857
|
explorerAddress: string | undefined;
|
|
1856
1858
|
tags: string[];
|
|
1857
|
-
} | {
|
|
1858
|
-
id: string;
|
|
1859
|
-
chainId: number;
|
|
1860
|
-
type: string;
|
|
1861
|
-
identifier: string;
|
|
1862
|
-
name: string;
|
|
1863
|
-
description: string;
|
|
1864
|
-
howToSteps: string[];
|
|
1865
|
-
depositUrl: string | null;
|
|
1866
|
-
explorerAddress: string | null;
|
|
1867
|
-
status: import("@package/databases").Status;
|
|
1868
|
-
action: import("@package/databases").OpportunityAction;
|
|
1869
|
-
mainProtocolId: string | null;
|
|
1870
|
-
tvl: number;
|
|
1871
|
-
apr: number;
|
|
1872
|
-
maxApr: number | null;
|
|
1873
|
-
dailyRewards: number;
|
|
1874
|
-
tags: string[];
|
|
1875
|
-
lastCampaignCreatedAt: Date;
|
|
1876
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
1877
|
-
liveCampaigns: number;
|
|
1859
|
+
} | ({
|
|
1878
1860
|
Protocols: {
|
|
1879
1861
|
id: string;
|
|
1880
1862
|
tags: string[];
|
|
@@ -1900,7 +1882,28 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1900
1882
|
updatedAt: number | null;
|
|
1901
1883
|
priceSource: string | null;
|
|
1902
1884
|
}[];
|
|
1903
|
-
}
|
|
1885
|
+
} & {
|
|
1886
|
+
id: string;
|
|
1887
|
+
chainId: number;
|
|
1888
|
+
type: string;
|
|
1889
|
+
identifier: string;
|
|
1890
|
+
name: string;
|
|
1891
|
+
description: string;
|
|
1892
|
+
howToSteps: string[];
|
|
1893
|
+
depositUrl: string | null;
|
|
1894
|
+
explorerAddress: string | null;
|
|
1895
|
+
status: import("@package/databases").Status;
|
|
1896
|
+
action: import("@package/databases").OpportunityAction;
|
|
1897
|
+
mainProtocolId: string | null;
|
|
1898
|
+
tvl: number;
|
|
1899
|
+
apr: number;
|
|
1900
|
+
maxApr: number | null;
|
|
1901
|
+
dailyRewards: number;
|
|
1902
|
+
tags: string[];
|
|
1903
|
+
lastCampaignCreatedAt: Date;
|
|
1904
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
1905
|
+
liveCampaigns: number;
|
|
1906
|
+
});
|
|
1904
1907
|
422: {
|
|
1905
1908
|
type: "validation";
|
|
1906
1909
|
on: string;
|
|
@@ -1920,6 +1923,7 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1920
1923
|
resolve: {};
|
|
1921
1924
|
schema: {};
|
|
1922
1925
|
standaloneSchema: {};
|
|
1926
|
+
response: {};
|
|
1923
1927
|
}, {
|
|
1924
1928
|
derive: {};
|
|
1925
1929
|
resolve: {};
|
|
@@ -1931,7 +1935,8 @@ export declare const OpportunityController: Elysia<"/opportunities", {
|
|
|
1931
1935
|
id: string;
|
|
1932
1936
|
};
|
|
1933
1937
|
cookie: unknown;
|
|
1934
|
-
response:
|
|
1938
|
+
response: unknown;
|
|
1935
1939
|
};
|
|
1936
1940
|
standaloneSchema: {};
|
|
1941
|
+
response: {};
|
|
1937
1942
|
}>;
|
|
@@ -111,7 +111,7 @@ export declare abstract class OpportunityRepository {
|
|
|
111
111
|
opportunityId: string;
|
|
112
112
|
startTimestamp: bigint;
|
|
113
113
|
endTimestamp: bigint;
|
|
114
|
-
params: import("@prisma/client/runtime/
|
|
114
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
115
115
|
description: string | null;
|
|
116
116
|
dailyRewards: number;
|
|
117
117
|
apr: number;
|
|
@@ -137,7 +137,7 @@ export declare abstract class OpportunityRepository {
|
|
|
137
137
|
processingStarted: bigint;
|
|
138
138
|
status: import("@package/databases").RunStatus;
|
|
139
139
|
error: string;
|
|
140
|
-
details: import("@prisma/client/runtime/
|
|
140
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
141
141
|
}[];
|
|
142
142
|
RewardToken: {
|
|
143
143
|
id: string;
|
|
@@ -276,7 +276,7 @@ export declare abstract class OpportunityRepository {
|
|
|
276
276
|
opportunityId: string;
|
|
277
277
|
startTimestamp: bigint;
|
|
278
278
|
endTimestamp: bigint;
|
|
279
|
-
params: import("@prisma/client/runtime/
|
|
279
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
280
280
|
description: string | null;
|
|
281
281
|
dailyRewards: number;
|
|
282
282
|
apr: number;
|
|
@@ -302,7 +302,7 @@ export declare abstract class OpportunityRepository {
|
|
|
302
302
|
processingStarted: bigint;
|
|
303
303
|
status: import("@package/databases").RunStatus;
|
|
304
304
|
error: string;
|
|
305
|
-
details: import("@prisma/client/runtime/
|
|
305
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
306
306
|
}[];
|
|
307
307
|
RewardToken: {
|
|
308
308
|
id: string;
|
|
@@ -437,7 +437,7 @@ export declare abstract class OpportunityRepository {
|
|
|
437
437
|
processingStarted: bigint;
|
|
438
438
|
status: import("@package/databases").RunStatus;
|
|
439
439
|
error: string;
|
|
440
|
-
details: import("@prisma/client/runtime/
|
|
440
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
441
441
|
}[];
|
|
442
442
|
ChildCampaigns: {
|
|
443
443
|
id: string;
|
|
@@ -526,7 +526,7 @@ export declare abstract class OpportunityRepository {
|
|
|
526
526
|
opportunityId: string;
|
|
527
527
|
startTimestamp: bigint;
|
|
528
528
|
endTimestamp: bigint;
|
|
529
|
-
params: import("@prisma/client/runtime/
|
|
529
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
530
530
|
description: string | null;
|
|
531
531
|
dailyRewards: number;
|
|
532
532
|
apr: number;
|
|
@@ -559,7 +559,7 @@ export declare abstract class OpportunityRepository {
|
|
|
559
559
|
processingStarted: bigint;
|
|
560
560
|
status: import("@package/databases").RunStatus;
|
|
561
561
|
error: string;
|
|
562
|
-
details: import("@prisma/client/runtime/
|
|
562
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
563
563
|
}[];
|
|
564
564
|
RewardToken: {
|
|
565
565
|
id: string;
|
|
@@ -697,7 +697,7 @@ export declare abstract class OpportunityRepository {
|
|
|
697
697
|
opportunityId: string;
|
|
698
698
|
startTimestamp: bigint;
|
|
699
699
|
endTimestamp: bigint;
|
|
700
|
-
params: import("@prisma/client/runtime/
|
|
700
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
701
701
|
description: string | null;
|
|
702
702
|
dailyRewards: number;
|
|
703
703
|
apr: number;
|
|
@@ -730,7 +730,7 @@ export declare abstract class OpportunityRepository {
|
|
|
730
730
|
processingStarted: bigint;
|
|
731
731
|
status: import("@package/databases").RunStatus;
|
|
732
732
|
error: string;
|
|
733
|
-
details: import("@prisma/client/runtime/
|
|
733
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
734
734
|
}[];
|
|
735
735
|
RewardToken: {
|
|
736
736
|
id: string;
|
|
@@ -971,7 +971,7 @@ export declare abstract class OpportunityRepository {
|
|
|
971
971
|
opportunityId: string;
|
|
972
972
|
startTimestamp: bigint;
|
|
973
973
|
endTimestamp: bigint;
|
|
974
|
-
params: import("@prisma/client/runtime/
|
|
974
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
975
975
|
description: string | null;
|
|
976
976
|
dailyRewards: number;
|
|
977
977
|
apr: number;
|
|
@@ -1004,7 +1004,7 @@ export declare abstract class OpportunityRepository {
|
|
|
1004
1004
|
processingStarted: bigint;
|
|
1005
1005
|
status: import("@package/databases").RunStatus;
|
|
1006
1006
|
error: string;
|
|
1007
|
-
details: import("@prisma/client/runtime/
|
|
1007
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
1008
1008
|
}[];
|
|
1009
1009
|
RewardToken: {
|
|
1010
1010
|
id: string;
|
|
@@ -1165,7 +1165,7 @@ export declare abstract class OpportunityRepository {
|
|
|
1165
1165
|
opportunityId: string;
|
|
1166
1166
|
startTimestamp: bigint;
|
|
1167
1167
|
endTimestamp: bigint;
|
|
1168
|
-
params: import("@prisma/client/runtime/
|
|
1168
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
1169
1169
|
description: string | null;
|
|
1170
1170
|
dailyRewards: number;
|
|
1171
1171
|
apr: number;
|
|
@@ -13,6 +13,7 @@ export declare const ParseController: Elysia<"/parse", {
|
|
|
13
13
|
macro: {};
|
|
14
14
|
macroFn: {};
|
|
15
15
|
parser: {};
|
|
16
|
+
response: {};
|
|
16
17
|
}, {
|
|
17
18
|
parse: {
|
|
18
19
|
post: {
|
|
@@ -56,9 +57,11 @@ export declare const ParseController: Elysia<"/parse", {
|
|
|
56
57
|
resolve: {};
|
|
57
58
|
schema: {};
|
|
58
59
|
standaloneSchema: {};
|
|
60
|
+
response: {};
|
|
59
61
|
}, {
|
|
60
62
|
derive: {};
|
|
61
63
|
resolve: {};
|
|
62
64
|
schema: {};
|
|
63
65
|
standaloneSchema: {};
|
|
66
|
+
response: {};
|
|
64
67
|
}>;
|