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

Commit

Permalink
feat: add zora chain (#341)
Browse files Browse the repository at this point in the history
* add zora chain

* updating block for multicall

* update chain name

* Update packages/chains/src/index.ts

Co-authored-by: jxom <jakemoxey@gmail.com>

* add zora chain to readme

* adding changeset

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
iainnash and jxom authored Jun 14, 2023
1 parent 66f0124 commit 47be5bb
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clever-squids-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": minor
---

Adding ZORA mainnet chain
1 change: 1 addition & 0 deletions packages/chains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const { chains, provider } = configureChains(
- `telosTestnet`
- `zkSync`
- `zkSyncTestnet`
- `zora`
- `zoraTestnet`

## Contributing
Expand Down
3 changes: 2 additions & 1 deletion packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,5 @@ export { xdcTestnet } from './xdcTestnet'
export { zhejiang } from './zhejiang'
export { zkSync } from './zkSync'
export { zkSyncTestnet } from './zkSyncTestnet'
export { zoraTestnet } from './zoraTestnet'
export { zora } from './zora'
export { zoraTestnet } from './zoraTestnet'
32 changes: 32 additions & 0 deletions packages/chains/src/zora.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { Chain } from './types'

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

0 comments on commit 47be5bb

Please sign in to comment.