diff --git a/packages/indexer-common/src/indexer-management/allocations.ts b/packages/indexer-common/src/indexer-management/allocations.ts index 8993ba5d1..2d0872796 100644 --- a/packages/indexer-common/src/indexer-management/allocations.ts +++ b/packages/indexer-common/src/indexer-management/allocations.ts @@ -36,7 +36,6 @@ import { BigNumberish, ContractReceipt, PopulatedTransaction, - providers, utils, } from 'ethers' @@ -251,7 +250,6 @@ export class AllocationManager { new SubgraphDeploymentID(action.deploymentID!), // eslint-disable-next-line @typescript-eslint/no-non-null-assertion parseGRT(action.amount!), - undefined, ) case ActionType.UNALLOCATE: return await this.prepareUnallocate( @@ -291,7 +289,6 @@ export class AllocationManager { logger: Logger, deployment: SubgraphDeploymentID, amount: BigNumber, - indexNode: string | undefined, ): Promise { logger.info('Preparing to allocate', { deployment: deployment.ipfsHash, @@ -465,9 +462,8 @@ export class AllocationManager { logger: Logger, deployment: SubgraphDeploymentID, amount: BigNumber, - indexNode: string | undefined, ): Promise { - const params = await this.prepareAllocateParams(logger, deployment, amount, indexNode) + const params = await this.prepareAllocateParams(logger, deployment, amount) logger.debug(`Populating allocateFrom transaction`, { indexer: params.indexer, subgraphDeployment: params.subgraphDeploymentID, diff --git a/packages/indexer-common/src/indexer-management/client.ts b/packages/indexer-common/src/indexer-management/client.ts index b2c5acfe9..648dea8cc 100644 --- a/packages/indexer-common/src/indexer-management/client.ts +++ b/packages/indexer-common/src/indexer-management/client.ts @@ -510,7 +510,7 @@ export class IndexerManagementClient extends Client { export const createIndexerManagementClient = async ( options: IndexerManagementClientOptions, ): Promise => { - const { models, graphNode, indexNodeIDs, logger, defaults, multiNetworks } = options + const { models, graphNode, logger, defaults, multiNetworks } = options const schema = buildSchema(print(SCHEMA_SDL)) const resolvers = { ...indexingRuleResolvers, diff --git a/packages/indexer-common/src/indexer-management/monitor.ts b/packages/indexer-common/src/indexer-management/monitor.ts index 7a3f24c54..7ac4f4fe0 100644 --- a/packages/indexer-common/src/indexer-management/monitor.ts +++ b/packages/indexer-common/src/indexer-management/monitor.ts @@ -541,7 +541,9 @@ export class NetworkMonitor { // Flatten multiple subgraphDeployment versions into a single `TransferredSubgraphDeployment` object // TODO: We could use `zod` to parse GraphQL responses into the expected type + // eslint-disable-next-line @typescript-eslint/no-explicit-any return transferredDeployments.flatMap((deployment: any) => { + // eslint-disable-next-line @typescript-eslint/no-explicit-any return deployment.versions.map((version: any) => { return { id: deployment.id, diff --git a/packages/indexer-common/src/indexer-management/resolvers/allocations.ts b/packages/indexer-common/src/indexer-management/resolvers/allocations.ts index 8266091c4..a8d5d4fc9 100644 --- a/packages/indexer-common/src/indexer-management/resolvers/allocations.ts +++ b/packages/indexer-common/src/indexer-management/resolvers/allocations.ts @@ -446,12 +446,10 @@ export default { { deployment, amount, - indexNode, protocolNetwork, }: { deployment: string amount: string - indexNode: string | undefined protocolNetwork: string }, { multiNetworks, graphNode, logger, models }: IndexerManagementResolverContext, diff --git a/packages/indexer-common/src/utils.ts b/packages/indexer-common/src/utils.ts index fd660c982..d10289167 100644 --- a/packages/indexer-common/src/utils.ts +++ b/packages/indexer-common/src/utils.ts @@ -6,7 +6,6 @@ import { } from '@ethersproject/providers' import { Logger, Metrics, timer } from '@graphprotocol/common-ts' import { indexerError, IndexerErrorCode } from './errors' -import { Sequelize } from 'sequelize' export const parseBoolean = ( val: string | boolean | number | undefined | null,