@merkl/api 1.0.96 → 1.0.98
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 +3282 -252
- package/dist/src/index.d.ts +1638 -123
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +380 -18
- package/dist/src/modules/v4/campaign/campaign.convertor.d.ts +2 -1
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +0 -2
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +0 -10
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -28
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +1162 -44
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +14 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +0 -28
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +0 -6
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +0 -10
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +0 -28
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -26
- package/dist/src/modules/v4/payload/payload.controller.d.ts +93 -6
- package/dist/src/modules/v4/payload/payload.service.d.ts +95 -8
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +0 -2
- package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +0 -2
- package/dist/src/modules/v4/reward/reward.model.d.ts +0 -4
- package/dist/src/modules/v4/reward/reward.repository.d.ts +0 -4
- package/dist/src/modules/v4/reward/reward.service.d.ts +0 -26
- package/dist/src/modules/v4/router.d.ts +1638 -123
- package/dist/src/modules/v4/token/token.controller.d.ts +3 -21
- package/dist/src/modules/v4/token/token.model.d.ts +1 -8
- package/dist/src/modules/v4/token/token.repository.d.ts +2 -11
- package/dist/src/modules/v4/token/token.service.d.ts +1 -29
- package/dist/src/modules/v4/user/user.controller.d.ts +0 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Campaign, type ChainId, type campaignConfig } from "@angleprotocol/sdk/ts";
|
1
|
+
import { Campaign as CampaignType, type ChainId, type campaignConfig } from "@angleprotocol/sdk/ts";
|
2
2
|
import type { CampaignPayloadInputModel, SinglePayloadInputDtoModel } from "./payload.model";
|
3
3
|
export declare class PayloadService {
|
4
4
|
static buildConfigTemplate(params: {
|
@@ -6,18 +6,105 @@ export declare class PayloadService {
|
|
6
6
|
}): {
|
7
7
|
[key: string]: string;
|
8
8
|
};
|
9
|
-
static buildConfig(query: CampaignPayloadInputModel): campaignConfig<
|
9
|
+
static buildConfig(query: CampaignPayloadInputModel): campaignConfig<CampaignType>;
|
10
10
|
static buildPayloadFromConfig(config: SinglePayloadInputDtoModel): Promise<{
|
11
11
|
message: string;
|
12
12
|
name: string;
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
solidity?: undefined;
|
14
|
+
campaign?: undefined;
|
15
|
+
opportunity?: undefined;
|
16
|
+
tvl?: undefined;
|
16
17
|
fee?: undefined;
|
17
18
|
} | {
|
18
|
-
|
19
|
-
|
20
|
-
|
19
|
+
solidity: {
|
20
|
+
args: import("@angleprotocol/sdk/ts").OnChainCampaignDto;
|
21
|
+
payload: string;
|
22
|
+
};
|
23
|
+
campaign: import("@angleprotocol/sdk/ts").M0Campaign | import("@angleprotocol/sdk/ts").AaveCampaign | import("@angleprotocol/sdk/ts").EigenLayerCampaign | import("@angleprotocol/sdk/ts").ERC20LogCampaign | import("@angleprotocol/sdk/ts").ERC20FixAPRCampaign | import("@angleprotocol/sdk/ts").ERC20RebaseLogCampaign | import("@angleprotocol/sdk/ts").ERC20RebaseFixAPRCampaign | import("@angleprotocol/sdk/ts").EulerCampaign | import("@angleprotocol/sdk/ts").EventBasedCampaign | import("@angleprotocol/sdk/ts").HyperDriveLogCampaign | import("@angleprotocol/sdk/ts").HyperDriveLogFixCampaign | import("@angleprotocol/sdk/ts").MorphoBorrowCampaign | import("@angleprotocol/sdk/ts").MorphoBorrowFixAPRCampaign | import("@angleprotocol/sdk/ts").MorphoCollateralCampaign | import("@angleprotocol/sdk/ts").MorphoCollateralFixAPRCampaign | import("@angleprotocol/sdk/ts").MorphoSupplyCampaign | import("@angleprotocol/sdk/ts").MorphoSupplyFixAPRCampaign | import("@angleprotocol/sdk/ts").TargetTokenCampaign | import("@angleprotocol/sdk/ts").ERC20Campaign | import("@angleprotocol/sdk/ts").CLAMMCampaign | import("@angleprotocol/sdk/ts").ERC20_SNAPSHOTCampaign | import("@angleprotocol/sdk/ts").JSON_AIRDROPCampaign | import("@angleprotocol/sdk/ts").SILOCampaign | import("@angleprotocol/sdk/ts").RadiantCampaign | import("@angleprotocol/sdk/ts").DolomiteCampaign | import("@angleprotocol/sdk/ts").BadgerCampaign | import("@angleprotocol/sdk/ts").CompoundCampaign | import("@angleprotocol/sdk/ts").AjnaCampaign | import("@angleprotocol/sdk/ts").UniswapV4Campaign | import("@angleprotocol/sdk/ts").EkuboCampaign | import("@angleprotocol/sdk/ts").IonCampaign | import("@angleprotocol/sdk/ts").VestCampaign | import("@angleprotocol/sdk/ts").SyncswapVaultCampaign | import("@angleprotocol/sdk/ts").AmbientCampaign | import("@angleprotocol/sdk/ts").EncompassingCampaign | import("@angleprotocol/sdk/ts").MaverickBPCampaign | import("@angleprotocol/sdk/ts").ERC6909Campaign | import("@angleprotocol/sdk/ts").ERC6909FixAPRCampaign | import("@angleprotocol/sdk/ts").CompoundV3Campaign | import("@angleprotocol/sdk/ts").CompoundV3FixAPRCampaign | import("@angleprotocol/sdk/ts").ERC721Campaign | import("@angleprotocol/sdk/ts").ERC721FixAPRCampaign | import("@angleprotocol/sdk/ts").MultiLogCampaign | import("@angleprotocol/sdk/ts").LockerCampaign | import("@angleprotocol/sdk/ts").ConvexCampaign | import("@angleprotocol/sdk/ts").StakeDAOCampaign | import("@angleprotocol/sdk/ts").MappingCampaign | import("@angleprotocol/sdk/ts").FraxLendCampaign | import("@angleprotocol/sdk/ts").FraxLendFixAPRCampaign | import("@angleprotocol/sdk/ts").SymbioticVaultCampaign | import("@angleprotocol/sdk/ts").EkuboPositionManagerCampaign | import("@angleprotocol/sdk/ts").MorphoCampaign<import("@angleprotocol/sdk/ts").MorphoSubCampaignType>;
|
24
|
+
opportunity: Omit<import("../campaign/campaign.model").CampaignWithParams, "manualOverrides"> | {
|
25
|
+
id: string;
|
26
|
+
chainId: number;
|
27
|
+
type: string;
|
28
|
+
identifier: string;
|
29
|
+
name: string;
|
30
|
+
status: "PAST" | "LIVE" | "SOON";
|
31
|
+
action: OpportunityAction;
|
32
|
+
tokens: ({
|
33
|
+
symbol: string;
|
34
|
+
name: string | null;
|
35
|
+
decimals: number;
|
36
|
+
address: string;
|
37
|
+
id: string;
|
38
|
+
chainId: number;
|
39
|
+
type: import("@package/databases").TokenType;
|
40
|
+
icon: string;
|
41
|
+
isNative: boolean;
|
42
|
+
isTest: boolean;
|
43
|
+
verified: boolean;
|
44
|
+
} & {
|
45
|
+
price?: number | null | undefined;
|
46
|
+
isTokenWrapper?: boolean | undefined;
|
47
|
+
tokenWrapperAddress?: string | undefined;
|
48
|
+
})[];
|
49
|
+
mainProtocol: "splice" | "curve" | "morpho" | "compound" | "silo" | "reserve" | "gamma" | "vest" | "zero" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quickswap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "mimswap" | "ichi" | "ekubo" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
|
50
|
+
description: string;
|
51
|
+
howToSteps: string[];
|
52
|
+
depositUrl: string | undefined;
|
53
|
+
explorerAddress: string | undefined;
|
54
|
+
tags: string[];
|
55
|
+
} | ({
|
56
|
+
Tokens: {
|
57
|
+
symbol: string;
|
58
|
+
name: string | null;
|
59
|
+
decimals: number;
|
60
|
+
price: number | null;
|
61
|
+
address: string;
|
62
|
+
id: string;
|
63
|
+
chainId: number;
|
64
|
+
type: import("@package/databases").TokenType;
|
65
|
+
icon: string;
|
66
|
+
isNative: boolean;
|
67
|
+
isTest: boolean;
|
68
|
+
verified: boolean;
|
69
|
+
displaySymbol: string;
|
70
|
+
}[];
|
71
|
+
Protocols: {
|
72
|
+
name: string;
|
73
|
+
description: string;
|
74
|
+
id: string;
|
75
|
+
url: string;
|
76
|
+
icon: string;
|
77
|
+
tags: string[];
|
78
|
+
}[];
|
79
|
+
} & {
|
80
|
+
name: string;
|
81
|
+
apr: number;
|
82
|
+
tvl: number;
|
83
|
+
description: string;
|
84
|
+
id: string;
|
85
|
+
status: import("@package/databases").Status;
|
86
|
+
chainId: number;
|
87
|
+
action: import("@package/databases").OpportunityAction;
|
88
|
+
type: string;
|
89
|
+
depositUrl: string | null;
|
90
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
91
|
+
identifier: string;
|
92
|
+
howToSteps: string[];
|
93
|
+
explorerAddress: string | null;
|
94
|
+
mainProtocolId: string | null;
|
95
|
+
dailyRewards: number;
|
96
|
+
tags: string[];
|
97
|
+
lastCampaignCreatedAt: Date;
|
98
|
+
});
|
99
|
+
tvl: {
|
100
|
+
timestamp: bigint;
|
101
|
+
total: number;
|
102
|
+
breakdowns: ({
|
103
|
+
value: number;
|
104
|
+
type: import("@package/databases").TvlType;
|
105
|
+
identifier: string;
|
106
|
+
} & {})[];
|
107
|
+
} & {};
|
21
108
|
fee: string | undefined;
|
22
109
|
message?: undefined;
|
23
110
|
name?: undefined;
|
@@ -1037,8 +1037,6 @@ export declare const ProgramPayloadController: Elysia<"/program-payload", {
|
|
1037
1037
|
type: import("@package/databases").TokenType;
|
1038
1038
|
icon: string;
|
1039
1039
|
isNative: boolean;
|
1040
|
-
isPoint: boolean;
|
1041
|
-
isPreTGE: boolean;
|
1042
1040
|
isTest: boolean;
|
1043
1041
|
verified: boolean;
|
1044
1042
|
} & {
|
@@ -52,8 +52,6 @@ export declare const DailyRewardsBreakdownRecordResourceDto: import("@sinclair/t
|
|
52
52
|
verified: import("@sinclair/typebox").TBoolean;
|
53
53
|
isNative: import("@sinclair/typebox").TBoolean;
|
54
54
|
isTest: import("@sinclair/typebox").TBoolean;
|
55
|
-
isPoint: import("@sinclair/typebox").TBoolean;
|
56
|
-
isPreTGE: import("@sinclair/typebox").TBoolean;
|
57
55
|
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
58
56
|
symbol: import("@sinclair/typebox").TString;
|
59
57
|
type: import("@sinclair/typebox").TEnum<{
|
@@ -87,8 +85,6 @@ export declare const DailyRewardsRecordResourceDto: import("@sinclair/typebox").
|
|
87
85
|
verified: import("@sinclair/typebox").TBoolean;
|
88
86
|
isNative: import("@sinclair/typebox").TBoolean;
|
89
87
|
isTest: import("@sinclair/typebox").TBoolean;
|
90
|
-
isPoint: import("@sinclair/typebox").TBoolean;
|
91
|
-
isPreTGE: import("@sinclair/typebox").TBoolean;
|
92
88
|
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
93
89
|
symbol: import("@sinclair/typebox").TString;
|
94
90
|
type: import("@sinclair/typebox").TEnum<{
|
@@ -16,8 +16,6 @@ export declare abstract class RewardRepository {
|
|
16
16
|
type: import("@package/databases").TokenType;
|
17
17
|
icon: string;
|
18
18
|
isNative: boolean;
|
19
|
-
isPoint: boolean;
|
20
|
-
isPreTGE: boolean;
|
21
19
|
isTest: boolean;
|
22
20
|
verified: boolean;
|
23
21
|
displaySymbol: string;
|
@@ -42,8 +40,6 @@ export declare abstract class RewardRepository {
|
|
42
40
|
type: import("@package/databases").TokenType;
|
43
41
|
icon: string;
|
44
42
|
isNative: boolean;
|
45
|
-
isPoint: boolean;
|
46
|
-
isPreTGE: boolean;
|
47
43
|
isTest: boolean;
|
48
44
|
verified: boolean;
|
49
45
|
displaySymbol: string;
|
@@ -59,8 +59,6 @@ export declare abstract class RewardService {
|
|
59
59
|
type: import("@package/databases").TokenType;
|
60
60
|
icon: string;
|
61
61
|
isNative: boolean;
|
62
|
-
isPoint: boolean;
|
63
|
-
isPreTGE: boolean;
|
64
62
|
isTest: boolean;
|
65
63
|
verified: boolean;
|
66
64
|
displaySymbol: string;
|
@@ -81,8 +79,6 @@ export declare abstract class RewardService {
|
|
81
79
|
type: import("@package/databases").TokenType;
|
82
80
|
icon: string;
|
83
81
|
isNative: boolean;
|
84
|
-
isPoint: boolean;
|
85
|
-
isPreTGE: boolean;
|
86
82
|
isTest: boolean;
|
87
83
|
verified: boolean;
|
88
84
|
} & {
|
@@ -149,8 +145,6 @@ export declare abstract class RewardService {
|
|
149
145
|
type: import("@package/databases").TokenType;
|
150
146
|
icon: string;
|
151
147
|
isNative: boolean;
|
152
|
-
isPoint: boolean;
|
153
|
-
isPreTGE: boolean;
|
154
148
|
isTest: boolean;
|
155
149
|
verified: boolean;
|
156
150
|
displaySymbol: string;
|
@@ -213,8 +207,6 @@ export declare abstract class RewardService {
|
|
213
207
|
type: import("@package/databases").TokenType;
|
214
208
|
icon: string;
|
215
209
|
isNative: boolean;
|
216
|
-
isPoint: boolean;
|
217
|
-
isPreTGE: boolean;
|
218
210
|
isTest: boolean;
|
219
211
|
verified: boolean;
|
220
212
|
displaySymbol: string;
|
@@ -239,8 +231,6 @@ export declare abstract class RewardService {
|
|
239
231
|
type: import("@package/databases").TokenType;
|
240
232
|
icon: string;
|
241
233
|
isNative: boolean;
|
242
|
-
isPoint: boolean;
|
243
|
-
isPreTGE: boolean;
|
244
234
|
isTest: boolean;
|
245
235
|
verified: boolean;
|
246
236
|
displaySymbol: string;
|
@@ -306,8 +296,6 @@ export declare abstract class RewardService {
|
|
306
296
|
type: import("@package/databases").TokenType;
|
307
297
|
icon: string;
|
308
298
|
isNative: boolean;
|
309
|
-
isPoint: boolean;
|
310
|
-
isPreTGE: boolean;
|
311
299
|
isTest: boolean;
|
312
300
|
verified: boolean;
|
313
301
|
displaySymbol: string;
|
@@ -332,8 +320,6 @@ export declare abstract class RewardService {
|
|
332
320
|
type: import("@package/databases").TokenType;
|
333
321
|
icon: string;
|
334
322
|
isNative: boolean;
|
335
|
-
isPoint: boolean;
|
336
|
-
isPreTGE: boolean;
|
337
323
|
isTest: boolean;
|
338
324
|
verified: boolean;
|
339
325
|
displaySymbol: string;
|
@@ -430,8 +416,6 @@ export declare abstract class RewardService {
|
|
430
416
|
type: import("@package/databases").TokenType;
|
431
417
|
icon: string;
|
432
418
|
isNative: boolean;
|
433
|
-
isPoint: boolean;
|
434
|
-
isPreTGE: boolean;
|
435
419
|
isTest: boolean;
|
436
420
|
verified: boolean;
|
437
421
|
displaySymbol: string;
|
@@ -456,8 +440,6 @@ export declare abstract class RewardService {
|
|
456
440
|
type: import("@package/databases").TokenType;
|
457
441
|
icon: string;
|
458
442
|
isNative: boolean;
|
459
|
-
isPoint: boolean;
|
460
|
-
isPreTGE: boolean;
|
461
443
|
isTest: boolean;
|
462
444
|
verified: boolean;
|
463
445
|
displaySymbol: string;
|
@@ -535,8 +517,6 @@ export declare abstract class RewardService {
|
|
535
517
|
type: import("@package/databases").TokenType;
|
536
518
|
icon: string;
|
537
519
|
isNative: boolean;
|
538
|
-
isPoint: boolean;
|
539
|
-
isPreTGE: boolean;
|
540
520
|
isTest: boolean;
|
541
521
|
verified: boolean;
|
542
522
|
displaySymbol: string;
|
@@ -561,8 +541,6 @@ export declare abstract class RewardService {
|
|
561
541
|
type: import("@package/databases").TokenType;
|
562
542
|
icon: string;
|
563
543
|
isNative: boolean;
|
564
|
-
isPoint: boolean;
|
565
|
-
isPreTGE: boolean;
|
566
544
|
isTest: boolean;
|
567
545
|
verified: boolean;
|
568
546
|
displaySymbol: string;
|
@@ -638,8 +616,6 @@ export declare abstract class RewardService {
|
|
638
616
|
type: import("@package/databases").TokenType;
|
639
617
|
icon: string;
|
640
618
|
isNative: boolean;
|
641
|
-
isPoint: boolean;
|
642
|
-
isPreTGE: boolean;
|
643
619
|
isTest: boolean;
|
644
620
|
verified: boolean;
|
645
621
|
displaySymbol: string;
|
@@ -664,8 +640,6 @@ export declare abstract class RewardService {
|
|
664
640
|
type: import("@package/databases").TokenType;
|
665
641
|
icon: string;
|
666
642
|
isNative: boolean;
|
667
|
-
isPoint: boolean;
|
668
|
-
isPreTGE: boolean;
|
669
643
|
isTest: boolean;
|
670
644
|
verified: boolean;
|
671
645
|
displaySymbol: string;
|