mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-07-27 02:32:07 +00:00
Fix lint errors
This commit is contained in:
parent
36c56da467
commit
2bcbfac98c
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import assert from 'assert';
|
import assert from 'assert';
|
||||||
import { DeepPartial, FindConditions, FindManyOptions } from 'typeorm';
|
import { DeepPartial, FindConditions, FindManyOptions } from 'typeorm';
|
||||||
import { providers } from 'ethers';
|
import { ethers } from 'ethers';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
IndexerInterface,
|
IndexerInterface,
|
||||||
@ -28,6 +28,8 @@ import { GetStorageAt, getStorageValue, MappingKey, StorageLayout } from '@cerc-
|
|||||||
export class Indexer implements IndexerInterface {
|
export class Indexer implements IndexerInterface {
|
||||||
_getStorageAt: GetStorageAt;
|
_getStorageAt: GetStorageAt;
|
||||||
_storageLayoutMap: Map<string, StorageLayout> = new Map();
|
_storageLayoutMap: Map<string, StorageLayout> = new Map();
|
||||||
|
_contractMap: Map<string, ethers.utils.Interface> = new Map();
|
||||||
|
|
||||||
eventSignaturesMap: Map<string, string[]> = new Map();
|
eventSignaturesMap: Map<string, string[]> = new Map();
|
||||||
|
|
||||||
constructor (ethClient: EthClient, storageLayoutMap?: Map<string, StorageLayout>) {
|
constructor (ethClient: EthClient, storageLayoutMap?: Map<string, StorageLayout>) {
|
||||||
@ -50,6 +52,10 @@ export class Indexer implements IndexerInterface {
|
|||||||
return this._storageLayoutMap;
|
return this._storageLayoutMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get contractMap (): Map<string, ethers.utils.Interface> {
|
||||||
|
return this._contractMap;
|
||||||
|
}
|
||||||
|
|
||||||
async init (): Promise<void> {
|
async init (): Promise<void> {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user