From 1ae0bcba10ec0c233dfde89106c49ac1b9fe663d Mon Sep 17 00:00:00 2001 From: Aryan Malik Date: Mon, 13 May 2024 13:15:46 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=B4=20Add=20Optimism=20Sepolia=20testn?= =?UTF-8?q?et=20(#1149)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added 'Optimism Sepolia' testnet * Create great-drinks-help.md --------- Co-authored-by: Ɓukasz Stankiewicz --- .changeset/great-drinks-help.md | 5 +++++ packages/core/src/model/chain/optimism.ts | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .changeset/great-drinks-help.md diff --git a/.changeset/great-drinks-help.md b/.changeset/great-drinks-help.md new file mode 100644 index 000000000..deb34e4b0 --- /dev/null +++ b/.changeset/great-drinks-help.md @@ -0,0 +1,5 @@ +--- +"@usedapp/core": patch +--- + +Added 'Optimism Sepolia' testnet diff --git a/packages/core/src/model/chain/optimism.ts b/packages/core/src/model/chain/optimism.ts index e74ef2cdf..3eab25d43 100644 --- a/packages/core/src/model/chain/optimism.ts +++ b/packages/core/src/model/chain/optimism.ts @@ -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 = { @@ -61,5 +80,6 @@ export const Optimism: Chain = { export default { OptimismKovan, OptimismGoerli, + OptimismSepolia, Optimism, }