@merkl/api 0.10.171 → 0.10.173
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/backgroundJobs/index.js +1 -1
- package/dist/src/eden/index.d.ts +63 -63
- package/dist/src/index.d.ts +21 -21
- package/dist/src/index.js +3 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/factoryFinder.js +1 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +4 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleYTProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleYTProcessor.js +1 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TempestVaultProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TempestVaultProcessor.js +5 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +1 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +3 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -4
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +10 -10
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +11 -11
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +10 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +13 -13
- package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -2
- package/dist/src/modules/v4/reward/reward.service.d.ts +11 -11
- package/dist/src/modules/v4/router.d.ts +21 -21
- package/dist/src/modules/v4/token/token.controller.d.ts +3 -3
- package/dist/src/modules/v4/token/token.repository.d.ts +1 -1
- package/dist/src/modules/v4/token/token.service.d.ts +6 -6
- package/dist/src/modules/v4/user/user.controller.d.ts +4 -4
- package/dist/src/modules/v4/user/user.controller.js +1 -0
- package/dist/src/routes/v3/blacklist.d.ts +21 -21
- package/dist/src/routes/v3/campaigns.d.ts +21 -21
- package/dist/src/routes/v3/campaignsInfo.d.ts +21 -21
- package/dist/src/routes/v3/multiChainPositions.d.ts +21 -21
- package/dist/src/routes/v3/opportunity.d.ts +22 -22
- package/dist/src/routes/v3/positions.d.ts +21 -21
- package/dist/src/routes/v3/rewards.d.ts +21 -21
- package/dist/src/routes/v3/updates.d.ts +21 -21
- package/dist/src/routes/v3/userRewards.d.ts +21 -21
- package/dist/src/utils/decodeCalls.js +15 -3
- package/dist/src/utils/encodeCalls.js +31 -11
- package/dist/src/utils/generateCardName.js +4 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/src/index.d.ts
CHANGED
@@ -115,9 +115,9 @@ declare const app: Elysia<"", false, {
|
|
115
115
|
symbol: string;
|
116
116
|
name: string | null;
|
117
117
|
id: string;
|
118
|
+
icon: string;
|
118
119
|
chainId: number;
|
119
120
|
address: string;
|
120
|
-
icon: string;
|
121
121
|
decimals: number;
|
122
122
|
displaySymbol: string;
|
123
123
|
verified: boolean;
|
@@ -132,9 +132,9 @@ declare const app: Elysia<"", false, {
|
|
132
132
|
symbol: string;
|
133
133
|
name: string | null;
|
134
134
|
id: string;
|
135
|
+
icon: string;
|
135
136
|
chainId: number;
|
136
137
|
address: string;
|
137
|
-
icon: string;
|
138
138
|
decimals: number;
|
139
139
|
verified: boolean;
|
140
140
|
isTest: boolean;
|
@@ -218,9 +218,9 @@ declare const app: Elysia<"", false, {
|
|
218
218
|
symbol: string;
|
219
219
|
name: string | null;
|
220
220
|
id: string;
|
221
|
+
icon: string;
|
221
222
|
chainId: number;
|
222
223
|
address: string;
|
223
|
-
icon: string;
|
224
224
|
decimals: number;
|
225
225
|
displaySymbol: string;
|
226
226
|
verified: boolean;
|
@@ -235,9 +235,9 @@ declare const app: Elysia<"", false, {
|
|
235
235
|
symbol: string;
|
236
236
|
name: string | null;
|
237
237
|
id: string;
|
238
|
+
icon: string;
|
238
239
|
chainId: number;
|
239
240
|
address: string;
|
240
|
-
icon: string;
|
241
241
|
decimals: number;
|
242
242
|
verified: boolean;
|
243
243
|
isTest: boolean;
|
@@ -278,9 +278,9 @@ declare const app: Elysia<"", false, {
|
|
278
278
|
symbol: string;
|
279
279
|
name: string | null;
|
280
280
|
id: string;
|
281
|
+
icon: string;
|
281
282
|
chainId: number;
|
282
283
|
address: string;
|
283
|
-
icon: string;
|
284
284
|
decimals: number;
|
285
285
|
verified: boolean;
|
286
286
|
isTest: boolean;
|
@@ -332,8 +332,8 @@ declare const app: Elysia<"", false, {
|
|
332
332
|
status?: string | undefined;
|
333
333
|
items?: number | undefined;
|
334
334
|
tags?: string | undefined;
|
335
|
-
chainId?: string | undefined;
|
336
335
|
page?: number | undefined;
|
336
|
+
chainId?: string | undefined;
|
337
337
|
action?: string | undefined;
|
338
338
|
mainProtocolId?: string | undefined;
|
339
339
|
order?: undefined;
|
@@ -379,9 +379,9 @@ declare const app: Elysia<"", false, {
|
|
379
379
|
symbol: string;
|
380
380
|
name: string | null;
|
381
381
|
id: string;
|
382
|
+
icon: string;
|
382
383
|
chainId: number;
|
383
384
|
address: string;
|
384
|
-
icon: string;
|
385
385
|
decimals: number;
|
386
386
|
displaySymbol: string;
|
387
387
|
verified: boolean;
|
@@ -396,9 +396,9 @@ declare const app: Elysia<"", false, {
|
|
396
396
|
symbol: string;
|
397
397
|
name: string | null;
|
398
398
|
id: string;
|
399
|
+
icon: string;
|
399
400
|
chainId: number;
|
400
401
|
address: string;
|
401
|
-
icon: string;
|
402
402
|
decimals: number;
|
403
403
|
verified: boolean;
|
404
404
|
isTest: boolean;
|
@@ -446,8 +446,8 @@ declare const app: Elysia<"", false, {
|
|
446
446
|
status?: string | undefined;
|
447
447
|
items?: number | undefined;
|
448
448
|
tags?: string | undefined;
|
449
|
-
chainId?: string | undefined;
|
450
449
|
page?: number | undefined;
|
450
|
+
chainId?: string | undefined;
|
451
451
|
action?: string | undefined;
|
452
452
|
mainProtocolId?: string | undefined;
|
453
453
|
order?: undefined;
|
@@ -477,8 +477,8 @@ declare const app: Elysia<"", false, {
|
|
477
477
|
status?: string | undefined;
|
478
478
|
items?: number | undefined;
|
479
479
|
tags?: string | undefined;
|
480
|
-
chainId?: string | undefined;
|
481
480
|
page?: number | undefined;
|
481
|
+
chainId?: string | undefined;
|
482
482
|
action?: string | undefined;
|
483
483
|
mainProtocolId?: string | undefined;
|
484
484
|
order?: undefined;
|
@@ -506,13 +506,13 @@ declare const app: Elysia<"", false, {
|
|
506
506
|
subType?: number | undefined;
|
507
507
|
type: number;
|
508
508
|
params: string;
|
509
|
+
creator: string;
|
509
510
|
chainId: number;
|
510
511
|
startTimestamp: string;
|
511
512
|
endTimestamp: string;
|
512
513
|
computeChainId: number;
|
513
514
|
campaignId: string;
|
514
515
|
amount: string;
|
515
|
-
creator: string;
|
516
516
|
rewardTokenAddress: string;
|
517
517
|
opportunityIdentifier: string;
|
518
518
|
};
|
@@ -549,11 +549,11 @@ declare const app: Elysia<"", false, {
|
|
549
549
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
550
550
|
items?: number | undefined;
|
551
551
|
subType?: number | undefined;
|
552
|
+
page?: number | undefined;
|
552
553
|
chainId?: number | undefined;
|
553
554
|
startTimestamp?: string | undefined;
|
554
555
|
endTimestamp?: string | undefined;
|
555
556
|
tokenAddress?: string | undefined;
|
556
|
-
page?: number | undefined;
|
557
557
|
mainParameter?: string | undefined;
|
558
558
|
campaignId?: string | undefined;
|
559
559
|
opportunityId?: string | undefined;
|
@@ -573,9 +573,9 @@ declare const app: Elysia<"", false, {
|
|
573
573
|
symbol: string;
|
574
574
|
name: string | null;
|
575
575
|
id: string;
|
576
|
+
icon: string;
|
576
577
|
chainId: number;
|
577
578
|
address: string;
|
578
|
-
icon: string;
|
579
579
|
decimals: number;
|
580
580
|
verified: boolean;
|
581
581
|
isTest: boolean;
|
@@ -620,11 +620,11 @@ declare const app: Elysia<"", false, {
|
|
620
620
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
621
621
|
items?: number | undefined;
|
622
622
|
subType?: number | undefined;
|
623
|
+
page?: number | undefined;
|
623
624
|
chainId?: number | undefined;
|
624
625
|
startTimestamp?: string | undefined;
|
625
626
|
endTimestamp?: string | undefined;
|
626
627
|
tokenAddress?: string | undefined;
|
627
|
-
page?: number | undefined;
|
628
628
|
mainParameter?: string | undefined;
|
629
629
|
campaignId?: string | undefined;
|
630
630
|
opportunityId?: string | undefined;
|
@@ -779,9 +779,9 @@ declare const app: Elysia<"", false, {
|
|
779
779
|
symbol: string;
|
780
780
|
name: string | null;
|
781
781
|
id: string;
|
782
|
+
icon: string;
|
782
783
|
chainId: number;
|
783
784
|
address: string;
|
784
|
-
icon: string;
|
785
785
|
decimals: number;
|
786
786
|
verified: boolean;
|
787
787
|
isTest: boolean;
|
@@ -809,9 +809,9 @@ declare const app: Elysia<"", false, {
|
|
809
809
|
symbol: string;
|
810
810
|
name: string | null;
|
811
811
|
id: string;
|
812
|
+
icon: string;
|
812
813
|
chainId: number;
|
813
814
|
address: string;
|
814
|
-
icon: string;
|
815
815
|
decimals: number;
|
816
816
|
verified: boolean;
|
817
817
|
isTest: boolean;
|
@@ -844,9 +844,9 @@ declare const app: Elysia<"", false, {
|
|
844
844
|
symbol: string;
|
845
845
|
name: string | null;
|
846
846
|
id: string;
|
847
|
+
icon: string;
|
847
848
|
chainId: number;
|
848
849
|
address: string;
|
849
|
-
icon: string;
|
850
850
|
decimals: number;
|
851
851
|
displaySymbol: string;
|
852
852
|
verified: boolean;
|
@@ -1509,9 +1509,9 @@ declare const app: Elysia<"", false, {
|
|
1509
1509
|
symbol: string;
|
1510
1510
|
name: string | null;
|
1511
1511
|
id: string;
|
1512
|
+
icon: string;
|
1512
1513
|
chainId: number;
|
1513
1514
|
address: string;
|
1514
|
-
icon: string;
|
1515
1515
|
decimals: number;
|
1516
1516
|
displaySymbol: string;
|
1517
1517
|
verified: boolean;
|
@@ -1530,9 +1530,9 @@ declare const app: Elysia<"", false, {
|
|
1530
1530
|
symbol: string;
|
1531
1531
|
name: string | null;
|
1532
1532
|
id: string;
|
1533
|
+
icon: string;
|
1533
1534
|
chainId: number;
|
1534
1535
|
address: string;
|
1535
|
-
icon: string;
|
1536
1536
|
decimals: number;
|
1537
1537
|
displaySymbol: string;
|
1538
1538
|
verified: boolean;
|
@@ -1623,9 +1623,9 @@ declare const app: Elysia<"", false, {
|
|
1623
1623
|
symbol: string;
|
1624
1624
|
name: string | null;
|
1625
1625
|
id: string;
|
1626
|
+
icon: string;
|
1626
1627
|
chainId: number;
|
1627
1628
|
address: string;
|
1628
|
-
icon: string;
|
1629
1629
|
decimals: number;
|
1630
1630
|
displaySymbol: string;
|
1631
1631
|
verified: boolean;
|
@@ -1644,9 +1644,9 @@ declare const app: Elysia<"", false, {
|
|
1644
1644
|
symbol: string;
|
1645
1645
|
name: string | null;
|
1646
1646
|
id: string;
|
1647
|
+
icon: string;
|
1647
1648
|
chainId: number;
|
1648
1649
|
address: string;
|
1649
|
-
icon: string;
|
1650
1650
|
decimals: number;
|
1651
1651
|
displaySymbol: string;
|
1652
1652
|
verified: boolean;
|
package/dist/src/index.js
CHANGED
@@ -18,10 +18,11 @@ const app = new Elysia({
|
|
18
18
|
},
|
19
19
|
})
|
20
20
|
.use(swagger({
|
21
|
+
provider: "swagger-ui",
|
21
22
|
documentation: {
|
22
23
|
info: {
|
23
24
|
contact: {
|
24
|
-
email: "contact@
|
25
|
+
email: "contact@merkl.money",
|
25
26
|
name: "Angle Labs",
|
26
27
|
},
|
27
28
|
description: "API to access data related to merkl campaigns, built and maintained by Angle Labs. This API is provided as is, without any warranty of any kind.",
|
@@ -32,7 +33,7 @@ const app = new Elysia({
|
|
32
33
|
version: "1.0.1",
|
33
34
|
},
|
34
35
|
},
|
35
|
-
exclude: [/engine\/*/, /v1\/.*/, /v2\/.*/, /
|
36
|
+
exclude: [/engine\/*/, /v1\/.*/, /v2\/.*/, /v3\/.*/, "/"],
|
36
37
|
}))
|
37
38
|
.use(cors())
|
38
39
|
.get("/", () => "Merkl API")
|
@@ -17,6 +17,7 @@ const factoryAddresses = {
|
|
17
17
|
"0x6fcf753f2C67b83f7B09746Bbc4FA0047b35D050": tokenType.pendle, // Pendle Factory
|
18
18
|
"0x35A338522a435D46f77Be32C70E215B813D0e3aC": tokenType.pendleYT, // Pendle YT Factory
|
19
19
|
"0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73": tokenType.pancakeswap, // PancakeSwap Factory BNB
|
20
|
+
"0x70ee0A6DB4F5a2Dc4d9c0b57bE97B9987e75BAFD": tokenType.pendleYT, // Pendle YT Factory
|
20
21
|
};
|
21
22
|
export function getTypeFromFactoryAddress(address) {
|
22
23
|
if (factoryAddresses[address]) {
|
@@ -55,7 +55,8 @@ export declare enum tokenType {
|
|
55
55
|
maha = "maha",
|
56
56
|
tempest = "tempest",
|
57
57
|
pendleYT = "pendleYT",
|
58
|
-
pancakeswap = "pancakeswap"
|
58
|
+
pancakeswap = "pancakeswap",
|
59
|
+
tempestStaking = "tempestStaking"
|
59
60
|
}
|
60
61
|
export declare const tokenTypeToProtocol: {
|
61
62
|
[key in tokenType]: {
|
@@ -57,6 +57,7 @@ export var tokenType;
|
|
57
57
|
tokenType["tempest"] = "tempest";
|
58
58
|
tokenType["pendleYT"] = "pendleYT";
|
59
59
|
tokenType["pancakeswap"] = "pancakeswap";
|
60
|
+
tokenType["tempestStaking"] = "tempestStaking";
|
60
61
|
})(tokenType || (tokenType = {}));
|
61
62
|
export const tokenTypeToProtocol = {
|
62
63
|
[tokenType.aave_borrowing]: { protocol: "Aave" },
|
@@ -131,4 +132,7 @@ export const tokenTypeToProtocol = {
|
|
131
132
|
[tokenType.pancakeswap]: {
|
132
133
|
protocol: "PancakeSwap V2",
|
133
134
|
},
|
135
|
+
[tokenType.tempestStaking]: {
|
136
|
+
protocol: "Tempest",
|
137
|
+
},
|
134
138
|
};
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleYTProcessor.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
|
-
import {
|
2
|
+
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import type { tokenType } from "../helpers/tokenType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
5
|
type callType = {
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { generateCardName } from "../../../../../utils/generateCardName";
|
2
|
-
import { ChainId } from "@sdk";
|
3
2
|
import { GenericProcessor } from "./GenericProcessor";
|
4
3
|
export class PendleYTProcessor extends GenericProcessor {
|
5
4
|
rounds = {
|
@@ -14,8 +13,7 @@ export class PendleYTProcessor extends GenericProcessor {
|
|
14
13
|
async processingRound5(_index, type, typeInfo, _calls, campaign, pricer) {
|
15
14
|
const { whitelistedSupplyTargetToken, totalSupply, blacklistedSupply } = this.handleWhiteListBlacklistRound5(typeInfo, campaign);
|
16
15
|
const priceTargetToken = (await pricer.get({
|
17
|
-
|
18
|
-
chainId: ChainId.MAINNET,
|
16
|
+
symbol: typeInfo.tokenAddress,
|
19
17
|
})) ?? 0;
|
20
18
|
const tvl = priceTargetToken * totalSupply;
|
21
19
|
return {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TempestVaultProcessor.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Pricer } from "../../../../../utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
|
-
import
|
3
|
+
import { tokenType, type tokenTypeStruct } from "../helpers/tokenType";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
5
5
|
type callType = {
|
6
6
|
key: keyof dataRawTempest;
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TempestVaultProcessor.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { generateCardName } from "../../../../../utils/generateCardName";
|
2
2
|
import { BN2Number, NULL_ADDRESS } from "@sdk";
|
3
|
+
import { tokenType } from "../helpers/tokenType";
|
3
4
|
import { GenericProcessor } from "./GenericProcessor";
|
4
5
|
export class TempestVaultProcessor extends GenericProcessor {
|
5
6
|
rounds = {
|
@@ -56,9 +57,10 @@ export class TempestVaultProcessor extends GenericProcessor {
|
|
56
57
|
const decimalsToken0 = Number(typeInfo.decimalsToken0);
|
57
58
|
const decimalsToken1 = Number(typeInfo.decimalsToken1);
|
58
59
|
const amount0 = BN2Number(typeInfo.amount0Idle, decimalsToken0) + BN2Number(typeInfo.amount0Invested, decimalsToken0);
|
59
|
-
|
60
|
-
|
61
|
-
|
60
|
+
let amount1 = BN2Number(typeInfo.amount1Idle, decimalsToken1) + BN2Number(typeInfo.amount1Invested, decimalsToken1);
|
61
|
+
if (type === tokenType.tempestStaking) {
|
62
|
+
amount1 += !!typeInfo.amountInQueue ? BN2Number(typeInfo.amountInQueue, decimalsToken1) : 0;
|
63
|
+
}
|
62
64
|
const tokenAPRice = (await pricer.get({ symbol: typeInfo.symbolToken0 })) ?? 0;
|
63
65
|
const tokenBPrice = (await pricer.get({ symbol: typeInfo.symbolToken1 })) ?? 0;
|
64
66
|
const tvl = tokenAPRice * amount0 + tokenBPrice * amount1;
|
@@ -91,7 +91,9 @@ function satisfiesNameConditions(name, type) {
|
|
91
91
|
case tokenType.maha:
|
92
92
|
return lowerCaseName.includes("staked") && lowerCaseName.includes("maha");
|
93
93
|
case tokenType.tempest:
|
94
|
-
return lowerCaseName.startsWith("ts")
|
94
|
+
return lowerCaseName.startsWith("ts");
|
95
|
+
case tokenType.tempestStaking:
|
96
|
+
return lowerCaseName.startsWith("tempest");
|
95
97
|
default:
|
96
98
|
return false;
|
97
99
|
}
|
@@ -20,13 +20,13 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
20
20
|
subType?: number | undefined;
|
21
21
|
type: number;
|
22
22
|
params: string;
|
23
|
+
creator: string;
|
23
24
|
chainId: number;
|
24
25
|
startTimestamp: string;
|
25
26
|
endTimestamp: string;
|
26
27
|
computeChainId: number;
|
27
28
|
campaignId: string;
|
28
29
|
amount: string;
|
29
|
-
creator: string;
|
30
30
|
rewardTokenAddress: string;
|
31
31
|
opportunityIdentifier: string;
|
32
32
|
};
|
@@ -63,11 +63,11 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
63
63
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
64
64
|
items?: number | undefined;
|
65
65
|
subType?: number | undefined;
|
66
|
+
page?: number | undefined;
|
66
67
|
chainId?: number | undefined;
|
67
68
|
startTimestamp?: string | undefined;
|
68
69
|
endTimestamp?: string | undefined;
|
69
70
|
tokenAddress?: string | undefined;
|
70
|
-
page?: number | undefined;
|
71
71
|
mainParameter?: string | undefined;
|
72
72
|
campaignId?: string | undefined;
|
73
73
|
opportunityId?: string | undefined;
|
@@ -87,9 +87,9 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
87
87
|
symbol: string;
|
88
88
|
name: string | null;
|
89
89
|
id: string;
|
90
|
+
icon: string;
|
90
91
|
chainId: number;
|
91
92
|
address: string;
|
92
|
-
icon: string;
|
93
93
|
decimals: number;
|
94
94
|
verified: boolean;
|
95
95
|
isTest: boolean;
|
@@ -134,11 +134,11 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
134
134
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
135
135
|
items?: number | undefined;
|
136
136
|
subType?: number | undefined;
|
137
|
+
page?: number | undefined;
|
137
138
|
chainId?: number | undefined;
|
138
139
|
startTimestamp?: string | undefined;
|
139
140
|
endTimestamp?: string | undefined;
|
140
141
|
tokenAddress?: string | undefined;
|
141
|
-
page?: number | undefined;
|
142
142
|
mainParameter?: string | undefined;
|
143
143
|
campaignId?: string | undefined;
|
144
144
|
opportunityId?: string | undefined;
|
@@ -32,6 +32,7 @@ export declare abstract class CampaignRepository {
|
|
32
32
|
static getFromEngineDb(chainId: number, timestamp: number): Promise<CampaignParameters<CampaignV3>[]>;
|
33
33
|
static getFromEngineDbWithId(campaignIds: CampaignUnique[]): Promise<{
|
34
34
|
index: number;
|
35
|
+
creator: string;
|
35
36
|
chainId: number;
|
36
37
|
startTimestamp: number;
|
37
38
|
endTimestamp: number;
|
@@ -40,7 +41,6 @@ export declare abstract class CampaignRepository {
|
|
40
41
|
campaignId: string;
|
41
42
|
amount: string;
|
42
43
|
rewardToken: string;
|
43
|
-
creator: string;
|
44
44
|
campaignType: number;
|
45
45
|
campaignSubType: number;
|
46
46
|
campaignParameters: import("database/engine/.generated/runtime/library").JsonValue;
|
@@ -98,9 +98,9 @@ export declare abstract class CampaignRepository {
|
|
98
98
|
symbol: string;
|
99
99
|
name: string | null;
|
100
100
|
id: string;
|
101
|
+
icon: string;
|
101
102
|
chainId: number;
|
102
103
|
address: string;
|
103
|
-
icon: string;
|
104
104
|
decimals: number;
|
105
105
|
displaySymbol: string;
|
106
106
|
verified: boolean;
|
@@ -39,9 +39,9 @@ export declare abstract class CampaignService {
|
|
39
39
|
symbol: string;
|
40
40
|
name: string | null;
|
41
41
|
id: string;
|
42
|
+
icon: string;
|
42
43
|
chainId: number;
|
43
44
|
address: string;
|
44
|
-
icon: string;
|
45
45
|
decimals: number;
|
46
46
|
verified: boolean;
|
47
47
|
isTest: boolean;
|
@@ -173,9 +173,9 @@ export declare abstract class CampaignService {
|
|
173
173
|
symbol: string;
|
174
174
|
name: string | null;
|
175
175
|
id: string;
|
176
|
+
icon: string;
|
176
177
|
chainId: number;
|
177
178
|
address: string;
|
178
|
-
icon: string;
|
179
179
|
decimals: number;
|
180
180
|
verified: boolean;
|
181
181
|
isTest: boolean;
|
@@ -88,9 +88,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
88
88
|
symbol: string;
|
89
89
|
name: string | null;
|
90
90
|
id: string;
|
91
|
+
icon: string;
|
91
92
|
chainId: number;
|
92
93
|
address: string;
|
93
|
-
icon: string;
|
94
94
|
decimals: number;
|
95
95
|
displaySymbol: string;
|
96
96
|
verified: boolean;
|
@@ -105,9 +105,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
105
105
|
symbol: string;
|
106
106
|
name: string | null;
|
107
107
|
id: string;
|
108
|
+
icon: string;
|
108
109
|
chainId: number;
|
109
110
|
address: string;
|
110
|
-
icon: string;
|
111
111
|
decimals: number;
|
112
112
|
verified: boolean;
|
113
113
|
isTest: boolean;
|
@@ -191,9 +191,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
191
191
|
symbol: string;
|
192
192
|
name: string | null;
|
193
193
|
id: string;
|
194
|
+
icon: string;
|
194
195
|
chainId: number;
|
195
196
|
address: string;
|
196
|
-
icon: string;
|
197
197
|
decimals: number;
|
198
198
|
displaySymbol: string;
|
199
199
|
verified: boolean;
|
@@ -208,9 +208,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
208
208
|
symbol: string;
|
209
209
|
name: string | null;
|
210
210
|
id: string;
|
211
|
+
icon: string;
|
211
212
|
chainId: number;
|
212
213
|
address: string;
|
213
|
-
icon: string;
|
214
214
|
decimals: number;
|
215
215
|
verified: boolean;
|
216
216
|
isTest: boolean;
|
@@ -251,9 +251,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
251
251
|
symbol: string;
|
252
252
|
name: string | null;
|
253
253
|
id: string;
|
254
|
+
icon: string;
|
254
255
|
chainId: number;
|
255
256
|
address: string;
|
256
|
-
icon: string;
|
257
257
|
decimals: number;
|
258
258
|
verified: boolean;
|
259
259
|
isTest: boolean;
|
@@ -305,8 +305,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
305
305
|
status?: string | undefined;
|
306
306
|
items?: number | undefined;
|
307
307
|
tags?: string | undefined;
|
308
|
-
chainId?: string | undefined;
|
309
308
|
page?: number | undefined;
|
309
|
+
chainId?: string | undefined;
|
310
310
|
action?: string | undefined;
|
311
311
|
mainProtocolId?: string | undefined;
|
312
312
|
order?: undefined;
|
@@ -352,9 +352,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
352
352
|
symbol: string;
|
353
353
|
name: string | null;
|
354
354
|
id: string;
|
355
|
+
icon: string;
|
355
356
|
chainId: number;
|
356
357
|
address: string;
|
357
|
-
icon: string;
|
358
358
|
decimals: number;
|
359
359
|
displaySymbol: string;
|
360
360
|
verified: boolean;
|
@@ -369,9 +369,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
369
369
|
symbol: string;
|
370
370
|
name: string | null;
|
371
371
|
id: string;
|
372
|
+
icon: string;
|
372
373
|
chainId: number;
|
373
374
|
address: string;
|
374
|
-
icon: string;
|
375
375
|
decimals: number;
|
376
376
|
verified: boolean;
|
377
377
|
isTest: boolean;
|
@@ -419,8 +419,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
419
419
|
status?: string | undefined;
|
420
420
|
items?: number | undefined;
|
421
421
|
tags?: string | undefined;
|
422
|
-
chainId?: string | undefined;
|
423
422
|
page?: number | undefined;
|
423
|
+
chainId?: string | undefined;
|
424
424
|
action?: string | undefined;
|
425
425
|
mainProtocolId?: string | undefined;
|
426
426
|
order?: undefined;
|
@@ -450,8 +450,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
450
450
|
status?: string | undefined;
|
451
451
|
items?: number | undefined;
|
452
452
|
tags?: string | undefined;
|
453
|
-
chainId?: string | undefined;
|
454
453
|
page?: number | undefined;
|
454
|
+
chainId?: string | undefined;
|
455
455
|
action?: string | undefined;
|
456
456
|
mainProtocolId?: string | undefined;
|
457
457
|
order?: undefined;
|