@merkl/api 0.20.37 → 0.20.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.
Files changed (38) hide show
  1. package/dist/src/eden/index.d.ts +243 -0
  2. package/dist/src/engine/dynamicData/implementations/UniswapV4.js +2 -1
  3. package/dist/src/index.d.ts +55 -0
  4. package/dist/src/jobs/update-uniswap-v4-pools.js +2 -2
  5. package/dist/src/libs/merklChainData.js +0 -2
  6. package/dist/src/modules/v4/price/price.repository.d.ts +1 -1
  7. package/dist/src/modules/v4/price/price.service.d.ts +1 -1
  8. package/dist/src/modules/v4/reward/reward.repository.d.ts +1 -1
  9. package/dist/src/modules/v4/reward/reward.repository.js +19 -1
  10. package/dist/src/modules/v4/reward/reward.service.d.ts +1 -1
  11. package/dist/src/modules/v4/reward/reward.service.js +2 -2
  12. package/dist/src/modules/v4/router.d.ts +55 -0
  13. package/dist/src/modules/v4/router.js +3 -1
  14. package/dist/src/modules/v4/token/token.service.js +3 -3
  15. package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +75 -0
  16. package/dist/src/modules/v4/uniswap/uniswap.controller.js +34 -0
  17. package/dist/src/modules/v4/{uniswapV4/uniswapV4.model.d.ts → uniswap/uniswap.model.d.ts} +6 -0
  18. package/dist/src/modules/v4/{uniswapV4/uniswapV4.model.js → uniswap/uniswap.model.js} +9 -0
  19. package/dist/src/modules/v4/{uniswapV4/uniswapV4.repository.d.ts → uniswap/uniswap.repository.d.ts} +2 -2
  20. package/dist/src/modules/v4/{uniswapV4/uniswapV4.repository.js → uniswap/uniswap.repository.js} +1 -1
  21. package/dist/src/modules/v4/{uniswapV4/uniswapV4.service.d.ts → uniswap/uniswap.service.d.ts} +3 -2
  22. package/dist/src/modules/v4/{uniswapV4/uniswapV4.service.js → uniswap/uniswap.service.js} +48 -4
  23. package/dist/src/routes/v1/prices.js +1 -1
  24. package/dist/src/routes/v3/uniswapv4.js +1 -1
  25. package/dist/src/scripts/fill-unknown-tokens.js +58 -0
  26. package/dist/src/scripts/reparse-opportunities.d.ts +1 -0
  27. package/dist/src/{jobs → scripts}/reparse-opportunities.js +1 -0
  28. package/dist/src/utils/prices/priceService.js +1 -1
  29. package/dist/src/utils/prices/services/erc4626Service.js +1 -1
  30. package/dist/tsconfig.package.tsbuildinfo +1 -1
  31. package/package.json +1 -1
  32. package/dist/src/modules/v4/price/index.d.ts +0 -3
  33. package/dist/src/modules/v4/price/index.js +0 -3
  34. package/dist/src/modules/v4/uniswapV4/index.d.ts +0 -4
  35. package/dist/src/modules/v4/uniswapV4/index.js +0 -4
  36. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +0 -53
  37. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.js +0 -12
  38. /package/dist/src/{jobs/reparse-opportunities.d.ts → scripts/fill-unknown-tokens.d.ts} +0 -0
package/package.json CHANGED
@@ -107,5 +107,5 @@
107
107
  "access": "public",
108
108
  "registry": "https://registry.npmjs.org/"
109
109
  },
110
- "version": "v0.20.37"
110
+ "version": "v0.20.39"
111
111
  }
@@ -1,3 +0,0 @@
1
- export * from "./price.controller";
2
- export * from "./price.service";
3
- export * from "./price.model";
@@ -1,3 +0,0 @@
1
- export * from "./price.controller";
2
- export * from "./price.service";
3
- export * from "./price.model";
@@ -1,4 +0,0 @@
1
- export * from "./uniswapV4.controller";
2
- export * from "./uniswapV4.service";
3
- export * from "./uniswapV4.repository";
4
- export * from "./uniswapV4.model";
@@ -1,4 +0,0 @@
1
- export * from "./uniswapV4.controller";
2
- export * from "./uniswapV4.service";
3
- export * from "./uniswapV4.repository";
4
- export * from "./uniswapV4.model";
@@ -1,53 +0,0 @@
1
- import Elysia from "elysia";
2
- export declare const uniswapV4Controller: Elysia<"uniswap-v4", false, {
3
- decorator: {};
4
- store: {};
5
- derive: {};
6
- resolve: {};
7
- }, {
8
- type: {};
9
- error: {};
10
- }, {
11
- schema: {};
12
- macro: {};
13
- macroFn: {};
14
- }, {
15
- "uniswap-v4": {
16
- pools: {
17
- get: {
18
- body: unknown;
19
- params: {};
20
- query: {
21
- chainId: number;
22
- };
23
- headers: unknown;
24
- response: {
25
- 200: {
26
- [x: string]: {
27
- poolId: string;
28
- poolKey: {
29
- hooks: string;
30
- fee: number;
31
- tickSpacing: number;
32
- currency0: string;
33
- currency1: string;
34
- };
35
- decimalsCurrency0: number;
36
- decimalsCurrency1: number;
37
- symbolCurrency0: string;
38
- symbolCurrency1: string;
39
- };
40
- };
41
- };
42
- };
43
- };
44
- };
45
- }, {
46
- derive: {};
47
- resolve: {};
48
- schema: {};
49
- }, {
50
- derive: {};
51
- resolve: {};
52
- schema: {};
53
- }>;
@@ -1,12 +0,0 @@
1
- import Elysia, { t } from "elysia";
2
- import { UniswapV4Service } from "./uniswapV4.service";
3
- export const uniswapV4Controller = new Elysia({
4
- prefix: "uniswap-v4",
5
- detail: { tags: ["Uniswap V4"], hide: true },
6
- }).get("/pools", async ({ query }) => {
7
- return await UniswapV4Service.getPoolsByChain(query.chainId);
8
- }, {
9
- query: t.Object({
10
- chainId: t.Numeric(),
11
- }),
12
- });