From e6a1d7f0d77b213ea789f8620cb545a44fa4b66e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Migone?= Date: Mon, 3 Oct 2022 15:19:20 -0400 Subject: [PATCH] Revert "chore: provide sane defaults for graph config (#722)" This reverts commit 3dd645796281eed0397b13dc80cf2b1b3a28d49f. --- hardhat.config.ts | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/hardhat.config.ts b/hardhat.config.ts index 1a1c2758b..aa89f8715 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -59,21 +59,15 @@ interface NetworkConfig { const networkConfigs: NetworkConfig[] = [ { network: 'mainnet', chainId: 1, graphConfig: 'config/graph.mainnet.yml' }, - { network: 'rinkeby', chainId: 4, graphConfig: 'config/graph.rinkeby.yml' }, - { network: 'goerli', chainId: 5, graphConfig: 'config/graph.goerli.yml' }, + { network: 'rinkeby', chainId: 4 }, + { network: 'goerli', chainId: 5 }, { network: 'kovan', chainId: 42 }, { network: 'arbitrum-rinkeby', chainId: 421611, url: 'https://rinkeby.arbitrum.io/rpc' }, - { - network: 'arbitrum-one', - chainId: 42161, - url: 'https://arb1.arbitrum.io/rpc', - graphConfig: 'config/graph.arbitrum-one.yml', - }, + { network: 'arbitrum-one', chainId: 42161, url: 'https://arb1.arbitrum.io/rpc' }, { network: 'arbitrum-goerli', chainId: 421613, url: 'https://goerli-rollup.arbitrum.io/rpc', - graphConfig: 'config/graph.arbitrum-goerli.yml', }, ] @@ -151,32 +145,28 @@ const config: HardhatUserConfig = { interval: 13000, }, hardfork: 'london', - graphConfig: 'config/graph.localhost.yml', }, localhost: { chainId: 1337, url: 'http://localhost:8545', accounts: process.env.FORK === 'true' ? getAccountsKeys() : { mnemonic: DEFAULT_TEST_MNEMONIC }, - graphConfig: 'config/graph.localhost.yml', }, localnitrol1: { chainId: 1337, url: 'http://localhost:8545', accounts: { mnemonic: DEFAULT_TEST_MNEMONIC }, - graphConfig: 'config/graph.localhost.yml', }, localnitrol2: { chainId: 412346, url: 'http://localhost:8547', accounts: { mnemonic: DEFAULT_TEST_MNEMONIC }, - graphConfig: 'config/graph.arbitrum-localhost.yml', }, }, graph: { addressBook: process.env.ADDRESS_BOOK ?? 'addresses.json', - l1GraphConfig: process.env.L1_GRAPH_CONFIG ?? 'config/graph.localhost.yml', - l2GraphConfig: process.env.L2_GRAPH_CONFIG ?? 'config/graph.arbitrum-localhost.yml', + l1GraphConfig: process.env.GRAPH_CONFIG ?? 'config/graph.localhost.yml', + l2GraphConfig: process.env.L2_GRAPH_CONFIG, }, etherscan: { apiKey: process.env.ETHERSCAN_API_KEY,