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 1 commit
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
oehm-smith marked this conversation as resolved.
Show resolved Hide resolved
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/'],
oehm-smith marked this conversation as resolved.
Show resolved Hide resolved
addressExplorerUrl: 'address',
transactionExplorerUrl: 'tx',
multicallAddress: '',
isTestChain: true,
isLocalChain: true,
oehm-smith marked this conversation as resolved.
Show resolved Hide resolved
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 @@ -4,6 +4,7 @@

import imageEthereumMainnet from '../../assets/images/chains/1.webp';
import imageGanache from '../../assets/images/chains/1337.webp';
import imageSepolia from '../../assets/images/chains/11155111.webp';

Check warning on line 7 in src/features/wallet/components/NetworkLogo/NetworkLogo.tsx

View workflow job for this annotation

GitHub Actions / build

`../../assets/images/chains/11155111.webp` import should occur before import of `../../assets/images/chains/1337.webp`
import imagePolygon from '../../assets/images/chains/137.webp';
import imageHardhat from '../../assets/images/chains/31337.webp';
import imageAvalancheFuji from '../../assets/images/chains/43113.webp';
Expand All @@ -26,6 +27,7 @@
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 @@ -4,6 +4,7 @@
import { BSCTestChain } from './chains/bscTest';
import { EthereumMainnetChain } from './chains/ethereum';
import { GanacheChain } from './chains/ganache';
import { SepoliaChain } from './chains/sepolia';

Check warning on line 7 in src/features/wallet/config.ts

View workflow job for this annotation

GitHub Actions / build

`./chains/sepolia` import should occur after import of `./chains/polygonMumbai`
import { GoerliTestChain } from './chains/goerliTest';
import { HardhatChain } from './chains/hardhat';
import { PolygonChain } from './chains/polygon';
Expand All @@ -24,6 +25,7 @@
PolygonMumbaiChain,
GoerliTestChain,
GanacheChain,
SepoliaChain,
HardhatChain,
];
export const DEFAULT_NETWORK = AvalancheChain;
Expand Down
Loading