@secondlayer/subgraphs 4.0.3 → 4.0.5

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.
@@ -1668,7 +1668,7 @@ import { sql as sql3 } from "kysely";
1668
1668
  // src/runtime/block-source.ts
1669
1669
  import { getSourceDb as getSourceDb2 } from "@secondlayer/shared/db";
1670
1670
  import {
1671
- IndexHttpClient
1671
+ createInternalIndexHttpClient
1672
1672
  } from "@secondlayer/shared/index-http";
1673
1673
  import { logger as logger4 } from "@secondlayer/shared/logger";
1674
1674
 
@@ -2024,12 +2024,7 @@ class FallbackBlockSource {
2024
2024
  }
2025
2025
  var postgresBlockSource = new PostgresBlockSource;
2026
2026
  function buildHttpClient() {
2027
- const baseUrl = process.env.SUBGRAPH_INDEX_API_URL ?? process.env.STREAMS_API_URL ?? "http://api:3800";
2028
- return new IndexHttpClient({
2029
- indexBaseUrl: baseUrl,
2030
- streamsBaseUrl: baseUrl,
2031
- streamsApiKey: process.env.STREAMS_INTERNAL_API_KEY ?? "sk-sl_streams_decode_internal"
2032
- });
2027
+ return createInternalIndexHttpClient();
2033
2028
  }
2034
2029
  function resolveBlockSource(subgraph) {
2035
2030
  if (process.env.SUBGRAPH_SOURCE === "streams-index" && subgraph && isStreamsIndexEligible(subgraph)) {
@@ -3274,5 +3269,5 @@ export {
3274
3269
  bumpReorgEpoch
3275
3270
  };
3276
3271
 
3277
- //# debugId=94C81D38A475A3B564756E2164756E21
3272
+ //# debugId=BEC337314BE504DB64756E2164756E21
3278
3273
  //# sourceMappingURL=catchup.js.map