Create index for ERC20 data.

This commit is contained in:
Ashwin Phatak
2021-05-31 16:24:45 +05:30
parent a0aae09f83
commit 13ec526ebd
8 changed files with 593 additions and 157 deletions
+8 -2
View File
@@ -22,11 +22,17 @@ export class EthClient {
}
async getStorageAt(vars) {
return this._getCachedOrFetch('getStorageAt', vars);
const result = await this._getCachedOrFetch('getStorageAt', vars);
const { getStorageAt: { value, cid, ipldBlock } } = result;
return { value, cid, ipldBlock };
}
async getLogs(vars) {
return this._getCachedOrFetch('getLogs', vars);
const result = await this._getCachedOrFetch('getLogs', vars);
const { getLogs: logs } = result;
return logs;
}
async _getCachedOrFetch(queryName, vars) {