@merkl/api 0.10.391 → 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/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/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
@@ -118,7 +118,6 @@ export var zkSyncCampaigns;
|
|
118
118
|
zkSyncCampaigns["ZKSwap_ZF_ETH"] = "ZKSwap Finance ZF/ETH v2 0.1pct ZKSwap Finance ZF/ETH v2 0xd33a17c883d5aa79470cd2522abb213dc4017e01";
|
119
119
|
zkSyncCampaigns["raffle_jumper"] = "raffle jumper 31/01/25";
|
120
120
|
zkSyncCampaigns["airdrop_jumper"] = "airdrop jumper 31/01/25";
|
121
|
-
zkSyncCampaigns["airdrop_layerswap"] = "airdrop layerswap 31/01/25";
|
122
121
|
zkSyncCampaigns["Syncswap_USN_USDCe_Range"] = "SyncSwap USN/USDC.e Range Pool 0xe6ed575d9627942893f12bf9c2cc3c47cd11d002";
|
123
122
|
zkSyncCampaigns["Syncswap_USN_sUSN_Range"] = "SyncSwap USN/sUSN Range Pool 0x12bf23c2fe929c23ab375199efad425e70c0ece1";
|
124
123
|
zkSyncCampaigns["Izumi_Finance_WETH_WBTC"] = "Izumi Finance WETH/WBTC 0xee0f2c77b0fd3daaa7fb332c8f6589f73b29ecfc";
|
@@ -786,7 +785,7 @@ const ModeInterfaceCampaigns = {
|
|
786
785
|
blacklist: [],
|
787
786
|
forwarders: [],
|
788
787
|
subCampaignType: CompoundSubCampaignType.supply,
|
789
|
-
compFork: CompFork.
|
788
|
+
compFork: CompFork.LayerBank,
|
790
789
|
targetToken: "0xe855B8018C22A05F84724e93693caf166912aDD5",
|
791
790
|
},
|
792
791
|
[modeCampaigns.Layerbank_Supply_iUSDC_Mode]: {
|
@@ -797,7 +796,7 @@ const ModeInterfaceCampaigns = {
|
|
797
796
|
blacklist: [],
|
798
797
|
forwarders: [],
|
799
798
|
subCampaignType: CompoundSubCampaignType.supply,
|
800
|
-
compFork: CompFork.
|
799
|
+
compFork: CompFork.LayerBank,
|
801
800
|
targetToken: "0xBa6e89c9cDa3d72B7D8D5B05547a29f9BdBDBaec",
|
802
801
|
},
|
803
802
|
[modeCampaigns.Layerbank_Supply_iUSDT_Mode]: {
|
@@ -808,7 +807,7 @@ const ModeInterfaceCampaigns = {
|
|
808
807
|
blacklist: [],
|
809
808
|
forwarders: [],
|
810
809
|
subCampaignType: CompoundSubCampaignType.supply,
|
811
|
-
compFork: CompFork.
|
810
|
+
compFork: CompFork.LayerBank,
|
812
811
|
targetToken: "0xC5b9CB1A26Fb1f9b8e26D8D357Cb950f53Df4959",
|
813
812
|
},
|
814
813
|
[modeCampaigns.Meson_Izumi_WETH_mBTC_Mode]: {
|
@@ -1144,12 +1143,6 @@ const ModeInterfaceCampaigns = {
|
|
1144
1143
|
},
|
1145
1144
|
};
|
1146
1145
|
const ZkSyncInterfaceCampaigns = {
|
1147
|
-
[zkSyncCampaigns.airdrop_layerswap]: {
|
1148
|
-
campaignType: Campaign.JSON_AIRDROP,
|
1149
|
-
computeChainId: ChainId.ZKSYNC,
|
1150
|
-
hooks: [],
|
1151
|
-
jsonUrl: "https://angle-blog.infura-ipfs.io/ipfs/QmZg5cJDHvzmMjAz9TCA7xLRSJHerHk4mepQeYXHpLcKme",
|
1152
|
-
}, // amount needs to be exactly 8504860000000000550976
|
1153
1146
|
[zkSyncCampaigns.airdrop_jumper]: {
|
1154
1147
|
campaignType: Campaign.JSON_AIRDROP,
|
1155
1148
|
computeChainId: ChainId.ZKSYNC,
|
@@ -1,16 +1,17 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
export declare const ProtocolController: Elysia<"/protocols",
|
2
|
+
export declare const ProtocolController: Elysia<"/protocols", {
|
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
|
protocols: {
|
16
17
|
index: {
|
@@ -18,9 +19,9 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
18
19
|
body: unknown;
|
19
20
|
params: {};
|
20
21
|
query: {
|
22
|
+
items?: number | undefined;
|
21
23
|
name?: string | undefined;
|
22
24
|
id?: string | undefined;
|
23
|
-
items?: number | undefined;
|
24
25
|
tags?: string[] | undefined;
|
25
26
|
page?: number | undefined;
|
26
27
|
opportunityTag?: string | undefined;
|
@@ -28,13 +29,22 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
28
29
|
headers: unknown;
|
29
30
|
response: {
|
30
31
|
200: ({
|
32
|
+
description: string;
|
31
33
|
name: string;
|
32
34
|
url: string;
|
33
|
-
description: string;
|
34
35
|
id: string;
|
35
36
|
tags: string[];
|
36
37
|
icon: string;
|
37
38
|
} & {})[];
|
39
|
+
422: {
|
40
|
+
type: "validation";
|
41
|
+
on: string;
|
42
|
+
summary?: string;
|
43
|
+
message?: string;
|
44
|
+
found?: unknown;
|
45
|
+
property?: string;
|
46
|
+
expected?: string;
|
47
|
+
};
|
38
48
|
};
|
39
49
|
};
|
40
50
|
};
|
@@ -65,13 +75,22 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
65
75
|
headers: unknown;
|
66
76
|
response: {
|
67
77
|
200: {
|
78
|
+
description: string;
|
68
79
|
name: string;
|
69
80
|
url: string;
|
70
|
-
description: string;
|
71
81
|
id: string;
|
72
82
|
tags: string[];
|
73
83
|
icon: string;
|
74
84
|
} | null;
|
85
|
+
422: {
|
86
|
+
type: "validation";
|
87
|
+
on: string;
|
88
|
+
summary?: string;
|
89
|
+
message?: string;
|
90
|
+
found?: unknown;
|
91
|
+
property?: string;
|
92
|
+
expected?: string;
|
93
|
+
};
|
75
94
|
};
|
76
95
|
};
|
77
96
|
};
|
@@ -81,9 +100,9 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
81
100
|
":id": {
|
82
101
|
patch: {
|
83
102
|
body: {
|
103
|
+
description?: string | undefined;
|
84
104
|
name?: string | undefined;
|
85
105
|
url?: string | undefined;
|
86
|
-
description?: string | undefined;
|
87
106
|
icon?: string | undefined;
|
88
107
|
};
|
89
108
|
params: {
|
@@ -95,13 +114,22 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
95
114
|
};
|
96
115
|
response: {
|
97
116
|
200: {
|
117
|
+
description: string;
|
98
118
|
name: string;
|
99
119
|
url: string;
|
100
|
-
description: string;
|
101
120
|
id: string;
|
102
121
|
tags: string[];
|
103
122
|
icon: string;
|
104
123
|
};
|
124
|
+
422: {
|
125
|
+
type: "validation";
|
126
|
+
on: string;
|
127
|
+
summary?: string;
|
128
|
+
message?: string;
|
129
|
+
found?: unknown;
|
130
|
+
property?: string;
|
131
|
+
expected?: string;
|
132
|
+
};
|
105
133
|
};
|
106
134
|
};
|
107
135
|
};
|
@@ -111,9 +139,9 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
111
139
|
index: {
|
112
140
|
post: {
|
113
141
|
body: {
|
142
|
+
description: string;
|
114
143
|
name: string;
|
115
144
|
url: string;
|
116
|
-
description: string;
|
117
145
|
id: string;
|
118
146
|
tags: string[];
|
119
147
|
icon: string;
|
@@ -125,13 +153,22 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
125
153
|
};
|
126
154
|
response: {
|
127
155
|
200: {
|
156
|
+
description: string;
|
128
157
|
name: string;
|
129
158
|
url: string;
|
130
|
-
description: string;
|
131
159
|
id: string;
|
132
160
|
tags: string[];
|
133
161
|
icon: string;
|
134
162
|
};
|
163
|
+
422: {
|
164
|
+
type: "validation";
|
165
|
+
on: string;
|
166
|
+
summary?: string;
|
167
|
+
message?: string;
|
168
|
+
found?: unknown;
|
169
|
+
property?: string;
|
170
|
+
expected?: string;
|
171
|
+
};
|
135
172
|
};
|
136
173
|
};
|
137
174
|
};
|
@@ -2,42 +2,42 @@ import type { CreateProtocolModel, GetProtocolsQueryModel, UpdateProtocolModel }
|
|
2
2
|
export declare abstract class ProtocolRepository {
|
3
3
|
#private;
|
4
4
|
static create(data: CreateProtocolModel): Promise<{
|
5
|
+
description: string;
|
5
6
|
name: string;
|
6
7
|
url: string;
|
7
|
-
description: string;
|
8
8
|
id: string;
|
9
9
|
tags: string[];
|
10
10
|
icon: string;
|
11
11
|
}>;
|
12
12
|
static read(type: string): Promise<{
|
13
|
+
description: string;
|
13
14
|
name: string;
|
14
15
|
url: string;
|
15
|
-
description: string;
|
16
16
|
id: string;
|
17
17
|
tags: string[];
|
18
18
|
icon: string;
|
19
19
|
} | null>;
|
20
20
|
static findManyByName(name: string): Promise<{
|
21
|
+
description: string;
|
21
22
|
name: string;
|
22
23
|
url: string;
|
23
|
-
description: string;
|
24
24
|
id: string;
|
25
25
|
tags: string[];
|
26
26
|
icon: string;
|
27
27
|
}[]>;
|
28
28
|
static findMany(query: GetProtocolsQueryModel): Promise<{
|
29
|
+
description: string;
|
29
30
|
name: string;
|
30
31
|
url: string;
|
31
|
-
description: string;
|
32
32
|
id: string;
|
33
33
|
tags: string[];
|
34
34
|
icon: string;
|
35
35
|
}[]>;
|
36
36
|
static countMany(query: GetProtocolsQueryModel): Promise<number>;
|
37
37
|
static update(id: string, data: UpdateProtocolModel): Promise<{
|
38
|
+
description: string;
|
38
39
|
name: string;
|
39
40
|
url: string;
|
40
|
-
description: string;
|
41
41
|
id: string;
|
42
42
|
tags: string[];
|
43
43
|
icon: string;
|
@@ -7,17 +7,17 @@ export declare abstract class ProtocolService {
|
|
7
7
|
static getFromId(id: ProtocolId | string): Promise<Protocol["model"] | null>;
|
8
8
|
static getFromName(name: string): Promise<Protocol["model"] | null>;
|
9
9
|
static create(data: CreateProtocolModel): Promise<{
|
10
|
+
description: string;
|
10
11
|
name: string;
|
11
12
|
url: string;
|
12
|
-
description: string;
|
13
13
|
id: string;
|
14
14
|
tags: string[];
|
15
15
|
icon: string;
|
16
16
|
}>;
|
17
17
|
static update(id: string, data: UpdateProtocolModel): Promise<{
|
18
|
+
description: string;
|
18
19
|
name: string;
|
19
20
|
url: string;
|
20
|
-
description: string;
|
21
21
|
id: string;
|
22
22
|
tags: string[];
|
23
23
|
icon: string;
|
@@ -1,16 +1,17 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
export declare const RewardController: Elysia<"/rewards",
|
2
|
+
export declare const RewardController: Elysia<"/rewards", {
|
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
|
rewards: {
|
16
17
|
index: {
|
@@ -26,6 +27,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
26
27
|
headers: unknown;
|
27
28
|
response: {
|
28
29
|
200: import("./reward.model").BreakdownForCampaignsRaw[];
|
30
|
+
422: {
|
31
|
+
type: "validation";
|
32
|
+
on: string;
|
33
|
+
summary?: string;
|
34
|
+
message?: string;
|
35
|
+
found?: unknown;
|
36
|
+
property?: string;
|
37
|
+
expected?: string;
|
38
|
+
};
|
29
39
|
};
|
30
40
|
};
|
31
41
|
};
|
@@ -46,6 +56,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
46
56
|
campaignId: string;
|
47
57
|
amount: bigint;
|
48
58
|
};
|
59
|
+
422: {
|
60
|
+
type: "validation";
|
61
|
+
on: string;
|
62
|
+
summary?: string;
|
63
|
+
message?: string;
|
64
|
+
found?: unknown;
|
65
|
+
property?: string;
|
66
|
+
expected?: string;
|
67
|
+
};
|
49
68
|
};
|
50
69
|
};
|
51
70
|
};
|
@@ -65,6 +84,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
65
84
|
200: {
|
66
85
|
count: number;
|
67
86
|
};
|
87
|
+
422: {
|
88
|
+
type: "validation";
|
89
|
+
on: string;
|
90
|
+
summary?: string;
|
91
|
+
message?: string;
|
92
|
+
found?: unknown;
|
93
|
+
property?: string;
|
94
|
+
expected?: string;
|
95
|
+
};
|
68
96
|
};
|
69
97
|
};
|
70
98
|
};
|
@@ -83,6 +111,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
83
111
|
headers: unknown;
|
84
112
|
response: {
|
85
113
|
200: import("./reward.model").BreakdownForTokenRaw[];
|
114
|
+
422: {
|
115
|
+
type: "validation";
|
116
|
+
on: string;
|
117
|
+
summary?: string;
|
118
|
+
message?: string;
|
119
|
+
found?: unknown;
|
120
|
+
property?: string;
|
121
|
+
expected?: string;
|
122
|
+
};
|
86
123
|
};
|
87
124
|
};
|
88
125
|
};
|
@@ -105,6 +142,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
105
142
|
tokenId: string;
|
106
143
|
amount: bigint;
|
107
144
|
};
|
145
|
+
422: {
|
146
|
+
type: "validation";
|
147
|
+
on: string;
|
148
|
+
summary?: string;
|
149
|
+
message?: string;
|
150
|
+
found?: unknown;
|
151
|
+
property?: string;
|
152
|
+
expected?: string;
|
153
|
+
};
|
108
154
|
};
|
109
155
|
};
|
110
156
|
};
|
@@ -126,6 +172,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
126
172
|
200: {
|
127
173
|
count: number;
|
128
174
|
};
|
175
|
+
422: {
|
176
|
+
type: "validation";
|
177
|
+
on: string;
|
178
|
+
summary?: string;
|
179
|
+
message?: string;
|
180
|
+
found?: unknown;
|
181
|
+
property?: string;
|
182
|
+
expected?: string;
|
183
|
+
};
|
129
184
|
};
|
130
185
|
};
|
131
186
|
};
|
@@ -153,6 +208,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
153
208
|
200: {
|
154
209
|
count: number;
|
155
210
|
};
|
211
|
+
422: {
|
212
|
+
type: "validation";
|
213
|
+
on: string;
|
214
|
+
summary?: string;
|
215
|
+
message?: string;
|
216
|
+
found?: unknown;
|
217
|
+
property?: string;
|
218
|
+
expected?: string;
|
219
|
+
};
|
156
220
|
};
|
157
221
|
};
|
158
222
|
};
|
@@ -186,6 +250,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
186
250
|
200: {
|
187
251
|
count: number;
|
188
252
|
} | undefined;
|
253
|
+
422: {
|
254
|
+
type: "validation";
|
255
|
+
on: string;
|
256
|
+
summary?: string;
|
257
|
+
message?: string;
|
258
|
+
found?: unknown;
|
259
|
+
property?: string;
|
260
|
+
expected?: string;
|
261
|
+
};
|
189
262
|
};
|
190
263
|
};
|
191
264
|
};
|
@@ -207,6 +280,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
207
280
|
};
|
208
281
|
response: {
|
209
282
|
200: void;
|
283
|
+
422: {
|
284
|
+
type: "validation";
|
285
|
+
on: string;
|
286
|
+
summary?: string;
|
287
|
+
message?: string;
|
288
|
+
found?: unknown;
|
289
|
+
property?: string;
|
290
|
+
expected?: string;
|
291
|
+
};
|
210
292
|
};
|
211
293
|
};
|
212
294
|
};
|
@@ -238,6 +320,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
238
320
|
created: number;
|
239
321
|
updated: number;
|
240
322
|
};
|
323
|
+
422: {
|
324
|
+
type: "validation";
|
325
|
+
on: string;
|
326
|
+
summary?: string;
|
327
|
+
message?: string;
|
328
|
+
found?: unknown;
|
329
|
+
property?: string;
|
330
|
+
expected?: string;
|
331
|
+
};
|
241
332
|
};
|
242
333
|
};
|
243
334
|
};
|
@@ -261,6 +352,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
261
352
|
breakdownCount: number;
|
262
353
|
};
|
263
354
|
};
|
355
|
+
422: {
|
356
|
+
type: "validation";
|
357
|
+
on: string;
|
358
|
+
summary?: string;
|
359
|
+
message?: string;
|
360
|
+
found?: unknown;
|
361
|
+
property?: string;
|
362
|
+
expected?: string;
|
363
|
+
};
|
264
364
|
};
|
265
365
|
};
|
266
366
|
};
|
@@ -280,6 +380,15 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
280
380
|
200: {
|
281
381
|
[x: string]: string;
|
282
382
|
};
|
383
|
+
422: {
|
384
|
+
type: "validation";
|
385
|
+
on: string;
|
386
|
+
summary?: string;
|
387
|
+
message?: string;
|
388
|
+
found?: unknown;
|
389
|
+
property?: string;
|
390
|
+
expected?: string;
|
391
|
+
};
|
283
392
|
};
|
284
393
|
};
|
285
394
|
};
|
@@ -41,24 +41,24 @@ export declare abstract class RewardRepository {
|
|
41
41
|
price: number | null;
|
42
42
|
}[];
|
43
43
|
Protocols: {
|
44
|
+
description: string;
|
44
45
|
name: string;
|
45
46
|
url: string;
|
46
|
-
description: string;
|
47
47
|
id: string;
|
48
48
|
tags: string[];
|
49
49
|
icon: string;
|
50
50
|
}[];
|
51
51
|
MainProtocol: {
|
52
|
+
description: string;
|
52
53
|
name: string;
|
53
54
|
url: string;
|
54
|
-
description: string;
|
55
55
|
id: string;
|
56
56
|
tags: string[];
|
57
57
|
icon: string;
|
58
58
|
} | null;
|
59
59
|
} & {
|
60
|
-
name: string;
|
61
60
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
61
|
+
name: string;
|
62
62
|
id: string;
|
63
63
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
64
64
|
tags: string[];
|
@@ -35,24 +35,24 @@ export declare abstract class RewardService {
|
|
35
35
|
price: number | null;
|
36
36
|
}[];
|
37
37
|
Protocols: {
|
38
|
+
description: string;
|
38
39
|
name: string;
|
39
40
|
url: string;
|
40
|
-
description: string;
|
41
41
|
id: string;
|
42
42
|
tags: string[];
|
43
43
|
icon: string;
|
44
44
|
}[];
|
45
45
|
MainProtocol: {
|
46
|
+
description: string;
|
46
47
|
name: string;
|
47
48
|
url: string;
|
48
|
-
description: string;
|
49
49
|
id: string;
|
50
50
|
tags: string[];
|
51
51
|
icon: string;
|
52
52
|
} | null;
|
53
53
|
} & {
|
54
|
-
name: string;
|
55
54
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
55
|
+
name: string;
|
56
56
|
id: string;
|
57
57
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
58
58
|
tags: string[];
|
@@ -113,24 +113,24 @@ export declare abstract class RewardService {
|
|
113
113
|
price: number | null;
|
114
114
|
}[];
|
115
115
|
Protocols: {
|
116
|
+
description: string;
|
116
117
|
name: string;
|
117
118
|
url: string;
|
118
|
-
description: string;
|
119
119
|
id: string;
|
120
120
|
tags: string[];
|
121
121
|
icon: string;
|
122
122
|
}[];
|
123
123
|
MainProtocol: {
|
124
|
+
description: string;
|
124
125
|
name: string;
|
125
126
|
url: string;
|
126
|
-
description: string;
|
127
127
|
id: string;
|
128
128
|
tags: string[];
|
129
129
|
icon: string;
|
130
130
|
} | null;
|
131
131
|
} & {
|
132
|
-
name: string;
|
133
132
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
133
|
+
name: string;
|
134
134
|
id: string;
|
135
135
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
136
136
|
tags: string[];
|
@@ -195,24 +195,24 @@ export declare abstract class RewardService {
|
|
195
195
|
price: number | null;
|
196
196
|
}[];
|
197
197
|
Protocols: {
|
198
|
+
description: string;
|
198
199
|
name: string;
|
199
200
|
url: string;
|
200
|
-
description: string;
|
201
201
|
id: string;
|
202
202
|
tags: string[];
|
203
203
|
icon: string;
|
204
204
|
}[];
|
205
205
|
MainProtocol: {
|
206
|
+
description: string;
|
206
207
|
name: string;
|
207
208
|
url: string;
|
208
|
-
description: string;
|
209
209
|
id: string;
|
210
210
|
tags: string[];
|
211
211
|
icon: string;
|
212
212
|
} | null;
|
213
213
|
} & {
|
214
|
-
name: string;
|
215
214
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
215
|
+
name: string;
|
216
216
|
id: string;
|
217
217
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
218
218
|
tags: string[];
|
@@ -308,24 +308,24 @@ export declare abstract class RewardService {
|
|
308
308
|
price: number | null;
|
309
309
|
}[];
|
310
310
|
Protocols: {
|
311
|
+
description: string;
|
311
312
|
name: string;
|
312
313
|
url: string;
|
313
|
-
description: string;
|
314
314
|
id: string;
|
315
315
|
tags: string[];
|
316
316
|
icon: string;
|
317
317
|
}[];
|
318
318
|
MainProtocol: {
|
319
|
+
description: string;
|
319
320
|
name: string;
|
320
321
|
url: string;
|
321
|
-
description: string;
|
322
322
|
id: string;
|
323
323
|
tags: string[];
|
324
324
|
icon: string;
|
325
325
|
} | null;
|
326
326
|
} & {
|
327
|
-
name: string;
|
328
327
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
328
|
+
name: string;
|
329
329
|
id: string;
|
330
330
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
331
331
|
tags: string[];
|
@@ -403,24 +403,24 @@ export declare abstract class RewardService {
|
|
403
403
|
price: number | null;
|
404
404
|
}[];
|
405
405
|
Protocols: {
|
406
|
+
description: string;
|
406
407
|
name: string;
|
407
408
|
url: string;
|
408
|
-
description: string;
|
409
409
|
id: string;
|
410
410
|
tags: string[];
|
411
411
|
icon: string;
|
412
412
|
}[];
|
413
413
|
MainProtocol: {
|
414
|
+
description: string;
|
414
415
|
name: string;
|
415
416
|
url: string;
|
416
|
-
description: string;
|
417
417
|
id: string;
|
418
418
|
tags: string[];
|
419
419
|
icon: string;
|
420
420
|
} | null;
|
421
421
|
} & {
|
422
|
-
name: string;
|
423
422
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
423
|
+
name: string;
|
424
424
|
id: string;
|
425
425
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
426
426
|
tags: string[];
|
@@ -496,24 +496,24 @@ export declare abstract class RewardService {
|
|
496
496
|
price: number | null;
|
497
497
|
}[];
|
498
498
|
Protocols: {
|
499
|
+
description: string;
|
499
500
|
name: string;
|
500
501
|
url: string;
|
501
|
-
description: string;
|
502
502
|
id: string;
|
503
503
|
tags: string[];
|
504
504
|
icon: string;
|
505
505
|
}[];
|
506
506
|
MainProtocol: {
|
507
|
+
description: string;
|
507
508
|
name: string;
|
508
509
|
url: string;
|
509
|
-
description: string;
|
510
510
|
id: string;
|
511
511
|
tags: string[];
|
512
512
|
icon: string;
|
513
513
|
} | null;
|
514
514
|
} & {
|
515
|
-
name: string;
|
516
515
|
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
516
|
+
name: string;
|
517
517
|
id: string;
|
518
518
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
519
519
|
tags: string[];
|