Skip to content

Commit e6a1d7f

Browse files
authored
Revert "chore: provide sane defaults for graph config (#722)"
This reverts commit 3dd6457.
1 parent 3dd6457 commit e6a1d7f

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

hardhat.config.ts

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,15 @@ interface NetworkConfig {
5959

6060
const networkConfigs: NetworkConfig[] = [
6161
{ network: 'mainnet', chainId: 1, graphConfig: 'config/graph.mainnet.yml' },
62-
{ network: 'rinkeby', chainId: 4, graphConfig: 'config/graph.rinkeby.yml' },
63-
{ network: 'goerli', chainId: 5, graphConfig: 'config/graph.goerli.yml' },
62+
{ network: 'rinkeby', chainId: 4 },
63+
{ network: 'goerli', chainId: 5 },
6464
{ network: 'kovan', chainId: 42 },
6565
{ network: 'arbitrum-rinkeby', chainId: 421611, url: 'https://rinkeby.arbitrum.io/rpc' },
66-
{
67-
network: 'arbitrum-one',
68-
chainId: 42161,
69-
url: 'https://arb1.arbitrum.io/rpc',
70-
graphConfig: 'config/graph.arbitrum-one.yml',
71-
},
66+
{ network: 'arbitrum-one', chainId: 42161, url: 'https://arb1.arbitrum.io/rpc' },
7267
{
7368
network: 'arbitrum-goerli',
7469
chainId: 421613,
7570
url: 'https://goerli-rollup.arbitrum.io/rpc',
76-
graphConfig: 'config/graph.arbitrum-goerli.yml',
7771
},
7872
]
7973

@@ -151,32 +145,28 @@ const config: HardhatUserConfig = {
151145
interval: 13000,
152146
},
153147
hardfork: 'london',
154-
graphConfig: 'config/graph.localhost.yml',
155148
},
156149
localhost: {
157150
chainId: 1337,
158151
url: 'http://localhost:8545',
159152
accounts:
160153
process.env.FORK === 'true' ? getAccountsKeys() : { mnemonic: DEFAULT_TEST_MNEMONIC },
161-
graphConfig: 'config/graph.localhost.yml',
162154
},
163155
localnitrol1: {
164156
chainId: 1337,
165157
url: 'http://localhost:8545',
166158
accounts: { mnemonic: DEFAULT_TEST_MNEMONIC },
167-
graphConfig: 'config/graph.localhost.yml',
168159
},
169160
localnitrol2: {
170161
chainId: 412346,
171162
url: 'http://localhost:8547',
172163
accounts: { mnemonic: DEFAULT_TEST_MNEMONIC },
173-
graphConfig: 'config/graph.arbitrum-localhost.yml',
174164
},
175165
},
176166
graph: {
177167
addressBook: process.env.ADDRESS_BOOK ?? 'addresses.json',
178-
l1GraphConfig: process.env.L1_GRAPH_CONFIG ?? 'config/graph.localhost.yml',
179-
l2GraphConfig: process.env.L2_GRAPH_CONFIG ?? 'config/graph.arbitrum-localhost.yml',
168+
l1GraphConfig: process.env.GRAPH_CONFIG ?? 'config/graph.localhost.yml',
169+
l2GraphConfig: process.env.L2_GRAPH_CONFIG,
180170
},
181171
etherscan: {
182172
apiKey: process.env.ETHERSCAN_API_KEY,

0 commit comments

Comments
 (0)