@merkl/api 0.10.174 → 0.10.175
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 +63 -63
- package/dist/src/index.d.ts +21 -21
- package/dist/src/index.js +0 -1
- 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/HoldStationProcessor.d.ts +29 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/HoldStationProcessor.js +34 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +2 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +2 -0
- 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.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/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 +5 -1
- package/dist/src/utils/encodeCalls.js +13 -1
- package/dist/src/utils/generateCardName.js +1 -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;
|
|
119
118
|
chainId: number;
|
|
120
119
|
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;
|
|
136
135
|
chainId: number;
|
|
137
136
|
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;
|
|
222
221
|
chainId: number;
|
|
223
222
|
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;
|
|
239
238
|
chainId: number;
|
|
240
239
|
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;
|
|
282
281
|
chainId: number;
|
|
283
282
|
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
|
-
page?: number | undefined;
|
|
336
335
|
chainId?: string | undefined;
|
|
336
|
+
page?: number | 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;
|
|
383
382
|
chainId: number;
|
|
384
383
|
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;
|
|
400
399
|
chainId: number;
|
|
401
400
|
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
|
-
page?: number | undefined;
|
|
450
449
|
chainId?: string | undefined;
|
|
450
|
+
page?: number | 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
|
-
page?: number | undefined;
|
|
481
480
|
chainId?: string | undefined;
|
|
481
|
+
page?: number | 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;
|
|
510
509
|
chainId: number;
|
|
511
510
|
startTimestamp: string;
|
|
512
511
|
endTimestamp: string;
|
|
513
512
|
computeChainId: number;
|
|
514
513
|
campaignId: string;
|
|
515
514
|
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;
|
|
553
552
|
chainId?: number | undefined;
|
|
554
553
|
startTimestamp?: string | undefined;
|
|
555
554
|
endTimestamp?: string | undefined;
|
|
556
555
|
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;
|
|
577
576
|
chainId: number;
|
|
578
577
|
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;
|
|
624
623
|
chainId?: number | undefined;
|
|
625
624
|
startTimestamp?: string | undefined;
|
|
626
625
|
endTimestamp?: string | undefined;
|
|
627
626
|
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;
|
|
783
782
|
chainId: number;
|
|
784
783
|
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;
|
|
813
812
|
chainId: number;
|
|
814
813
|
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;
|
|
848
847
|
chainId: number;
|
|
849
848
|
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;
|
|
1513
1512
|
chainId: number;
|
|
1514
1513
|
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;
|
|
1534
1533
|
chainId: number;
|
|
1535
1534
|
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;
|
|
1627
1626
|
chainId: number;
|
|
1628
1627
|
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;
|
|
1648
1647
|
chainId: number;
|
|
1649
1648
|
address: string;
|
|
1649
|
+
icon: string;
|
|
1650
1650
|
decimals: number;
|
|
1651
1651
|
displaySymbol: string;
|
|
1652
1652
|
verified: boolean;
|
package/dist/src/index.js
CHANGED
|
@@ -56,7 +56,8 @@ export declare enum tokenType {
|
|
|
56
56
|
tempest = "tempest",
|
|
57
57
|
pendleYT = "pendleYT",
|
|
58
58
|
pancakeswap = "pancakeswap",
|
|
59
|
-
tempestStaking = "tempestStaking"
|
|
59
|
+
tempestStaking = "tempestStaking",
|
|
60
|
+
holdstation = "holdstation"
|
|
60
61
|
}
|
|
61
62
|
export declare const tokenTypeToProtocol: {
|
|
62
63
|
[key in tokenType]: {
|
|
@@ -58,6 +58,7 @@ export var tokenType;
|
|
|
58
58
|
tokenType["pendleYT"] = "pendleYT";
|
|
59
59
|
tokenType["pancakeswap"] = "pancakeswap";
|
|
60
60
|
tokenType["tempestStaking"] = "tempestStaking";
|
|
61
|
+
tokenType["holdstation"] = "holdstation";
|
|
61
62
|
})(tokenType || (tokenType = {}));
|
|
62
63
|
export const tokenTypeToProtocol = {
|
|
63
64
|
[tokenType.aave_borrowing]: { protocol: "Aave" },
|
|
@@ -135,4 +136,7 @@ export const tokenTypeToProtocol = {
|
|
|
135
136
|
[tokenType.tempestStaking]: {
|
|
136
137
|
protocol: "Tempest",
|
|
137
138
|
},
|
|
139
|
+
[tokenType.holdstation]: {
|
|
140
|
+
protocol: "HoldStation",
|
|
141
|
+
},
|
|
138
142
|
};
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/HoldStationProcessor.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Pricer } from "../../../../../utils/pricer";
|
|
2
|
+
import { type Campaign, type CampaignParameters } from "@sdk";
|
|
3
|
+
import type { tokenType } from "../helpers/tokenType";
|
|
4
|
+
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
|
|
5
|
+
type callType = {
|
|
6
|
+
key: keyof dataRawHS;
|
|
7
|
+
call: string;
|
|
8
|
+
target: keyof callKeysHS;
|
|
9
|
+
metaData?: keyof callKeysHS;
|
|
10
|
+
};
|
|
11
|
+
type callKeysHS = mandatoryCallKeys & {
|
|
12
|
+
tvl: string;
|
|
13
|
+
underlying: string;
|
|
14
|
+
};
|
|
15
|
+
type dataRawHS = callKeysHS & {
|
|
16
|
+
decimalsUnderlying: string;
|
|
17
|
+
symbolUnderlying: string;
|
|
18
|
+
};
|
|
19
|
+
type dataTypeHS = dataType & {};
|
|
20
|
+
export declare class HoldStationProcessor extends GenericProcessor<callKeysHS, dataRawHS, dataTypeHS> {
|
|
21
|
+
rounds: {
|
|
22
|
+
round1: callType[];
|
|
23
|
+
round2: callType[];
|
|
24
|
+
round3: callType[];
|
|
25
|
+
round4: callType[];
|
|
26
|
+
};
|
|
27
|
+
processingRound5(_index: number, type: tokenType, typeInfo: dataRawHS, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeHS>;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { generateCardName } from "../../../../../utils/generateCardName";
|
|
2
|
+
import { BN2Number } from "@sdk";
|
|
3
|
+
import { GenericProcessor } from "./GenericProcessor";
|
|
4
|
+
export class HoldStationProcessor extends GenericProcessor {
|
|
5
|
+
rounds = {
|
|
6
|
+
round1: [
|
|
7
|
+
{ key: "tvl", call: "tvl", target: "tokenAddress" },
|
|
8
|
+
{ key: "underlying", call: "underlying", target: "tokenAddress" },
|
|
9
|
+
],
|
|
10
|
+
round2: [
|
|
11
|
+
{ key: "decimalsUnderlying", call: "decimals", target: "underlying" },
|
|
12
|
+
{ key: "symbolUnderlying", call: "symbol", target: "underlying" },
|
|
13
|
+
],
|
|
14
|
+
round3: [],
|
|
15
|
+
round4: [{ key: "totalSupply", call: "totalSupply", target: "tokenAddress" }],
|
|
16
|
+
};
|
|
17
|
+
async processingRound5(_index, type, typeInfo, _calls, campaign, pricer) {
|
|
18
|
+
const { whitelistedSupplyTargetToken, totalSupply, blacklistedSupply } = this.handleWhiteListBlacklistRound5(typeInfo, campaign);
|
|
19
|
+
const decimalsUnderlying = Number(typeInfo.decimalsUnderlying);
|
|
20
|
+
const amountUnderlying = BN2Number(typeInfo.tvl, decimalsUnderlying);
|
|
21
|
+
const underlyingPrice = (await pricer.get({ symbol: typeInfo.symbolUnderlying })) ?? 0;
|
|
22
|
+
const tvl = underlyingPrice * amountUnderlying;
|
|
23
|
+
const priceTargetToken = tvl / totalSupply;
|
|
24
|
+
return {
|
|
25
|
+
...typeInfo,
|
|
26
|
+
totalSupply,
|
|
27
|
+
tvl,
|
|
28
|
+
whitelistedSupplyTargetToken,
|
|
29
|
+
priceTargetToken: priceTargetToken,
|
|
30
|
+
cardName: generateCardName(type, typeInfo, campaign),
|
|
31
|
+
blacklistedSupply,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -13,6 +13,7 @@ import { FluidProcessor } from "./FluidProcessor";
|
|
|
13
13
|
import { FraxProcessor } from "./FraxProcessor";
|
|
14
14
|
import { GearboxProcessor } from "./GearboxProcessor";
|
|
15
15
|
import { GenericProcessor } from "./GenericProcessor";
|
|
16
|
+
import { HoldStationProcessor } from "./HoldStationProcessor";
|
|
16
17
|
import { MaverickBPProcessor } from "./MaverickBPProcessor";
|
|
17
18
|
import { MetamorphoProcessor } from "./MetamorphoProcessor";
|
|
18
19
|
import { PendleProcessor } from "./PendleProcessor";
|
|
@@ -86,4 +87,5 @@ export const processorMapping = {
|
|
|
86
87
|
[tokenType.pendleYT]: PendleYTProcessor,
|
|
87
88
|
[tokenType.pancakeswap]: UniswapProcessor,
|
|
88
89
|
[tokenType.tempestStaking]: TempestVaultProcessor,
|
|
90
|
+
[tokenType.holdstation]: HoldStationProcessor,
|
|
89
91
|
};
|
|
@@ -94,6 +94,8 @@ function satisfiesNameConditions(name, type) {
|
|
|
94
94
|
return lowerCaseName.startsWith("ts");
|
|
95
95
|
case tokenType.tempestStaking:
|
|
96
96
|
return lowerCaseName.startsWith("tempest");
|
|
97
|
+
case tokenType.holdstation:
|
|
98
|
+
return lowerCaseName.startsWith("hs");
|
|
97
99
|
default:
|
|
98
100
|
return false;
|
|
99
101
|
}
|
|
@@ -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;
|
|
24
23
|
chainId: number;
|
|
25
24
|
startTimestamp: string;
|
|
26
25
|
endTimestamp: string;
|
|
27
26
|
computeChainId: number;
|
|
28
27
|
campaignId: string;
|
|
29
28
|
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;
|
|
67
66
|
chainId?: number | undefined;
|
|
68
67
|
startTimestamp?: string | undefined;
|
|
69
68
|
endTimestamp?: string | undefined;
|
|
70
69
|
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;
|
|
91
90
|
chainId: number;
|
|
92
91
|
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;
|
|
138
137
|
chainId?: number | undefined;
|
|
139
138
|
startTimestamp?: string | undefined;
|
|
140
139
|
endTimestamp?: string | undefined;
|
|
141
140
|
tokenAddress?: string | undefined;
|
|
141
|
+
page?: number | undefined;
|
|
142
142
|
mainParameter?: string | undefined;
|
|
143
143
|
campaignId?: string | undefined;
|
|
144
144
|
opportunityId?: string | undefined;
|
|
@@ -32,7 +32,6 @@ 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;
|
|
36
35
|
chainId: number;
|
|
37
36
|
startTimestamp: number;
|
|
38
37
|
endTimestamp: number;
|
|
@@ -41,6 +40,7 @@ export declare abstract class CampaignRepository {
|
|
|
41
40
|
campaignId: string;
|
|
42
41
|
amount: string;
|
|
43
42
|
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;
|
|
102
101
|
chainId: number;
|
|
103
102
|
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;
|
|
43
42
|
chainId: number;
|
|
44
43
|
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;
|
|
177
176
|
chainId: number;
|
|
178
177
|
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;
|
|
92
91
|
chainId: number;
|
|
93
92
|
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;
|
|
109
108
|
chainId: number;
|
|
110
109
|
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;
|
|
195
194
|
chainId: number;
|
|
196
195
|
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;
|
|
212
211
|
chainId: number;
|
|
213
212
|
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;
|
|
255
254
|
chainId: number;
|
|
256
255
|
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
|
-
page?: number | undefined;
|
|
309
308
|
chainId?: string | undefined;
|
|
309
|
+
page?: number | 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;
|
|
356
355
|
chainId: number;
|
|
357
356
|
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;
|
|
373
372
|
chainId: number;
|
|
374
373
|
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
|
-
page?: number | undefined;
|
|
423
422
|
chainId?: string | undefined;
|
|
423
|
+
page?: number | 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
|
-
page?: number | undefined;
|
|
454
453
|
chainId?: string | undefined;
|
|
454
|
+
page?: number | undefined;
|
|
455
455
|
action?: string | undefined;
|
|
456
456
|
mainProtocolId?: string | undefined;
|
|
457
457
|
order?: undefined;
|