Skip to content

Commit

Permalink
Using Sepolias as the testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Apr 5, 2024
1 parent f1e16d8 commit be02e1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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"]
10 changes: 5 additions & 5 deletions packages/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand Down Expand Up @@ -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 || '',
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit be02e1b

Please sign in to comment.