Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Add Zhejiang new testnet (#131)
Browse files Browse the repository at this point in the history
* add zhejiang chain info

* add one more explorer and export chain

* add changeset

* Update .changeset/khaki-walls-beg.md

* Update packages/chains/src/zhejiang.ts

---------

Co-authored-by: awkweb <tom@meagher.co>
  • Loading branch information
marc-aurele-besner and tmm authored Mar 3, 2023
1 parent 977ed47 commit 9a2c5a2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/khaki-walls-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@wagmi/chains': patch
---

Added support for Zhejiang Ethereum Testnet.
1 change: 1 addition & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ export { taraxa } from './taraxa'
export { taraxaTestnet } from './taraxaTestnet'
export { telos } from './telos'
export { telosTestnet } from './telosTestnet'
export { zhejiang } from './zhejiang'
export { zkSync } from './zkSync'
export { zkSyncTestnet } from './zkSyncTestnet'
31 changes: 31 additions & 0 deletions packages/chains/src/zhejiang.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { Chain } from './types'

export const zhejiang = {
id: 1_337_803,
network: 'zhejiang',
name: 'Zhejiang',
nativeCurrency: { name: 'Zhejiang Ether', symbol: 'ZhejETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.zhejiang.ethpandaops.io'],
},
public: {
http: ['https://rpc.zhejiang.ethpandaops.io'],
},
},
blockExplorers: {
beaconchain: {
name: 'Etherscan',
url: 'https://zhejiang.beaconcha.in',
},
blockscout: {
name: 'Blockscout',
url: 'https://blockscout.com/eth/zhejiang-testnet',
},
default: {
name: 'Beaconchain',
url: 'https://zhejiang.beaconcha.in',
},
},
testnet: true,
} as const satisfies Chain

0 comments on commit 9a2c5a2

Please sign in to comment.