mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-04-29 20:54:07 +00:00
* 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
50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
className: SyncStatus
|
|
implements: SyncStatusInterface
|
|
indexOn: []
|
|
columns:
|
|
- name: id
|
|
tsType: number
|
|
columnType: PrimaryGeneratedColumn
|
|
- name: chainHeadBlockHash
|
|
pgType: varchar
|
|
tsType: string
|
|
columnType: Column
|
|
columnOptions:
|
|
- option: length
|
|
value: 66
|
|
- name: chainHeadBlockNumber
|
|
pgType: integer
|
|
tsType: number
|
|
columnType: Column
|
|
- name: latestIndexedBlockHash
|
|
pgType: varchar
|
|
tsType: string
|
|
columnType: Column
|
|
columnOptions:
|
|
- option: length
|
|
value: 66
|
|
- name: latestIndexedBlockNumber
|
|
pgType: integer
|
|
tsType: number
|
|
columnType: Column
|
|
- name: latestCanonicalBlockHash
|
|
pgType: varchar
|
|
tsType: string
|
|
columnType: Column
|
|
columnOptions:
|
|
- option: length
|
|
value: 66
|
|
- name: latestCanonicalBlockNumber
|
|
pgType: integer
|
|
tsType: number
|
|
columnType: Column
|
|
imports:
|
|
- toImport:
|
|
- Entity
|
|
- PrimaryGeneratedColumn
|
|
- Column
|
|
from: typeorm
|
|
- toImport:
|
|
- SyncStatusInterface
|
|
from: '@vulcanize/util'
|