@merkl/api 0.15.25 → 0.15.26
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 +147 -0
- package/dist/src/entities/opportunity.js +3 -1
- package/dist/src/index.d.ts +39 -0
- package/dist/src/modules/v4/boost/boost.controller.d.ts +39 -0
- package/dist/src/modules/v4/boost/boost.controller.js +6 -1
- package/dist/src/modules/v4/boost/boost.service.d.ts +4 -0
- package/dist/src/modules/v4/boost/boost.service.js +23 -0
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +1 -0
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +11 -0
- package/dist/src/modules/v4/router.d.ts +39 -0
- package/dist/src/modules/v4/user/user.controller.js +5 -3
- package/dist/src/utils/generateCardName.js +2 -2
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -2995,6 +2995,33 @@ declare const eden: {
|
|
2995
2995
|
}[];
|
2996
2996
|
}>>;
|
2997
2997
|
};
|
2998
|
+
openBlock: {
|
2999
|
+
post: (body: {
|
3000
|
+
address: string;
|
3001
|
+
score: string;
|
3002
|
+
}[] | {
|
3003
|
+
addresses: string[];
|
3004
|
+
}, options?: {
|
3005
|
+
headers?: Record<string, unknown> | undefined;
|
3006
|
+
query?: Record<string, unknown> | undefined;
|
3007
|
+
fetch?: RequestInit | undefined;
|
3008
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3009
|
+
200: {
|
3010
|
+
address: string;
|
3011
|
+
boost: string;
|
3012
|
+
}[];
|
3013
|
+
}>>;
|
3014
|
+
get: (options?: {
|
3015
|
+
headers?: Record<string, unknown> | undefined;
|
3016
|
+
query?: Record<string, unknown> | undefined;
|
3017
|
+
fetch?: RequestInit | undefined;
|
3018
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3019
|
+
200: {
|
3020
|
+
address: string;
|
3021
|
+
boost: string;
|
3022
|
+
}[];
|
3023
|
+
}>>;
|
3024
|
+
};
|
2998
3025
|
};
|
2999
3026
|
value: {
|
3000
3027
|
campaign: ((params: {
|
@@ -6040,6 +6067,33 @@ declare const eden: {
|
|
6040
6067
|
}[];
|
6041
6068
|
}>>;
|
6042
6069
|
};
|
6070
|
+
openBlock: {
|
6071
|
+
post: (body: {
|
6072
|
+
address: string;
|
6073
|
+
score: string;
|
6074
|
+
}[] | {
|
6075
|
+
addresses: string[];
|
6076
|
+
}, options?: {
|
6077
|
+
headers?: Record<string, unknown> | undefined;
|
6078
|
+
query?: Record<string, unknown> | undefined;
|
6079
|
+
fetch?: RequestInit | undefined;
|
6080
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6081
|
+
200: {
|
6082
|
+
address: string;
|
6083
|
+
boost: string;
|
6084
|
+
}[];
|
6085
|
+
}>>;
|
6086
|
+
get: (options?: {
|
6087
|
+
headers?: Record<string, unknown> | undefined;
|
6088
|
+
query?: Record<string, unknown> | undefined;
|
6089
|
+
fetch?: RequestInit | undefined;
|
6090
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6091
|
+
200: {
|
6092
|
+
address: string;
|
6093
|
+
boost: string;
|
6094
|
+
}[];
|
6095
|
+
}>>;
|
6096
|
+
};
|
6043
6097
|
};
|
6044
6098
|
value: {
|
6045
6099
|
campaign: ((params: {
|
@@ -10484,6 +10538,45 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
10484
10538
|
};
|
10485
10539
|
};
|
10486
10540
|
};
|
10541
|
+
} & {
|
10542
|
+
boosts: {
|
10543
|
+
openBlock: {
|
10544
|
+
post: {
|
10545
|
+
body: {
|
10546
|
+
addresses: string[];
|
10547
|
+
} | {
|
10548
|
+
address: string;
|
10549
|
+
score: string;
|
10550
|
+
}[];
|
10551
|
+
params: {};
|
10552
|
+
query: unknown;
|
10553
|
+
headers: unknown;
|
10554
|
+
response: {
|
10555
|
+
200: {
|
10556
|
+
address: string;
|
10557
|
+
boost: string;
|
10558
|
+
}[];
|
10559
|
+
};
|
10560
|
+
};
|
10561
|
+
};
|
10562
|
+
};
|
10563
|
+
} & {
|
10564
|
+
boosts: {
|
10565
|
+
openBlock: {
|
10566
|
+
get: {
|
10567
|
+
body: unknown;
|
10568
|
+
params: {};
|
10569
|
+
query: unknown;
|
10570
|
+
headers: unknown;
|
10571
|
+
response: {
|
10572
|
+
200: {
|
10573
|
+
address: string;
|
10574
|
+
boost: string;
|
10575
|
+
}[];
|
10576
|
+
};
|
10577
|
+
};
|
10578
|
+
};
|
10579
|
+
};
|
10487
10580
|
};
|
10488
10581
|
} & {
|
10489
10582
|
v4: {
|
@@ -14465,6 +14558,33 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
14465
14558
|
}[];
|
14466
14559
|
}>>;
|
14467
14560
|
};
|
14561
|
+
openBlock: {
|
14562
|
+
post: (body: {
|
14563
|
+
address: string;
|
14564
|
+
score: string;
|
14565
|
+
}[] | {
|
14566
|
+
addresses: string[];
|
14567
|
+
}, options?: {
|
14568
|
+
headers?: Record<string, unknown> | undefined;
|
14569
|
+
query?: Record<string, unknown> | undefined;
|
14570
|
+
fetch?: RequestInit | undefined;
|
14571
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
14572
|
+
200: {
|
14573
|
+
address: string;
|
14574
|
+
boost: string;
|
14575
|
+
}[];
|
14576
|
+
}>>;
|
14577
|
+
get: (options?: {
|
14578
|
+
headers?: Record<string, unknown> | undefined;
|
14579
|
+
query?: Record<string, unknown> | undefined;
|
14580
|
+
fetch?: RequestInit | undefined;
|
14581
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
14582
|
+
200: {
|
14583
|
+
address: string;
|
14584
|
+
boost: string;
|
14585
|
+
}[];
|
14586
|
+
}>>;
|
14587
|
+
};
|
14468
14588
|
};
|
14469
14589
|
value: {
|
14470
14590
|
campaign: ((params: {
|
@@ -17510,6 +17630,33 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17510
17630
|
}[];
|
17511
17631
|
}>>;
|
17512
17632
|
};
|
17633
|
+
openBlock: {
|
17634
|
+
post: (body: {
|
17635
|
+
address: string;
|
17636
|
+
score: string;
|
17637
|
+
}[] | {
|
17638
|
+
addresses: string[];
|
17639
|
+
}, options?: {
|
17640
|
+
headers?: Record<string, unknown> | undefined;
|
17641
|
+
query?: Record<string, unknown> | undefined;
|
17642
|
+
fetch?: RequestInit | undefined;
|
17643
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17644
|
+
200: {
|
17645
|
+
address: string;
|
17646
|
+
boost: string;
|
17647
|
+
}[];
|
17648
|
+
}>>;
|
17649
|
+
get: (options?: {
|
17650
|
+
headers?: Record<string, unknown> | undefined;
|
17651
|
+
query?: Record<string, unknown> | undefined;
|
17652
|
+
fetch?: RequestInit | undefined;
|
17653
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17654
|
+
200: {
|
17655
|
+
address: string;
|
17656
|
+
boost: string;
|
17657
|
+
}[];
|
17658
|
+
}>>;
|
17659
|
+
};
|
17513
17660
|
};
|
17514
17661
|
value: {
|
17515
17662
|
campaign: ((params: {
|
@@ -73,7 +73,9 @@ export const extractOpportunities = {
|
|
73
73
|
const opportunity = {
|
74
74
|
id: `${Campaign.CLAMM}_${mainParameter}`,
|
75
75
|
platform: platform,
|
76
|
-
name: [platform, pair, params.poolFee && `${params.poolFee} %`, subCampaignTag]
|
76
|
+
name: [platform, pair, params.poolFee && `${params.poolFee} %`, subCampaignTag]
|
77
|
+
.join(" ")
|
78
|
+
.replace("AlgebraV1_2", ""),
|
77
79
|
chainId: !computeChainId ? chainId : computeChainId,
|
78
80
|
distributionChainId: chainId,
|
79
81
|
action: "pool",
|
package/dist/src/index.d.ts
CHANGED
@@ -3696,6 +3696,45 @@ declare const app: Elysia<"", false, {
|
|
3696
3696
|
};
|
3697
3697
|
};
|
3698
3698
|
};
|
3699
|
+
} & {
|
3700
|
+
boosts: {
|
3701
|
+
openBlock: {
|
3702
|
+
post: {
|
3703
|
+
body: {
|
3704
|
+
addresses: string[];
|
3705
|
+
} | {
|
3706
|
+
address: string;
|
3707
|
+
score: string;
|
3708
|
+
}[];
|
3709
|
+
params: {};
|
3710
|
+
query: unknown;
|
3711
|
+
headers: unknown;
|
3712
|
+
response: {
|
3713
|
+
200: {
|
3714
|
+
address: string;
|
3715
|
+
boost: string;
|
3716
|
+
}[];
|
3717
|
+
};
|
3718
|
+
};
|
3719
|
+
};
|
3720
|
+
};
|
3721
|
+
} & {
|
3722
|
+
boosts: {
|
3723
|
+
openBlock: {
|
3724
|
+
get: {
|
3725
|
+
body: unknown;
|
3726
|
+
params: {};
|
3727
|
+
query: unknown;
|
3728
|
+
headers: unknown;
|
3729
|
+
response: {
|
3730
|
+
200: {
|
3731
|
+
address: string;
|
3732
|
+
boost: string;
|
3733
|
+
}[];
|
3734
|
+
};
|
3735
|
+
};
|
3736
|
+
};
|
3737
|
+
};
|
3699
3738
|
};
|
3700
3739
|
} & {
|
3701
3740
|
v4: {
|
@@ -50,6 +50,45 @@ export declare const BoostController: Elysia<"/boosts", false, {
|
|
50
50
|
};
|
51
51
|
};
|
52
52
|
};
|
53
|
+
} & {
|
54
|
+
boosts: {
|
55
|
+
openBlock: {
|
56
|
+
post: {
|
57
|
+
body: {
|
58
|
+
addresses: string[];
|
59
|
+
} | {
|
60
|
+
address: string;
|
61
|
+
score: string;
|
62
|
+
}[];
|
63
|
+
params: {};
|
64
|
+
query: unknown;
|
65
|
+
headers: unknown;
|
66
|
+
response: {
|
67
|
+
200: {
|
68
|
+
address: string;
|
69
|
+
boost: string;
|
70
|
+
}[];
|
71
|
+
};
|
72
|
+
};
|
73
|
+
};
|
74
|
+
};
|
75
|
+
} & {
|
76
|
+
boosts: {
|
77
|
+
openBlock: {
|
78
|
+
get: {
|
79
|
+
body: unknown;
|
80
|
+
params: {};
|
81
|
+
query: unknown;
|
82
|
+
headers: unknown;
|
83
|
+
response: {
|
84
|
+
200: {
|
85
|
+
address: string;
|
86
|
+
boost: string;
|
87
|
+
}[];
|
88
|
+
};
|
89
|
+
};
|
90
|
+
};
|
91
|
+
};
|
53
92
|
}, {
|
54
93
|
derive: {};
|
55
94
|
resolve: {};
|
@@ -7,4 +7,9 @@ export const BoostController = new Elysia({ prefix: "/boosts", detail: { tags: [
|
|
7
7
|
body: getEulerBoostBody,
|
8
8
|
detail: { hide: true },
|
9
9
|
})
|
10
|
-
.get("/euler", async () => BoostService.getEulerBoost())
|
10
|
+
.get("/euler", async () => BoostService.getEulerBoost())
|
11
|
+
.post("/openBlock", async ({ body }) => BoostService.getOpenBlockBoost(), {
|
12
|
+
body: getEulerBoostBody,
|
13
|
+
detail: { hide: true },
|
14
|
+
})
|
15
|
+
.get("/openBlock", async () => BoostService.getOpenBlockBoost());
|
@@ -3,4 +3,27 @@ export class BoostService {
|
|
3
3
|
static async getEulerBoost() {
|
4
4
|
return (await axios.get("https://points.euler.finance/integrations/merkl/usd0multipliers")).data.map(({ address, score }) => ({ address, boost: score }));
|
5
5
|
}
|
6
|
+
static async getOpenBlockBoost() {
|
7
|
+
return [
|
8
|
+
{ address: "0x684566c9ffcac7f6a04c3a9997000d2d58c00824", boost: "0" },
|
9
|
+
{ address: "0x29dfdd80d6acc0f9028d8a6fa7d7d448342e25c1", boost: "0" },
|
10
|
+
{ address: "0x5b9effdcbd65946f2b143725dc244563248aa4ee", boost: "0" },
|
11
|
+
{ address: "0xd2262a05e225ce0c61fb699fdcf14068132dd362", boost: "0" },
|
12
|
+
{ address: "0x7da8481e24303d55f29f0c06174f18b30b81c9ac", boost: "0" },
|
13
|
+
{ address: "0x1d098a8d7fa63a39e0884b720f86f9ba8cbbeef1", boost: "0" },
|
14
|
+
{ address: "0x7f3e3d663a5f29274d0809020c675f5cc3d1429a", boost: "0" },
|
15
|
+
{ address: "0x7f04f7fdad3272b806e3d57bec445e0ece82f2ad", boost: "0" },
|
16
|
+
{ address: "0xfe769b6f39a000ff508b5baf8fbe3a1f516f258c", boost: "0" },
|
17
|
+
{ address: "0xd635736f8ac2241cdfcc3ee02d3f3bac1f78431f", boost: "0" },
|
18
|
+
{ address: "0xb38c7e2b4ba3cdc4eaea863cbb01470353c5ea16", boost: "0" },
|
19
|
+
{ address: "0xe37885b5e1187f7f618407fb0c14a3383998348e", boost: "0" },
|
20
|
+
{ address: "0xe01f660b304be815627628c38c2dcdf37f68245e", boost: "0" },
|
21
|
+
{ address: "0xe746db07d2b4babf5f2051d40987b7278414192f", boost: "0" },
|
22
|
+
{ address: "0xa0265ed27561b25c0e7ad3ed1fed74c2ee5f8cdf", boost: "0" },
|
23
|
+
{ address: "0xdf5ad5a87fceaacb1ecef40e8e61c42c92339a10", boost: "0" },
|
24
|
+
{ address: "0xc91fc9dd7f1bb6ec429eddb577b9ace6236b2147", boost: "0" },
|
25
|
+
{ address: "0x8b81420441ac3933c58d1190c8499c2f89eb1263", boost: "0" },
|
26
|
+
{ address: "0x0000000000000000000000000000000000000000", boost: "1" },
|
27
|
+
];
|
28
|
+
}
|
6
29
|
}
|
@@ -121,6 +121,7 @@ export declare enum zkSyncCampaigns {
|
|
121
121
|
RFX_ZK_USD = "RFX ZK USD 0x9d4d54c8661a17604a46b849ded78cf20127fb92",
|
122
122
|
RFX_ETH_USD = "RFX ETH USD 0x8efa54951bf70d9775dfe8f9364df83ad1e1a8cf",
|
123
123
|
RFX_BTC_USD = "RFX BTC USD 0x62170af269e9acd09a89279c0485e89aa42857a3",
|
124
|
+
RFX_Vault_USN_USDCe = "RFX USN USDC.e 0x8D6E3e44FbE9A53564ED42b83961bb6f790C3063",
|
124
125
|
Vest_USDC = "Vext USDC 0x7ccf5bbec69c790d27da3b5398b9e0d6d6eec9f3",
|
125
126
|
Koi_Finance_ZK_WETH = "Koi Finance ZK/wETH Normal 1pct 0x58fb07e1fd51edd7bba91f870ff751e67e33cec5",
|
126
127
|
Koi_Finance_USDCe_USDT = "Koi Finance USDC.e/USDT CL 0.01pct 0x57cc53def9f5ca7ef4da51082dd874867e56ba14",
|
@@ -126,6 +126,7 @@ export var zkSyncCampaigns;
|
|
126
126
|
zkSyncCampaigns["RFX_ZK_USD"] = "RFX ZK USD 0x9d4d54c8661a17604a46b849ded78cf20127fb92";
|
127
127
|
zkSyncCampaigns["RFX_ETH_USD"] = "RFX ETH USD 0x8efa54951bf70d9775dfe8f9364df83ad1e1a8cf";
|
128
128
|
zkSyncCampaigns["RFX_BTC_USD"] = "RFX BTC USD 0x62170af269e9acd09a89279c0485e89aa42857a3";
|
129
|
+
zkSyncCampaigns["RFX_Vault_USN_USDCe"] = "RFX USN USDC.e 0x8D6E3e44FbE9A53564ED42b83961bb6f790C3063";
|
129
130
|
zkSyncCampaigns["Vest_USDC"] = "Vext USDC 0x7ccf5bbec69c790d27da3b5398b9e0d6d6eec9f3";
|
130
131
|
zkSyncCampaigns["Koi_Finance_ZK_WETH"] = "Koi Finance ZK/wETH Normal 1pct 0x58fb07e1fd51edd7bba91f870ff751e67e33cec5";
|
131
132
|
zkSyncCampaigns["Koi_Finance_USDCe_USDT"] = "Koi Finance USDC.e/USDT CL 0.01pct 0x57cc53def9f5ca7ef4da51082dd874867e56ba14";
|
@@ -1938,6 +1939,16 @@ const ZkSyncInterfaceCampaigns = {
|
|
1938
1939
|
url: "https://app.rfx.exchange/earn?market=0x9D4d54c8661a17604A46B849DED78Cf20127fB92",
|
1939
1940
|
forwarders: [],
|
1940
1941
|
},
|
1942
|
+
[zkSyncCampaigns.RFX_Vault_USN_USDCe]: {
|
1943
|
+
campaignType: Campaign.ERC20,
|
1944
|
+
computeChainId: ChainId.ZKSYNC,
|
1945
|
+
hooks: [],
|
1946
|
+
targetToken: "0x233122C668f6433c0ee5C47A003EEf81c1cc972c",
|
1947
|
+
whitelist: [],
|
1948
|
+
blacklist: ["0x233122C668f6433c0ee5C47A003EEf81c1cc972c"],
|
1949
|
+
url: "https://app.rfx.exchange/vault",
|
1950
|
+
forwarders: [],
|
1951
|
+
},
|
1941
1952
|
[zkSyncCampaigns.HoldSation_USDC]: {
|
1942
1953
|
campaignType: Campaign.ERC20,
|
1943
1954
|
computeChainId: ChainId.ZKSYNC,
|
@@ -3566,6 +3566,45 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3566
3566
|
};
|
3567
3567
|
};
|
3568
3568
|
};
|
3569
|
+
} & {
|
3570
|
+
boosts: {
|
3571
|
+
openBlock: {
|
3572
|
+
post: {
|
3573
|
+
body: {
|
3574
|
+
addresses: string[];
|
3575
|
+
} | {
|
3576
|
+
address: string;
|
3577
|
+
score: string;
|
3578
|
+
}[];
|
3579
|
+
params: {};
|
3580
|
+
query: unknown;
|
3581
|
+
headers: unknown;
|
3582
|
+
response: {
|
3583
|
+
200: {
|
3584
|
+
address: string;
|
3585
|
+
boost: string;
|
3586
|
+
}[];
|
3587
|
+
};
|
3588
|
+
};
|
3589
|
+
};
|
3590
|
+
};
|
3591
|
+
} & {
|
3592
|
+
boosts: {
|
3593
|
+
openBlock: {
|
3594
|
+
get: {
|
3595
|
+
body: unknown;
|
3596
|
+
params: {};
|
3597
|
+
query: unknown;
|
3598
|
+
headers: unknown;
|
3599
|
+
response: {
|
3600
|
+
200: {
|
3601
|
+
address: string;
|
3602
|
+
boost: string;
|
3603
|
+
}[];
|
3604
|
+
};
|
3605
|
+
};
|
3606
|
+
};
|
3607
|
+
};
|
3569
3608
|
};
|
3570
3609
|
} & {
|
3571
3610
|
v4: {
|
@@ -10,9 +10,11 @@ export const UserController = new Elysia({ prefix: "/users", detail: { tags: ["U
|
|
10
10
|
// ─── Get Many Users ──────────────────────────────────────────────────
|
11
11
|
.get("/", async ({ query }) => await UserService.findMany(query), { query: GetManyUserQuery, detail: { hide: true } })
|
12
12
|
// ─── Get All Tagged Users ─────────────────────────────────────────────
|
13
|
-
.get("/tags", async () => {
|
14
|
-
|
15
|
-
|
13
|
+
.get("/tags", async () => await UserService.findManyWithTags(), {
|
14
|
+
headers: AuthorizationHeadersDto,
|
15
|
+
beforeHandle: BackOfficeGuard,
|
16
|
+
detail: { hide: true },
|
17
|
+
})
|
16
18
|
// ─── Get A User By Address ───────────────────────────────────────────
|
17
19
|
.get("/:address", async ({ params }) => await UserService.findUnique(params.address), {
|
18
20
|
detail: { hide: true },
|
@@ -141,9 +141,9 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""], displ
|
|
141
141
|
case tokenType.anglesLiquid:
|
142
142
|
return `Deposit into ${typeInfo.name} (${campaign.campaignParameters.symbolTargetToken}) Vault`;
|
143
143
|
case tokenType.spectra_lpt:
|
144
|
-
return `Provide liquidity to ${typeInfo.name}`;
|
144
|
+
return `Provide liquidity on Spectra to ${typeInfo.name}`;
|
145
145
|
case tokenType.spectra_yt:
|
146
|
-
return `Hold ${typeInfo.name}`;
|
146
|
+
return `Hold Spectra ${typeInfo.name}`;
|
147
147
|
default:
|
148
148
|
// OVERRIDE
|
149
149
|
switch (typeInfo.tokenAddress) {
|