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

Adding new supported chains (B3, APE, Blast) #550

Merged
merged 1 commit into from
Jul 29, 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
16 changes: 16 additions & 0 deletions packages/network/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,22 @@ export const allNetworks = validateAndSortNetworks([
...networks[ChainId.XR_SEPOLIA],
...genUrls('xr-sepolia')
},
{
...networks[ChainId.B3_SEPOLIA],
...genUrls('b3-sepolia')
},
{
...networks[ChainId.APE_CHAIN_TESTNET],
...genUrls('ape-chain-testnet')
},
{
...networks[ChainId.BLAST],
...genUrls('blast')
},
{
...networks[ChainId.BLAST_SEPOLIA],
...genUrls('blast-sepolia')
},
{
...networks[ChainId.TELOS],
...genUrls('telos')
Expand Down
74 changes: 74 additions & 0 deletions packages/network/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ export enum ChainId {
// TELOS
TELOS = 40,

// B3 Sepolia
B3_SEPOLIA = 1993,

// APE Chain
APE_CHAIN_TESTNET = 33111,

// Blast
BLAST = 81457,
BLAST_SEPOLIA = 168587773,

// HARDHAT TESTNETS
HARDHAT = 31337,
HARDHAT_2 = 31338
Expand Down Expand Up @@ -657,6 +667,70 @@ export const networks: Record<ChainId, NetworkMetadata> = {
decimals: 18
}
},
[ChainId.B3_SEPOLIA]: {
chainId: ChainId.B3_SEPOLIA,
type: NetworkType.TESTNET,
name: 'b3-sepolia',
title: 'B3 Sepolia',
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.B3_SEPOLIA}.webp`,
blockExplorer: {
name: 'B3 Sepolia Explorer',
rootUrl: 'https://sepolia.explorer.b3.fun/'
},
nativeToken: {
symbol: 'ETH',
name: 'Ether',
decimals: 18
}
},
[ChainId.APE_CHAIN_TESTNET]: {
chainId: ChainId.APE_CHAIN_TESTNET,
type: NetworkType.TESTNET,
name: 'ape-chain-testnet',
title: 'APE Chain Testnet',
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.B3_SEPOLIA}.webp`,
blockExplorer: {
name: 'APE Chain Explorer',
rootUrl: 'https://curtis.explorer.caldera.xyz/'
},
nativeToken: {
symbol: 'APE',
name: 'ApeCoin',
decimals: 18
}
},
[ChainId.BLAST]: {
chainId: ChainId.BLAST,
type: NetworkType.MAINNET,
name: 'blast',
title: 'Blast',
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.BLAST}.webp`,
blockExplorer: {
name: 'Blast Explorer',
rootUrl: 'https://blastscan.io/'
},
nativeToken: {
symbol: 'ETH',
name: 'Ether',
decimals: 18
}
},
[ChainId.BLAST_SEPOLIA]: {
chainId: ChainId.BLAST_SEPOLIA,
type: NetworkType.TESTNET,
name: 'blast-sepolia',
title: 'Blast Sepolia',
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.BLAST_SEPOLIA}.webp`,
blockExplorer: {
name: 'Blast Sepolia Explorer',
rootUrl: 'https://sepolia.blastexplorer.io/'
},
nativeToken: {
symbol: 'ETH',
name: 'Ether',
decimals: 18
}
},
[ChainId.TELOS]: {
chainId: ChainId.TELOS,
type: NetworkType.MAINNET,
Expand Down
Loading