message: indexer-agent: Only index subgraphs with >= 100 GRT total stake
diff: @@ -4,6 +4,7 @@ import {
  connectContracts,
  SubgraphDeploymentID,
  formatGRT,
  + parseGRT,
  } from '@graphprotocol/common-ts'
  import axios, { AxiosInstance } from 'axios'
  import {
  @@ -133,7 +134,8 @@ export class Network {
  }
  async subgraphDeploymentsWorthIndexing(): Promise<SubgraphDeploymentKey[]> {
  - const minimumStake = 100
  + const minimumStake = parseGRT('100')
  +
  try {
  const result = await this.subgraph.query({
  query: gql`
  @@ -157,11 +159,13 @@ export class Network {
  `,
  fetchPolicy: 'no-cache',
  })
  - return result.data.subgraphs
  - .filter(
  - (subgraph: Subgraph) =>
  - subgraph.currentVersion.subgraphDeployment.totalStake >=
  + return (
  + result.data.subgraphs
  + // eslint-disable-next-line @typescript-eslint/no-explicit-any
  + .filter((subgraph: any) =>
  + parseGRT(subgraph.currentVersion.subgraphDeployment.totalStake).gte(
  minimumStake,
  + ),
  )
  .map((subgraph: Subgraph) => {
  return {
  @@ -171,6 +175,7 @@ export class Network {
  ),
  } as SubgraphDeploymentKey
  })
  + )
  } catch (error) {
  this.logger.error(`Network subgraphs query failed`)
  throw error
  