@secondlayer/subgraphs 4.0.4 → 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.
package/dist/src/index.js CHANGED
@@ -1883,7 +1883,7 @@ import { sql as sql3 } from "kysely";
1883
1883
  // src/runtime/block-source.ts
1884
1884
  import { getSourceDb as getSourceDb2 } from "@secondlayer/shared/db";
1885
1885
  import {
1886
- IndexHttpClient
1886
+ createInternalIndexHttpClient
1887
1887
  } from "@secondlayer/shared/index-http";
1888
1888
  import { logger as logger4 } from "@secondlayer/shared/logger";
1889
1889
 
@@ -2239,12 +2239,7 @@ class FallbackBlockSource {
2239
2239
  }
2240
2240
  var postgresBlockSource = new PostgresBlockSource;
2241
2241
  function buildHttpClient() {
2242
- const baseUrl = process.env.SUBGRAPH_INDEX_API_URL ?? process.env.STREAMS_API_URL ?? "http://api:3800";
2243
- return new IndexHttpClient({
2244
- indexBaseUrl: baseUrl,
2245
- streamsBaseUrl: baseUrl,
2246
- streamsApiKey: process.env.STREAMS_INTERNAL_API_KEY ?? "sk-sl_streams_decode_internal"
2247
- });
2242
+ return createInternalIndexHttpClient();
2248
2243
  }
2249
2244
  function resolveBlockSource(subgraph) {
2250
2245
  if (process.env.SUBGRAPH_SOURCE === "streams-index" && subgraph && isStreamsIndexEligible(subgraph)) {
@@ -5272,5 +5267,5 @@ export {
5272
5267
  ChainReadError
5273
5268
  };
5274
5269
 
5275
- //# debugId=5422814BCC96BC1064756E2164756E21
5270
+ //# debugId=EAAE2F38AEB249FD64756E2164756E21
5276
5271
  //# sourceMappingURL=index.js.map