@merkl/api 0.10.334 → 0.10.335
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 +6 -6
- package/dist/src/index.d.ts +2 -2
- package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.js +16 -0
- package/dist/src/modules/v4/router.d.ts +2 -2
- package/dist/src/modules/v4/token/token.controller.d.ts +2 -2
- package/dist/src/modules/v4/token/token.model.d.ts +1 -1
- package/dist/src/modules/v4/token/token.model.js +1 -2
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -1056,7 +1056,7 @@ declare const eden: {
|
|
1056
1056
|
query: {
|
1057
1057
|
symbol?: string | undefined;
|
1058
1058
|
name?: string | undefined;
|
1059
|
-
chainId?:
|
1059
|
+
chainId?: number | undefined;
|
1060
1060
|
address?: string | undefined;
|
1061
1061
|
displaySymbol?: string | undefined;
|
1062
1062
|
verified?: boolean | undefined;
|
@@ -1111,7 +1111,7 @@ declare const eden: {
|
|
1111
1111
|
query: {
|
1112
1112
|
symbol?: string | undefined;
|
1113
1113
|
name?: string | undefined;
|
1114
|
-
chainId?:
|
1114
|
+
chainId?: number | undefined;
|
1115
1115
|
address?: string | undefined;
|
1116
1116
|
displaySymbol?: string | undefined;
|
1117
1117
|
verified?: boolean | undefined;
|
@@ -4337,7 +4337,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
4337
4337
|
query: {
|
4338
4338
|
symbol?: string | undefined;
|
4339
4339
|
name?: string | undefined;
|
4340
|
-
chainId?:
|
4340
|
+
chainId?: number | undefined;
|
4341
4341
|
address?: string | undefined;
|
4342
4342
|
displaySymbol?: string | undefined;
|
4343
4343
|
verified?: boolean | undefined;
|
@@ -4371,7 +4371,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
4371
4371
|
query: {
|
4372
4372
|
symbol?: string | undefined;
|
4373
4373
|
name?: string | undefined;
|
4374
|
-
chainId?:
|
4374
|
+
chainId?: number | undefined;
|
4375
4375
|
address?: string | undefined;
|
4376
4376
|
displaySymbol?: string | undefined;
|
4377
4377
|
verified?: boolean | undefined;
|
@@ -8050,7 +8050,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8050
8050
|
query: {
|
8051
8051
|
symbol?: string | undefined;
|
8052
8052
|
name?: string | undefined;
|
8053
|
-
chainId?:
|
8053
|
+
chainId?: number | undefined;
|
8054
8054
|
address?: string | undefined;
|
8055
8055
|
displaySymbol?: string | undefined;
|
8056
8056
|
verified?: boolean | undefined;
|
@@ -8105,7 +8105,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8105
8105
|
query: {
|
8106
8106
|
symbol?: string | undefined;
|
8107
8107
|
name?: string | undefined;
|
8108
|
-
chainId?:
|
8108
|
+
chainId?: number | undefined;
|
8109
8109
|
address?: string | undefined;
|
8110
8110
|
displaySymbol?: string | undefined;
|
8111
8111
|
verified?: boolean | undefined;
|
package/dist/src/index.d.ts
CHANGED
@@ -1230,7 +1230,7 @@ declare const app: Elysia<"", false, {
|
|
1230
1230
|
query: {
|
1231
1231
|
symbol?: string | undefined;
|
1232
1232
|
name?: string | undefined;
|
1233
|
-
chainId?:
|
1233
|
+
chainId?: number | undefined;
|
1234
1234
|
address?: string | undefined;
|
1235
1235
|
displaySymbol?: string | undefined;
|
1236
1236
|
verified?: boolean | undefined;
|
@@ -1264,7 +1264,7 @@ declare const app: Elysia<"", false, {
|
|
1264
1264
|
query: {
|
1265
1265
|
symbol?: string | undefined;
|
1266
1266
|
name?: string | undefined;
|
1267
|
-
chainId?:
|
1267
|
+
chainId?: number | undefined;
|
1268
1268
|
address?: string | undefined;
|
1269
1269
|
displaySymbol?: string | undefined;
|
1270
1270
|
verified?: boolean | undefined;
|
@@ -598,6 +598,22 @@ export async function CLAMMDynamicData(chainId, campaigns) {
|
|
598
598
|
blacklistedBalance0 = poolBalanceToken0;
|
599
599
|
blacklistedBalance1 = poolBalanceToken1;
|
600
600
|
blacklistedLiquidity = poolTotalLiquidity;
|
601
|
+
// Get all beefy staker is whitelisted, get a list of all senders
|
602
|
+
if (c.campaignParameters.whitelist.length === 1) {
|
603
|
+
let targetToMatch = "";
|
604
|
+
for (const alm of almDetails.filter(a => a.type === ALM.BeefyStaker)) {
|
605
|
+
if (alm.sender === c.campaignParameters.whitelist[0]) {
|
606
|
+
targetToMatch = alm.target;
|
607
|
+
}
|
608
|
+
}
|
609
|
+
if (targetToMatch !== "") {
|
610
|
+
for (const alm of almDetails.filter(a => a.type === ALM.Beefy)) {
|
611
|
+
if (targetToMatch === alm.sender.toLowerCase()) {
|
612
|
+
c.campaignParameters.whitelist.push(alm.owner);
|
613
|
+
}
|
614
|
+
}
|
615
|
+
}
|
616
|
+
}
|
601
617
|
positions?.[pool.amm]?.forEach(pos => {
|
602
618
|
if (pos.pool.id === pool.address.toLowerCase() &&
|
603
619
|
(isWhitelisted(pos.owner, c.campaignParameters.whitelist) || isStrykeCampaign(pool.amm))
|
@@ -1108,7 +1108,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1108
1108
|
query: {
|
1109
1109
|
symbol?: string | undefined;
|
1110
1110
|
name?: string | undefined;
|
1111
|
-
chainId?:
|
1111
|
+
chainId?: number | undefined;
|
1112
1112
|
address?: string | undefined;
|
1113
1113
|
displaySymbol?: string | undefined;
|
1114
1114
|
verified?: boolean | undefined;
|
@@ -1142,7 +1142,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1142
1142
|
query: {
|
1143
1143
|
symbol?: string | undefined;
|
1144
1144
|
name?: string | undefined;
|
1145
|
-
chainId?:
|
1145
|
+
chainId?: number | undefined;
|
1146
1146
|
address?: string | undefined;
|
1147
1147
|
displaySymbol?: string | undefined;
|
1148
1148
|
verified?: boolean | undefined;
|
@@ -80,7 +80,7 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
80
80
|
query: {
|
81
81
|
symbol?: string | undefined;
|
82
82
|
name?: string | undefined;
|
83
|
-
chainId?:
|
83
|
+
chainId?: number | undefined;
|
84
84
|
address?: string | undefined;
|
85
85
|
displaySymbol?: string | undefined;
|
86
86
|
verified?: boolean | undefined;
|
@@ -114,7 +114,7 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
114
114
|
query: {
|
115
115
|
symbol?: string | undefined;
|
116
116
|
name?: string | undefined;
|
117
|
-
chainId?:
|
117
|
+
chainId?: number | undefined;
|
118
118
|
address?: string | undefined;
|
119
119
|
displaySymbol?: string | undefined;
|
120
120
|
verified?: boolean | undefined;
|
@@ -29,7 +29,7 @@ export declare const FindUniqueTokenDto: import("@sinclair/typebox").TObject<{
|
|
29
29
|
export declare const GetTokenQueryDto: import("@sinclair/typebox").TObject<{
|
30
30
|
symbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
31
31
|
displaySymbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
32
|
-
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").
|
32
|
+
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
33
33
|
address: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
34
34
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
35
35
|
verified: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { ChainId } from "@sdk";
|
2
1
|
import { t } from "elysia";
|
3
2
|
// ─── Dtos ────────────────────────────────────────────────────────────────────
|
4
3
|
export const TokenResourceDto = t.Object({
|
@@ -19,7 +18,7 @@ export const FindUniqueTokenDto = t.Object({
|
|
19
18
|
export const GetTokenQueryDto = t.Object({
|
20
19
|
symbol: t.Optional(t.String()),
|
21
20
|
displaySymbol: t.Optional(t.String()), // To filter by displaySymbol or if null symbol
|
22
|
-
chainId: t.Optional(t.
|
21
|
+
chainId: t.Optional(t.Numeric()),
|
23
22
|
address: t.Optional(t.String()),
|
24
23
|
name: t.Optional(t.String()),
|
25
24
|
verified: t.Optional(t.Boolean()),
|