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

Commit

Permalink
Add ZORA testnet to reference chains (#313)
Browse files Browse the repository at this point in the history
* Add ZORA testnet to reference chains

* update type import

* add changeset

* Update .changeset/smooth-boats-play.md

Co-authored-by: awkweb <tom@meagher.co>

* Update .changeset/smooth-boats-play.md

Co-authored-by: awkweb <tom@meagher.co>

---------

Co-authored-by: awkweb <tom@meagher.co>
  • Loading branch information
iainnash and tmm authored May 30, 2023
1 parent 9f1c5d3 commit 260ab59
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/smooth-boats-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": patch
---

Added ZORA testnet
1 change: 1 addition & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ export { xdcTestnet } from './xdcTestnet'
export { zhejiang } from './zhejiang'
export { zkSync } from './zkSync'
export { zkSyncTestnet } from './zkSyncTestnet'
export { zoraTestnet } from './zoraTestnet'
33 changes: 33 additions & 0 deletions packages/chains/src/zoraTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { Chain } from './types'

export const zoraTestnet = {
id: 999,
name: 'ZORA Goerli Testnet',
network: 'zora-testnet',
nativeCurrency: {
decimals: 18,
name: 'ZORA Goerli',
symbol: 'ETH',
},
rpcUrls: {
default: {
http: ['https://testnet.rpc.zora.co'],
webSocket: ['wss://testnet.rpc.zora.co'],
},
public: {
http: ['https://testnet.rpc.zora.co'],
webSocket: ['wss://testnet.rpc.zora.co'],
},
},
blockExplorers: {
etherscan: { name: 'ZORA', url: 'https://testnet.explorer.zora.co' },
default: { name: 'ZORA', url: 'https://testnet.explorer.zora.co' },
},
contracts: {
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 189123,
},
},
testnet: true,
} as const satisfies Chain

0 comments on commit 260ab59

Please sign in to comment.