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

Commit

Permalink
feat: add Ethereum Classic chain (#466)
Browse files Browse the repository at this point in the history
* Added Ethereum Classic chain

* Add Classic to readme

* Fix classic blockscout explorer name

* Update classic.ts

---------

Co-authored-by: jxom <[email protected]>
  • Loading branch information
IstoraMandiri and jxom authored Aug 9, 2023
1 parent 5683df2 commit 4f514c6
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-queens-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": minor
---

Added Ethereum Classic Chain
1 change: 1 addition & 0 deletions packages/chains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const { chains, provider } = configureChains(
- `celo`
- `celoAlfajores`
- `celoCannoli`
- `classic`
- `cronos`
- `cronosTestnet`
- `edgeware`
Expand Down
22 changes: 22 additions & 0 deletions packages/chains/src/classic.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Chain } from './types'

export const classic = {
id: 61,
name: 'Ethereum Classic',
network: 'classic',
nativeCurrency: {
decimals: 18,
name: 'ETC',
symbol: 'ETC',
},
rpcUrls: {
default: { http: ['https://etc.rivet.link'] },
public: { http: ['https://etc.rivet.link'] },
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://blockscout.com/etc/mainnet',
},
},
} 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 @@ -22,6 +22,7 @@ export { canto } from './canto'
export { celo } from './celo'
export { celoAlfajores } from './celoAlfajores'
export { celoCannoli } from './celoCannoli'
export { classic } from './classic'
export { confluxESpace } from './confluxESpace'
export { cronos } from './cronos'
export { cronosTestnet } from './cronosTestnet'
Expand Down

0 comments on commit 4f514c6

Please sign in to comment.