Skip to content

Commit

Permalink
add sepolia support
Browse files Browse the repository at this point in the history
  • Loading branch information
rdonmez committed Jan 31, 2025
1 parent 50775aa commit fc0acbf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ npm install
```shell
npm start
```

## ENV

to run the app, you need to set you env variables. Please check .env.template file and rename to .env

## GRAPH API URL
latest: https://api.studio.thegraph.com/query/31812/ensocean/v0.0.3
7 changes: 3 additions & 4 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { ApolloProvider, ApolloClient, InMemoryCache } from "@apollo/client";
import { RainbowKitProvider, connectorsForWallets } from '@rainbow-me/rainbowkit';
import { rainbowWallet, walletConnectWallet, trustWallet, coinbaseWallet, metaMaskWallet } from '@rainbow-me/rainbowkit/wallets';
import { configureChains, createClient, WagmiConfig } from 'wagmi';
import { mainnet, goerli } from 'wagmi/chains'
import { mainnet, sepolia } from 'wagmi/chains'
import { alchemyProvider } from 'wagmi/providers/alchemy';
import { infuraProvider } from 'wagmi/providers/infura';
import { GasPriceProvider } from "./context/GasPriceContext";
Expand Down Expand Up @@ -45,10 +45,9 @@ const client = new ApolloClient({
});

const { chains, provider } = configureChains(
[process.env.REACT_APP_SUPPORTED_NETWORK === "goerli" ? goerli: mainnet ],
[process.env.REACT_APP_SUPPORTED_NETWORK === "sepolia" ? sepolia : mainnet ],
[
alchemyProvider({ apiKey: process.env.REACT_APP_ALCHEMY_KEY, priority: 0, weight: 1 }),
infuraProvider({ apiKey: process.env.REACT_APP_INFURA_KEY, priority: 1, weight: 2 }),
alchemyProvider({ apiKey: process.env.REACT_APP_ALCHEMY_KEY, priority: 0, weight: 1 })
]
);

Expand Down
2 changes: 1 addition & 1 deletion src/pages/partials/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Footer = () => {
<div className="col-lg-6 col-md-6 col-sm-12">
<ul className="list-inline list-unstyled float-lg-end float-md-end float-sm-none">
<li className="list-inline-item">
<a target="_blank" href="https://test.ensocean.com" title="Goerli Testnet">
<a target="_blank" href="https://test.ensocean.com" title="Sepolia Testnet">
<small>Testnet</small>
</a>
</li>
Expand Down

0 comments on commit fc0acbf

Please sign in to comment.