From 0014c395a43c0cf3ee067b0f80d759d4603a30f5 Mon Sep 17 00:00:00 2001 From: vitalii-woof-software Date: Thu, 7 Nov 2024 22:55:14 +0900 Subject: [PATCH] feat: add ankr RPC for Optimism and Base --- hardhat.config.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hardhat.config.ts b/hardhat.config.ts index f2cf294fc..22c2cf4b4 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -65,7 +65,7 @@ const { LINEASCAN_KEY, OPTIMISMSCAN_KEY, INFURA_KEY, - QUICKNODE_KEY, + ANKR_KEY, MNEMONIC = 'myth like bonus scare over problem client lizard pioneer submit female collect', REPORT_GAS = 'false', NETWORK_PROVIDER = '', @@ -92,6 +92,7 @@ export function requireEnv(varName, msg?: string): string { 'ETHERSCAN_KEY', 'SNOWTRACE_KEY', 'INFURA_KEY', + 'ANKR_KEY', 'POLYGONSCAN_KEY', 'ARBISCAN_KEY', 'LINEASCAN_KEY', @@ -121,12 +122,12 @@ const networkConfigs: NetworkConfig[] = [ { network: 'optimism', chainId: 10, - url: `https://optimism-mainnet.infura.io/v3/${INFURA_KEY}`, + url: `https://rpc.ankr.com/optimism/${ANKR_KEY}`, }, { network: 'base', chainId: 8453, - url: `https://fluent-prettiest-scion.base-mainnet.quiknode.pro/${QUICKNODE_KEY}`, + url: `https://rpc.ankr.com/base/${ANKR_KEY}`, }, { network: 'arbitrum',