Skip to content

Commit 04cfd3a

Browse files
authored
chore: provide sane defaults for graph config (#721)
Signed-off-by: Tomás Migone <[email protected]>
1 parent b6219d3 commit 04cfd3a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

hardhat.config.ts

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

6060
const networkConfigs: NetworkConfig[] = [
6161
{ network: 'mainnet', chainId: 1, graphConfig: 'config/graph.mainnet.yml' },
62-
{ network: 'rinkeby', chainId: 4 },
63-
{ network: 'goerli', chainId: 5 },
62+
{ network: 'rinkeby', chainId: 4, graphConfig: 'config/graph.rinkeby.yml' },
63+
{ network: 'goerli', chainId: 5, graphConfig: 'config/graph.goerli.yml' },
6464
{ network: 'kovan', chainId: 42 },
6565
]
6666

@@ -138,17 +138,19 @@ const config: HardhatUserConfig = {
138138
interval: 13000,
139139
},
140140
hardfork: 'london',
141+
graphConfig: 'config/graph.localhost.yml',
141142
},
142143
localhost: {
143144
chainId: 1337,
144145
url: 'http://localhost:8545',
145146
accounts:
146147
process.env.FORK === 'true' ? getAccountsKeys() : { mnemonic: DEFAULT_TEST_MNEMONIC },
148+
graphConfig: 'config/graph.localhost.yml',
147149
},
148150
},
149151
graph: {
150152
addressBook: process.env.ADDRESS_BOOK ?? 'addresses.json',
151-
l1GraphConfig: process.env.GRAPH_CONFIG ?? 'config/graph.localhost.yml',
153+
l1GraphConfig: process.env.L1_GRAPH_CONFIG ?? 'config/graph.localhost.yml',
152154
l2GraphConfig: process.env.L2_GRAPH_CONFIG,
153155
},
154156
etherscan: {

0 commit comments

Comments
 (0)