@merkl/api 1.0.38 → 1.0.39
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 +81 -0
- package/dist/src/index.d.ts +44 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +1 -2
- package/dist/src/modules/v4/router.d.ts +44 -0
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +67 -0
- package/dist/src/modules/v4/uniswap/uniswap.model.d.ts +2 -0
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +12 -1
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +4 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -8497,6 +8497,50 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
8497
8497
|
};
|
8498
8498
|
};
|
8499
8499
|
};
|
8500
|
+
} & {
|
8501
|
+
v4: {
|
8502
|
+
ekubo: {
|
8503
|
+
v4pools: {
|
8504
|
+
":chainId": {
|
8505
|
+
get: {
|
8506
|
+
body: unknown;
|
8507
|
+
params: {
|
8508
|
+
chainId: number;
|
8509
|
+
} & {};
|
8510
|
+
query: unknown;
|
8511
|
+
headers: unknown;
|
8512
|
+
response: {
|
8513
|
+
200: {
|
8514
|
+
[x: string]: {
|
8515
|
+
tickSpacing: number;
|
8516
|
+
chainId: number;
|
8517
|
+
poolId: string;
|
8518
|
+
currency0: string;
|
8519
|
+
currency1: string;
|
8520
|
+
hooks: string;
|
8521
|
+
lpFee: number;
|
8522
|
+
decimalsCurrency0: number;
|
8523
|
+
decimalsCurrency1: number;
|
8524
|
+
fetchedAtBlock: number;
|
8525
|
+
symbolCurrency0: string;
|
8526
|
+
symbolCurrency1: string;
|
8527
|
+
};
|
8528
|
+
};
|
8529
|
+
422: {
|
8530
|
+
type: "validation";
|
8531
|
+
on: string;
|
8532
|
+
summary?: string;
|
8533
|
+
message?: string;
|
8534
|
+
found?: unknown;
|
8535
|
+
property?: string;
|
8536
|
+
expected?: string;
|
8537
|
+
};
|
8538
|
+
};
|
8539
|
+
};
|
8540
|
+
};
|
8541
|
+
};
|
8542
|
+
};
|
8543
|
+
};
|
8500
8544
|
} & {
|
8501
8545
|
v4: {
|
8502
8546
|
turtle: {
|
@@ -17556,6 +17600,43 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
17556
17600
|
}>>;
|
17557
17601
|
}) & {};
|
17558
17602
|
};
|
17603
|
+
ekubo: {
|
17604
|
+
v4pools: ((params: {
|
17605
|
+
chainId: string | number;
|
17606
|
+
}) => {
|
17607
|
+
get: (options?: {
|
17608
|
+
headers?: Record<string, unknown> | undefined;
|
17609
|
+
query?: Record<string, unknown> | undefined;
|
17610
|
+
fetch?: RequestInit | undefined;
|
17611
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17612
|
+
200: {
|
17613
|
+
[x: string]: {
|
17614
|
+
tickSpacing: number;
|
17615
|
+
chainId: number;
|
17616
|
+
poolId: string;
|
17617
|
+
currency0: string;
|
17618
|
+
currency1: string;
|
17619
|
+
hooks: string;
|
17620
|
+
lpFee: number;
|
17621
|
+
decimalsCurrency0: number;
|
17622
|
+
decimalsCurrency1: number;
|
17623
|
+
fetchedAtBlock: number;
|
17624
|
+
symbolCurrency0: string;
|
17625
|
+
symbolCurrency1: string;
|
17626
|
+
};
|
17627
|
+
};
|
17628
|
+
422: {
|
17629
|
+
type: "validation";
|
17630
|
+
on: string;
|
17631
|
+
summary?: string;
|
17632
|
+
message?: string;
|
17633
|
+
found?: unknown;
|
17634
|
+
property?: string;
|
17635
|
+
expected?: string;
|
17636
|
+
};
|
17637
|
+
}>>;
|
17638
|
+
}) & {};
|
17639
|
+
};
|
17559
17640
|
turtle: {
|
17560
17641
|
tac: ((params: {
|
17561
17642
|
address: string | number;
|
package/dist/src/index.d.ts
CHANGED
@@ -8498,6 +8498,50 @@ declare const app: Elysia<"", {
|
|
8498
8498
|
};
|
8499
8499
|
};
|
8500
8500
|
};
|
8501
|
+
} & {
|
8502
|
+
v4: {
|
8503
|
+
ekubo: {
|
8504
|
+
v4pools: {
|
8505
|
+
":chainId": {
|
8506
|
+
get: {
|
8507
|
+
body: unknown;
|
8508
|
+
params: {
|
8509
|
+
chainId: number;
|
8510
|
+
} & {};
|
8511
|
+
query: unknown;
|
8512
|
+
headers: unknown;
|
8513
|
+
response: {
|
8514
|
+
200: {
|
8515
|
+
[x: string]: {
|
8516
|
+
tickSpacing: number;
|
8517
|
+
chainId: number;
|
8518
|
+
poolId: string;
|
8519
|
+
currency0: string;
|
8520
|
+
currency1: string;
|
8521
|
+
hooks: string;
|
8522
|
+
lpFee: number;
|
8523
|
+
decimalsCurrency0: number;
|
8524
|
+
decimalsCurrency1: number;
|
8525
|
+
fetchedAtBlock: number;
|
8526
|
+
symbolCurrency0: string;
|
8527
|
+
symbolCurrency1: string;
|
8528
|
+
};
|
8529
|
+
};
|
8530
|
+
422: {
|
8531
|
+
type: "validation";
|
8532
|
+
on: string;
|
8533
|
+
summary?: string;
|
8534
|
+
message?: string;
|
8535
|
+
found?: unknown;
|
8536
|
+
property?: string;
|
8537
|
+
expected?: string;
|
8538
|
+
};
|
8539
|
+
};
|
8540
|
+
};
|
8541
|
+
};
|
8542
|
+
};
|
8543
|
+
};
|
8544
|
+
};
|
8501
8545
|
} & {
|
8502
8546
|
v4: {
|
8503
8547
|
turtle: {
|
@@ -25,10 +25,9 @@ export declare class MerklRootService {
|
|
25
25
|
}>>>;
|
26
26
|
/**
|
27
27
|
* Fetch all roots for the provided chains
|
28
|
-
* @param chainIds to fetch roots for
|
29
28
|
* @returns record of chains to object with live and last tree roots
|
30
29
|
*/
|
31
|
-
static fetchAll(
|
30
|
+
static fetchAll(): Promise<Record<number, {
|
32
31
|
live: string;
|
33
32
|
tree: string;
|
34
33
|
lastTree: string;
|
@@ -8307,6 +8307,50 @@ export declare const v4: Elysia<"/v4", {
|
|
8307
8307
|
};
|
8308
8308
|
};
|
8309
8309
|
};
|
8310
|
+
} & {
|
8311
|
+
v4: {
|
8312
|
+
ekubo: {
|
8313
|
+
v4pools: {
|
8314
|
+
":chainId": {
|
8315
|
+
get: {
|
8316
|
+
body: unknown;
|
8317
|
+
params: {
|
8318
|
+
chainId: number;
|
8319
|
+
} & {};
|
8320
|
+
query: unknown;
|
8321
|
+
headers: unknown;
|
8322
|
+
response: {
|
8323
|
+
200: {
|
8324
|
+
[x: string]: {
|
8325
|
+
tickSpacing: number;
|
8326
|
+
chainId: number;
|
8327
|
+
poolId: string;
|
8328
|
+
currency0: string;
|
8329
|
+
currency1: string;
|
8330
|
+
hooks: string;
|
8331
|
+
lpFee: number;
|
8332
|
+
decimalsCurrency0: number;
|
8333
|
+
decimalsCurrency1: number;
|
8334
|
+
fetchedAtBlock: number;
|
8335
|
+
symbolCurrency0: string;
|
8336
|
+
symbolCurrency1: string;
|
8337
|
+
};
|
8338
|
+
};
|
8339
|
+
422: {
|
8340
|
+
type: "validation";
|
8341
|
+
on: string;
|
8342
|
+
summary?: string;
|
8343
|
+
message?: string;
|
8344
|
+
found?: unknown;
|
8345
|
+
property?: string;
|
8346
|
+
expected?: string;
|
8347
|
+
};
|
8348
|
+
};
|
8349
|
+
};
|
8350
|
+
};
|
8351
|
+
};
|
8352
|
+
};
|
8353
|
+
};
|
8310
8354
|
} & {
|
8311
8355
|
v4: {
|
8312
8356
|
turtle: {
|
@@ -405,3 +405,70 @@ export declare const UniswapController: Elysia<"uniswap", {
|
|
405
405
|
schema: {};
|
406
406
|
standaloneSchema: {};
|
407
407
|
}>;
|
408
|
+
export declare const EkuboController: Elysia<"ekubo", {
|
409
|
+
decorator: {};
|
410
|
+
store: {};
|
411
|
+
derive: {};
|
412
|
+
resolve: {};
|
413
|
+
}, {
|
414
|
+
typebox: {};
|
415
|
+
error: {};
|
416
|
+
}, {
|
417
|
+
schema: {};
|
418
|
+
standaloneSchema: {};
|
419
|
+
macro: {};
|
420
|
+
macroFn: {};
|
421
|
+
parser: {};
|
422
|
+
}, {
|
423
|
+
ekubo: {
|
424
|
+
v4pools: {
|
425
|
+
":chainId": {
|
426
|
+
get: {
|
427
|
+
body: unknown;
|
428
|
+
params: {
|
429
|
+
chainId: number;
|
430
|
+
} & {};
|
431
|
+
query: unknown;
|
432
|
+
headers: unknown;
|
433
|
+
response: {
|
434
|
+
200: {
|
435
|
+
[x: string]: {
|
436
|
+
tickSpacing: number;
|
437
|
+
chainId: number;
|
438
|
+
poolId: string;
|
439
|
+
currency0: string;
|
440
|
+
currency1: string;
|
441
|
+
hooks: string;
|
442
|
+
lpFee: number;
|
443
|
+
decimalsCurrency0: number;
|
444
|
+
decimalsCurrency1: number;
|
445
|
+
fetchedAtBlock: number;
|
446
|
+
symbolCurrency0: string;
|
447
|
+
symbolCurrency1: string;
|
448
|
+
};
|
449
|
+
};
|
450
|
+
422: {
|
451
|
+
type: "validation";
|
452
|
+
on: string;
|
453
|
+
summary?: string;
|
454
|
+
message?: string;
|
455
|
+
found?: unknown;
|
456
|
+
property?: string;
|
457
|
+
expected?: string;
|
458
|
+
};
|
459
|
+
};
|
460
|
+
};
|
461
|
+
};
|
462
|
+
};
|
463
|
+
};
|
464
|
+
}, {
|
465
|
+
derive: {};
|
466
|
+
resolve: {};
|
467
|
+
schema: {};
|
468
|
+
standaloneSchema: {};
|
469
|
+
}, {
|
470
|
+
derive: {};
|
471
|
+
resolve: {};
|
472
|
+
schema: {};
|
473
|
+
standaloneSchema: {};
|
474
|
+
}>;
|
@@ -2,11 +2,13 @@ import { type MerklChainId, type UniswapV4PoolType } from "@angleprotocol/sdk/ts
|
|
2
2
|
import type { apiDbClient } from "@package/databases";
|
3
3
|
import type { Prisma } from "@package/databases/api";
|
4
4
|
export declare const UniV4ChainIdArray: MerklChainId[];
|
5
|
+
export declare const EkuboChainIdArray: MerklChainId[];
|
5
6
|
export declare enum LoggedEntityType {
|
6
7
|
EULER = "EULER_VAULT",
|
7
8
|
UNISWAP_V4 = "UNISWAP_V4"
|
8
9
|
}
|
9
10
|
export type UniV4ChainId = (typeof UniV4ChainIdArray)[number];
|
11
|
+
export type EkuboChainId = (typeof EkuboChainIdArray)[number];
|
10
12
|
export type UniswapV4PoolsReturnType = {
|
11
13
|
[chainId in MerklChainId]?: {
|
12
14
|
[poolId: string]: UniswapV4PoolType;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { LoggedCreateBody, UniV4ChainId } from "./uniswap.model";
|
1
|
+
import type { EkuboChainId, LoggedCreateBody, UniV4ChainId } from "./uniswap.model";
|
2
2
|
export declare abstract class UniswapRepository {
|
3
3
|
static getStoredUniswapV4Pools(chainId?: UniV4ChainId): Promise<{
|
4
4
|
address: string | null;
|
@@ -11,3 +11,14 @@ export declare abstract class UniswapRepository {
|
|
11
11
|
}[]>;
|
12
12
|
static createMany(data: LoggedCreateBody): Promise<import("@package/databases").BatchPayload>;
|
13
13
|
}
|
14
|
+
export declare abstract class EkuboRepository {
|
15
|
+
static getStoredEkuboPools(chainId?: EkuboChainId): Promise<{
|
16
|
+
id: string;
|
17
|
+
recipient: string;
|
18
|
+
chainId: number;
|
19
|
+
metadata: import("@prisma/client/runtime/library").JsonValue | null;
|
20
|
+
nodeType: string;
|
21
|
+
nodesSourceId: string;
|
22
|
+
creationBlockNumber: number;
|
23
|
+
}[]>;
|
24
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
2
|
import type { Opportunity } from "../../../modules/v4/opportunity/opportunity.model";
|
3
3
|
import type { Token } from "../../../modules/v4/token/token.model";
|
4
|
-
import { type RewardsPerPositionModel, type UniV4ChainId, type UniswapV4PoolsReturnType } from "./uniswap.model";
|
4
|
+
import { type EkuboChainId, type RewardsPerPositionModel, type UniV4ChainId, type UniswapV4PoolsReturnType } from "./uniswap.model";
|
5
5
|
export declare abstract class UniswapService {
|
6
6
|
static findRewardsPerPosition(version: "v3" | "v4", query: RewardsPerPositionModel): Promise<Record<number, Record<string, Record<string, {
|
7
7
|
campaignId: string;
|
@@ -16,3 +16,6 @@ export declare abstract class UniswapService {
|
|
16
16
|
/** @deprecated */
|
17
17
|
static getUniswapV4PoolsForChain(chainId: MerklChainId): Promise<UniswapV4PoolsReturnType>;
|
18
18
|
}
|
19
|
+
export declare abstract class EkuboService {
|
20
|
+
static getEkuboPools(chainId?: EkuboChainId): Promise<UniswapV4PoolsReturnType>;
|
21
|
+
}
|