Skip to content

Commit

Permalink
Fix invalid schema examples in docs (#1261)
Browse files Browse the repository at this point in the history
* Fix invalid schema examples in docs

* Replace `evmBigint` with `bigint`
  • Loading branch information
gskril authored Nov 20, 2024
1 parent 08e6fd2 commit 9a06d1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/pages/docs/getting-started/new-project.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The `ponder.schema.ts` file contains the database schema, and defines the shape
import { onchainTable } from "@ponder/core";

export const blitmapTokens = onchainTable("blitmap_tokens", (t) => ({
id: t.int().primaryKey(),
id: t.integer().primaryKey(),
owner: t.hex(),
}));
```
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/docs/guides/time-series.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ To power a [candlestick](https://en.wikipedia.org/wiki/Candlestick_chart) or ope
import { onchainTable } from "@ponder/core";

export const hourBuckets = onchainTable("hour_buckets", (t) => ({
id: t.int().primaryKey(),
id: t.integer().primaryKey(),
open: t.real().notNull(),
close: t.real().notNull(),
low: t.real().notNull(),
high: t.real().notNull(),
average: t.real().notNull(),
count: t.int().notNull(),
count: t.integer().notNull(),
}));
```

Expand Down
4 changes: 2 additions & 2 deletions docs/pages/docs/migration-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const accounts = onchainTable("account", (t) => ({
address: t.hex().primaryKey(),
daiBalance: t.bigint().notNull(),
isAdmin: t.boolean().notNull(),
graffiti: t.string(),
graffiti: t.text(),
}));
```

Expand Down Expand Up @@ -114,7 +114,7 @@ export const allowance = onchainTable(

export const approvalEvent = onchainTable("approval_event", (t) => ({
id: t.text().primaryKey(),
amount: t.evmBigint().notNull(),
amount: t.bigint().notNull(),
timestamp: t.integer().notNull(),
owner: t.hex().notNull(),
spender: t.hex().notNull(),
Expand Down

0 comments on commit 9a06d1d

Please sign in to comment.