Accommodate GQL optimizations in codegen (#254)

* Prune optional methods in indexer and database interfaces

* Implement GQL optimization changes in codegen

* Fix graph-node test indexer

* Add demos to codegen package
This commit is contained in:
2022-11-23 17:42:25 +05:30
committed by GitHub
parent 0b33cc98c9
commit cc28474537
26 changed files with 758 additions and 57 deletions
+12
View File
@@ -244,4 +244,16 @@ export class Indexer implements IndexerInterface {
async resetWatcherToBlock (blockNumber: number): Promise<void> {
return undefined;
}
cacheContract (contract: ContractInterface): void {
return undefined;
}
async processInitialState (contractAddress: string, blockHash: string): Promise<any> {
return undefined;
}
async processStateCheckpoint (contractAddress: string, blockHash: string): Promise<boolean> {
return false;
}
}