Skip to content

Commit

Permalink
Add Sepolia test network (#34)
Browse files Browse the repository at this point in the history
* Add Sepolia test network
  • Loading branch information
oehm-smith authored Mar 6, 2024
1 parent 3ee9357 commit ec2e3d8
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vitedapp",
"private": true,
"version": "0.5.3",
"version": "0.5.4",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src/features/ui/components/Layout/Copyright/Copyright.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import reactDappTemplateLogo from '../../../assets/images/react-dapp-template-lo
export const Copyright: React.FC = React.memo(() => {
return (
<Box>
<Tooltip label="Powered by React dApp Template (Vite) v0.5.3">
<Tooltip label="Powered by React dApp Template (Vite) v0.5.4">
<Button
as={Link}
href="https://github.com/huseyindeniz/vite-react-dapp-template"
Expand Down
Binary file not shown.
19 changes: 19 additions & 0 deletions src/features/wallet/chains/sepolia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Network } from '../models/network/types/Network';

export const SepoliaChain: Network = {
chainId: 11155111,
chainName: 'Sepolia',
nativeCurrency: {
name: 'Sepolia ETH',
symbol: 'ETH',
decimals: 18,
},
rpcUrls: ['https://ethereum-sepolia-rpc.publicnode.com'],
blockExplorerUrls: ['https://sepolia.etherscan.io'],
addressExplorerUrl: 'address',
transactionExplorerUrl: 'tx',
multicallAddress: '',
isTestChain: true,
isLocalChain: false,
isDomainNameSupported: false,
};
2 changes: 2 additions & 0 deletions src/features/wallet/components/NetworkLogo/NetworkLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';
import { Image } from '@chakra-ui/react';

import imageEthereumMainnet from '../../assets/images/chains/1.webp';
import imageSepolia from '../../assets/images/chains/11155111.webp';
import imageGanache from '../../assets/images/chains/1337.webp';
import imagePolygon from '../../assets/images/chains/137.webp';
import imageHardhat from '../../assets/images/chains/31337.webp';
Expand All @@ -26,6 +27,7 @@ const imagesNetwork: Record<number, string> = {
97: imageBscTest,
1: imageEthereumMainnet,
1337: imageGanache,
11155111: imageSepolia,
5: imageGoerli,
31337: imageHardhat,
137: imagePolygon,
Expand Down
2 changes: 2 additions & 0 deletions src/features/wallet/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { GoerliTestChain } from './chains/goerliTest';
import { HardhatChain } from './chains/hardhat';
import { PolygonChain } from './chains/polygon';
import { PolygonMumbaiChain } from './chains/polygonMumbai';
import { SepoliaChain } from './chains/sepolia';
import { Network } from './models/network/types/Network';
import { Web3Wallet } from './models/provider/types/Web3Wallet';
import { Core } from './web3Wallets/core';
Expand All @@ -24,6 +25,7 @@ export const SUPPORTED_NETWORKS: Network[] = [
PolygonMumbaiChain,
GoerliTestChain,
GanacheChain,
SepoliaChain,
HardhatChain,
];
export const DEFAULT_NETWORK = AvalancheChain;
Expand Down

0 comments on commit ec2e3d8

Please sign in to comment.