diff --git a/bun.lockb b/bun.lockb new file mode 100644 index 0000000..21d7890 Binary files /dev/null and b/bun.lockb differ diff --git a/package.json b/package.json index eade19e..898ebae 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "bench": "bun ./src/**/*.bench.ts" }, "dependencies": { + "@substreams/sink-database-changes": "^0.3.0", "@substreams/sink-entity-changes": "^0.3.4", "p-queue": "latest", "substreams-sink": "^0.13.4", diff --git a/src/auth/schemas.ts b/src/auth/schemas.ts index f2be59f..2bbeae8 100644 --- a/src/auth/schemas.ts +++ b/src/auth/schemas.ts @@ -1,3 +1,4 @@ +import { DatabaseChanges } from "@substreams/sink-database-changes/zod"; import { EntityChanges } from "@substreams/sink-entity-changes/zod"; import z from "zod"; @@ -32,7 +33,7 @@ export const PayloadBody = z.object({ }), clock: ClockSchema, manifest: ManifestSchema, - data: EntityChanges, + data: EntityChanges.or(DatabaseChanges), }); export type PayloadBody = z.infer;