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 Blast Sepolia network #1148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
7 changes: 7 additions & 0 deletions .changeset/adding_BlastSepolia.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@usedapp/core": patch
---

Adding the network blast Sepolia testnet:

https://blast.io/
3 changes: 3 additions & 0 deletions packages/core/src/constants/chainId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
AvalancheTestnet,
Aurora,
AuroraTestnet,
BlastSepoliaTestnet,
BSC,
BSCTestnet,
Canto,
Expand Down Expand Up @@ -142,6 +143,7 @@ export const DEFAULT_SUPPORTED_CHAINS = [
MantleTestnet,
KromaSepoliaTestnet,
KromaMainnet,
BlastSepoliaTestnet,
]

export enum ChainId {
Expand Down Expand Up @@ -215,4 +217,5 @@ export enum ChainId {
MantleTestnet = 5001,
Kroma = 255,
KromaSepolia = 2358,
BlastSepolia = 168587773,
}
25 changes: 25 additions & 0 deletions packages/core/src/model/chain/blast.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Chain } from '../../constants'
import { getAddressLink, getTransactionLink } from '../../helpers/chainExplorerLink'

const blastSepoliaTestnetExplorerUrl = 'https://testnet.blastscan.io'

export const BlastSepoliaTestnet: Chain = {
chainId: 168587773,
chainName: 'Blast Sepolia Testnet',
isTestChain: true,
isLocalChain: false,
multicallAddress: '0xcA11bde05977b3631167028862bE2a173976CA11',
rpcUrl: 'https://sepolia.blast.io',
nativeCurrency: {
name: 'SepoliaETH',
symbol: 'ETH',
decimals: 18,
},
blockExplorerUrl: blastSepoliaTestnetExplorerUrl,
getExplorerAddressLink: getAddressLink(blastSepoliaTestnetExplorerUrl),
getExplorerTransactionLink: getTransactionLink(blastSepoliaTestnetExplorerUrl),
}

export default {
BlastSepoliaTestnet,
}
1 change: 1 addition & 0 deletions packages/core/src/model/chain/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export * from './local'
export * from './arbitrum'
export * from './astar'
export * from './avalanche'
export * from './blast'
export * from './bsc'
export * from './boba'
export * from './canto'
Expand Down