Fix linter warnings and dependencies (#264)

* Fix minor linting errors

* Fix CLI getters linting errors

* Fix resolvers template in codegen

* Fix dependencies
This commit is contained in:
prathamesh0
2022-11-25 20:03:58 +05:30
committed by GitHub
parent 94c8ed9575
commit 2417e3feb1
69 changed files with 229 additions and 247 deletions
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import { Address, log, BigInt, BigDecimal, ByteArray, dataSource, ethereum, Bytes, crypto, json, JSONValueKind } from '@graphprotocol/graph-ts';
import {
@@ -164,7 +166,7 @@ export function testGetStorageValue (): void {
// Bind the contract to the address.
const contractAddress = dataSource.address();
const contract = Example1.bind(contractAddress);
Example1.bind(contractAddress);
const res = ethereum.getStorageValue('_test', []);
log.debug('Storage call result: {}', [res!.toBigInt().toString()]);
}
@@ -174,7 +176,7 @@ export function testMapStorageValue (): void {
// Bind the contract to the address.
const contractAddress = dataSource.address();
const contract = Example1.bind(contractAddress);
Example1.bind(contractAddress);
const addressValue = ethereum.Value.fromAddress(Address.zero());
const res = ethereum.getStorageValue('addressUintMap', [addressValue]);
log.debug('Storage call result: {}', [res!.toBigInt().toString()]);
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import assert from 'assert';
import { DeepPartial, FindConditions, FindManyOptions } from 'typeorm';