Rename variables and fix comments (#243)

* Rename entity to entityType

* Rename variables and fix comments
This commit is contained in:
2022-11-18 19:16:42 +05:30
committed by GitHub
parent 662c79a5e7
commit a0ba657d17
6 changed files with 58 additions and 62 deletions
+7 -1
View File
@@ -11,7 +11,9 @@ import {
ContractInterface,
StateStatus,
StateSyncStatusInterface,
StateInterface
StateInterface,
getResultEvent,
ResultEvent
} from '@cerc-io/util';
import { EthClient } from '@cerc-io/ipld-eth-client';
import { GetStorageAt, getStorageValue, MappingKey, StorageLayout } from '@cerc-io/solidity-mapper';
@@ -36,6 +38,10 @@ export class Indexer implements IndexerInterface {
return this._storageLayoutMap;
}
getResultEvent (event: EventInterface): ResultEvent {
return getResultEvent(event);
}
async getStorageValue (storageLayout: StorageLayout, blockHash: string, contractAddress: string, variable: string, ...mappingKeys: MappingKey[]): Promise<ValueResult> {
return getStorageValue(
storageLayout,