Skip to content

Commit

Permalink
Remove starknet-indexer example
Browse files Browse the repository at this point in the history
  • Loading branch information
fracek committed Dec 21, 2024
1 parent 242cbb4 commit 28d4c0c
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 740 deletions.
11 changes: 0 additions & 11 deletions examples/starknet-indexer/biome.json

This file was deleted.

34 changes: 0 additions & 34 deletions examples/starknet-indexer/package.json

This file was deleted.

53 changes: 0 additions & 53 deletions examples/starknet-indexer/src/indexer.ts

This file was deleted.

38 changes: 0 additions & 38 deletions examples/starknet-indexer/src/main.ts

This file was deleted.

11 changes: 0 additions & 11 deletions examples/starknet-indexer/tsconfig.json

This file was deleted.

6 changes: 5 additions & 1 deletion packages/cli/src/runtime/internal/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { createIndexer as _createIndexer } from "@apibara/indexer";
import { type ConsolaReporter, logger, inMemoryPersistence } from "@apibara/indexer/plugins";
import {
type ConsolaReporter,
inMemoryPersistence,
logger,
} from "@apibara/indexer/plugins";

import { config } from "#apibara-internal-virtual/config";
import { indexers } from "#apibara-internal-virtual/indexers";
Expand Down
4 changes: 3 additions & 1 deletion packages/indexer/src/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export interface IndexerHooks<TFilter, TBlock> {
request: StreamDataRequest<TFilter>;
options: StreamDataOptions;
}) => void;
"connect:after": ({ request }: { request: StreamDataRequest<TFilter> }) => void;
"connect:after": ({
request,
}: { request: StreamDataRequest<TFilter> }) => void;
"connect:factory": ({
request,
endCursor,
Expand Down
7 changes: 6 additions & 1 deletion packages/indexer/src/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
export { defineIndexerPlugin, type IndexerPlugin } from "./config";
export { type ConsolaInstance, type ConsolaReporter, logger, useLogger } from "./logger";
export {
type ConsolaInstance,
type ConsolaReporter,
logger,
useLogger,
} from "./logger";
export { inMemoryPersistence } from "./persistence";
Loading

0 comments on commit 28d4c0c

Please sign in to comment.