Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common,cli,agent: remove multi-network-mode #1090

Merged
merged 4 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions packages/indexer-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ Indexer Infrastructure
--graph-node-admin-endpoint Graph Node endpoint for applying and
updating subgraph deployments
[string] [required]
--enable-auto-migration-support Auto migrate allocations from L1 to L2
(multi-network mode must be enabled)
[boolean] [default: false]
--public-indexer-url Indexer endpoint for receiving requests from
the network [string] [required]
--indexer-geo-coordinates Coordinates describing the Indexer's
Expand Down Expand Up @@ -161,9 +158,6 @@ Indexer Infrastructure
etc. [string] [required]
--graph-node-admin-endpoint Graph Node endpoint for applying and updating
subgraph deployments [string] [required]
--enable-auto-migration-support Auto migrate allocations from L1 to L2
(multi-network mode must be enabled)
[boolean] [default: false]

Postgres
--postgres-host Postgres host [string] [required]
Expand Down
8 changes: 1 addition & 7 deletions packages/indexer-agent/src/__tests__/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
specification,
QueryFeeModels,
defineQueryFeeModels,
MultiNetworks,
loadTestYamlConfig,
} from '@graphprotocol/indexer-common'
import { BigNumber } from 'ethers'
Expand Down Expand Up @@ -152,11 +151,6 @@ const setup = async () => {
metrics,
)

const multiNetworks = new MultiNetworks(
[network],
(n: Network) => n.specification.networkIdentifier,
)

indexerManagementClient = await createIndexerManagementClient({
models,
graphNode,
Expand All @@ -167,7 +161,7 @@ const setup = async () => {
parallelAllocations: 1,
},
},
multiNetworks,
network,
})

operator = new Operator(logger, indexerManagementClient, networkSpecification)
Expand Down
Loading
Loading