Skip to content

Commit e5f332d

Browse files
committed
common,cli,agent: remove multi-network-mode
1 parent 283ac9b commit e5f332d

File tree

29 files changed

+472
-1147
lines changed

29 files changed

+472
-1147
lines changed

packages/indexer-agent/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ Indexer Infrastructure
4949
--graph-node-admin-endpoint Graph Node endpoint for applying and
5050
updating subgraph deployments
5151
[string] [required]
52-
--enable-auto-migration-support Auto migrate allocations from L1 to L2
53-
(multi-network mode must be enabled)
54-
[boolean] [default: false]
5552
--public-indexer-url Indexer endpoint for receiving requests from
5653
the network [string] [required]
5754
--indexer-geo-coordinates Coordinates describing the Indexer's
@@ -161,9 +158,6 @@ Indexer Infrastructure
161158
etc. [string] [required]
162159
--graph-node-admin-endpoint Graph Node endpoint for applying and updating
163160
subgraph deployments [string] [required]
164-
--enable-auto-migration-support Auto migrate allocations from L1 to L2
165-
(multi-network mode must be enabled)
166-
[boolean] [default: false]
167161
168162
Postgres
169163
--postgres-host Postgres host [string] [required]

packages/indexer-agent/src/__tests__/indexer.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
specification,
1919
QueryFeeModels,
2020
defineQueryFeeModels,
21-
MultiNetworks,
2221
loadTestYamlConfig,
2322
} from '@graphprotocol/indexer-common'
2423
import { BigNumber } from 'ethers'
@@ -152,11 +151,6 @@ const setup = async () => {
152151
metrics,
153152
)
154153

155-
const multiNetworks = new MultiNetworks(
156-
[network],
157-
(n: Network) => n.specification.networkIdentifier,
158-
)
159-
160154
indexerManagementClient = await createIndexerManagementClient({
161155
models,
162156
graphNode,
@@ -167,7 +161,7 @@ const setup = async () => {
167161
parallelAllocations: 1,
168162
},
169163
},
170-
multiNetworks,
164+
network,
171165
})
172166

173167
operator = new Operator(logger, indexerManagementClient, networkSpecification)

0 commit comments

Comments
 (0)