@merkl/api 0.20.158 → 0.20.159
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 +747 -747
- package/dist/src/engine/deprecated/dynamicData/factory.js +1 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js +29 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +1 -3
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Locker/metadata.d.ts +24 -0
- package/dist/src/engine/implementations/Locker/metadata.js +36 -0
- package/dist/src/engine/implementations/Locker/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/Locker/tvl.js +21 -0
- package/dist/src/engine/implementations/MultiLog/tvl.d.ts +1 -12
- package/dist/src/engine/implementations/MultiLog/tvl.js +1 -61
- package/dist/src/engine/metadata/factory.js +1 -0
- package/dist/src/engine/tvl/logStates.d.ts +17 -0
- package/dist/src/engine/tvl/logStates.js +106 -0
- package/dist/src/index.d.ts +255 -255
- package/dist/src/index.js +2 -2
- package/dist/src/modules/v4/boost/boost.controller.d.ts +1 -1
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +2 -0
- package/dist/src/modules/v4/bucket/bucket.service.js +3 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +41 -41
- package/dist/src/modules/v4/campaign/campaign.controller.js +0 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +36 -36
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +76 -76
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +18 -18
- package/dist/src/modules/v4/chain/chain.controller.d.ts +11 -11
- package/dist/src/modules/v4/chain/chain.repository.d.ts +13 -13
- package/dist/src/modules/v4/chain/chain.service.d.ts +14 -14
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
- 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/creator/creator.controller.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.repository.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.service.d.ts +4 -4
- package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +3 -3
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +4 -4
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +5 -5
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +105 -105
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -3
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +117 -117
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +122 -122
- package/dist/src/modules/v4/price/price.controller.d.ts +4 -4
- package/dist/src/modules/v4/price/price.repository.d.ts +5 -5
- package/dist/src/modules/v4/price/price.service.d.ts +4 -4
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +18 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +14 -7
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +128 -8
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +24 -24
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +14 -14
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +6 -6
- package/dist/src/modules/v4/reward/reward.controller.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.controller.js +0 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -12
- package/dist/src/modules/v4/reward/reward.service.d.ts +82 -82
- package/dist/src/modules/v4/router.d.ts +255 -255
- package/dist/src/modules/v4/status/status.controller.d.ts +5 -5
- package/dist/src/modules/v4/status/status.repository.d.ts +11 -11
- package/dist/src/modules/v4/status/status.service.d.ts +7 -7
- package/dist/src/modules/v4/token/token.controller.d.ts +11 -11
- package/dist/src/modules/v4/token/token.repository.d.ts +4 -4
- package/dist/src/modules/v4/token/token.service.d.ts +14 -14
- package/dist/src/modules/v4/token/token.service.js +3 -3
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +1 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +24 -24
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +3 -3
@@ -24,8 +24,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
24
24
|
explorerAddress?: string | undefined;
|
25
25
|
protocols?: string[] | undefined;
|
26
26
|
mainProtocol?: string | undefined;
|
27
|
-
type: string;
|
28
27
|
status: "NONE" | "PAST" | "LIVE" | "SOON";
|
28
|
+
type: string;
|
29
29
|
tokens: {
|
30
30
|
address: string;
|
31
31
|
chainId: number;
|
@@ -43,8 +43,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
43
43
|
200: {
|
44
44
|
Tokens: {
|
45
45
|
symbol: string;
|
46
|
-
id: string;
|
47
46
|
name: string | null;
|
47
|
+
id: string;
|
48
48
|
icon: string;
|
49
49
|
address: string;
|
50
50
|
chainId: number;
|
@@ -58,18 +58,18 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
58
58
|
price: number | null;
|
59
59
|
}[];
|
60
60
|
Protocols: {
|
61
|
-
id: string;
|
62
|
-
name: string;
|
63
61
|
url: string;
|
62
|
+
name: string;
|
64
63
|
description: string;
|
64
|
+
id: string;
|
65
65
|
tags: string[];
|
66
66
|
icon: string;
|
67
67
|
}[];
|
68
|
-
id: string;
|
69
|
-
name: string;
|
70
|
-
type: string;
|
71
68
|
status: import("@db/api").$Enums.Status;
|
69
|
+
type: string;
|
70
|
+
name: string;
|
72
71
|
description: string;
|
72
|
+
id: string;
|
73
73
|
tags: string[];
|
74
74
|
identifier: string;
|
75
75
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -110,11 +110,11 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
110
110
|
};
|
111
111
|
response: {
|
112
112
|
200: {
|
113
|
-
id: string;
|
114
|
-
name: string;
|
115
|
-
type: string;
|
116
113
|
status: import("@db/api").$Enums.Status;
|
114
|
+
type: string;
|
115
|
+
name: string;
|
117
116
|
description: string;
|
117
|
+
id: string;
|
118
118
|
tags: string[];
|
119
119
|
identifier: string;
|
120
120
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -151,8 +151,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
151
151
|
200: {
|
152
152
|
Tokens: {
|
153
153
|
symbol: string;
|
154
|
-
id: string;
|
155
154
|
name: string | null;
|
155
|
+
id: string;
|
156
156
|
icon: string;
|
157
157
|
address: string;
|
158
158
|
chainId: number;
|
@@ -166,18 +166,18 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
166
166
|
price: number | null;
|
167
167
|
}[];
|
168
168
|
Protocols: {
|
169
|
-
id: string;
|
170
|
-
name: string;
|
171
169
|
url: string;
|
170
|
+
name: string;
|
172
171
|
description: string;
|
172
|
+
id: string;
|
173
173
|
tags: string[];
|
174
174
|
icon: string;
|
175
175
|
}[];
|
176
|
-
id: string;
|
177
|
-
name: string;
|
178
|
-
type: string;
|
179
176
|
status: import("@db/api").$Enums.Status;
|
177
|
+
type: string;
|
178
|
+
name: string;
|
180
179
|
description: string;
|
180
|
+
id: string;
|
181
181
|
tags: string[];
|
182
182
|
identifier: string;
|
183
183
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -201,8 +201,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
201
201
|
action: any;
|
202
202
|
tokens: ({
|
203
203
|
symbol: string;
|
204
|
-
id: string;
|
205
204
|
name: string | null;
|
205
|
+
id: string;
|
206
206
|
icon: string;
|
207
207
|
address: string;
|
208
208
|
chainId: number;
|
@@ -215,7 +215,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
215
215
|
} & {
|
216
216
|
price?: number | null | undefined;
|
217
217
|
})[];
|
218
|
-
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" | "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" | undefined;
|
218
|
+
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" | "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;
|
219
219
|
description: string;
|
220
220
|
howToSteps: string[];
|
221
221
|
depositUrl: string | undefined;
|
@@ -244,8 +244,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
244
244
|
200: {
|
245
245
|
Tokens: {
|
246
246
|
symbol: string;
|
247
|
-
id: string;
|
248
247
|
name: string | null;
|
248
|
+
id: string;
|
249
249
|
icon: string;
|
250
250
|
address: string;
|
251
251
|
chainId: number;
|
@@ -259,18 +259,18 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
259
259
|
price: number | null;
|
260
260
|
}[];
|
261
261
|
Protocols: {
|
262
|
-
id: string;
|
263
|
-
name: string;
|
264
262
|
url: string;
|
263
|
+
name: string;
|
265
264
|
description: string;
|
265
|
+
id: string;
|
266
266
|
tags: string[];
|
267
267
|
icon: string;
|
268
268
|
}[];
|
269
|
-
id: string;
|
270
|
-
name: string;
|
271
|
-
type: string;
|
272
269
|
status: import("@db/api").$Enums.Status;
|
270
|
+
type: string;
|
271
|
+
name: string;
|
273
272
|
description: string;
|
273
|
+
id: string;
|
274
274
|
tags: string[];
|
275
275
|
identifier: string;
|
276
276
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -294,8 +294,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
294
294
|
action: any;
|
295
295
|
tokens: ({
|
296
296
|
symbol: string;
|
297
|
-
id: string;
|
298
297
|
name: string | null;
|
298
|
+
id: string;
|
299
299
|
icon: string;
|
300
300
|
address: string;
|
301
301
|
chainId: number;
|
@@ -308,7 +308,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
308
308
|
} & {
|
309
309
|
price?: number | null | undefined;
|
310
310
|
})[];
|
311
|
-
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" | "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" | undefined;
|
311
|
+
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" | "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;
|
312
312
|
description: string;
|
313
313
|
howToSteps: string[];
|
314
314
|
depositUrl: string | undefined;
|
@@ -326,11 +326,11 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
326
326
|
body: unknown;
|
327
327
|
params: {};
|
328
328
|
query: {
|
329
|
-
search?: string | undefined;
|
330
|
-
name?: string | undefined;
|
331
|
-
type?: string | undefined;
|
332
329
|
status?: string | undefined;
|
330
|
+
search?: string | undefined;
|
333
331
|
sort?: string | undefined;
|
332
|
+
type?: string | undefined;
|
333
|
+
name?: string | undefined;
|
334
334
|
tokens?: string | undefined;
|
335
335
|
items?: number | undefined;
|
336
336
|
tags?: string | undefined;
|
@@ -375,8 +375,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
375
375
|
total: number;
|
376
376
|
timestamp: bigint;
|
377
377
|
breakdowns: {
|
378
|
-
id: string;
|
379
378
|
type: import("@db/api").$Enums.TvlType;
|
379
|
+
id: string;
|
380
380
|
identifier: string;
|
381
381
|
value: number;
|
382
382
|
tvlRecordId: string;
|
@@ -393,8 +393,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
393
393
|
dailyRewardsRecordId: string;
|
394
394
|
token: {
|
395
395
|
symbol: string;
|
396
|
-
id: string;
|
397
396
|
name: string | null;
|
397
|
+
id: string;
|
398
398
|
icon: string;
|
399
399
|
address: string;
|
400
400
|
chainId: number;
|
@@ -414,16 +414,16 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
414
414
|
campaigns: {
|
415
415
|
params: any;
|
416
416
|
chain: {
|
417
|
-
id: number;
|
418
417
|
name: string;
|
418
|
+
id: number;
|
419
419
|
icon: string;
|
420
420
|
};
|
421
421
|
endTimestamp: number;
|
422
422
|
startTimestamp: number;
|
423
423
|
rewardToken: {
|
424
424
|
symbol: string;
|
425
|
-
id: string;
|
426
425
|
name: string | null;
|
426
|
+
id: string;
|
427
427
|
icon: string;
|
428
428
|
address: string;
|
429
429
|
chainId: number;
|
@@ -437,15 +437,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
437
437
|
price?: number | null | undefined;
|
438
438
|
};
|
439
439
|
distributionChain: {
|
440
|
-
id: number;
|
441
440
|
name: string;
|
441
|
+
id: number;
|
442
442
|
icon: string;
|
443
443
|
} | undefined;
|
444
444
|
campaignStatus: {
|
445
445
|
computedUntil: number;
|
446
446
|
processingStarted: number;
|
447
|
-
error: string;
|
448
447
|
status: import("@db/api").$Enums.RunStatus;
|
448
|
+
error: string;
|
449
449
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
450
450
|
campaignId: string;
|
451
451
|
} | undefined;
|
@@ -458,11 +458,11 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
458
458
|
createdAt: string;
|
459
459
|
description: string | undefined;
|
460
460
|
Opportunity: {
|
461
|
-
id: string;
|
462
|
-
name: string;
|
463
|
-
type: string;
|
464
461
|
status: import("@db/api").$Enums.Status;
|
462
|
+
type: string;
|
463
|
+
name: string;
|
465
464
|
description: string;
|
465
|
+
id: string;
|
466
466
|
tags: string[];
|
467
467
|
identifier: string;
|
468
468
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -477,8 +477,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
477
477
|
dailyRewards: number;
|
478
478
|
lastCampaignCreatedAt: Date;
|
479
479
|
};
|
480
|
-
id: string;
|
481
480
|
type: string;
|
481
|
+
id: string;
|
482
482
|
subType: number | null;
|
483
483
|
computeChainId: number;
|
484
484
|
distributionChainId: number;
|
@@ -494,8 +494,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
494
494
|
lastCampaignCreatedAt: string;
|
495
495
|
tokens: ({
|
496
496
|
symbol: string;
|
497
|
-
id: string;
|
498
497
|
name: string | null;
|
498
|
+
id: string;
|
499
499
|
icon: string;
|
500
500
|
address: string;
|
501
501
|
chainId: number;
|
@@ -509,21 +509,21 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
509
509
|
price?: number | null | undefined;
|
510
510
|
})[];
|
511
511
|
chain: {
|
512
|
-
id: number;
|
513
512
|
name: string;
|
513
|
+
id: number;
|
514
514
|
icon: string;
|
515
515
|
};
|
516
516
|
protocol: {
|
517
|
-
id: string;
|
518
|
-
name: string;
|
519
517
|
url: string;
|
518
|
+
name: string;
|
520
519
|
description: string;
|
520
|
+
id: string;
|
521
521
|
tags: string[];
|
522
522
|
icon: string;
|
523
523
|
} | undefined;
|
524
|
-
name: string;
|
525
|
-
type: string;
|
526
524
|
status: import("@db/api").$Enums.Status;
|
525
|
+
type: string;
|
526
|
+
name: string;
|
527
527
|
description: string;
|
528
528
|
tags: string[];
|
529
529
|
identifier: string;
|
@@ -544,11 +544,11 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
544
544
|
body: unknown;
|
545
545
|
params: {};
|
546
546
|
query: {
|
547
|
-
search?: string | undefined;
|
548
|
-
name?: string | undefined;
|
549
|
-
type?: string | undefined;
|
550
547
|
status?: string | undefined;
|
548
|
+
search?: string | undefined;
|
551
549
|
sort?: string | undefined;
|
550
|
+
type?: string | undefined;
|
551
|
+
name?: string | undefined;
|
552
552
|
tokens?: string | undefined;
|
553
553
|
items?: number | undefined;
|
554
554
|
tags?: string | undefined;
|
@@ -589,10 +589,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
589
589
|
response: {
|
590
590
|
200: {
|
591
591
|
protocol?: {
|
592
|
-
id: string;
|
593
|
-
name: string;
|
594
592
|
url: string;
|
593
|
+
name: string;
|
595
594
|
description: string;
|
595
|
+
id: string;
|
596
596
|
tags: string[];
|
597
597
|
icon: string;
|
598
598
|
} | null | undefined;
|
@@ -603,8 +603,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
603
603
|
timestamp: string | bigint;
|
604
604
|
cumulated: number;
|
605
605
|
breakdowns: {
|
606
|
-
id: string;
|
607
606
|
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
607
|
+
id: string;
|
608
608
|
identifier: string;
|
609
609
|
value: number;
|
610
610
|
aprRecordId: string;
|
@@ -614,24 +614,23 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
614
614
|
total: number;
|
615
615
|
timestamp: string | bigint;
|
616
616
|
breakdowns: {
|
617
|
-
id: string;
|
618
617
|
type: "TOKEN" | "PROTOCOL";
|
618
|
+
id: string;
|
619
619
|
identifier: string;
|
620
620
|
value: number;
|
621
621
|
tvlRecordId: string;
|
622
622
|
}[];
|
623
623
|
} | undefined;
|
624
624
|
rewardsRecord?: {
|
625
|
-
id: string;
|
626
625
|
total: number;
|
626
|
+
id: string;
|
627
627
|
timestamp: string | bigint;
|
628
628
|
breakdowns: {
|
629
|
-
id: string;
|
630
629
|
token: {
|
631
630
|
price?: number | null | undefined;
|
632
631
|
symbol: string;
|
633
|
-
id: string;
|
634
632
|
name: string | null;
|
633
|
+
id: string;
|
635
634
|
icon: string;
|
636
635
|
address: string;
|
637
636
|
chainId: number;
|
@@ -641,21 +640,21 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
641
640
|
isPoint: boolean;
|
642
641
|
isPreTGE: boolean;
|
643
642
|
};
|
643
|
+
id: string;
|
644
644
|
value: number;
|
645
645
|
campaignId: string;
|
646
646
|
amount: string | bigint;
|
647
647
|
dailyRewardsRecordId: string;
|
648
648
|
}[];
|
649
649
|
} | undefined;
|
650
|
-
id: string;
|
651
|
-
name: string;
|
652
|
-
type: string;
|
653
650
|
status: string;
|
651
|
+
type: string;
|
652
|
+
name: string;
|
654
653
|
tokens: {
|
655
654
|
price?: number | null | undefined;
|
656
655
|
symbol: string;
|
657
|
-
id: string;
|
658
656
|
name: string | null;
|
657
|
+
id: string;
|
659
658
|
icon: string;
|
660
659
|
address: string;
|
661
660
|
chainId: number;
|
@@ -666,11 +665,12 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
666
665
|
isPreTGE: boolean;
|
667
666
|
}[];
|
668
667
|
description: string;
|
668
|
+
id: string;
|
669
669
|
tags: string[];
|
670
670
|
identifier: string;
|
671
671
|
chain: {
|
672
|
-
id: number;
|
673
672
|
name: string;
|
673
|
+
id: number;
|
674
674
|
icon: string;
|
675
675
|
};
|
676
676
|
action: string;
|
@@ -682,8 +682,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
682
682
|
lastCampaignCreatedAt: string;
|
683
683
|
};
|
684
684
|
readonly 404: {
|
685
|
-
name: string;
|
686
685
|
message: string;
|
686
|
+
name: string;
|
687
687
|
};
|
688
688
|
readonly 500: {
|
689
689
|
info: string;
|
@@ -701,8 +701,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
701
701
|
body: unknown;
|
702
702
|
params: {};
|
703
703
|
query: {
|
704
|
-
type?: string | undefined;
|
705
704
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
705
|
+
type?: string | undefined;
|
706
706
|
items?: number | undefined;
|
707
707
|
subType?: number | undefined;
|
708
708
|
page?: number | undefined;
|
@@ -728,10 +728,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
728
728
|
response: {
|
729
729
|
200: {
|
730
730
|
protocol?: {
|
731
|
-
id: string;
|
732
|
-
name: string;
|
733
731
|
url: string;
|
732
|
+
name: string;
|
734
733
|
description: string;
|
734
|
+
id: string;
|
735
735
|
tags: string[];
|
736
736
|
icon: string;
|
737
737
|
} | null | undefined;
|
@@ -742,8 +742,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
742
742
|
timestamp: string | bigint;
|
743
743
|
cumulated: number;
|
744
744
|
breakdowns: {
|
745
|
-
id: string;
|
746
745
|
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
746
|
+
id: string;
|
747
747
|
identifier: string;
|
748
748
|
value: number;
|
749
749
|
aprRecordId: string;
|
@@ -753,24 +753,23 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
753
753
|
total: number;
|
754
754
|
timestamp: string | bigint;
|
755
755
|
breakdowns: {
|
756
|
-
id: string;
|
757
756
|
type: "TOKEN" | "PROTOCOL";
|
757
|
+
id: string;
|
758
758
|
identifier: string;
|
759
759
|
value: number;
|
760
760
|
tvlRecordId: string;
|
761
761
|
}[];
|
762
762
|
} | undefined;
|
763
763
|
rewardsRecord?: {
|
764
|
-
id: string;
|
765
764
|
total: number;
|
765
|
+
id: string;
|
766
766
|
timestamp: string | bigint;
|
767
767
|
breakdowns: {
|
768
|
-
id: string;
|
769
768
|
token: {
|
770
769
|
price?: number | null | undefined;
|
771
770
|
symbol: string;
|
772
|
-
id: string;
|
773
771
|
name: string | null;
|
772
|
+
id: string;
|
774
773
|
icon: string;
|
775
774
|
address: string;
|
776
775
|
chainId: number;
|
@@ -780,21 +779,21 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
780
779
|
isPoint: boolean;
|
781
780
|
isPreTGE: boolean;
|
782
781
|
};
|
782
|
+
id: string;
|
783
783
|
value: number;
|
784
784
|
campaignId: string;
|
785
785
|
amount: string | bigint;
|
786
786
|
dailyRewardsRecordId: string;
|
787
787
|
}[];
|
788
788
|
} | undefined;
|
789
|
-
id: string;
|
790
|
-
name: string;
|
791
|
-
type: string;
|
792
789
|
status: string;
|
790
|
+
type: string;
|
791
|
+
name: string;
|
793
792
|
tokens: {
|
794
793
|
price?: number | null | undefined;
|
795
794
|
symbol: string;
|
796
|
-
id: string;
|
797
795
|
name: string | null;
|
796
|
+
id: string;
|
798
797
|
icon: string;
|
799
798
|
address: string;
|
800
799
|
chainId: number;
|
@@ -805,11 +804,12 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
805
804
|
isPreTGE: boolean;
|
806
805
|
}[];
|
807
806
|
description: string;
|
807
|
+
id: string;
|
808
808
|
tags: string[];
|
809
809
|
identifier: string;
|
810
810
|
chain: {
|
811
|
-
id: number;
|
812
811
|
name: string;
|
812
|
+
id: number;
|
813
813
|
icon: string;
|
814
814
|
};
|
815
815
|
action: string;
|
@@ -835,17 +835,17 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
835
835
|
processingStarted: string | number;
|
836
836
|
} | undefined;
|
837
837
|
distributionChain?: {
|
838
|
-
id: number;
|
839
838
|
name: string;
|
839
|
+
id: number;
|
840
840
|
icon: string;
|
841
841
|
} | undefined;
|
842
|
-
id: string;
|
843
842
|
type: string;
|
843
|
+
id: string;
|
844
844
|
params: any;
|
845
845
|
subType: number | null;
|
846
846
|
chain: {
|
847
|
-
id: number;
|
848
847
|
name: string;
|
848
|
+
id: number;
|
849
849
|
icon: string;
|
850
850
|
};
|
851
851
|
computeChainId: number;
|
@@ -861,8 +861,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
861
861
|
rewardToken: {
|
862
862
|
price?: number | null | undefined;
|
863
863
|
symbol: string;
|
864
|
-
id: string;
|
865
864
|
name: string | null;
|
865
|
+
id: string;
|
866
866
|
icon: string;
|
867
867
|
address: string;
|
868
868
|
chainId: number;
|
@@ -875,8 +875,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
875
875
|
}[];
|
876
876
|
}[];
|
877
877
|
readonly 404: {
|
878
|
-
name: string;
|
879
878
|
message: string;
|
879
|
+
name: string;
|
880
880
|
};
|
881
881
|
readonly 500: {
|
882
882
|
info: string;
|
@@ -904,10 +904,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
904
904
|
response: {
|
905
905
|
200: {
|
906
906
|
protocol?: {
|
907
|
-
id: string;
|
908
|
-
name: string;
|
909
907
|
url: string;
|
908
|
+
name: string;
|
910
909
|
description: string;
|
910
|
+
id: string;
|
911
911
|
tags: string[];
|
912
912
|
icon: string;
|
913
913
|
} | null | undefined;
|
@@ -918,8 +918,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
918
918
|
timestamp: string | bigint;
|
919
919
|
cumulated: number;
|
920
920
|
breakdowns: {
|
921
|
-
id: string;
|
922
921
|
type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
|
922
|
+
id: string;
|
923
923
|
identifier: string;
|
924
924
|
value: number;
|
925
925
|
aprRecordId: string;
|
@@ -929,24 +929,23 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
929
929
|
total: number;
|
930
930
|
timestamp: string | bigint;
|
931
931
|
breakdowns: {
|
932
|
-
id: string;
|
933
932
|
type: "TOKEN" | "PROTOCOL";
|
933
|
+
id: string;
|
934
934
|
identifier: string;
|
935
935
|
value: number;
|
936
936
|
tvlRecordId: string;
|
937
937
|
}[];
|
938
938
|
} | undefined;
|
939
939
|
rewardsRecord?: {
|
940
|
-
id: string;
|
941
940
|
total: number;
|
941
|
+
id: string;
|
942
942
|
timestamp: string | bigint;
|
943
943
|
breakdowns: {
|
944
|
-
id: string;
|
945
944
|
token: {
|
946
945
|
price?: number | null | undefined;
|
947
946
|
symbol: string;
|
948
|
-
id: string;
|
949
947
|
name: string | null;
|
948
|
+
id: string;
|
950
949
|
icon: string;
|
951
950
|
address: string;
|
952
951
|
chainId: number;
|
@@ -956,21 +955,21 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
956
955
|
isPoint: boolean;
|
957
956
|
isPreTGE: boolean;
|
958
957
|
};
|
958
|
+
id: string;
|
959
959
|
value: number;
|
960
960
|
campaignId: string;
|
961
961
|
amount: string | bigint;
|
962
962
|
dailyRewardsRecordId: string;
|
963
963
|
}[];
|
964
964
|
} | undefined;
|
965
|
-
id: string;
|
966
|
-
name: string;
|
967
|
-
type: string;
|
968
965
|
status: string;
|
966
|
+
type: string;
|
967
|
+
name: string;
|
969
968
|
tokens: {
|
970
969
|
price?: number | null | undefined;
|
971
970
|
symbol: string;
|
972
|
-
id: string;
|
973
971
|
name: string | null;
|
972
|
+
id: string;
|
974
973
|
icon: string;
|
975
974
|
address: string;
|
976
975
|
chainId: number;
|
@@ -981,11 +980,12 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
981
980
|
isPreTGE: boolean;
|
982
981
|
}[];
|
983
982
|
description: string;
|
983
|
+
id: string;
|
984
984
|
tags: string[];
|
985
985
|
identifier: string;
|
986
986
|
chain: {
|
987
|
-
id: number;
|
988
987
|
name: string;
|
988
|
+
id: number;
|
989
989
|
icon: string;
|
990
990
|
};
|
991
991
|
action: string;
|
@@ -1011,17 +1011,17 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1011
1011
|
processingStarted: string | number;
|
1012
1012
|
} | undefined;
|
1013
1013
|
distributionChain?: {
|
1014
|
-
id: number;
|
1015
1014
|
name: string;
|
1015
|
+
id: number;
|
1016
1016
|
icon: string;
|
1017
1017
|
} | undefined;
|
1018
|
-
id: string;
|
1019
1018
|
type: string;
|
1019
|
+
id: string;
|
1020
1020
|
params: any;
|
1021
1021
|
subType: number | null;
|
1022
1022
|
chain: {
|
1023
|
-
id: number;
|
1024
1023
|
name: string;
|
1024
|
+
id: number;
|
1025
1025
|
icon: string;
|
1026
1026
|
};
|
1027
1027
|
computeChainId: number;
|
@@ -1037,8 +1037,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1037
1037
|
rewardToken: {
|
1038
1038
|
price?: number | null | undefined;
|
1039
1039
|
symbol: string;
|
1040
|
-
id: string;
|
1041
1040
|
name: string | null;
|
1041
|
+
id: string;
|
1042
1042
|
icon: string;
|
1043
1043
|
address: string;
|
1044
1044
|
chainId: number;
|
@@ -1051,8 +1051,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1051
1051
|
}[];
|
1052
1052
|
};
|
1053
1053
|
readonly 404: {
|
1054
|
-
name: string;
|
1055
1054
|
message: string;
|
1055
|
+
name: string;
|
1056
1056
|
};
|
1057
1057
|
readonly 500: {
|
1058
1058
|
info: string;
|
@@ -1074,11 +1074,11 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1074
1074
|
field: never;
|
1075
1075
|
};
|
1076
1076
|
query: {
|
1077
|
-
search?: string | undefined;
|
1078
|
-
name?: string | undefined;
|
1079
|
-
type?: string | undefined;
|
1080
1077
|
status?: string | undefined;
|
1078
|
+
search?: string | undefined;
|
1081
1079
|
sort?: string | undefined;
|
1080
|
+
type?: string | undefined;
|
1081
|
+
name?: string | undefined;
|
1082
1082
|
tokens?: string | undefined;
|
1083
1083
|
items?: number | undefined;
|
1084
1084
|
tags?: string | undefined;
|
@@ -1117,11 +1117,11 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1117
1117
|
field: never;
|
1118
1118
|
};
|
1119
1119
|
query: {
|
1120
|
-
search?: string | undefined;
|
1121
|
-
name?: string | undefined;
|
1122
|
-
type?: string | undefined;
|
1123
1120
|
status?: string | undefined;
|
1121
|
+
search?: string | undefined;
|
1124
1122
|
sort?: string | undefined;
|
1123
|
+
type?: string | undefined;
|
1124
|
+
name?: string | undefined;
|
1125
1125
|
tokens?: string | undefined;
|
1126
1126
|
items?: number | undefined;
|
1127
1127
|
tags?: string | undefined;
|
@@ -1161,11 +1161,11 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1161
1161
|
field: never;
|
1162
1162
|
};
|
1163
1163
|
query: {
|
1164
|
-
search?: string | undefined;
|
1165
|
-
name?: string | undefined;
|
1166
|
-
type?: string | undefined;
|
1167
1164
|
status?: string | undefined;
|
1165
|
+
search?: string | undefined;
|
1168
1166
|
sort?: string | undefined;
|
1167
|
+
type?: string | undefined;
|
1168
|
+
name?: string | undefined;
|
1169
1169
|
tokens?: string | undefined;
|
1170
1170
|
items?: number | undefined;
|
1171
1171
|
tags?: string | undefined;
|