@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 +3 -8
- package/dist/src/index.js.map +3 -3
- package/dist/src/runtime/block-processor.js +3 -8
- package/dist/src/runtime/block-processor.js.map +3 -3
- package/dist/src/runtime/catchup.js +3 -8
- package/dist/src/runtime/catchup.js.map +3 -3
- package/dist/src/runtime/processor.js +7 -15
- package/dist/src/runtime/processor.js.map +4 -4
- package/dist/src/runtime/reindex.js +3 -8
- package/dist/src/runtime/reindex.js.map +3 -3
- package/dist/src/runtime/reorg.js +3 -8
- package/dist/src/runtime/reorg.js.map +3 -3
- package/dist/src/runtime/replay.js +3 -8
- package/dist/src/runtime/replay.js.map +3 -3
- package/dist/src/service.js +7 -15
- package/dist/src/service.js.map +4 -4
- package/package.json +2 -2
|
@@ -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
|
-
|
|
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
|
-
|
|
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)) {
|
|
@@ -2940,5 +2935,5 @@ export {
|
|
|
2940
2935
|
BLOCK_RETRY_DELAYS_MS
|
|
2941
2936
|
};
|
|
2942
2937
|
|
|
2943
|
-
//# debugId=
|
|
2938
|
+
//# debugId=8F6B0245E6B7704164756E2164756E21
|
|
2944
2939
|
//# sourceMappingURL=block-processor.js.map
|