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

Commit

Permalink
feat: add energy web chains (ewc & volta) (#447)
Browse files Browse the repository at this point in the history
* feat: add energy web chains (ewc & volta)

* chore: update changeset

* docs: add energy web chains to readme

* Update volta.ts

* Update ewc.ts

* Update smooth-wolves-ring.md

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
nichonien and jxom authored Aug 12, 2023
1 parent 9a092c8 commit 484c846
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/smooth-wolves-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": major
---

Added `ewc` & `volta` chains.
2 changes: 2 additions & 0 deletions packages/chains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const { chains, provider } = configureChains(
- `edgewareTestnet`
- `eos`
- `eosTestnet`
- `ewc`
- `fantom`
- `fantomTestnet`
- `foundry`
Expand Down Expand Up @@ -99,6 +100,7 @@ const { chains, provider } = configureChains(
- `taraxaTestnet`
- `telos`
- `telosTestnet`
- `volta`
- `zkSync`
- `zkSyncTestnet`
- `zora`
Expand Down
27 changes: 27 additions & 0 deletions packages/chains/src/ewc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Chain } from './types'

export const ewc = {
id: 246,
name: 'Energy Web Chain',
network: 'ewc',
nativeCurrency: { name: 'EWT', symbol: 'EWT', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.energyweb.org'],
},
public: {
http: ['https://rpc.energyweb.org'],
},
},
blockExplorers: {
default: {
name: 'Energy Web Chain Explorer',
url: 'https://explorer.energyweb.org',
},
},
contracts: {
ensRegistry: {
address: '0x0A6d64413c07E10E890220BBE1c49170080C6Ca0',
},
},
} as const satisfies Chain
2 changes: 2 additions & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export { evmos } from './evmos'
export { evmosTestnet } from './evmosTestnet'
export { ekta } from './ekta'
export { ektaTestnet } from './ektaTestnet'
export { ewc } from './ewc'
export { fantom } from './fantom'
export { fantomTestnet } from './fantomTestnet'
export { fibo } from './fibo'
Expand Down Expand Up @@ -121,6 +122,7 @@ export { taraxaTestnet } from './taraxaTestnet'
export { telos } from './telos'
export { telosTestnet } from './telosTestnet'
export { thunderTestnet } from './thunderTestnet'
export { volta } from './volta'
export { wanchain } from './wanchain'
export { wanchainTestnet } from './wanchainTestnet'
export { xdc } from './xdc'
Expand Down
27 changes: 27 additions & 0 deletions packages/chains/src/volta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Chain } from './types'

export const volta = {
id: 73799,
name: 'Volta Chain',
network: 'volta',
nativeCurrency: { name: 'VT', symbol: 'VT', decimals: 18 },
rpcUrls: {
default: {
http: ['https://volta-rpc.energyweb.org'],
},
public: {
http: ['https://volta-rpc.energyweb.org'],
},
},
blockExplorers: {
default: {
name: 'Volta Explorer',
url: 'https://volta-explorer.energyweb.org',
},
},
contracts: {
ensRegistry: {
address: '0xd7CeF70Ba7efc2035256d828d5287e2D285CD1ac',
},
},
} as const satisfies Chain

0 comments on commit 484c846

Please sign in to comment.