UNPKG
ponder-client
Version:
latest (0.1.8)
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
Type-safe, lightweight Ponder client
github.com/Destiner/ponder-client
Destiner/ponder-client
ponder-client
/
src
/
examples
/
basic
/
schema.ts
14 lines
(11 loc)
•
259 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{ createSchema }
from
'@ponder/core'
;
const
schema =
createSchema
(
(
p
) =>
({
Entity
: p.
createTable
({
id
: p.
string
(),
address
: p.
hex
(),
chainId
: p.
int
(),
factory
: p.
hex
(),
values
: p.
hex
().
list
(), }), }));
export
default
schema;