From be02e1bb5a9e27683c79da61a15028d59f2e5baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8r=E2=88=82=C2=A1?= Date: Fri, 5 Apr 2024 11:32:09 +0200 Subject: [PATCH] Using Sepolias as the testnet --- .env.example | 4 ++-- packages/contracts/hardhat.config.ts | 10 +++++----- packages/contracts/utils/helpers.ts | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.env.example b/.env.example index e8e7cb0..530e2d8 100644 --- a/.env.example +++ b/.env.example @@ -1,7 +1,7 @@ # GENERAL ## The network used for testing purposes -NETWORK_NAME="mainnet" # ["mainnet", "goerli", "polygon", "polygonMumbai"] +NETWORK_NAME="mainnet" # ["mainnet", "sepolia", "polygon", "polygonMumbai"] # CONTRACTS @@ -28,4 +28,4 @@ GRAPH_KEY="zzzzzzzzzzzz" ## Subgraph SUBGRAPH_NAME="osx" SUBGRAPH_VERSION="alice-debug-1s" -SUBGRAPH_NETWORK_NAME="goerli" # ["mainnet", "goerli", "polygon", "polygonMumbai"] +SUBGRAPH_NETWORK_NAME="sepolia" # ["mainnet", "sepolia", "polygon", "polygonMumbai"] diff --git a/packages/contracts/hardhat.config.ts b/packages/contracts/hardhat.config.ts index c3bb40d..18311a2 100644 --- a/packages/contracts/hardhat.config.ts +++ b/packages/contracts/hardhat.config.ts @@ -22,7 +22,7 @@ if (!process.env.INFURA_API_KEY) { const apiUrls: NetworkNameMapping = { mainnet: 'https://mainnet.infura.io/v3/', - goerli: 'https://goerli.infura.io/v3/', + sepolia: 'https://sepolia.infura.io/v3/', polygon: 'https://polygon-mainnet.infura.io/v3/', polygonMumbai: 'https://polygon-mumbai.infura.io/v3/', baseGoerli: 'https://goerli.base.org', @@ -41,9 +41,9 @@ export const networks: {[index: string]: NetworkUserConfig} = { chainId: 1, url: `${apiUrls.mainnet}${process.env.INFURA_API_KEY}`, }, - goerli: { - chainId: 5, - url: `${apiUrls.goerli}${process.env.INFURA_API_KEY}`, + sepolia: { + chainId: 11155111, + url: `${apiUrls.sepolia}${process.env.INFURA_API_KEY}`, }, polygon: { chainId: 137, @@ -86,7 +86,7 @@ const config: HardhatUserConfig = { etherscan: { apiKey: { mainnet: process.env.ETHERSCAN_API_KEY || '', - goerli: process.env.ETHERSCAN_API_KEY || '', + sepolia: process.env.ETHERSCAN_API_KEY || '', polygon: process.env.POLYGONSCAN_API_KEY || '', polygonMumbai: process.env.POLYGONSCAN_API_KEY || '', baseGoerli: process.env.BASESCAN_API_KEY || '', diff --git a/packages/contracts/utils/helpers.ts b/packages/contracts/utils/helpers.ts index 1f0a9cd..f4552ee 100644 --- a/packages/contracts/utils/helpers.ts +++ b/packages/contracts/utils/helpers.ts @@ -24,7 +24,7 @@ export const osxContracts: ContractList = activeContractsList; export const networkNameMapping: NetworkNameMapping = { mainnet: 'mainnet', - goerli: 'goerli', + sepolia: 'sepolia', polygon: 'polygon', polygonMumbai: 'mumbai', baseGoerli: 'baseGoerli',