@merkl/api 0.10.202 → 0.10.204

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.
@@ -34,9 +34,11 @@ export class CampaignRepository {
34
34
  : undefined,
35
35
  isTest: !test ? false : undefined,
36
36
  },
37
- Creator: {
38
- tags: { has: creatorTag },
39
- },
37
+ Creator: creatorTag
38
+ ? {
39
+ tags: { has: creatorTag },
40
+ }
41
+ : undefined,
40
42
  },
41
43
  };
42
44
  }
@@ -16,7 +16,7 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
16
16
  macro: {};
17
17
  macroFn: {};
18
18
  }, {
19
- index: {
19
+ poolInfo: {
20
20
  get: {
21
21
  body: unknown;
22
22
  params: {};
@@ -9,7 +9,7 @@ const fetchPoolData = async (poolAddress, chainId) => {
9
9
  const poolContract = UniswapV3Pool__factory.connect(poolAddress.toLowerCase(), providers[chainId]);
10
10
  const izumiContract = IzumiPool__factory.connect(poolAddress.toLowerCase(), providers[chainId]);
11
11
  try {
12
- let poolName = "/poolInfo";
12
+ let poolName = "";
13
13
  const factory = await poolContract.factory();
14
14
  let found = false;
15
15
  for (const amm in AMM) {
@@ -80,7 +80,7 @@ export const query = t.Object({
80
80
  chainId: t.Numeric(),
81
81
  poolAddress: t.String(),
82
82
  });
83
- export default (app) => app.use(checkQueryChainIdValidity()).get("", async ({ query }) => {
83
+ export default (app) => app.use(checkQueryChainIdValidity()).get("/poolInfo", async ({ query }) => {
84
84
  return await fetchPoolData(query.poolAddress, query.chainId);
85
85
  }, {
86
86
  query,