Skip to content

Commit b8b0d8e

Browse files
committed
copy updates
1 parent a561135 commit b8b0d8e

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ TypeScript library for interacting with the [ENSRainbow API](apps/ensrainbow).
175175

176176
Shared Drizzle schema definitions used by ENSNode
177177

178+
### [`packages/ponder-sdk`](packages/ponder-sdk)
179+
180+
A set of utilities for interacting with a Ponder app.
181+
178182
### [`packages/ponder-subgraph`](packages/ponder-subgraph)
179183

180184
Subgraph-compatible GraphQL API

apps/ensindexer/ponder/local-client/chain-indexing-status-snapshot.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,6 @@ export function createSerializedChainSnapshots(
135135

136136
const isSyncRealtime = metrics.getValue("ponder_sync_is_realtime", { chain: chainId });
137137

138-
if (typeof isSyncRealtime === "string" && !["0", "1"].includes(isSyncRealtime)) {
139-
throw new Error(
140-
`The 'ponder_sync_is_realtime' metric for chain '${chainId}' must be a string with value "0" or "1".`,
141-
);
142-
}
143-
144138
const config = {
145139
startBlock: deserializeBlockRef(chainBlockRefs?.config.startBlock),
146140
endBlock:

apps/ensindexer/ponder/local-client/local-ponder-client.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
type ChainName,
1212
getChainsBlockRefs,
1313
getChainsBlockrange,
14-
type PonderClient,
14+
PonderClient,
1515
type PonderMetricsResponse,
1616
} from "@ensnode/ponder-sdk";
1717

@@ -27,7 +27,11 @@ export class LocalPonderClient {
2727
*/
2828
private chainsBlockRefs = new Map<ChainName, ChainBlockRefs>();
2929

30-
constructor(private readonly ponderClient: PonderClient) {}
30+
private readonly ponderClient: PonderClient;
31+
32+
constructor(ponderApplicationUrl: URL) {
33+
this.ponderClient = new PonderClient(ponderApplicationUrl);
34+
}
3135

3236
public async buildCrossChainIndexingStatusSnapshot(): Promise<OmnichainIndexingStatusSnapshot> {
3337
const [metrics, status] = await Promise.all([

apps/ensindexer/src/lib/indexing-status/build-index-status.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ import {
1818
type OmnichainIndexingStatusSnapshot,
1919
type UnixTimestamp,
2020
} from "@ensnode/ensnode-sdk";
21-
import { PonderClient } from "@ensnode/ponder-sdk";
2221

2322
import { LocalPonderClient } from "../../../ponder/local-client";
2423

25-
const localPonderClient = new LocalPonderClient(new PonderClient(config.ensIndexerUrl));
24+
const localPonderClient = new LocalPonderClient(config.ensIndexerUrl);
2625

2726
export async function buildOmnichainIndexingStatusSnapshot(): Promise<OmnichainIndexingStatusSnapshot> {
2827
return localPonderClient.buildCrossChainIndexingStatusSnapshot();

packages/ponder-sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Ponder SDK
22

3-
This package is a set of libraries enabling smooth interaction with Ponder application and data, including shared types, data processing (such as validating data and enforcing invariants), and Ponder-oriented helper functions.
3+
This package is a set of utilities for interacting with a Ponder app.

packages/ponder-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@ensnode/ponder-sdk",
33
"version": "1.3.1",
44
"type": "module",
5-
"description": "A utility library for interacting with Ponder application and data",
5+
"description": "A library of utilities for interacting with Ponder apps.",
66
"license": "MIT",
77
"repository": {
88
"type": "git",

packages/ponder-sdk/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig({
1010
sourcemap: true,
1111
dts: true,
1212
clean: true,
13-
external: ["@ensnode/ensnode-sdk", "ponder", "viem", "zod"],
13+
external: ["ponder", "viem", "zod"],
1414
noExternal: ["parse-prometheus-text-format"],
1515
outDir: "./dist",
1616
});

0 commit comments

Comments
 (0)