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

feat: add base #426

Merged
merged 2 commits into from
Jul 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/eighty-chicken-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": minor
---

Added Base
1 change: 1 addition & 0 deletions packages/chains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const { chains, provider } = configureChains(
- `auroraTestnet`
- `avalanche`
- `avalancheFuji`
- `base`
- `baseGoerli`
- `bronos`
- `bronosTestnet`
Expand Down
36 changes: 36 additions & 0 deletions packages/chains/src/base.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { Chain } from './types'

export const base = {
id: 8453,
network: 'base',
name: 'Base',
nativeCurrency: { name: 'Base', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://developer-access-mainnet.base.org'],
},
public: {
http: ['https://developer-access-mainnet.base.org'],
},
},
blockExplorers: {
blockscout: {
name: 'Basescout',
url: 'https://base.blockscout.com',
},
default: {
name: 'Basescan',
url: 'https://basescan.org',
},
etherscan: {
name: 'Basescan',
url: 'https://basescan.org',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 5022,
},
},
} as const satisfies Chain
1 change: 1 addition & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export { aurora } from './aurora'
export { auroraTestnet } from './auroraTestnet'
export { avalanche } from './avalanche'
export { avalancheFuji } from './avalancheFuji'
export { base } from './base'
export { baseGoerli } from './baseGoerli'
export { bearNetworkChainMainnet } from './bearNetworkChainMainnet'
export { bearNetworkChainTestnet } from './bearNetworkChainTestnet'
Expand Down