Fix lint errors

This commit is contained in:
Prathamesh Musale 2024-09-13 10:47:44 +05:30
parent 36c56da467
commit 2bcbfac98c

View File

@ -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;
} }