mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-02-03 08:42:50 +00:00
06ba24e38f
* Add subgraph schema types to the generated schema * Add queries for subgraph entities * Add entity generation for subgraph entities * Call subgraph event handler in indexer * Refactor subgraph schema and entity generation * Add resolvers generation for subgraph entities * Get event signature in the event * Add NonNullType check for field type in entity generation * Auto-diff based on store set * Use contract address from data source in loader * Change subgraph-schema arg to subgraph-path arg
36 lines
658 B
YAML
36 lines
658 B
YAML
className: Contract
|
|
indexOn:
|
|
- columns:
|
|
- address
|
|
unique: true
|
|
columns:
|
|
- name: id
|
|
tsType: number
|
|
columnType: PrimaryGeneratedColumn
|
|
- name: address
|
|
pgType: varchar
|
|
tsType: string
|
|
columnType: Column
|
|
columnOptions:
|
|
- option: length
|
|
value: 42
|
|
- name: kind
|
|
pgType: varchar
|
|
tsType: string
|
|
columnType: Column
|
|
- name: checkpoint
|
|
pgType: boolean
|
|
tsType: boolean
|
|
columnType: Column
|
|
- name: startingBlock
|
|
pgType: integer
|
|
tsType: number
|
|
columnType: Column
|
|
imports:
|
|
- toImport:
|
|
- Entity
|
|
- PrimaryGeneratedColumn
|
|
- Column
|
|
- Index
|
|
from: typeorm
|