Skip to content

Commit

Permalink
feat: update Shape Sepolia (#2708)
Browse files Browse the repository at this point in the history
* Update Shape Sepolia

* Just multicall
  • Loading branch information
0x-jj committed Sep 9, 2024
1 parent ce50d53 commit 6dfadec
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-beers-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Updated Shape Sepolia definition.
17 changes: 15 additions & 2 deletions src/chains/definitions/shapeSepolia.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { chainConfig } from '../../op-stack/chainConfig.js'
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 11_155_111 // sepolia

export const shapeSepolia = /*#__PURE__*/ defineChain({
...chainConfig,
id: 11_011,
name: 'Shape Sepolia Testnet',
nativeCurrency: { name: 'Sepolia Ether', symbol: 'ETH', decimals: 18 },
Expand All @@ -12,8 +16,17 @@ export const shapeSepolia = /*#__PURE__*/ defineChain({
blockExplorers: {
default: {
name: 'blockscout',
url: 'https://shape-sepolia-explorer.alchemy.com',
apiUrl: 'https://shape-sepolia-explorer.alchemy.com/api/v2',
url: 'https://explorer-sepolia.shape.network/',
apiUrl: 'https://explorer-sepolia.shape.network/api/v2',
},
},
contracts: {
...chainConfig.contracts,
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 1,
},
},
testnet: true,
sourceId,
})

0 comments on commit 6dfadec

Please sign in to comment.