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

Commit

Permalink
feat: add base (#426)
Browse files Browse the repository at this point in the history
* feat: add base

* chore changeset
  • Loading branch information
jxom authored Jul 15, 2023
1 parent 3c3143d commit d4460ab
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
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

0 comments on commit d4460ab

Please sign in to comment.