@merkl/api 0.10.252 → 0.10.254
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/eden/index.d.ts +130 -12
- package/dist/src/index.d.ts +48 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/RfxProcessor.js +1 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.controller.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +18 -1
- package/dist/src/modules/v4/campaign/campaign.model.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +2 -3
- package/dist/src/modules/v4/campaign/campaign.repository.js +9 -70
- package/dist/src/modules/v4/campaign/campaign.service.js +6 -23
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +46 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +23 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +4 -2
- package/dist/src/modules/v4/opportunity/opportunity.model.js +4 -2
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +148 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +45 -25
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +54 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.js +55 -4
- package/dist/src/modules/v4/opportunity/subservices/getClammMetadata.service.js +1 -1
- package/dist/src/modules/v4/opportunity/subservices/getErc20Metadata.service.js +40 -50
- package/dist/src/modules/v4/router.d.ts +48 -4
- package/dist/src/utils/generateCardName.js +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -26,6 +26,10 @@ export declare const v4: Elysia<"/v4", false, {
|
|
26
26
|
post: {
|
27
27
|
body: {
|
28
28
|
name?: string | undefined;
|
29
|
+
tags?: string[] | undefined;
|
30
|
+
depositUrl?: string | undefined;
|
31
|
+
protocols?: string[] | undefined;
|
32
|
+
mainProtocol?: string | undefined;
|
29
33
|
type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
|
30
34
|
tokens: {
|
31
35
|
chainId: number;
|
@@ -35,8 +39,6 @@ export declare const v4: Elysia<"/v4", false, {
|
|
35
39
|
identifier: string;
|
36
40
|
chainId: number;
|
37
41
|
action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
|
38
|
-
protocols: string[];
|
39
|
-
mainProtocol: string;
|
40
42
|
};
|
41
43
|
params: {};
|
42
44
|
query: unknown;
|
@@ -49,6 +51,48 @@ export declare const v4: Elysia<"/v4", false, {
|
|
49
51
|
};
|
50
52
|
};
|
51
53
|
};
|
54
|
+
} & {
|
55
|
+
opportunities: {
|
56
|
+
":id": {
|
57
|
+
post: {
|
58
|
+
body: unknown;
|
59
|
+
params: {
|
60
|
+
id: string;
|
61
|
+
};
|
62
|
+
query: unknown;
|
63
|
+
headers: {
|
64
|
+
authorization: string;
|
65
|
+
};
|
66
|
+
response: {
|
67
|
+
200: {
|
68
|
+
id: string;
|
69
|
+
chainId: number;
|
70
|
+
type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
|
71
|
+
identifier: string;
|
72
|
+
name: string;
|
73
|
+
status: "PAST" | "LIVE" | "SOON";
|
74
|
+
action: import("../../../database/api/.generated").$Enums.OpportunityAction;
|
75
|
+
tokens: ({
|
76
|
+
symbol: string;
|
77
|
+
name: string | null;
|
78
|
+
id: string;
|
79
|
+
icon: string;
|
80
|
+
chainId: number;
|
81
|
+
address: string;
|
82
|
+
decimals: number;
|
83
|
+
verified: boolean;
|
84
|
+
isTest: boolean;
|
85
|
+
} & {
|
86
|
+
price?: number | null | undefined;
|
87
|
+
})[];
|
88
|
+
mainProtocol: "morpho" | "aura" | "poolside" | "gearbox" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fenix" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "akron" | "dragonswap" | "koi" | "baseswap" | "zkswap" | "rfx" | "woofi" | "zkSwapThreePool" | "venus" | "reactor_fusion" | "balancer" | "aave" | "arthswap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "supswap-v3" | "thirdtrade" | "uniswap-v2" | "syncswap-v3" | "neptune" | "radiant" | "euler" | "sturdy" | "frax" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | undefined;
|
89
|
+
depositUrl: any;
|
90
|
+
tags: string[];
|
91
|
+
};
|
92
|
+
};
|
93
|
+
};
|
94
|
+
};
|
95
|
+
};
|
52
96
|
} & {
|
53
97
|
opportunities: {
|
54
98
|
index: {
|
@@ -533,13 +577,13 @@ export declare const v4: Elysia<"/v4", false, {
|
|
533
577
|
} & {
|
534
578
|
v4: {
|
535
579
|
campaigns: {
|
536
|
-
|
580
|
+
engine: {
|
537
581
|
post: {
|
538
582
|
body: {
|
539
583
|
tags?: string[] | undefined;
|
540
584
|
identifier?: string | undefined;
|
541
585
|
subType?: number | undefined;
|
542
|
-
type:
|
586
|
+
type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
|
543
587
|
params: string;
|
544
588
|
creator: string;
|
545
589
|
chainId: number;
|
@@ -42,7 +42,7 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""]) {
|
|
42
42
|
return `Lend ${cardToken} on ${typeInfo.protocol}`;
|
43
43
|
}
|
44
44
|
case tokenType.rfx:
|
45
|
-
return
|
45
|
+
return `Supply ${typeInfo.symbolShortToken}/${typeInfo.symbolLongToken} on ${typeInfo.protocol}`;
|
46
46
|
case tokenType.radiant_borrow:
|
47
47
|
case tokenType.aave_borrowing:
|
48
48
|
case tokenType.yei_borrowing:
|