@merkl/api 0.10.390 → 0.10.392
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database/api/.generated/edge.js +9 -7
- package/dist/database/api/.generated/index-browser.js +4 -4
- package/dist/database/api/.generated/index.d.ts +3687 -491
- package/dist/database/api/.generated/index.js +9 -7
- package/dist/database/api/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/runtime/edge-esm.js +18 -18
- package/dist/database/api/.generated/runtime/edge.js +18 -18
- package/dist/database/api/.generated/runtime/index-browser.d.ts +1 -1
- package/dist/database/api/.generated/runtime/library.d.ts +107 -38
- package/dist/database/api/.generated/runtime/library.js +53 -53
- package/dist/database/api/.generated/runtime/react-native.js +26 -26
- package/dist/database/api/.generated/runtime/wasm.js +19 -19
- package/dist/database/api/.generated/wasm.js +4 -4
- package/dist/database/engine/.generated/edge.js +9 -7
- package/dist/database/engine/.generated/index-browser.js +4 -4
- package/dist/database/engine/.generated/index.d.ts +1891 -257
- package/dist/database/engine/.generated/index.js +9 -7
- package/dist/database/engine/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/package.json +1 -1
- package/dist/database/engine/.generated/runtime/edge-esm.js +18 -18
- package/dist/database/engine/.generated/runtime/edge.js +18 -18
- package/dist/database/engine/.generated/runtime/index-browser.d.ts +1 -1
- package/dist/database/engine/.generated/runtime/library.d.ts +107 -38
- package/dist/database/engine/.generated/runtime/library.js +53 -53
- package/dist/database/engine/.generated/runtime/react-native.js +26 -26
- package/dist/database/engine/.generated/runtime/wasm.js +19 -19
- package/dist/database/engine/.generated/wasm.js +4 -4
- package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +12 -2
- package/dist/src/backgroundJobs/jobs/health.d.ts +12 -2
- package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +3 -2
- package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +3 -2
- package/dist/src/backgroundJobs/jobs/sync.d.ts +12 -2
- package/dist/src/eden/index.d.ts +4021 -117
- package/dist/src/entities/opportunity.js +1 -1
- package/dist/src/hooks/checkQueryAddressValidity.d.ts +3 -2
- package/dist/src/hooks/checkQueryChainIdValidity.d.ts +3 -2
- package/dist/src/index.d.ts +1343 -49
- package/dist/src/internal/controllers/endingCampaigns.d.ts +12 -2
- package/dist/src/internal/controllers/unclaimed.d.ts +12 -2
- package/dist/src/jobs/etl/pendings.js +1 -1
- package/dist/src/jobs/etl/reward-breakdowns.js +55 -52
- package/dist/src/jobs/etl/rewards.js +37 -35
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +5 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.js +2 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +4 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +8 -0
- package/dist/src/libs/campaigns/campaignTypes/HyperdriveDynamicData.js +22 -19
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +66 -2
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +30 -2
- package/dist/src/modules/v4/boost/boost.controller.d.ts +12 -2
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +1 -1
- package/dist/src/modules/v4/bucket/bucket.service.js +5 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +78 -5
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +6 -6
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
- package/dist/src/modules/v4/chain/chain.controller.d.ts +39 -2
- package/dist/src/modules/v4/claims/claims.controller.d.ts +12 -2
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +39 -2
- package/dist/src/modules/v4/creator/creator.controller.d.ts +39 -2
- package/dist/src/modules/v4/dungeonKeeper/dungeonKeeper.controller.d.ts +3 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +31 -3
- package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +12 -2
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +31 -3
- package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +12 -2
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +21 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +118 -18
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +30 -30
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -12
- package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -1
- package/dist/src/modules/v4/opportunity/subservices/getHyperdriveMetadata.service.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/subservices/getHyperdriveMetadata.service.js +4 -0
- package/dist/src/modules/v4/price/price.controller.d.ts +48 -2
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +75 -2
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +0 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +3 -10
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +46 -9
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +5 -5
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +2 -2
- package/dist/src/modules/v4/reward/reward.controller.d.ts +111 -2
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.service.d.ts +18 -18
- package/dist/src/modules/v4/router.d.ts +973 -36
- package/dist/src/modules/v4/status/status.controller.d.ts +48 -2
- package/dist/src/modules/v4/token/token.controller.d.ts +75 -2
- package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +12 -2
- package/dist/src/modules/v4/user/user.controller.d.ts +90 -8
- package/dist/src/plugins/error-handling.plugin.d.ts +3 -2
- package/dist/src/plugins/logger.plugin.d.ts +3 -2
- package/dist/src/routes/v1/allowances.d.ts +12 -2
- package/dist/src/routes/v1/balances.d.ts +12 -2
- package/dist/src/routes/v1/prices.d.ts +12 -2
- package/dist/src/routes/v1/router.d.ts +39 -2
- package/dist/src/routes/v1/tokens.d.ts +12 -2
- package/dist/src/routes/v2/merkl.d.ts +12 -2
- package/dist/src/routes/v2/router.d.ts +12 -2
- package/dist/src/routes/v3/app.d.ts +12 -2
- package/dist/src/routes/v3/blacklist.d.ts +12 -2
- package/dist/src/routes/v3/campaign/delay.d.ts +12 -2
- package/dist/src/routes/v3/campaignClaims.d.ts +12 -2
- package/dist/src/routes/v3/campaignReport.d.ts +12 -2
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +12 -2
- package/dist/src/routes/v3/campaigns.d.ts +12 -2
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +12 -2
- package/dist/src/routes/v3/campaignsInfo.d.ts +12 -2
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +12 -2
- package/dist/src/routes/v3/claims.d.ts +12 -2
- package/dist/src/routes/v3/compoundV2.d.ts +12 -2
- package/dist/src/routes/v3/createCampaign.d.ts +12 -2
- package/dist/src/routes/v3/dolomite.d.ts +12 -2
- package/dist/src/routes/v3/euler.d.ts +12 -2
- package/dist/src/routes/v3/exports/campaigns.d.ts +12 -2
- package/dist/src/routes/v3/fetch.d.ts +12 -2
- package/dist/src/routes/v3/health.d.ts +12 -2
- package/dist/src/routes/v3/lostyield.d.ts +12 -2
- package/dist/src/routes/v3/merkl.d.ts +3 -2
- package/dist/src/routes/v3/morphoMarkets.d.ts +12 -2
- package/dist/src/routes/v3/morphoVaults.d.ts +12 -2
- package/dist/src/routes/v3/multiChainPositions.d.ts +12 -2
- package/dist/src/routes/v3/opportunity.d.ts +12 -2
- package/dist/src/routes/v3/overview.d.ts +12 -2
- package/dist/src/routes/v3/parse.d.ts +12 -2
- package/dist/src/routes/v3/payload.d.ts +12 -2
- package/dist/src/routes/v3/poolInfo.d.ts +12 -2
- package/dist/src/routes/v3/positions.d.ts +12 -2
- package/dist/src/routes/v3/radiant.d.ts +12 -2
- package/dist/src/routes/v3/recipients.d.ts +12 -2
- package/dist/src/routes/v3/rewards.d.ts +12 -2
- package/dist/src/routes/v3/rewardsReport.d.ts +12 -2
- package/dist/src/routes/v3/router.d.ts +328 -3
- package/dist/src/routes/v3/silo.d.ts +12 -2
- package/dist/src/routes/v3/token.d.ts +12 -2
- package/dist/src/routes/v3/tokenUnclaimed.d.ts +12 -2
- package/dist/src/routes/v3/twt/participants.d.ts +12 -2
- package/dist/src/routes/v3/uniswapv4.d.ts +12 -2
- package/dist/src/routes/v3/updates.d.ts +12 -2
- package/dist/src/routes/v3/userRewards.d.ts +12 -2
- package/dist/src/utils/decodeCalls.js +12 -3
- package/dist/src/utils/encodeCalls.js +20 -7
- package/dist/src/utils/error.d.ts +3 -2
- package/dist/src/utils/generateCardName.js +4 -0
- package/dist/src/utils/logger.d.ts +29 -5
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +24 -24
@@ -1,16 +1,17 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
export declare const DynamicDataController: Elysia<"/dynamic-data",
|
2
|
+
export declare const DynamicDataController: Elysia<"/dynamic-data", {
|
3
3
|
decorator: {};
|
4
4
|
store: {};
|
5
5
|
derive: {};
|
6
6
|
resolve: {};
|
7
7
|
}, {
|
8
|
-
|
8
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
9
9
|
error: {};
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
13
|
macroFn: {};
|
14
|
+
parser: {};
|
14
15
|
}, {
|
15
16
|
"dynamic-data": {
|
16
17
|
index: {
|
@@ -34,6 +35,15 @@ export declare const DynamicDataController: Elysia<"/dynamic-data", false, {
|
|
34
35
|
priceTargetToken: number;
|
35
36
|
type: string;
|
36
37
|
};
|
38
|
+
422: {
|
39
|
+
type: "validation";
|
40
|
+
on: string;
|
41
|
+
summary?: string;
|
42
|
+
message?: string;
|
43
|
+
found?: unknown;
|
44
|
+
property?: string;
|
45
|
+
expected?: string;
|
46
|
+
};
|
37
47
|
};
|
38
48
|
};
|
39
49
|
};
|
@@ -62,8 +72,8 @@ export declare const DynamicDataController: Elysia<"/dynamic-data", false, {
|
|
62
72
|
rewardTokenAddress?: string | undefined;
|
63
73
|
distributionChain?: {} | undefined;
|
64
74
|
opportunityIdentifier?: string | undefined;
|
65
|
-
type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | "ERC20TRANSFERS" | "ERC20LOGPROCESSOR" | "ERC20REBASELOGPROCESSOR" | "VEST" | "ERC20_FIX_APR" | "HYPERDRIVELOGPROCESSOR" | "HYPERDRIVELOGFIXPROCESSOR";
|
66
75
|
params: {};
|
76
|
+
type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | "ERC20TRANSFERS" | "ERC20LOGPROCESSOR" | "ERC20REBASELOGPROCESSOR" | "VEST" | "ERC20_FIX_APR" | "HYPERDRIVELOGPROCESSOR" | "HYPERDRIVELOGFIXPROCESSOR";
|
67
77
|
computeChainId: number;
|
68
78
|
};
|
69
79
|
params: {};
|
@@ -73,6 +83,15 @@ export declare const DynamicDataController: Elysia<"/dynamic-data", false, {
|
|
73
83
|
};
|
74
84
|
response: {
|
75
85
|
200: any[];
|
86
|
+
422: {
|
87
|
+
type: "validation";
|
88
|
+
on: string;
|
89
|
+
summary?: string;
|
90
|
+
message?: string;
|
91
|
+
found?: unknown;
|
92
|
+
property?: string;
|
93
|
+
expected?: string;
|
94
|
+
};
|
76
95
|
};
|
77
96
|
};
|
78
97
|
};
|
@@ -106,6 +125,15 @@ export declare const DynamicDataController: Elysia<"/dynamic-data", false, {
|
|
106
125
|
};
|
107
126
|
response: {
|
108
127
|
200: any[];
|
128
|
+
422: {
|
129
|
+
type: "validation";
|
130
|
+
on: string;
|
131
|
+
summary?: string;
|
132
|
+
message?: string;
|
133
|
+
found?: unknown;
|
134
|
+
property?: string;
|
135
|
+
expected?: string;
|
136
|
+
};
|
109
137
|
};
|
110
138
|
};
|
111
139
|
};
|
@@ -6,9 +6,9 @@ export declare abstract class EnsoService {
|
|
6
6
|
static getSlug(protocolId: ProtocolId | string): EnsoSlug | undefined;
|
7
7
|
static getProtocolId(slug: EnsoSlug | string): ProtocolId | undefined;
|
8
8
|
static getCompatibleProtocols(query: GetParticipateProtocolsQuery): Promise<({
|
9
|
+
description: string;
|
9
10
|
name: string;
|
10
11
|
url: string;
|
11
|
-
description: string;
|
12
12
|
id: string;
|
13
13
|
tags: string[];
|
14
14
|
icon: string;
|
@@ -1,16 +1,17 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
export declare const ExplorerController: Elysia<"/explorers",
|
2
|
+
export declare const ExplorerController: Elysia<"/explorers", {
|
3
3
|
decorator: {};
|
4
4
|
store: {};
|
5
5
|
derive: {};
|
6
6
|
resolve: {};
|
7
7
|
}, {
|
8
|
-
|
8
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
9
9
|
error: {};
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
13
|
macroFn: {};
|
14
|
+
parser: {};
|
14
15
|
}, {
|
15
16
|
explorers: {
|
16
17
|
post: {
|
@@ -31,6 +32,15 @@ export declare const ExplorerController: Elysia<"/explorers", false, {
|
|
31
32
|
id: string;
|
32
33
|
chainId: number;
|
33
34
|
};
|
35
|
+
422: {
|
36
|
+
type: "validation";
|
37
|
+
on: string;
|
38
|
+
summary?: string;
|
39
|
+
message?: string;
|
40
|
+
found?: unknown;
|
41
|
+
property?: string;
|
42
|
+
expected?: string;
|
43
|
+
};
|
34
44
|
};
|
35
45
|
};
|
36
46
|
};
|
@@ -1,16 +1,17 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
export declare const InteractionController: Elysia<"/interaction",
|
2
|
+
export declare const InteractionController: Elysia<"/interaction", {
|
3
3
|
decorator: {};
|
4
4
|
store: {};
|
5
5
|
derive: {};
|
6
6
|
resolve: {};
|
7
7
|
}, {
|
8
|
-
|
8
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
9
9
|
error: {};
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
13
|
macroFn: {};
|
14
|
+
parser: {};
|
14
15
|
}, {
|
15
16
|
interaction: {
|
16
17
|
targets: {
|
@@ -25,6 +26,15 @@ export declare const InteractionController: Elysia<"/interaction", false, {
|
|
25
26
|
headers: unknown;
|
26
27
|
response: {
|
27
28
|
200: import("./interaction.model").InteractionTarget[];
|
29
|
+
422: {
|
30
|
+
type: "validation";
|
31
|
+
on: string;
|
32
|
+
summary?: string;
|
33
|
+
message?: string;
|
34
|
+
found?: unknown;
|
35
|
+
property?: string;
|
36
|
+
expected?: string;
|
37
|
+
};
|
28
38
|
};
|
29
39
|
};
|
30
40
|
};
|
@@ -41,13 +51,22 @@ export declare const InteractionController: Elysia<"/interaction", false, {
|
|
41
51
|
headers: unknown;
|
42
52
|
response: {
|
43
53
|
200: ({
|
54
|
+
description: string;
|
44
55
|
name: string;
|
45
56
|
url: string;
|
46
|
-
description: string;
|
47
57
|
id: string;
|
48
58
|
tags: string[];
|
49
59
|
icon: string;
|
50
60
|
} & {})[];
|
61
|
+
422: {
|
62
|
+
type: "validation";
|
63
|
+
on: string;
|
64
|
+
summary?: string;
|
65
|
+
message?: string;
|
66
|
+
found?: unknown;
|
67
|
+
property?: string;
|
68
|
+
expected?: string;
|
69
|
+
};
|
51
70
|
};
|
52
71
|
};
|
53
72
|
};
|
@@ -76,6 +95,15 @@ export declare const InteractionController: Elysia<"/interaction", false, {
|
|
76
95
|
transaction: import("./interaction.model").UserTransaction;
|
77
96
|
approval: import("./interaction.model").UserTransaction;
|
78
97
|
} | undefined;
|
98
|
+
422: {
|
99
|
+
type: "validation";
|
100
|
+
on: string;
|
101
|
+
summary?: string;
|
102
|
+
message?: string;
|
103
|
+
found?: unknown;
|
104
|
+
property?: string;
|
105
|
+
expected?: string;
|
106
|
+
};
|
79
107
|
};
|
80
108
|
};
|
81
109
|
};
|
@@ -1,16 +1,17 @@
|
|
1
1
|
import { Elysia } from "elysia";
|
2
|
-
export declare const LiquidityController: Elysia<"/liquidity",
|
2
|
+
export declare const LiquidityController: Elysia<"/liquidity", {
|
3
3
|
decorator: {};
|
4
4
|
store: {};
|
5
5
|
derive: {};
|
6
6
|
resolve: {};
|
7
7
|
}, {
|
8
|
-
|
8
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
9
9
|
error: {};
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
13
|
macroFn: {};
|
14
|
+
parser: {};
|
14
15
|
}, {
|
15
16
|
liquidity: {
|
16
17
|
index: {
|
@@ -24,6 +25,15 @@ export declare const LiquidityController: Elysia<"/liquidity", false, {
|
|
24
25
|
headers: unknown;
|
25
26
|
response: {
|
26
27
|
200: import("./liquidity.model").PositionT[];
|
28
|
+
422: {
|
29
|
+
type: "validation";
|
30
|
+
on: string;
|
31
|
+
summary?: string;
|
32
|
+
message?: string;
|
33
|
+
found?: unknown;
|
34
|
+
property?: string;
|
35
|
+
expected?: string;
|
36
|
+
};
|
27
37
|
};
|
28
38
|
};
|
29
39
|
};
|
@@ -1,16 +1,17 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
export declare const MerklRootController: Elysia<"/roots",
|
2
|
+
export declare const MerklRootController: Elysia<"/roots", {
|
3
3
|
decorator: {};
|
4
4
|
store: {};
|
5
5
|
derive: {};
|
6
6
|
resolve: {};
|
7
7
|
}, {
|
8
|
-
|
8
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
9
9
|
error: {};
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
13
|
macroFn: {};
|
14
|
+
parser: {};
|
14
15
|
}, {
|
15
16
|
roots: {
|
16
17
|
index: {
|
@@ -30,6 +31,15 @@ export declare const MerklRootController: Elysia<"/roots", false, {
|
|
30
31
|
root: string;
|
31
32
|
epoch: number;
|
32
33
|
}[];
|
34
|
+
422: {
|
35
|
+
type: "validation";
|
36
|
+
on: string;
|
37
|
+
summary?: string;
|
38
|
+
message?: string;
|
39
|
+
found?: unknown;
|
40
|
+
property?: string;
|
41
|
+
expected?: string;
|
42
|
+
};
|
33
43
|
};
|
34
44
|
};
|
35
45
|
};
|
@@ -76,6 +86,15 @@ export declare const MerklRootController: Elysia<"/roots", false, {
|
|
76
86
|
root: string;
|
77
87
|
epoch: number;
|
78
88
|
};
|
89
|
+
422: {
|
90
|
+
type: "validation";
|
91
|
+
on: string;
|
92
|
+
summary?: string;
|
93
|
+
message?: string;
|
94
|
+
found?: unknown;
|
95
|
+
property?: string;
|
96
|
+
expected?: string;
|
97
|
+
};
|
79
98
|
};
|
80
99
|
};
|
81
100
|
};
|
@@ -1,16 +1,17 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
export declare const OpportunityController: Elysia<"/opportunities",
|
2
|
+
export declare const OpportunityController: Elysia<"/opportunities", {
|
3
3
|
decorator: {};
|
4
4
|
store: {};
|
5
5
|
derive: {};
|
6
6
|
resolve: {};
|
7
7
|
}, {
|
8
|
-
|
8
|
+
typebox: import("@sinclair/typebox").TModule<{}>;
|
9
9
|
error: {};
|
10
10
|
}, {
|
11
11
|
schema: {};
|
12
12
|
macro: {};
|
13
13
|
macroFn: {};
|
14
|
+
parser: {};
|
14
15
|
}, {
|
15
16
|
opportunities: {
|
16
17
|
index: {
|
@@ -38,8 +39,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
38
39
|
};
|
39
40
|
response: {
|
40
41
|
200: {
|
41
|
-
name: string;
|
42
42
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
43
|
+
name: string;
|
43
44
|
id: string;
|
44
45
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
45
46
|
tags: string[];
|
@@ -52,6 +53,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
52
53
|
apr: number;
|
53
54
|
dailyRewards: number;
|
54
55
|
} | null;
|
56
|
+
422: {
|
57
|
+
type: "validation";
|
58
|
+
on: string;
|
59
|
+
summary?: string;
|
60
|
+
message?: string;
|
61
|
+
found?: unknown;
|
62
|
+
property?: string;
|
63
|
+
expected?: string;
|
64
|
+
};
|
55
65
|
};
|
56
66
|
};
|
57
67
|
};
|
@@ -95,6 +105,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
95
105
|
depositUrl: any;
|
96
106
|
tags: string[];
|
97
107
|
};
|
108
|
+
422: {
|
109
|
+
type: "validation";
|
110
|
+
on: string;
|
111
|
+
summary?: string;
|
112
|
+
message?: string;
|
113
|
+
found?: unknown;
|
114
|
+
property?: string;
|
115
|
+
expected?: string;
|
116
|
+
};
|
98
117
|
};
|
99
118
|
};
|
100
119
|
};
|
@@ -107,10 +126,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
107
126
|
params: {};
|
108
127
|
query: {
|
109
128
|
sort?: string | undefined;
|
129
|
+
items?: number | undefined;
|
110
130
|
name?: string | undefined;
|
111
131
|
tokens?: string | undefined;
|
112
132
|
status?: string | undefined;
|
113
|
-
items?: number | undefined;
|
114
133
|
tags?: string | undefined;
|
115
134
|
page?: number | undefined;
|
116
135
|
chainId?: string | undefined;
|
@@ -194,15 +213,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
194
213
|
icon: string;
|
195
214
|
};
|
196
215
|
protocol: {
|
216
|
+
description: string;
|
197
217
|
name: string;
|
198
218
|
url: string;
|
199
|
-
description: string;
|
200
219
|
id: string;
|
201
220
|
tags: string[];
|
202
221
|
icon: string;
|
203
222
|
} | undefined;
|
204
|
-
name: string;
|
205
223
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
224
|
+
name: string;
|
206
225
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
207
226
|
tags: string[];
|
208
227
|
identifier: string;
|
@@ -211,6 +230,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
211
230
|
tvl: number;
|
212
231
|
dailyRewards: number;
|
213
232
|
}[];
|
233
|
+
422: {
|
234
|
+
type: "validation";
|
235
|
+
on: string;
|
236
|
+
summary?: string;
|
237
|
+
message?: string;
|
238
|
+
found?: unknown;
|
239
|
+
property?: string;
|
240
|
+
expected?: string;
|
241
|
+
};
|
214
242
|
};
|
215
243
|
};
|
216
244
|
};
|
@@ -223,10 +251,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
223
251
|
params: {};
|
224
252
|
query: {
|
225
253
|
sort?: string | undefined;
|
254
|
+
items?: number | undefined;
|
226
255
|
name?: string | undefined;
|
227
256
|
tokens?: string | undefined;
|
228
257
|
status?: string | undefined;
|
229
|
-
items?: number | undefined;
|
230
258
|
tags?: string | undefined;
|
231
259
|
page?: number | undefined;
|
232
260
|
chainId?: string | undefined;
|
@@ -240,6 +268,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
240
268
|
headers: unknown;
|
241
269
|
response: {
|
242
270
|
200: number;
|
271
|
+
422: {
|
272
|
+
type: "validation";
|
273
|
+
on: string;
|
274
|
+
summary?: string;
|
275
|
+
message?: string;
|
276
|
+
found?: unknown;
|
277
|
+
property?: string;
|
278
|
+
expected?: string;
|
279
|
+
};
|
243
280
|
};
|
244
281
|
};
|
245
282
|
};
|
@@ -259,9 +296,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
259
296
|
response: {
|
260
297
|
200: {
|
261
298
|
protocol?: {
|
299
|
+
description: string;
|
262
300
|
name: string;
|
263
301
|
url: string;
|
264
|
-
description: string;
|
265
302
|
id: string;
|
266
303
|
tags: string[];
|
267
304
|
icon: string;
|
@@ -313,8 +350,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
313
350
|
dailyRewardsRecordId: string;
|
314
351
|
}[];
|
315
352
|
} | undefined;
|
316
|
-
name: string;
|
317
353
|
type: string;
|
354
|
+
name: string;
|
318
355
|
tokens: {
|
319
356
|
price?: number | null | undefined;
|
320
357
|
symbol: string;
|
@@ -351,6 +388,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
351
388
|
info: string;
|
352
389
|
httpCode: number;
|
353
390
|
};
|
391
|
+
422: {
|
392
|
+
type: "validation";
|
393
|
+
on: string;
|
394
|
+
summary?: string;
|
395
|
+
message?: string;
|
396
|
+
found?: unknown;
|
397
|
+
property?: string;
|
398
|
+
expected?: string;
|
399
|
+
};
|
354
400
|
};
|
355
401
|
};
|
356
402
|
};
|
@@ -383,9 +429,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
383
429
|
response: {
|
384
430
|
200: ({
|
385
431
|
protocol?: {
|
432
|
+
description: string;
|
386
433
|
name: string;
|
387
434
|
url: string;
|
388
|
-
description: string;
|
389
435
|
id: string;
|
390
436
|
tags: string[];
|
391
437
|
icon: string;
|
@@ -437,8 +483,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
437
483
|
dailyRewardsRecordId: string;
|
438
484
|
}[];
|
439
485
|
} | undefined;
|
440
|
-
name: string;
|
441
486
|
type: string;
|
487
|
+
name: string;
|
442
488
|
tokens: {
|
443
489
|
price?: number | null | undefined;
|
444
490
|
symbol: string;
|
@@ -522,6 +568,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
522
568
|
info: string;
|
523
569
|
httpCode: number;
|
524
570
|
};
|
571
|
+
422: {
|
572
|
+
type: "validation";
|
573
|
+
on: string;
|
574
|
+
summary?: string;
|
575
|
+
message?: string;
|
576
|
+
found?: unknown;
|
577
|
+
property?: string;
|
578
|
+
expected?: string;
|
579
|
+
};
|
525
580
|
};
|
526
581
|
};
|
527
582
|
};
|
@@ -542,9 +597,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
542
597
|
response: {
|
543
598
|
200: {
|
544
599
|
protocol?: {
|
600
|
+
description: string;
|
545
601
|
name: string;
|
546
602
|
url: string;
|
547
|
-
description: string;
|
548
603
|
id: string;
|
549
604
|
tags: string[];
|
550
605
|
icon: string;
|
@@ -596,8 +651,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
596
651
|
dailyRewardsRecordId: string;
|
597
652
|
}[];
|
598
653
|
} | undefined;
|
599
|
-
name: string;
|
600
654
|
type: string;
|
655
|
+
name: string;
|
601
656
|
tokens: {
|
602
657
|
price?: number | null | undefined;
|
603
658
|
symbol: string;
|
@@ -638,9 +693,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
638
693
|
id: number;
|
639
694
|
icon: string;
|
640
695
|
} | undefined;
|
696
|
+
params: any;
|
641
697
|
type: string;
|
642
698
|
id: string;
|
643
|
-
params: any;
|
644
699
|
subType: number | null;
|
645
700
|
chain: {
|
646
701
|
name: string;
|
@@ -679,6 +734,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
679
734
|
info: string;
|
680
735
|
httpCode: number;
|
681
736
|
};
|
737
|
+
422: {
|
738
|
+
type: "validation";
|
739
|
+
on: string;
|
740
|
+
summary?: string;
|
741
|
+
message?: string;
|
742
|
+
found?: unknown;
|
743
|
+
property?: string;
|
744
|
+
expected?: string;
|
745
|
+
};
|
682
746
|
};
|
683
747
|
};
|
684
748
|
};
|
@@ -695,10 +759,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
695
759
|
};
|
696
760
|
query: {
|
697
761
|
sort?: string | undefined;
|
762
|
+
items?: number | undefined;
|
698
763
|
name?: string | undefined;
|
699
764
|
tokens?: string | undefined;
|
700
765
|
status?: string | undefined;
|
701
|
-
items?: number | undefined;
|
702
766
|
tags?: string | undefined;
|
703
767
|
page?: number | undefined;
|
704
768
|
chainId?: string | undefined;
|
@@ -714,6 +778,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
714
778
|
200: {
|
715
779
|
sum: string;
|
716
780
|
};
|
781
|
+
422: {
|
782
|
+
type: "validation";
|
783
|
+
on: string;
|
784
|
+
summary?: string;
|
785
|
+
message?: string;
|
786
|
+
found?: unknown;
|
787
|
+
property?: string;
|
788
|
+
expected?: string;
|
789
|
+
};
|
717
790
|
};
|
718
791
|
};
|
719
792
|
};
|
@@ -731,10 +804,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
731
804
|
};
|
732
805
|
query: {
|
733
806
|
sort?: string | undefined;
|
807
|
+
items?: number | undefined;
|
734
808
|
name?: string | undefined;
|
735
809
|
tokens?: string | undefined;
|
736
810
|
status?: string | undefined;
|
737
|
-
items?: number | undefined;
|
738
811
|
tags?: string | undefined;
|
739
812
|
page?: number | undefined;
|
740
813
|
chainId?: string | undefined;
|
@@ -750,6 +823,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
750
823
|
200: {
|
751
824
|
max: string;
|
752
825
|
};
|
826
|
+
422: {
|
827
|
+
type: "validation";
|
828
|
+
on: string;
|
829
|
+
summary?: string;
|
830
|
+
message?: string;
|
831
|
+
found?: unknown;
|
832
|
+
property?: string;
|
833
|
+
expected?: string;
|
834
|
+
};
|
753
835
|
};
|
754
836
|
};
|
755
837
|
};
|
@@ -768,10 +850,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
768
850
|
};
|
769
851
|
query: {
|
770
852
|
sort?: string | undefined;
|
853
|
+
items?: number | undefined;
|
771
854
|
name?: string | undefined;
|
772
855
|
tokens?: string | undefined;
|
773
856
|
status?: string | undefined;
|
774
|
-
items?: number | undefined;
|
775
857
|
tags?: string | undefined;
|
776
858
|
page?: number | undefined;
|
777
859
|
chainId?: string | undefined;
|
@@ -787,6 +869,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
787
869
|
200: {
|
788
870
|
min: string;
|
789
871
|
};
|
872
|
+
422: {
|
873
|
+
type: "validation";
|
874
|
+
on: string;
|
875
|
+
summary?: string;
|
876
|
+
message?: string;
|
877
|
+
found?: unknown;
|
878
|
+
property?: string;
|
879
|
+
expected?: string;
|
880
|
+
};
|
790
881
|
};
|
791
882
|
};
|
792
883
|
};
|
@@ -810,8 +901,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
810
901
|
};
|
811
902
|
response: {
|
812
903
|
200: {
|
813
|
-
name: string;
|
814
904
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
905
|
+
name: string;
|
815
906
|
id: string;
|
816
907
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
817
908
|
tags: string[];
|
@@ -824,6 +915,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
824
915
|
apr: number;
|
825
916
|
dailyRewards: number;
|
826
917
|
};
|
918
|
+
422: {
|
919
|
+
type: "validation";
|
920
|
+
on: string;
|
921
|
+
summary?: string;
|
922
|
+
message?: string;
|
923
|
+
found?: unknown;
|
924
|
+
property?: string;
|
925
|
+
expected?: string;
|
926
|
+
};
|
827
927
|
};
|
828
928
|
};
|
829
929
|
};
|
@@ -133,6 +133,7 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
|
|
133
133
|
}>, import("@sinclair/typebox").TNull]>>;
|
134
134
|
}>;
|
135
135
|
export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/typebox").TObject<{
|
136
|
+
type: import("@sinclair/typebox").TString;
|
136
137
|
protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
137
138
|
id: import("@sinclair/typebox").TString;
|
138
139
|
name: import("@sinclair/typebox").TString;
|
@@ -142,7 +143,6 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
|
|
142
143
|
url: import("@sinclair/typebox").TString;
|
143
144
|
}>, import("@sinclair/typebox").TNull]>>;
|
144
145
|
name: import("@sinclair/typebox").TString;
|
145
|
-
type: import("@sinclair/typebox").TString;
|
146
146
|
tokens: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
147
147
|
id: import("@sinclair/typebox").TString;
|
148
148
|
name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|