Skip to content

Commit

Permalink
🔴 Add Optimism Sepolia testnet (#1149)
Browse files Browse the repository at this point in the history
* Added 'Optimism Sepolia' testnet

* Create great-drinks-help.md

---------

Co-authored-by: Łukasz Stankiewicz <stankiewicz1998@gmail.com>
  • Loading branch information
0xScratch and nezouse authored May 13, 2024
1 parent 3c2c07a commit 1ae0bcb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-drinks-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@usedapp/core": patch
---

Added 'Optimism Sepolia' testnet
20 changes: 20 additions & 0 deletions packages/core/src/model/chain/optimism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,25 @@ export const OptimismGoerli: Chain = {
getExplorerTransactionLink: getTransactionLink(testnetGoerliExplorerUrl),
}

const testnetSepoliaExplorerUrl = 'https://sepolia-optimism.etherscan.io'

export const OptimismSepolia: Chain = {
chainId: 11155420,
chainName: 'Optimism Sepolia',
isTestChain: true,
isLocalChain: false,
multicallAddress: '0xcA11bde05977b3631167028862bE2a173976CA11',
rpcUrl: 'https://sepolia.optimism.io',
nativeCurrency: {
name: 'Sepolia Ether',
symbol: 'ETH',
decimals: 18,
},
blockExplorerUrl: testnetSepoliaExplorerUrl,
getExplorerAddressLink: getAddressLink(testnetSepoliaExplorerUrl),
getExplorerTransactionLink: getTransactionLink(testnetSepoliaExplorerUrl),
}

const optimismExplorerUrl = 'https://optimistic.etherscan.io'

export const Optimism: Chain = {
Expand All @@ -61,5 +80,6 @@ export const Optimism: Chain = {
export default {
OptimismKovan,
OptimismGoerli,
OptimismSepolia,
Optimism,
}

0 comments on commit 1ae0bcb

Please sign in to comment.