Changes to use packages in uniswap-watcher (#196)

* Changes to use util from uniswap-watcher

* Refactor ResultIPLDBlock to util

* Verify state in compare CLI for uniswap multiple queries

* Prepare watcher-ts for publishing packages

* Fix verify state in compare CLI for multiple entities query

* Fix codegen util imports
This commit is contained in:
2022-10-11 13:41:26 +05:30
committed by GitHub
parent 978f0bb456
commit e1aef1a7e9
42 changed files with 1227 additions and 990 deletions
+21 -2
View File
@@ -7,7 +7,10 @@ import {
EventInterface,
SyncStatusInterface,
ServerConfig as ServerConfigInterface,
ValueResult
ValueResult,
ContractInterface,
IpldStatus as IpldStatusInterface,
IPLDBlockInterface
} from '@cerc-io/util';
import { EthClient } from '@cerc-io/ipld-eth-client';
import { GetStorageAt, getStorageValue, MappingKey, StorageLayout } from '@cerc-io/solidity-mapper';
@@ -85,7 +88,7 @@ export class Indexer implements IndexerInterface {
return '';
}
async fetchBlockEvents (block: BlockProgressInterface): Promise<BlockProgressInterface> {
async fetchBlockWithEvents (block: BlockProgressInterface): Promise<BlockProgressInterface> {
return block;
}
@@ -153,6 +156,22 @@ export class Indexer implements IndexerInterface {
async processEvent (event: EventInterface): Promise<void> {
assert(event);
}
isWatchedContract (address : string): ContractInterface | undefined {
return undefined;
}
async processBlock (blockProgress: BlockProgressInterface): Promise<void> {
return undefined;
}
getIPLDData (ipldBlock: IPLDBlockInterface): any {
return undefined;
}
async updateIPLDStatusMap (address: string, ipldStatus: IpldStatusInterface): Promise<void> {
return undefined;
}
}
class SyncStatus implements SyncStatusInterface {