Skip to content

Commit

Permalink
Add new supported chains (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
yigiterdev committed Jul 29, 2024
1 parent e9f6ad9 commit 3a2f7f1
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
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

0 comments on commit 3a2f7f1

Please sign in to comment.