Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sepolia test network #34

Merged
merged 6 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading